Saat melakukan instalasi dengan dnf di Fedora, muncul pesan berikut Waiting for process with pid 4622 to finish.

Transaction Summary
======================================================================
Install     175 Packages
Upgrade    3562 Packages
Remove        6 Packages
Downgrade     5 Packages
 
Total size: 4.9 G
Total download size: 4.4 G
DNF will only download packages, install gpg keys, and check the transaction.
Is this ok [y/N]: y
Downloading Packages:
Waiting for process with pid 4622 to finish.

waiting for process with pid 4622

Fedora mengunci proses dnf dengan membuat lock (kunci) file di /var/cache/dnf/, tetapi bila kita cek di folder tersebut tidak ada file pid

$ sudo ls /var/cache/dnf/*.pid
ls: cannot access '/var/cache/dnf/*.pid': No such file or directory

langkah selanjutnya cek ps -p PID

$ sudo ps -p 4622
    PID TTY          TIME CMD

hasil dari ls -lah /proc/ | grep 4622 dan ps axu | grep 4622 tidak menemukan PID 4622

sudo ls -lah /proc/ | grep 4622
ps axu | grep 4622

semua kosong

Hal yang bikin aneh, bila kita cek PATH nya langsung, folder 4622 ada

$ sudo cat /proc/4622/cmdline
# output
/usr/lib64/firefox/firefox-contentproc-childID8-isForBrowser-prefsLen34886-prefMapSize256728-jsInitLen234952-parentBuildID20240429113359-greomni/usr/lib64/firefox/omni.ja-appomni/usr/lib64/firefox/browser/omni.ja-appDir/usr/lib64/firefox/browser{9399236f-f02c-4fad-971e-8dc1e2f17a0f}4140truetab

beberapa output dari file tersebut

$ file /proc/4622/cmdline
/proc/4622/cmdline: empty
$ sudo ls -lah  /proc/4622/cmdline 
-r--r--r-- 1 tommy tommy 0 May  5 15:13 /proc/4622/cmdline
$ stat  /proc/4622/cmdline
  File: /proc/4622/cmdline
  Size: 0         	Blocks: 0          IO Block: 1024   regular empty file
Device: 0,21	Inode: 204164      Links: 1
Access: (0444/-r--r--r--)  Uid: ( 1000/   tommy)   Gid: ( 1000/   tommy)
Access: 2024-05-05 15:13:24.341896177 +0700
Modify: 2024-05-05 15:13:24.341896177 +0700
Change: 2024-05-05 15:13:24.341896177 +0700
 Birth: -
$ ls -lahc  /proc/4062/
total 0
dr-xr-xr-x   9 tommy tommy 0 May  5 14:53 .
dr-xr-xr-x 338 root  root  0 May  5 14:52 ..
-r--r--r--   1 tommy tommy 0 May  5 15:22 arch_status
dr-xr-xr-x   2 tommy tommy 0 May  5 15:22 attr
-rw-r--r--   1 tommy tommy 0 May  5 15:22 autogroup
-r--------   1 tommy tommy 0 May  5 15:22 auxv
-r--r--r--   1 tommy tommy 0 May  5 15:22 cgroup
--w-------   1 tommy tommy 0 May  5 15:22 clear_refs
-r--r--r--   1 tommy tommy 0 May  5 14:53 cmdline
-rw-r--r--   1 tommy tommy 0 May  5 15:02 comm
-rw-r--r--   1 tommy tommy 0 May  5 15:22 coredump_filter
-r--r--r--   1 tommy tommy 0 May  5 15:22 cpu_resctrl_groups
-r--r--r--   1 tommy tommy 0 May  5 15:22 cpuset
lrwxrwxrwx   1 tommy tommy 0 May  5 14:59 cwd -> /home/tommy
-r--------   1 tommy tommy 0 May  5 14:53 environ
lrwxrwxrwx   1 tommy tommy 0 May  5 14:53 exe -> /usr/bin/bash
dr-x------   2 tommy tommy 4 May  5 14:59 fd
dr-xr-xr-x   2 tommy tommy 0 May  5 15:22 fdinfo
-rw-r--r--   1 tommy tommy 0 May  5 15:22 gid_map
-r--------   1 tommy tommy 0 May  5 14:59 io
-r--------   1 tommy tommy 0 May  5 15:22 ksm_merging_pages
-r--------   1 tommy tommy 0 May  5 15:22 ksm_stat
-r--r--r--   1 tommy tommy 0 May  5 15:22 latency
-r--r--r--   1 tommy tommy 0 May  5 15:22 limits
-rw-r--r--   1 tommy tommy 0 May  5 15:22 loginuid
dr-x------   2 tommy tommy 0 May  5 15:22 map_files
-r--r--r--   1 tommy tommy 0 May  5 15:02 maps
-rw-------   1 tommy tommy 0 May  5 15:22 mem
-r--r--r--   1 tommy tommy 0 May  5 15:22 mountinfo
-r--r--r--   1 tommy tommy 0 May  5 15:22 mounts
-r--------   1 tommy tommy 0 May  5 15:22 mountstats
dr-xr-xr-x  60 tommy tommy 0 May  5 15:22 net
dr-x--x--x   2 tommy tommy 0 May  5 15:22 ns
-r--r--r--   1 tommy tommy 0 May  5 15:22 numa_maps
-rw-r--r--   1 tommy tommy 0 May  5 15:22 oom_adj
-r--r--r--   1 tommy tommy 0 May  5 15:22 oom_score
-rw-r--r--   1 tommy tommy 0 May  5 15:22 oom_score_adj
-r--------   1 tommy tommy 0 May  5 15:22 pagemap
-r--------   1 tommy tommy 0 May  5 15:22 patch_state
-r--------   1 tommy tommy 0 May  5 15:22 personality
-rw-r--r--   1 tommy tommy 0 May  5 15:22 projid_map
lrwxrwxrwx   1 tommy tommy 0 May  5 15:22 root -> /
-rw-r--r--   1 tommy tommy 0 May  5 15:22 sched
-r--r--r--   1 tommy tommy 0 May  5 15:22 schedstat
-r--r--r--   1 tommy tommy 0 May  5 15:22 sessionid
-rw-r--r--   1 tommy tommy 0 May  5 15:22 setgroups
-r--r--r--   1 tommy tommy 0 May  5 14:59 smaps
-r--r--r--   1 tommy tommy 0 May  5 14:59 smaps_rollup
-r--------   1 tommy tommy 0 May  5 15:22 stack
-r--r--r--   1 tommy tommy 0 May  5 14:53 stat
-r--r--r--   1 tommy tommy 0 May  5 14:59 statm
-r--r--r--   1 tommy tommy 0 May  5 14:53 status
-r--------   1 tommy tommy 0 May  5 15:22 syscall
dr-xr-xr-x   3 tommy tommy 0 May  5 14:59 task
-rw-r--r--   1 tommy tommy 0 May  5 15:22 timens_offsets
-r--r--r--   1 tommy tommy 0 May  5 15:22 timers
-rw-rw-rw-   1 tommy tommy 0 May  5 15:22 timerslack_ns
-rw-r--r--   1 tommy tommy 0 May  5 15:22 uid_map
-r--r--r--   1 tommy tommy 0 May  5 15:22 wchan

ntah kenapa file dnf dikunci oleh proses 4622, yang bila dilihat dari output diatas adalah proses firefox. Kemungkinan yang terjadi, sewaktu dnf melakukan instalasi tiba-tiba komputer di shutdown, yang menyebabkan proses dnf ini terkunci.

Solusi

Solusi untuk masalah ini, bersihkan cache dan metadata dnf

sudo dnf clean all

matikan proses 4622 secara paksa

sudo kill -9 4622

setelah proses tersebut dimatikan, dnf berjalan normal kembali
force kill the process

Leave a comment

Your email address will not be published. Required fields are marked *