Failed to start Manage swap spaces on zram, files and partitions..; ModuleNotFoundError: No module named 'sysv_ipc'

After updating Manjaro and during next boot, I have noticed failure to start swap.

systemctl status systemd-swap.service
sudo journalctl -rg swap

systemd[1]: Starting Manage swap spaces on zram, files and partitions…
systemd-swap[1122]: Traceback (most recent call last):
systemd-swap[1122]: File “/usr/bin/systemd-swap”, line 24, in
systemd-swap[1122]: import sysv_ipc
systemd-swap[1122]: ModuleNotFoundError: No module named ‘sysv_ipc’
systemd[1]: systemd-swap.service: Main process exited, code=exited, status=1/FAILURE
systemd[1]: systemd-swap.service: Failed with result ‘exit-code’.
systemd[1]: Failed to start Manage swap spaces on zram, files and partitions…

sudo modprobe sysv_ipc

modprobe: FATAL: Module sysv_ipc not found in directory /lib/modules/6.11.11-1-MANJARO

sudo lsmod|grep -E “ipc|sysv”

→ empty output

$ swapon;zramctl

→ empty output

Kernel: 6.11.11-1-MANJARO arch: x86_64

I doubt that this was the issue previously, so it is some system bug. Which commands to run please to fix this?

It looks like you are using this:

GitHub - nefelim4ag/systemd-swap: Script for creating hybrid swap space from zram swaps, swap files and swap partitions.

probably built from some AUR PKGBUILD which might no longer exist or the package needs to be rebuilt.

Just for info: I use zramswap - the github page gives another recommendation → zram-generator

/usr/bin/systemd-swap doesn’t exist in my system and is not in any package from the repos - the module sysv_ipc also doesn’t exist.

4 Likes