Page 1 of 1

Sabnzbd loses settings occasionally

Posted: May 13th, 2018, 11:49 am
by cardboardbox
Every once in a while my sabnzbd loses its settings and I have to set everything up again as if it were a fresh install. I'm not sure what made this happen in the past but this time it happened right after a major windows update. Any idea how to fix this?

Re: Sabnzbd loses settings occasionally

Posted: May 13th, 2018, 1:12 pm
by sander
File system problems?

Anyway: all settings are in sabnzbd.ini, and SAB makes a copy of it: sabnzbd.ini.bak.

Location of sabnzbd.ini: see https://sabnzbd.org/wiki/advanced/directory-setup

Re: Sabnzbd loses settings occasionally

Posted: May 13th, 2018, 1:49 pm
by cardboardbox
sander wrote: May 13th, 2018, 1:12 pm File system problems?

Anyway: all settings are in sabnzbd.ini, and SAB makes a copy of it: sabnzbd.ini.bak.

Location of sabnzbd.ini: see https://sabnzbd.org/wiki/advanced/directory-setup
no file system problems that I know of. Everything else is running fine.

A few years ago I was having an issue where shortly after startup Sonarr would try to send nzb's to Sab before Sab was running and all those tasks would fail and I guess Sonarr didnt retry them. Yes SAB was set to run at startup but Sonarr was always up and running first. I think I somehow solved this issue by using NSSM (Non sucking service manager) to start Sab as a service. After I did that, no more Sonarr to Sab issues at startup. Perhaps the issue is with NSSM? Although I wouldnt have any idea where to start troubleshooting.

My sabnzbd.ini is in C:\Windows\System32\config\systemprofile\AppData\Local\sabnzbd. Looks like its in the wrong place...

At least in this instance I have an idea why my settings disappeared, my old ini file is in C:\Windows.old\WINDOWS\System32\config\systemprofile\AppData\Local\sabnzbd. The major windows update did not copy that over for some reason.

Re: Sabnzbd loses settings occasionally

Posted: May 13th, 2018, 2:58 pm
by safihre
It should never be in those locations.
SABnzbd will use the base-location of where it is started, since you used NSSM that set the base-location to the System32 folder.
You should use the guide here to run as servuce: https://sabnzbd.org/wiki/advanced/sabnz ... ws-service
It also explains where/how to link to the correct location of sabnzbd.ini
If SABnzbd is started normally, it can auto-detect the user-home-directory, but not when started as a service.

Probably every WIndows update clears your settings, due to the location.

Sonarr has also changed since then, it will now send the NZB's as soon as SAB comes back online so no need to even run as service.

Re: Sabnzbd loses settings occasionally

Posted: May 13th, 2018, 8:30 pm
by cardboardbox
safihre wrote: May 13th, 2018, 2:58 pm It should never be in those locations.
SABnzbd will use the base-location of where it is started, since you used NSSM that set the base-location to the System32 folder.
You should use the guide here to run as servuce: https://sabnzbd.org/wiki/advanced/sabnz ... ws-service
It also explains where/how to link to the correct location of sabnzbd.ini
If SABnzbd is started normally, it can auto-detect the user-home-directory, but not when started as a service.

Probably every WIndows update clears your settings, due to the location.

Sonarr has also changed since then, it will now send the NZB's as soon as SAB comes back online so no need to even run as service.
Thanks for the help. The ini is in the correct place now and I followed the instructions to get the service running.

Re: Sabnzbd loses settings occasionally

Posted: May 13th, 2018, 8:35 pm
by cardboardbox
I do get this error in SAB now: " Cannot reach the SABHelper service"

Seems to work though so ignoring it for now.