Edit Edit: Solved it. Was permission error and admin page wrongly linked in .ini file. No idea how that happened. Used ChatGPT to figure it out.
What solved it:
sudo mkdir -p /var/lib/sabnzbd/admin
sudo chown -R sabnzbd:sabnzbd /var/lib/sabnzbd
sudo chmod -R 750 /var/lib/sabnzbd
sudo nano /var/lib/sabnzbd/sabnzbd.ini
changed admin_dir=admin to admin_dir = /var/lib/sabnzbd/admin
Then ran the typical commands to refresh updates and restart service:
sudo systemctl daemon-reload
sudo systemctl restart sabnzbd
sudo systemctl status sabnzbd
Status showed everything running.
Ran this to check if databases were correctly added.
sudo ls -l /var/lib/sabnzbd/admin
Old Questions:
Hey, Iâm a bit stuck. Any help would be greatly appreciated.
A few days ago I scrubbed Sab completely from my system. In the process, cleaned out all groups, gshadow, etc to get rid of everything sab.
Today, my ADHD monkey brain changed its mind, and I want to keep it just in case. Upon re-installing today, it doesnât seem to install properly.
Edit â Updated info:
Itâs installed properly now, but it is having database errors during status.
[memiru@memiru ~]$ sudo systemctl status sabnzbd.service
Ă sabnzbd.service - SABnzbd binary newsreader
Loaded: loaded (/etc/systemd/system/sabnzbd.service; enabled; preset: disabled)
Active: failed (Result: exit-code) since Fri 2025-10-24 14:22:26 CEST; 8s ago
Duration: 710ms
Invocation: d431b102f93d4691ba7a4250c68f8b96
Process: 78444 ExecStart=/usr/lib/sabnzbd/SABnzbd.py --logging 0 --config-file /var/lib/sabnzbd/sabnzbd.ini (code=exited, status=1/FAILURE)
Main PID: 78444 (code=exited, status=1/FAILURE)
Mem peak: 50.3M
CPU: 658msOct 24 14:22:26 memiru sabnzbd[78444]: return func(*args, **kw)
Oct 24 14:22:26 memiru sabnzbd[78444]: File â/usr/lib/sabnzbd/sabnzbd/database.pyâ, line 61, in _init_
Oct 24 14:22:26 memiru sabnzbd[78444]: self.connect()
Oct 24 14:22:26 memiru sabnzbd[78444]: ~~~~~~~~~~~~^^
Oct 24 14:22:26 memiru sabnzbd[78444]: File â/usr/lib/sabnzbd/sabnzbd/database.pyâ, line 69, in connect
Oct 24 14:22:26 memiru sabnzbd[78444]: self.connection = sqlite3.connect(HistoryDB.db_path)
Oct 24 14:22:26 memiru sabnzbd[78444]: ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
Oct 24 14:22:26 memiru sabnzbd[78444]: sqlite3.OperationalError: unable to open database file
Oct 24 14:22:26 memiru systemd[1]: sabnzbd.service: Main process exited, code=exited, status=1/FAILURE
Oct 24 14:22:26 memiru systemd[1]: sabnzbd.service: Failed with result âexit-codeâ.
Before Edits (you can skip this):
No errors during install. Yet it doesnât install correctly.
Dunno if itâs a user/group/permission related issue since I took those out, or if itâs something else.
I did add the sabnzbd back into a newly created sabnzbd group in groups. Also chmodded the sabnzbd folder in /var/lib.
In /usb/lib/ the entire sabnzbd directory where .py file should be is missing, and upon checking status for the service I get this in return.
[memiru@memiru ~]$ sudo systemctl status sabnzbd.service
Ă sabnzbd.service - SABnzbd binary newsreader
Loaded: loaded (/etc/systemd/system/sabnzbd.service; enabled; preset: disabled)
Active: failed (Result: exit-code) since Fri 2025-10-24 13:01:55 CEST; 19min ago
Duration: 44ms
Invocation: 2a2438394ee8418da4018992fc09ad76
Process: 1073 ExecStart=/usr/lib/sabnzbd/SABnzbd.py --logging 0 --config-file /var/lib/sabnzbd/sabnzbd.ini (code=exited, status=203/EXEC)
Main PID: 1073 (code=exited, status=203/EXEC)
Mem peak: 1.8M
CPU: 4msOct 24 13:01:55 memiru systemd[1]: Started SABnzbd binary newsreader.
Oct 24 13:01:55 memiru (Bnzbd.py)[1073]: sabnzbd.service: Unable to locate executable â/usr/lib/sabnzbd/SABnzbd.pyâ: No such file or directory
Oct 24 13:01:55 memiru (Bnzbd.py)[1073]: sabnzbd.service: Failed at step EXEC spawning /usr/lib/sabnzbd/SABnzbd.py: No such file or directory
Oct 24 13:01:55 memiru systemd[1]: sabnzbd.service: Main process exited, code=exited, status=203/EXEC
Oct 24 13:01:55 memiru systemd[1]: sabnzbd.service: Failed with result âexit-codeâ.
Edit:
in yay -Qm doesnât list sabnzbd. Upon reinstall it now shows.
Still not generating the /usr/lib/sabnzbd dir or files.
groups sabnzbd returns sabnzbd : groups: cannot find name for group ID 952
Edit 2:
Now I have the folder and .py generated. Still not getting the service started as it is trying to read the database file from /usb/lib/sabnzbd/sabnzbd/database.py instead of /usb/lib/sabnzbd/sabnzbd/database.py. The file is there.