install issues on ubuntu server 12

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.
jonneymendoza
Newbie
Newbie
Posts: 36
Joined: April 27th, 2010, 5:12 am

install issues on ubuntu server 12

Post by jonneymendoza »

Hi. i am having issues installing sab because of the following error below:

Code: Select all

 Error:
Can't write to logfile
                                                                                                                                                                                                        [fail]
invoke-rc.d: initscript sabnzbdplus, action "start" failed.
dpkg: error processing sabnzbdplus (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of sabnzbdplus-theme-classic:
 sabnzbdplus-theme-classic depends on sabnzbdplus (= 0.6.15-1); however:
  Package sabnzbdplus is not configured yet.
dpkg: error processing sabnzbdplus-theme-classic (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of sabnzbdplus-theme-smpl:
 sabnzbdplus-theme-smpl depends on sabnzbdplus (= 0.6.15-1); however:
  Package sabnzbdplus is not configured yet.
dpkg: error processing sabnzbdplus-theme-smpl (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates it's a follow-up error from a previous failure.
                                                                                                            No apport report written because the error message indicates it's a follow-up error from a previous failure.
         Errors were encountered while processing:
 sabnzbdplus
 sabnzbdplus-theme-classic
 sabnzbdplus-theme-smpl
E: Sub-process /usr/bin/dpkg returned an error code (1)
any suggestions? thanks
User avatar
sander
Release Testers
Release Testers
Posts: 9062
Joined: January 22nd, 2008, 2:22 pm

Re: install issues on ubuntu server 12

Post by sander »

Can you install another Ubuntu package? For example "nzbget". If not, it's a system problem and thus not SABnzbd related.
jonneymendoza
Newbie
Newbie
Posts: 36
Joined: April 27th, 2010, 5:12 am

Re: install issues on ubuntu server 12

Post by jonneymendoza »

i tried sudo apt-get install nzbget and it diddnt work.

You say it is a system issue? in what way? where do i start to try and fix this system issue?

anyways here is the error below:

Code: Select all

jonathan@linxuServer:~$ sudo apt-get install nzbget
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  libpar2-0
The following NEW packages will be installed
  libpar2-0 nzbget
0 upgraded, 2 newly installed, 0 to remove and 42 not upgraded.
3 not fully installed or removed.
Need to get 286 kB of archives.
After this operation, 737 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://gb.archive.ubuntu.com/ubuntu/ precise/universe libpar2-0 amd64 0.2.                                                                                                                               1-1 [103 kB]
Get:2 http://gb.archive.ubuntu.com/ubuntu/ precise/universe nzbget amd64 0.7.0-2                                                                                                                                [183 kB]
Fetched 286 kB in 0s (851 kB/s)
Selecting previously unselected package libpar2-0.
(Reading database ... 67109 files and directories currently installed.)
Unpacking libpar2-0 (from .../libpar2-0_0.2.1-1_amd64.deb) ...
Selecting previously unselected package nzbget.
Unpacking nzbget (from .../nzbget_0.7.0-2_amd64.deb) ...
Processing triggers for man-db ...
Setting up sabnzbdplus (0.6.15-1) ...
 * Starting SABnzbd+ binary newsgrabber                                                                                                                                                                        Error:
Can't write to logfile
                                                                         [fail]
invoke-rc.d: initscript sabnzbdplus, action "start" failed.
dpkg: error processing sabnzbdplus (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of sabnzbdplus-theme-classic:
 sabnzbdplus-theme-classic depends on sabnzbdplus (= 0.6.15-1); however:
  Package sabnzbdplus is not configured yet.
dpkg: error processing sabnzbdplus-theme-classic (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of sabnzbdplus-theme-smpl:
 sabnzbdplus-theme-smpl depends on sabnzbdplus (= 0.6.15-1); however:
  Package sabnzbdplus is not configured yet.
dpkg: error processing sabnzbdplus-theme-smpl (--configure):
 dependency problems - leaving unconfigured
Setting up libpar2-0 (0.2.1-1) ...
No apport report written because the error message indicates it's a follow-up er                                                                                                                               ror from a previous failure.
                            No apport report written because the error message i                                                                                                                               ndicates it's a follow-up error from a previous failure.
                                                        Setting up nzbget (0.7.0                                                                                                                               -2) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Errors were encountered while processing:
 sabnzbdplus
 sabnzbdplus-theme-classic
 sabnzbdplus-theme-smpl
E: Sub-process /usr/bin/dpkg returned an error code (1)
Seems as though it cant write to logfile? what logfile?
User avatar
sander
Release Testers
Release Testers
Posts: 9062
Joined: January 22nd, 2008, 2:22 pm

Re: install issues on ubuntu server 12

Post by sander »

... I'm not sure: the apt-get also tries to install sabnzbd, and then gives an error.

Back to the basics:

sudo apt-get remove sabnzbdplus
sudo apt-get purge sabnzbdplus

sudo apt-get update
sudo apt-get upgrade


... is that error free?
jonneymendoza
Newbie
Newbie
Posts: 36
Joined: April 27th, 2010, 5:12 am

Re: install issues on ubuntu server 12

Post by jonneymendoza »

sander wrote:... I'm not sure: the apt-get also tries to install sabnzbd, and then gives an error.

Back to the basics:

sudo apt-get remove sabnzbdplus
sudo apt-get purge sabnzbdplus

sudo apt-get update
sudo apt-get upgrade


... is that error free?
Yea

all error free. whats next?
User avatar
sander
Release Testers
Release Testers
Posts: 9062
Joined: January 22nd, 2008, 2:22 pm

Re: install issues on ubuntu server 12

Post by sander »

First:

ls -al ~/.sabnzbd

Post the output here.

Then:

sudo apt-get install sabnzbdplus

Post the output here.
User avatar
jcfp
Release Testers
Release Testers
Posts: 1004
Joined: February 7th, 2008, 12:45 pm

Re: install issues on ubuntu server 12

Post by jcfp »

jonneymendoza wrote:

Code: Select all

Error: Can't write to logfile    [fail]
invoke-rc.d: initscript sabnzbdplus, action "start" failed.
The above is apt trying to restart the service after an update, and failing to do so because sabnzbd reports it cannot write to its log file. Fix that problem (permissions? disk full?) and everything else will work.
jonneymendoza
Newbie
Newbie
Posts: 36
Joined: April 27th, 2010, 5:12 am

Re: install issues on ubuntu server 12

Post by jonneymendoza »

jcfp wrote:
jonneymendoza wrote:

Code: Select all

Error: Can't write to logfile    [fail]
invoke-rc.d: initscript sabnzbdplus, action "start" failed.
The above is apt trying to restart the service after an update, and failing to do so because sabnzbd reports it cannot write to its log file. Fix that problem (permissions? disk full?) and everything else will work.
Yea this is the error I first got when I tried to run it first time so what I tried was to reinstall it and thats when I made this thread. Where is this log file? I have tried logging in as root while installing sab and still got that error
User avatar
sander
Release Testers
Release Testers
Posts: 9062
Joined: January 22nd, 2008, 2:22 pm

Re: install issues on ubuntu server 12

Post by sander »

See my post with "ls ..." ...
jonneymendoza
Newbie
Newbie
Posts: 36
Joined: April 27th, 2010, 5:12 am

Re: install issues on ubuntu server 12

Post by jonneymendoza »

sander wrote:See my post with "ls ..." ...

ls says this:

Code: Select all

drwxr-xr-x 4 root root 4096 Jun 10 18:34 .
drwx------ 7 root root 4096 Jun 10 18:04 ..
drwxr-xr-x 2 root root 4096 Jun 10 18:34 admin
drwxr-xr-x 2 root root 4096 Jun 10 17:44 logs
-rw-r--r-- 1 root root 2647 Jun 10 18:34 sabnzbd.ini
-rw-r--r-- 1 root root 2647 Jun 10 18:25 sabnzbd.ini.bak
and the other command says this:

Code: Select all

root@linxuServer:~# sudo apt-get install sabnzbdplus
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  sabnzbdplus-theme-classic sabnzbdplus-theme-plush sabnzbdplus-theme-smpl
Suggested packages:
  sabnzbdplus-theme-mobile python-notify
The following NEW packages will be installed
  sabnzbdplus sabnzbdplus-theme-classic sabnzbdplus-theme-smpl
The following packages will be upgraded:
  sabnzbdplus-theme-plush
1 upgraded, 3 newly installed, 0 to remove and 42 not upgraded.
Need to get 1,442 kB of archives.
After this operation, 3,806 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://ppa.launchpad.net/jcfp/ppa/ubuntu/ precise/main sabnzbdplus-theme-p                                                                                                                               lush all 0.7.0~rc2-0ubuntu1~jcfp1~precise [221 kB]
Get:2 http://ppa.launchpad.net/jcfp/ppa/ubuntu/ precise/main sabnzbdplus all 0.7                                                                                                                               .0~rc2-0ubuntu1~jcfp1~precise [1,115 kB]
Get:3 http://ppa.launchpad.net/jcfp/ppa/ubuntu/ precise/main sabnzbdplus-theme-classic all 0.7.0~rc2-0ubuntu1~jcfp1~precise [29.5 kB]
Get:4 http://ppa.launchpad.net/jcfp/ppa/ubuntu/ precise/main sabnzbdplus-theme-smpl all 0.7.0~rc2-0ubuntu1~jcfp1~precise [76.1 kB]
Fetched 1,442 kB in 3s (392 kB/s)
(Reading database ... 66849 files and directories currently installed.)
Preparing to replace sabnzbdplus-theme-plush 0.6.15-1 (using .../sabnzbdplus-theme-plush_0.7.0~rc2-0ubuntu1~jcfp1~precise_all.deb) ...
Unpacking replacement sabnzbdplus-theme-plush ...
Selecting previously unselected package sabnzbdplus.
Unpacking sabnzbdplus (from .../sabnzbdplus_0.7.0~rc2-0ubuntu1~jcfp1~precise_all.deb) ...
Selecting previously unselected package sabnzbdplus-theme-classic.
Unpacking sabnzbdplus-theme-classic (from .../sabnzbdplus-theme-classic_0.7.0~rc2-0ubuntu1~jcfp1~precise_all.deb) ...
Selecting previously unselected package sabnzbdplus-theme-smpl.
Unpacking sabnzbdplus-theme-smpl (from .../sabnzbdplus-theme-smpl_0.7.0~rc2-0ubuntu1~jcfp1~precise_all.deb) ...
Processing triggers for ureadahead ...
Processing triggers for man-db ...
Setting up sabnzbdplus-theme-plush (0.7.0~rc2-0ubuntu1~jcfp1~precise) ...
Setting up sabnzbdplus (0.7.0~rc2-0ubuntu1~jcfp1~precise) ...
 * SABnzbd+ binary newsgrabber: not configured, aborting. See /etc/default/sabnzbdplus
Setting up sabnzbdplus-theme-classic (0.7.0~rc2-0ubuntu1~jcfp1~precise) ...
Setting up sabnzbdplus-theme-smpl (0.7.0~rc2-0ubuntu1~jcfp1~precise) ...
User avatar
sander
Release Testers
Release Testers
Posts: 9062
Joined: January 22nd, 2008, 2:22 pm

Re: install issues on ubuntu server 12

Post by sander »

Are you running all as root? Please post the full info, including the command prompt: $ or # is a big difference

And why the PPA?


Anyway: did the install go OK? Can you type "sabnzbdplus"?
jonneymendoza
Newbie
Newbie
Posts: 36
Joined: April 27th, 2010, 5:12 am

Re: install issues on ubuntu server 12

Post by jonneymendoza »

yes i am running as root. i cant post full info now as i have cleared session :(

it seems to have installed ok now, let me check:

edit:

permission denied when i try this:

/etc/default/sabnzbdplus

Code: Select all

root@linxuServer:~# /etc/default/sabnzbdplus
-bash: /etc/default/sabnzbdplus: Permission denied
root@linxuServer:~#

my default sabnzbd file looks like this

Code: Select all

# This file is sourced by /etc/init.d/sabnzbdplus
#
# When SABnzbd+ is started using the init script, the
# --daemon option is always used, and the program is
# started under the account of $USER, as set below.
#
# Each setting is marked either "required" or "optional";
# leaving any required setting unconfigured will cause
# the service to not start.

# [required] user or uid of account to run the program as:
USER=root

# [optional] full path to the configuration file of your choice;
#            otherwise, the default location (in $USER's home
#            directory) is used:
CONFIG=

# [optional] hostname/ip and port number to listen on:
HOST=0.0.0.0
PORT=

# [optional] extra command line options, if any:
EXTRAOPTS=
it says here i need to edit it http://wiki.sabnzbd.org/install-ubuntu-repo
User avatar
sander
Release Testers
Release Testers
Posts: 9062
Joined: January 22nd, 2008, 2:22 pm

Re: install issues on ubuntu server 12

Post by sander »

Just type and run 'sabnzbdplus'

Why do you run as root? That goes against the rules of Ubuntu, and Linux in general.
jonneymendoza
Newbie
Newbie
Posts: 36
Joined: April 27th, 2010, 5:12 am

Re: install issues on ubuntu server 12

Post by jonneymendoza »

sander wrote:Just type and run 'sabnzbdplus'

Why do you run as root? That goes against the rules of Ubuntu, and Linux in general.
reason why is because at first i could not even edit that file on my default username for some reason!


anyways sabnzbdplus works it looks me into sab! But if i exit via putty, sab stops running again!

how do i let it run in the background forever>?
User avatar
sander
Release Testers
Release Testers
Posts: 9062
Joined: January 22nd, 2008, 2:22 pm

Re: install issues on ubuntu server 12

Post by sander »

run it as a service. See the SABnzbd document how to do that.

BTW: do you know "sudo"?

Rule of thumb: never log in as root.
Post Reply