Can't start sabnzbdplus - error

Support for the Debian/Ubuntu package, created by JCFP.
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
larzeb
Newbie
Newbie
Posts: 19
Joined: June 6th, 2012, 11:45 am

Can't start sabnzbdplus - error

Post by larzeb »

I had been successfully running Sabnzbd on Ubuntu 12.04 Server. I needed to add the GUI desktop. Since doing that, it will not start, but gets the following error:

** (sabnzbdplus:6373): WARNING **: Command line `dbus-launch --autolaunch=b17eb4ddc112de8b78c63f9a000005fc --binary-syntax --close-stderr' exited with non-zero exit status 1: Autolaunch error: X11 initialization failed.\n

I believe the version is 0.7.11, but I'm not sure and don't know how to find out without the a browser. Any ideas on what might fix this problem?
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Can't start sabnzbdplus - error

Post by shypike »

Add the -b0 parameter when starting SABnzbd .
larzeb
Newbie
Newbie
Posts: 19
Joined: June 6th, 2012, 11:45 am

Re: Can't start sabnzbdplus - error

Post by larzeb »

I added "-b0" to EXTRAOPTS in /etc/default/sabnzbd (EXTRAOPTS=-b0) and tried to start SABnzbd again, but the error remains the same. I also tried "EXTRAOPTS=b0" with the same error message.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Can't start sabnzbdplus - error

Post by shypike »

Could be the "NotifyOSD" option.
Stop SABnzbd, find the file sabnzbd.ini, open it and look for this line:
ntfosd_enable = 1
Change it to
ntfosd_enable = 0
User avatar
jcfp
Release Testers
Release Testers
Posts: 1022
Joined: February 7th, 2008, 12:45 pm

Re: Can't start sabnzbdplus - error

Post by jcfp »

Shy, what is the mechanism that causes this nuisance to block sab from starting? Unrelated error like in the other thread?
larzeb
Newbie
Newbie
Posts: 19
Joined: June 6th, 2012, 11:45 am

Re: Can't start sabnzbdplus - error

Post by larzeb »

After changing ntfosd_enable = 0, the error changed to:

Code: Select all

** (sabnzbdplus:8888): WARNING **: Command line `dbus-launch --autolaunch=b17eb4ddc112de8b78c63f9a000005fc --binary-syntax --close-stderr' exited with non-zero exit status 1: Autolaunch error: X11 initialization failed.\n
and trying it again:

Code: Select all

** (sabnzbdplus:9060): WARNING **: Command line `dbus-launch --autolaunch=b17eb4ddc112de8b78c63f9a000005fc --binary-syntax --close-stderr' exited with non-zero exit status 1: Autolaunch error: X11 initialization failed.\n
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Can't start sabnzbdplus - error

Post by shypike »

jcfp wrote:Shy, what is the mechanism that causes this nuisance to block sab from starting? Unrelated error like in the other thread?
It may be trying to show the Panic page in the browser.
I'll do some digging.
BTW : any idea why these odd line numbers are shown?
Like: (sabnzbdplus : 8888)
User avatar
sander
Release Testers
Release Testers
Posts: 9258
Joined: January 22nd, 2008, 2:22 pm

Re: Can't start sabnzbdplus - error

Post by sander »

shypike wrote: BTW : any idea why these odd line numbers are shown?
Like: (sabnzbdplus : 8888)
PIDs? So not line numbers?
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Can't start sabnzbdplus - error

Post by shypike »

larzeb wrote:I had been successfully running Sabnzbd on Ubuntu 12.04 Server. I needed to add the GUI desktop. Since doing that, it will not start, but gets the following error:

** (sabnzbdplus:6373): WARNING **: Command line `dbus-launch --autolaunch=b17eb4ddc112de8b78c63f9a000005fc --binary-syntax --close-stderr' exited with non-zero exit status 1: Autolaunch error: X11 initialization failed.\n
Can you start "sabnzbdplus" directly from a bash session and list the full output?
The message looks like it's being created by the Python run time libraries,
but I see no relation with the SABnzbd code at all.
In general there are only two things that SABnzbd might need X11 (indirectly) for:
- start the web browser ( to show the UI or a fatal error message).
- Start OSDNotify messaging

Please also check the sabnzbd.log file.
User avatar
sander
Release Testers
Release Testers
Posts: 9258
Joined: January 22nd, 2008, 2:22 pm

Re: Can't start sabnzbdplus - error

Post by sander »

shypike wrote:
jcfp wrote:Shy, what is the mechanism that causes this nuisance to block sab from starting? Unrelated error like in the other thread?
It may be trying to show the Panic page in the browser.
On my headless, non-GUI Ubuntu server, forcing a panic page while logged on with SSH, I get links starting up. That is determined by these settings:

Code: Select all

sander@toverdoos:~$ update-alternatives --query www-browser | grep -i best
Best: /usr/bin/links2
sander@toverdoos:~$ update-alternatives --query x-www-browser | grep -i best
Best: /usr/bin/xlinks2
sander@toverdoos:~$
So: those settings only link to non-GUI webbrowers. Which is good.

So, OP, what is your output of

Code: Select all

update-alternatives --query www-browser | grep -i best
update-alternatives --query x-www-browser | grep -i best
User avatar
jcfp
Release Testers
Release Testers
Posts: 1022
Joined: February 7th, 2008, 12:45 pm

Re: Can't start sabnzbdplus - error

Post by jcfp »

sander wrote:PIDs? So not line numbers?
+1 for pids.
sander wrote:
shypike wrote:It may be trying to show the Panic page in the browser.
On my headless, non-GUI Ubuntu server, forcing a panic page while logged on with SSH, I get links starting up.
Makes sense you get appropriate (cli) browsers there, but that may not be guaranteed. For example, for users that install a gui and/or gui-based browser applications on top of a server install like yours but don't boot to a desktop by default - or with the account running sab unable to access the gui even when it is running.

It'll be nice to see what the topic starter comes up with. I'm wondering if there's some situation that can trigger all of this without a underlying (startup) error in sab, given that he started out with a fully working setup on his "undiluted" server install.
larzeb
Newbie
Newbie
Posts: 19
Joined: June 6th, 2012, 11:45 am

Re: Can't start sabnzbdplus - error

Post by larzeb »

Code: Select all

$ update-alternatives --query www-browser | grep -i best
Best: /usr/bin/w3m
$ update-alternatives --query x-www-browser | grep -i best
Best: /usr/bin/firefox
I tried to start sab from /usr/bin/sabnzbdplus in a terminal window. I'm sorry, I don't know how to include images in this post.

It seems to display the same error message as before, but since it goes so fast, I can't be sure. Then almost immediately it displays "SABnzbd Quick-Start Wizard", beginning with the language selection (which defaults to English). When I select "Start Wizard" at the bottom with the TAB key, it proceeds to Step One, Server Details and displays "SABnzbd Version 0.7.12" at the top. All values of the fields are blank.
emjayef
Newbie
Newbie
Posts: 8
Joined: October 7th, 2013, 11:24 pm

Re: Can't start sabnzbdplus - error

Post by emjayef »

I get this error running from a bash commandline on Ubuntu 12.04 with GUI running. However, the service does run, and seems normal. I see no mention of any problems in the log file.

I see about 20 different processes running with the exact same command - is this normal? Also, the process number specified in the "error" is slightly lower than the numbers that are running (ie, that process id does not exist).

I don't see anything in the Python code that relates to this error, so it must be something in the Python runtime environment. Maybe I could try running the code line by line? I've never actually used Python, although I've used several other languages.
User avatar
jcfp
Release Testers
Release Testers
Posts: 1022
Joined: February 7th, 2008, 12:45 pm

Re: Can't start sabnzbdplus - error

Post by jcfp »

20 processes are all threads, that's normal. Ugly "X11 initialization failed" but sab working could be the osd notifications, try disabling those as described by shypike earlier in this thread.
emjayef
Newbie
Newbie
Posts: 8
Joined: October 7th, 2013, 11:24 pm

Re: Can't start sabnzbdplus - error

Post by emjayef »

jcfp wrote:20 processes are all threads, that's normal. Ugly "X11 initialization failed" but sab working could be the osd notifications, try disabling those as described by shypike earlier in this thread.
Sorry, I should have mentioned, I read the whole thread, and tried that mod, but it did not have any effect.

Could it be something simple, like trying to initialize X11 when it is already running?
Post Reply