Page 1 of 1
Can't start sabnzbdplus - error
Posted: May 24th, 2013, 6:52 pm
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?
Re: Can't start sabnzbdplus - error
Posted: May 25th, 2013, 1:39 am
by shypike
Add the -b0 parameter when starting SABnzbd .
Re: Can't start sabnzbdplus - error
Posted: May 25th, 2013, 9:29 am
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.
Re: Can't start sabnzbdplus - error
Posted: May 25th, 2013, 10:06 am
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
Re: Can't start sabnzbdplus - error
Posted: May 25th, 2013, 10:49 am
by jcfp
Shy, what is the mechanism that causes this nuisance to block sab from starting? Unrelated error like in the other thread?
Re: Can't start sabnzbdplus - error
Posted: May 25th, 2013, 11:13 am
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
Re: Can't start sabnzbdplus - error
Posted: May 26th, 2013, 1:31 am
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)
Re: Can't start sabnzbdplus - error
Posted: May 26th, 2013, 1:35 am
by sander
shypike wrote:
BTW : any idea why these odd line numbers are shown?
Like: (sabnzbdplus : 8888)
PIDs? So not line numbers?
Re: Can't start sabnzbdplus - error
Posted: May 26th, 2013, 4:35 am
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.
Re: Can't start sabnzbdplus - error
Posted: May 26th, 2013, 5:05 am
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
Re: Can't start sabnzbdplus - error
Posted: May 26th, 2013, 7:17 am
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.
Re: Can't start sabnzbdplus - error
Posted: May 26th, 2013, 9:09 am
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.
Re: Can't start sabnzbdplus - error
Posted: October 9th, 2013, 11:02 pm
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.
Re: Can't start sabnzbdplus - error
Posted: October 10th, 2013, 5:08 am
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.
Re: Can't start sabnzbdplus - error
Posted: October 10th, 2013, 11:06 am
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?