Open mangkoran opened 1 year ago
After trying to reinstall it once again, it seems this issue is not appearing anymore 😅
What I did / step to reinstall:
sudo pacman -R bottle-imp
sudo rm /run/systemd/generator/imp-*
#in powershell
wsl --terminate [distro-name] #restart WSL distro
wsl -d [distro-name]
sudo pacman -U [bottle-imp-archive]
#in powershell
wsl --terminate [distro-name] #restart WSL distro once again
wsl -d [distro-name] imp -s
Apologize. It seems the issue is back. I think the main problem is that several imp
units are not started by systemd
properly.
~ took 8s
❯ exa -l /run/systemd/generator/imp-*
.rw-r--r-- 600 root 29 Nov 21:02 /run/systemd/generator/imp-fixshm.service
.rw-r--r-- 358 root 29 Nov 21:02 /run/systemd/generator/imp-pstorefs.service
.rw-r--r-- 276 root 29 Nov 21:02 /run/systemd/generator/imp-remount-root-shared.service
.rw-r--r-- 383 root 29 Nov 21:02 /run/systemd/generator/imp-securityfs.service
.rw-r--r-- 382 root 29 Nov 21:02 /run/systemd/generator/imp-wslg-socket.service
~
❯ systemctl status imp-fixshm
○ imp-fixshm.service - bottle-imp - Fix the /dev/shm symlink to be a mount
Loaded: loaded (/run/systemd/generator/imp-fixshm.service; generated)
Active: inactive (dead)
~
❯ systemctl status imp-pstorefs
○ imp-pstorefs.service - bottle-imp - Kernel Persistent Storage File System
Loaded: loaded (/run/systemd/generator/imp-pstorefs.service; generated)
Active: inactive (dead)
~
❯ systemctl status imp-remount-root-shared
○ imp-remount-root-shared.service - bottle-imp - Remount Root Filesystem Shared
Loaded: loaded (/run/systemd/generator/imp-remount-root-shared.service; generated)
Active: inactive (dead)
~
❯ systemctl status imp-securityfs
○ imp-securityfs.service - bottle-imp - Kernel Security File System
Loaded: loaded (/run/systemd/generator/imp-securityfs.service; generated)
Active: inactive (dead)
~
❯ systemctl status imp-wslg-socket
○ imp-wslg-socket.service - bottle-imp - WSLg socket remount service
Loaded: loaded (/run/systemd/generator/imp-wslg-socket.service; generated)
Active: inactive (dead)
Condition: start condition failed at Tue 2022-11-29 21:02:08 +07; 10min ago
└─ ConditionPathExists=/tmp/.X11-unix was not met
Nov 29 21:02:08 8atagor systemd[1]: bottle-imp - WSLg socket remount service was skipped because of an unmet condition check (ConditionPathExists=/tmp/.X11-unix).
Trying to restart imp-fixshm
produced the following result.
❯ systemctl status imp-fixshm
○ imp-fixshm.service - bottle-imp - Fix the /dev/shm symlink to be a mount
Loaded: loaded (/run/systemd/generator/imp-fixshm.service; generated)
Active: inactive (dead)
Condition: start condition failed at Tue 2022-11-29 22:40:20 +07; 7min ago
└─ ConditionPathIsSymbolicLink=/dev/shm was not met
Nov 29 22:40:20 8atagor systemd[1]: bottle-imp - Fix the /dev/shm symlink to be a mount was skipped because of an unmet condition check (ConditionPathIsSymbolicLink=/dev/shm).
I tried to reproduce the issue by bootstrapping a new, clean ArchWSL distro and I found no issue there.
[mangkoran@8atagor ~]$ ls -la /run/systemd/generator/imp-*
-rw-r--r-- 1 root root 600 Nov 29 21:02 /run/systemd/generator/imp-fixshm.service
-rw-r--r-- 1 root root 358 Nov 29 21:02 /run/systemd/generator/imp-pstorefs.service
-rw-r--r-- 1 root root 276 Nov 29 21:02 /run/systemd/generator/imp-remount-root-shared.service
-rw-r--r-- 1 root root 383 Nov 29 21:02 /run/systemd/generator/imp-securityfs.service
-rw-r--r-- 1 root root 382 Nov 29 21:02 /run/systemd/generator/imp-wslg-socket.service
[mangkoran@8atagor ~]$ systemctl status imp-fixshm
○ imp-fixshm.service - bottle-imp - Fix the /dev/shm symlink to be a mount
Loaded: loaded (/run/systemd/generator/imp-fixshm.service; generated)
Active: inactive (dead) since Tue 2022-11-29 21:02:22 +07; 4min 30s ago
Process: 31 ExecStart=/usr/lib/bottle-imp/imp-executor devshm (code=exited, status=0/SUCCESS)
Main PID: 31 (code=exited, status=0/SUCCESS)
Nov 29 21:02:22 8atagor systemd[1]: imp-fixshm.service: Deactivated successfully.
Nov 29 21:02:22 8atagor systemd[1]: Finished bottle-imp - Fix the /dev/shm symlink to be a mount.
Notice: journal has been rotated since unit was started, output may be incomplete.
[mangkoran@8atagor ~]$ systemctl status imp-pstorefs
○ imp-pstorefs.service - bottle-imp - Kernel Persistent Storage File System
Loaded: loaded (/run/systemd/generator/imp-pstorefs.service; generated)
Active: inactive (dead)
Condition: start condition failed at Tue 2022-11-29 21:02:22 +07; 4min 35s ago
└─ ConditionPathExists=/sys/fs/pstore was not met
[mangkoran@8atagor ~]$ systemctl status imp-remount-root-shared
○ imp-remount-root-shared.service - bottle-imp - Remount Root Filesystem Shared
Loaded: loaded (/run/systemd/generator/imp-remount-root-shared.service; generated)
Active: inactive (dead) since Tue 2022-11-29 21:02:22 +07; 4min 39s ago
Process: 43 ExecStart=/usr/lib/bottle-imp/imp-executor rrfs (code=exited, status=0/SUCCESS)
Main PID: 43 (code=exited, status=0/SUCCESS)
Nov 29 21:02:22 8atagor systemd[1]: Starting bottle-imp - Remount Root Filesystem Shared...
Nov 29 21:02:22 8atagor systemd[1]: imp-remount-root-shared.service: Deactivated successfully.
Nov 29 21:02:22 8atagor systemd[1]: Finished bottle-imp - Remount Root Filesystem Shared.
[mangkoran@8atagor ~]$ systemctl status imp-securityfs
○ imp-securityfs.service - bottle-imp - Kernel Security File System
Loaded: loaded (/run/systemd/generator/imp-securityfs.service; generated)
Active: inactive (dead)
Condition: start condition failed at Tue 2022-11-29 21:02:22 +07; 4min 43s ago
└─ ConditionPathExists=/sys/kernel/security was not met
[mangkoran@8atagor ~]$ systemctl status imp-wslg-socket
○ imp-wslg-socket.service - bottle-imp - WSLg socket remount service
Loaded: loaded (/run/systemd/generator/imp-wslg-socket.service; generated)
Active: inactive (dead) since Tue 2022-11-29 21:02:22 +07; 4min 45s ago
Process: 62 ExecStart=/usr/lib/bottle-imp/imp-executor wslg (code=exited, status=0/SUCCESS)
Main PID: 62 (code=exited, status=0/SUCCESS)
Nov 29 21:02:22 8atagor systemd[1]: Starting bottle-imp - WSLg socket remount service...
Nov 29 21:02:22 8atagor systemd[1]: imp-wslg-socket.service: Deactivated successfully.
Nov 29 21:02:22 8atagor systemd[1]: Finished bottle-imp - WSLg socket remount service.
I have updated to
1.0
however I still have several failed units.Now the units will failed even after I tried to restart it. All units failed with same "protocol error".