subprocess installed post-installation script returned 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
User avatar
sander
Release Testers
Release Testers
Posts: 8811
Joined: January 22nd, 2008, 2:22 pm

subprocess installed post-installation script returned error

Post by sander »

Hi,

Maybe not a bug/problem, but a feature ... so just posting to check:

Code: Select all

$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] 
Setting up sabnzbdplus (1.1.0~rc4-0ubuntu1~jcfp1~trusty) ...
 * Starting SABnzbd+ binary newsgrabber                                                                                                 [fail] 
invoke-rc.d: initscript sabnzbdplus, action "start" failed.
dpkg: error processing package sabnzbdplus (--configure):
 subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
 sabnzbdplus
E: Sub-process /usr/bin/dpkg returned an error code (1)
SAB was running from the CLI (not as a daemon).

Code: Select all

$ ps -ef | grep -i sabnzbd
sander   17448 24367  0 18:14 pts/30   00:00:00 grep --color=auto -i sabnzbd
sander   26546 11429  0 aug30 pts/20   00:04:12 /usr/bin/python -OO ./SABnzbd.py
After stopping that, everything is OK:

Code: Select all

$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] 
Setting up sabnzbdplus (1.1.0~rc4-0ubuntu1~jcfp1~trusty) ...
 * Starting SABnzbd+ binary newsgrabber                                                                                           [ OK ] 


So ... is this as excpected?
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: subprocess installed post-installation script returned e

Post by shypike »

A package like SABnzbd is automatically started and stopped by the OS as a service.
It cannot know that you're running it from the CLI.
User avatar
sander
Release Testers
Release Testers
Posts: 8811
Joined: January 22nd, 2008, 2:22 pm

Re: subprocess installed post-installation script returned e

Post by sander »

Ah, so it's only the part that starts the service that is failing:

Code: Select all

$ sudo service sabnzbdplus start
 * Starting SABnzbd+ binary newsgrabber                                 [fail] 
So the install/upgrade itself probably goes OK.

OK. Clear.
Post Reply