nefelim4ag / systemd-swap

Script for creating hybrid swap space from zram swaps, swap files and swap partitions.
GNU General Public License v3.0
550 stars 81 forks source link

Failed to enable systemd-swap-service on OpenSUSE Tumbleweed #183

Closed bkdwt closed 3 years ago

bkdwt commented 3 years ago

Hello. I trying to enable the systemd service on my system, but I getting this error:

systemctl status systemd-swap.service
● systemd-swap.service - Manage swap spaces on zram, files and partitions.
     Loaded: loaded (/usr/lib/systemd/system/systemd-swap.service; enabled; vendor preset: disabled)
     Active: failed (Result: exit-code) since Mon 2020-08-24 00:56:15 -03; 26s ago
    Process: 3898 ExecStart=/usr/bin/systemd-swap start (code=exited, status=1/FAILURE)
   Main PID: 3898 (code=exited, status=1/FAILURE)

The jornal:

Hint: You are currently not seeing messages from other users and the system.
      Users in the 'systemd-journal' group can see all messages. Pass -q to
      turn off this notice.
Aug 24 00:47:25 nsa dbus-daemon[2038]: [session uid=1000 pid=2038] Successfully activated service 'org.gnome.Photos'
Aug 24 00:47:25 nsa dbus-daemon[2038]: [session uid=1000 pid=2038] Successfully activated service 'org.gnome.Notes.SearchProvider'
Aug 24 00:47:25 nsa bijiben-shell-s[3071]: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
Aug 24 00:47:25 nsa bijiben-shell-s[3071]: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
Aug 24 00:47:25 nsa bijiben-shell-s[3071]: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
Aug 24 00:47:25 nsa dbus-daemon[2038]: [session uid=1000 pid=2038] Successfully activated service 'org.gnome.Nautilus'
Aug 24 00:47:26 nsa dbus-daemon[2038]: [session uid=1000 pid=2038] Activating service name='org.gnome.DiskUtility' requested by ':1.18' (uid=1000 pid=2182 comm="/usr/bin/gnome-she>
Aug 24 00:47:26 nsa dbus-daemon[2038]: [session uid=1000 pid=2038] Successfully activated service 'org.gnome.DiskUtility'
Aug 24 00:47:37 nsa org.gnome.Notes.SearchProvider[3071]: Unable to load location /home/botnet/.local/share/bijiben: Error opening directory '/home/botnet/.local/share/bijiben': N>
Aug 24 00:47:37 nsa pulseaudio[2166]: E: [pulseaudio] bluez5-util.c: GetManagedObjects() failed: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes inclu>
Aug 24 00:47:44 nsa tracker-store[2400]: OK
Aug 24 00:47:44 nsa systemd[1906]: tracker-store.service: Succeeded.
-- Subject: Unit succeeded
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- The unit UNIT has successfully entered the 'dead' state.
Aug 24 00:48:01 nsa systemd[1906]: Started VTE child process 3555 launched by gnome-terminal-server process 2587.
-- Subject: A start job for unit UNIT has finished successfully
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- A start job for unit UNIT has finished successfully.
-- 
-- The job identifier is 247.
Aug 24 00:48:02 nsa gnome-shell[2182]: Failed to load background 'file:///home/botnet': Error opening file /home/botnet: Is a directory
Aug 24 00:48:27 nsa sudo[3622]: gkr-pam: unable to locate daemon control file
Aug 24 00:48:27 nsa sudo[3622]: gkr-pam: stashed password to try later in open session
Aug 24 00:51:04 nsa /usr/lib/gdm/gdm-x-session[2011]: (EE) event0  - CYKB09 USB Keyboard: client bug: event processing lagging behind by 39ms, your system is too slow
Aug 24 00:52:14 nsa /usr/lib/gdm/gdm-x-session[2011]: (EE) event0  - CYKB09 USB Keyboard: client bug: event processing lagging behind by 26ms, your system is too slow
Aug 24 00:55:15 nsa systemd[1906]: Started VTE child process 3805 launched by gnome-terminal-server process 2587.
-- Subject: A start job for unit UNIT has finished successfully
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- A start job for unit UNIT has finished successfully.
-- 
-- The job identifier is 252.
Aug 24 00:55:15 nsa gnome-shell[2182]: Failed to load background 'file:///home/botnet': Error opening file /home/botnet: Is a directory

The swap-default.conf:

#zswap_enabled=1
#zswap_compressor=zstd
#zswap_max_pool_percent=25
#zswap_zpool=z3fold
zram_enabled=1
zram_size=$(( RAM_SIZE / 4 ))
zram_count=${NCPU}
zram_streams=${NCPU}
zram_alg=zstd
zram_prio=32767
#swapfc_enabled=0
#swapfc_force_use_loop=0
#swapfc_frequency=1
#swapfc_chunk_size=256M
#swapfc_max_count=32
#swapfc_min_count=0
#swapfc_free_ram_perc=35
#swapfc_free_swap_perc=15
#swapfc_remove_free_swap_perc=55
#swapfc_priority=50
#swapfc_path=/var/lib/systemd-swap/swapfc/
#swapfc_nocow=1
#swapfc_directio=1
#swapfc_force_preallocated=0
#swapd_auto_swapon=1
#swapd_prio=1024

lsmod:

Module                  Size  Used by
zram                   32768  0

Thanks in advance! :+1:

bkdwt commented 3 years ago

Well, installed the both dependencies but the problem persistes:

sudo systemctl enable --now systemd-swap
Created symlink /etc/systemd/system/multi-user.target.wants/systemd-swap.service → /usr/lib/systemd/system/systemd-swap.service.
Job for systemd-swap.service failed because the control process exited with error code.
See "systemctl status systemd-swap.service" and "journalctl -xe" for details.
systemd-swap.service - Manage swap spaces on zram, files and partitions.
     Loaded: loaded (/usr/lib/systemd/system/systemd-swap.service; enabled; vendor preset: disabled)
     Active: failed (Result: exit-code) since Mon 2020-08-24 01:27:29 -03; 28s ago
    Process: 7594 ExecStart=/usr/bin/systemd-swap start (code=exited, status=1/FAILURE)
   Main PID: 7594 (code=exited, status=1/FAILURE)

See the journalctl bellow.

journalctl.txt

vilgotf commented 3 years ago

I'm not sure what the error is, your log does not contain information about systemd-swap

bkdwt commented 3 years ago

I'm not sure what the error is, your log does not contain information about systemd-swap

Damn it! Well, as there is no way to find out what's going on since the logs show nothing, so I will close this issue. Thanks! ;)

vilgotf commented 3 years ago

I'd check #178 and see if that seems like your issue