Page 1 of 1

subprocess installed post-installation script returned error

Posted: September 2nd, 2016, 11:18 am
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?

Re: subprocess installed post-installation script returned e

Posted: September 2nd, 2016, 2:44 pm
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.

Re: subprocess installed post-installation script returned e

Posted: September 2nd, 2016, 2:55 pm
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.