Page 1 of 1

Error on start

Posted: February 6th, 2018, 2:51 pm
by thermodust
I get an error on line 1733 when trying to start sab but only if the config folder exists.
Feb 06 13:43:13 Sherwood-PC sabnzbd[2076]: Starting SABnzbd
Feb 06 13:43:15 Sherwood-PC sabnzbd[2076]: Traceback (most recent call last):
Feb 06 13:43:15 Sherwood-PC sabnzbd[2076]: File "SABnzbd.py", line 1733, in <module>
Feb 06 13:43:15 Sherwood-PC sabnzbd[2076]: main()
Feb 06 13:43:15 Sherwood-PC sabnzbd[2076]: File "SABnzbd.py", line 884, in main
Feb 06 13:43:15 Sherwood-PC sabnzbd[2076]: https_port = int(arg)
Feb 06 13:43:15 Sherwood-PC sabnzbd[2076]: ValueError: invalid literal for int() with base 10: ''
Feb 06 13:43:15 Sherwood-PC systemd[1]: sabnzbd.service: control process exited, code=exited status=1
Feb 06 13:43:15 Sherwood-PC systemd[1]: Failed to start LSB: SABnzbd binary newsgrabber.
Feb 06 13:43:15 Sherwood-PC systemd[1]: Unit sabnzbd.service entered failed state.
PS.
How do I show you the code error if the board won't let me paste the code as it thinks its a link. "New users are not allowed to post links"

@safihre Haza worked, now able to post error. thanks

Re: Error on start

Posted: February 6th, 2018, 3:28 pm
by safihre
After 3 posts you can post anything, so just respond twice to this post and then you can in the 3th post put "links" :P

Re: Error on start

Posted: February 6th, 2018, 3:48 pm
by thermodust
Alright I'll post

Re: Error on start

Posted: February 6th, 2018, 3:48 pm
by thermodust
a few more

Re: Error on start

Posted: February 6th, 2018, 3:49 pm
by thermodust
times to this post

Re: Error on start

Posted: February 6th, 2018, 4:09 pm
by safihre
Oke so it seems something is wrong in your config file.
Try to open it (location: https://sabnzbd.org/wiki/advanced/directory-setup) and find the line that says:
https_port =
And delete it.
Then try to start SABnzbd again.

Re: Error on start

Posted: February 6th, 2018, 4:46 pm
by thermodust
Okay. That helped narrow it down, it still complained but it gave me a place to start and an idea. If you delete it still gives the same error.

However, you can delete it or not but you need to change "enable_https_verification" in the config and set it to zero. Once I did that sab had no problem starting.

Re: Error on start

Posted: February 6th, 2018, 5:56 pm
by safihre
I see now that this error is thrown when parsing command-line arguments.
So your start script includes the "--https" switch but then doesn't provide a correct integer port.

Re: Error on start

Posted: February 12th, 2018, 7:45 am
by rorrantia
Good to know

Re: Error on start

Posted: February 12th, 2018, 7:46 am
by rorrantia
The 3 post rule

Re: Error on start

Posted: February 12th, 2018, 7:46 am
by rorrantia
Thanks