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

TypeError #187

Closed hakavlad closed 3 years ago

hakavlad commented 3 years ago
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 Thu 2020-10-22 12:18:19 BST; 13min left
Main PID: 479 (code=exited, status=1/FAILURE)
Status: "Setting up Zram..."

Oct 22 12:18:19 lam-T440p systemd-swap[479]:   File "/usr/bin/systemd-swap", line 904, in <module>
Oct 22 12:18:19 lam-T440p systemd-swap[479]:     main()
Oct 22 12:18:19 lam-T440p systemd-swap[479]:   File "/usr/bin/systemd-swap", line 892, in main
Oct 22 12:18:19 lam-T440p systemd-swap[479]:     start()
Oct 22 12:18:19 lam-T440p systemd-swap[479]:   File "/usr/bin/systemd-swap", line 666, in start
Oct 22 12:18:19 lam-T440p systemd-swap[479]:     mode = os.stat(zram_dev).st_mode
Oct 22 12:18:19 lam-T440p systemd-swap[479]: TypeError: stat: path should be string, bytes, os.PathLike or integer, not NoneType
Oct 22 12:18:19 lam-T440p systemd[1]: systemd-swap.service: Main process exited, code=exited, status=1/FAILURE
Oct 22 12:18:19 lam-T440p systemd[1]: systemd-swap.service: Failed with result 'exit-code'.
Oct 22 12:18:19 lam-T440p systemd[1]: Failed to start Manage swap spaces on zram, files and partitions..

https://forum.garudalinux.org/t/some-failed-services-kde-lite/1048

dvzrv commented 3 years ago

It would be really awesome to have this in a patch level release, if possible :)