Hi. Here is a Gift to you (Mainly Linux AFAIK)
Posted: July 13th, 2010, 10:08 am
Hi all,
I'm kinda new to these forums (i.e. first post) and I'm not sure if this has been covered before.
I've had issues with starting and restarting Sabnzbd+ since day dot. This is partly my fault, as I forgot to change the daemon config file for Sabnzbd+. Tonight (its AM over here in AUSĀ
) I decided I would fix it, once and for all, so I sat down to solve it. The original issue was that I didn't place the correct IP address and port into the config file. With this rectified, I ran into the next problem:
1) The current user:pass@ipaddress format does not like brackets.
If your password has a ")" in it, then the daemon script will scream when you try to shut down Sabnzbd+. It complains of an un-escaped character, which is true. So, I changed my password to suit. The next problem occurs:
2) The daemon will not start if you try to pass it a URL in the form of user:pass@ipaddress.
IDK why, but the daemon script says it started fine, there is a daemon file (/var/run/daemons/sabnzbd) but no web image at all. Even from local host. The way to fix this is to remove the user:pass@ipaddress on startup.
This however isn't incorporated into the given scripts (both the daemon script and the config script). As such, I took some poetic license and changed them to work myself. It was a relatively simple and effective fix, and it doesn't change very much at all. Attached to this post is the two files I changed (personal information removed). The conf.d file has 2 added parameters: SABNZBD_USERID (your Sabnzbd+ username) and SABNZBD_PASS (password). The rc.d file has an added comparison to see if the username is NULL. If this is so, we need to use a different URL (remove a ":" and an "@" ). If anyone has any questions, I've subscribed to this thread.
I'm kinda new to these forums (i.e. first post) and I'm not sure if this has been covered before.
I've had issues with starting and restarting Sabnzbd+ since day dot. This is partly my fault, as I forgot to change the daemon config file for Sabnzbd+. Tonight (its AM over here in AUSĀ
1) The current user:pass@ipaddress format does not like brackets.
If your password has a ")" in it, then the daemon script will scream when you try to shut down Sabnzbd+. It complains of an un-escaped character, which is true. So, I changed my password to suit. The next problem occurs:
2) The daemon will not start if you try to pass it a URL in the form of user:pass@ipaddress.
IDK why, but the daemon script says it started fine, there is a daemon file (/var/run/daemons/sabnzbd) but no web image at all. Even from local host. The way to fix this is to remove the user:pass@ipaddress on startup.
This however isn't incorporated into the given scripts (both the daemon script and the config script). As such, I took some poetic license and changed them to work myself. It was a relatively simple and effective fix, and it doesn't change very much at all. Attached to this post is the two files I changed (personal information removed). The conf.d file has 2 added parameters: SABNZBD_USERID (your Sabnzbd+ username) and SABNZBD_PASS (password). The rc.d file has an added comparison to see if the username is NULL. If this is so, we need to use a different URL (remove a ":" and an "@" ). If anyone has any questions, I've subscribed to this thread.