Page 1 of 1

clean up and reinstall sab on ubuntu server

Posted: March 19th, 2014, 9:57 pm
by dkerlee
I can't start nzbdplus as a service. I think it's because I deleted /etc/init.d/sabnzbdplus. I did a reinstall, but it doesn't recreate those files. Is there a place I can get new ones? Or make the install create them again?

When I run sabnzbd as 'drew', I get an X11 error. When I run it as root, it seems to start. I get this:
root@mimi:~# sabnzbdplus

** (sabnzbdplus:9515): WARNING **: Command line `dbus-launch --autolaunch=d961595b23cfa7bda0d3de4e00000369 --binary-syntax --close-stderr' exited with non-zero exit status 1: Autolaunch error: X11 initialization failed.\n
2014-03-19 20:07:01,935::INFO::[sabnzbdplus:1250] --------------------------------
2014-03-19 20:07:01,935::INFO::[sabnzbdplus:1251] sabnzbdplus-0.7.17RC2 (rev=ae0268eb3caccef887e7b57f0d73e656b3b8c1ed)
2014-03-19 20:07:01,935::INFO::[sabnzbdplus:1263] Platform = posix
2014-03-19 20:07:01,936::INFO::[sabnzbdplus:1264] Python-version = 2.7.3 (default, Feb 27 2014, 19:58:35)
[GCC 4.6.3]
2014-03-19 20:07:01,936::INFO::[sabnzbdplus:1265] Arguments = /usr/bin/sabnzbdplus
2014-03-19 20:07:01,936::INFO::[sabnzbdplus:1278] Read INI file /home/drew/.sabnzbd/sabnzbd.ini
2014-03-19 20:07:01,938::INFO::[__init__:941] Loading data for bookmarks.sab from /home/drew/.sabnzbd/admin/bookmarks.sab
2014-03-19 20:07:01,939::INFO::[__init__:941] Loading data for rss_data.sab from /home/drew/.sabnzbd/admin/rss_data.sab
2014-03-19 20:07:01,939::INFO::[__init__:941] Loading data for totals9.sab from /home/drew/.sabnzbd/admin/totals9.sab
2014-03-19 20:07:01,940::INFO::[postproc:91] Loading postproc queue
2014-03-19 20:07:01,940::INFO::[__init__:941] Loading data for postproc1.sab from /home/drew/.sabnzbd/admin/postproc1.sab
2014-03-19 20:07:01,941::INFO::[__init__:941] Loading data for queue9.sab from /home/drew/.sabnzbd/admin/queue9.sab
2014-03-19 20:07:01,941::INFO::[__init__:941] Loading data for watched_data.sab from /home/drew/.sabnzbd/admin/watched_data.sab
2014-03-19 20:07:01,941::INFO::[__init__:941] Loading data for Rating.sab from /home/drew/.sabnzbd/admin/Rating.sab
2014-03-19 20:07:01,941::INFO::[__init__:944] /home/drew/.sabnzbd/admin/Rating.sab missing, trying old cache
2014-03-19 20:07:01,941::INFO::[__init__:947] /home/drew/.sabnzbd/cache/Rating.sab missing
2014-03-19 20:07:01,942::INFO::[scheduler:172] Setting schedule for midnight BPS reset
2014-03-19 20:07:01,942::INFO::[downloader:211] Resuming
2014-03-19 20:07:01,945::INFO::[__init__:333] All processes started
2014-03-19 20:07:01,945::INFO::[sabnzbdplus:336] Web dir is /usr/share/sabnzbdplus/interfaces/Plush
2014-03-19 20:07:01,945::INFO::[sabnzbdplus:336] Web dir is /usr/share/sabnzbdplus/interfaces/Config
2014-03-19 20:07:01,948::INFO::[sabnzbdplus:452] _yenc module... found!
2014-03-19 20:07:01,948::INFO::[sabnzbdplus:460] par2 binary... found (/usr/bin/par2)
2014-03-19 20:07:01,948::INFO::[sabnzbdplus:468] unrar binary... found (/usr/bin/unrar)
2014-03-19 20:07:01,948::INFO::[sabnzbdplus:473] unzip binary... found (/usr/bin/unzip)
2014-03-19 20:07:01,949::INFO::[sabnzbdplus:479] nice binary... found (/usr/bin/nice)
2014-03-19 20:07:01,949::INFO::[sabnzbdplus:483] ionice binary... found (/usr/bin/ionice)
2014-03-19 20:07:01,949::INFO::[sabnzbdplus:488] pyOpenSSL... found (True)
2014-03-19 20:07:01,949::INFO::[sabnzbdplus:1477] Starting web-interface on 127.0.0.1:8080
2014-03-19 20:07:01,950::INFO::[_cplogging:55] [19/Mar/2014:20:07:01] ENGINE Bus STARTING
2014-03-19 20:07:01,951::INFO::[_cplogging:55] [19/Mar/2014:20:07:01] ENGINE Started monitor thread '_TimeoutMonitor'.
2014-03-19 20:07:02,053::INFO::[_cplogging:55] [19/Mar/2014:20:07:02] ENGINE Serving on 127.0.0.1:8080
2014-03-19 20:07:02,054::INFO::[_cplogging:55] [19/Mar/2014:20:07:02] ENGINE Bus STARTED
2014-03-19 20:07:02,054::INFO::[panic:247] Lauching browser with http://localhost:8080/sabnzbd
2014-03-19 20:07:02,555::INFO::[sabnzbdplus:1546] Starting sabnzbdplus-0.7.17RC2
2014-03-19 20:07:02,557::INFO::[dirscanner:279] Dirscanner starting up
2014-03-19 20:07:02,559::INFO::[urlgrabber:77] URLGrabber starting up
But can't access
http://192.168.11.52:8080/sabnzbd
(the IP of the server 'mimi')

ps -ef | grep sabnzbd
reveals:
root 9515 8900 0 20:07 pts/1 00:00:00 /usr/bin/python -OO /usr/bin/sabnzbdplus

Code: Select all

drew@mimi:~$ sudo service sabnzbdplus start
sabnzbdplus: unrecognized service
any thoughts on how I can get this running? thanks!








==============old post below==============

I've completely boned up this installation!

I was following some other instructions that did something else... I tried to undo that installation, now I'm stuck with nothing - of course.

I'm on Ubuntu server Precise 12.04.4 LTS. I do have an X11 GUI installed (windows remote desktop), but am setting up this server via ssh from my windows. I think I tried to install sabnzbdplus via the Ubuntu Software Manager earlier. Anyhow, here's where I'm at now.

following these instructions: http://wiki.sabnzbd.org/install-ubuntu-repo

Code: Select all

sudo -s, then my password
add-apt-repository ppa:jcfp/ppa
apt-get update
apt-get install sabnzbdplus
when I run sabnzbdplus from command line as user 'drew' I get:
drew@mimi:/media$ sabnzbdplus

** (sabnzbdplus:7659): WARNING **: Command line `dbus-launch --autolaunch=d961595b23cfa7bda0d3de4e00000369 --binary-syntax --close-stderr' exited with non-zero exit status 1: Autolaunch error: X11 initialization failed.\n
when I run it as user 'root'
drew@mimi:/media$ sudo sabnzbdplus
[sudo] password for drew:

** (sabnzbdplus:7684): WARNING **: Command line `dbus-launch --autolaunch=d961595b23cfa7bda0d3de4e00000369 --binary-syntax --close-stderr' exited with non-zero exit status 1: Autolaunch error: X11 initialization failed.\n
I tried running "xhost +" before hand like you'd suggested here, but I get " xhost: unable to open display "" "

I did edit the /etc/default/sabnzbdplus file with:
USER=drew
CONFIG=/home/drew/.sabnzb
HOST=0.0.0.0

I tried to uninstall the package with an

Code: Select all

apt-get remove sabnzbdplus
Then in an effort to be more helpful, removed /etc/init.d/sabnzbdplus

Code: Select all

drew@mimi:/media$ which nzbdplus
drew@mimi:/media$ sudo -s
root@mimi:/media# which nzbdplus
root@mimi:/media#
That can't be good.

Code: Select all

drew@mimi:~$ locate sabnzbdplus | grep etc
/etc/default/sabnzbdplus
/etc/init.d/sabnzbdplus
/etc/rc0.d/K02sabnzbdplus
/etc/rc1.d/K02sabnzbdplus
/etc/rc2.d/S98sabnzbdplus
/etc/rc3.d/S98sabnzbdplus
/etc/rc4.d/S98sabnzbdplus
/etc/rc5.d/S98sabnzbdplus
/etc/rc6.d/K02sabnzbdplus
But all the "etc"'s are red :(

When I run sabnzbd+ by clicking on the icon from the launcher in the Remote Desktop, I get this:
Image

That's about all I can think of right now. Thank you!

Re: clean up and reinstall sab on ubuntu server

Posted: March 20th, 2014, 9:02 pm
by dkerlee
making a little progress.

Code: Select all

apt-get purge sabnzbdplus
apt-get install sabnzbdplus
from here

successfully recreates the start script, /etc/init.d/sabnzbdplus