Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SabNZBD cannot be started after upgrade #282

Closed
lleblanc51 opened this issue Nov 4, 2012 · 89 comments
Closed

SabNZBD cannot be started after upgrade #282

lleblanc51 opened this issue Nov 4, 2012 · 89 comments
Assignees
Labels

Comments

@lleblanc51
Copy link

Hi!

I just upgrade Python Package from Synocommunity and SabNZBD to latest version 0.7.5-2 and Sab don't want to start.

I try to uninstall Python Package and SabNZBD and reinstall with no change...

Python package Version 2.7.3-3
SabNZBD 0.7.5-2

I try this and got a n error message
WHS> /var/packages/sabnzbd/scripts/start-stop-status start
Starting SABnzbd ...
-sh: /usr/local/sabnzbd/env/bin/python: not found
WHS>

What's wrong ?

Thanks for your help.

@lleblanc51
Copy link
Author

Forgot to say the NAS model ans DSM Version...

DS212j and DSM 4.1-2647

@Diaoul
Copy link
Member

Diaoul commented Nov 4, 2012

Did you stop SABnzbd before updating ?

@lleblanc51
Copy link
Author

Unfortunately no, I use the button automatically update all in Synology packet window :(

Now It's a new install as I desinstall all package (Sab and Python) and reinstall them, no ?

@Diaoul
Copy link
Member

Diaoul commented Nov 4, 2012

Maybe you got a SABnzbd running in the background then. I'll add more security in the update process so that the update stops the package before running the update.

@lleblanc51
Copy link
Author

But what can I do to make SabNZBD work ?

@Diaoul
Copy link
Member

Diaoul commented Nov 4, 2012

Run in SSH: ps | grep SABnzbd.py and output here the result

@Diaoul
Copy link
Member

Diaoul commented Nov 4, 2012

Reboot your NAS will stop any background process

@lleblanc51
Copy link
Author

I just try this :

  • Uninstall SabNZBD
  • Uninstall Python

Restart the Nas

Install Python

Restart the Nas

Install SabNZBD
Still the same error

WHS> ps | grep SABnzbd.py
25239 root 2980 S grep SABnzbd.py

@lleblanc51
Copy link
Author

It's strange, seems Python is not installed correctly, how can I check if the installation is OK ?

I'm sorry but I'm not familiar with SSH and the synology OS...

@vinzcoyote
Copy link

I do the same thing, and got the same problem on DS-210+ with last DSM

14750 root 2964 S grep SABnzbd.py

@Diaoul
Copy link
Member

Diaoul commented Nov 4, 2012

In the log tab of the Python SPK in Package Center

@SkiBum1942
Copy link

The init script references python as: PYTHON="${INSTALL_DIR}/env/bin/python"

but there is no env dir in the sabnzbd dir:
ls -l /usr/local/sabnzbd
lrwxrwxrwx 1 root root 26 Nov 4 21:59 /usr/local/sabnzbd -> /volume1/@appstore/sabnzbd
ls -l /volume1/@appstore/sabnzbd/
drwxr-xr-x 3 sabnzbd root 4096 Nov 4 21:59 app
drwxr-xr-x 2 sabnzbd root 4096 Nov 4 21:59 bin
drwxr-xr-x 3 sabnzbd root 4096 Nov 4 21:59 share
drwxr-sr-x 5 sabnzbd root 4096 Nov 4 21:59 var

sh -x /var/packages/sabnzbd/scripts/start-stop-status start

  • PACKAGE=sabnzbd
  • DNAME=SABnzbd
  • INSTALL_DIR=/usr/local/sabnzbd
  • PYTHON_DIR=/usr/local/python
  • PATH=/usr/local/sabnzbd/bin:/usr/local/sabnzbd/env/bin:/usr/local/python/bin:/usr/local/bin:/bin:/usr/bin:/usr/syno/bin
  • RUNAS=sabnzbd
  • PYTHON=/usr/local/sabnzbd/env/bin/python
  • SABNZBD=/usr/local/sabnzbd/share/SABnzbd/SABnzbd.py
  • CFG_FILE=/usr/local/sabnzbd/var/config.ini
  • LOG_FILE=/usr/local/sabnzbd/var/logs/sabnzbd.log
  • PID_FILES=/usr/local/sabnzbd/var/sabnzbd-*.pid
  • daemon_status
  • [ -f /usr/local/sabnzbd/var/sabnzbd-*.pid ]
  • return 1
  • echo Starting SABnzbd ...
    Starting SABnzbd ...
  • start_daemon
  • su - sabnzbd -c PATH=/usr/local/sabnzbd/bin:/usr/local/sabnzbd/env/bin:/usr/local/python/bin:/usr/local/bin:/bin:/usr/bin:/usr/syno/bin /usr/local/sabnzbd/env/bin/python /usr/local/sabnzbd/share/SABnzbd/SABnzbd.py -f /usr/local/sabnzbd/var/config.ini --pid /usr/local/sabnzbd/var/ -d
    -sh: /usr/local/sabnzbd/env/bin/python: not found
  • exit 127

When I look at the sickbeard package, there IS a env dir which seems to contain a full python environment.

@lleblanc51
Copy link
Author

In this tab I've got :
Python 2.7.3
System Installed modules :

Nothing more...

@Diaoul
Copy link
Member

Diaoul commented Nov 4, 2012

What Synology model?
Le 4 nov. 2012 23:39, "Laurent Leblanc" notifications@github.com a écrit :

In this tab I've got :
Python 2.7.3
System Installed modules :

Nothing more...


Reply to this email directly or view it on GitHubhttps://github.com//issues/282#issuecomment-10056570.

@lleblanc51
Copy link
Author

DS212j

@Diaoul
Copy link
Member

Diaoul commented Nov 4, 2012

I think the installation is taking too long and DSM kills the install
script while installing.

No fail message when installing Python ?

@codeyy
Copy link

codeyy commented Nov 4, 2012

Same problem with DS412+, also missing the env folder (/usr/local/sabnzbd/env/bin/python)

@lleblanc51
Copy link
Author

I just try again...

I click Intall package, starting downloading, I say no to would you like to run package
I click install a second time, installation take about 2 minutes

I got this message : Package correctly installed, run the package to activate the packet reparation

The message is in french, maybe a bad english translation...

@pseudomix
Copy link

Hello,
I have the same behaviour with my DS1812+ and with all Python dependant packages (Sickbeard, Couchpatato, headphones).

@lleblanc51
Copy link
Author

Is the Python 2.7.3-3 really compatible with my Nas ? Maybe I can try to re install the old version ? But I don't know where I can found it...

@A1rwav3
Copy link

A1rwav3 commented Nov 4, 2012

HI guys, I do have the same problem with my DS1812+

I just ran all the updates available and Python and Sabnzbd were part of them... Now I cannot restart the Sab package, I got the same message about an error during the reconstruction...

That's what I have in the start-stop-status file:

'# Others
INSTALL_DIR="/usr/local/${PACKAGE}"
PYTHON_DIR="/usr/local/python"
PATH="${INSTALL_DIR}/bin:${INSTALL_DIR}/env/bin:${PYTHON_DIR}/bin:/usr/local/bin:/bin:/usr/bin:/usr/syno/bin"
RUNAS="sabnzbd"
PYTHON="${INSTALL_DIR}/env/bin/python"
SABNZBD="${INSTALL_DIR}/share/SABnzbd/SABnzbd.py"
CFG_FILE="${INSTALL_DIR}/var/config.ini"
LOG_FILE="${INSTALL_DIR}/var/logs/sabnzbd.log"
PID_FILES="${INSTALL_DIR}/var/sabnzbd-*.pid"

Also Sab seems to be the only one which has a problem, I can stop and start Sickbeard...

@StefanVerbiest
Copy link

Hello,

I have got the same problem on my ds1515. I have reinstalled the dsm and al of the on phyton depending packages won't run anymore (sabnzb, sickbeard, couchpotato, etc)

@CB4STI3N
Copy link

CB4STI3N commented Nov 5, 2012

Hello,

I have got the same problem on my DS1512+ with latest firmware.
I have reinstalled python ans sabnzbd, but sab got this message :

"Echec lors du lancement de la réparation du paquet".

No fail message when installing Python.

Sickbeard, couchpatato server and Headphones work normally.
So, I restart the NAS, but sabnzbd does the same error.

Thank you for your help

@upmg
Copy link

upmg commented Nov 5, 2012

Hi using a DS212J - DSM 4.1-2657

This is the first time I have tried running Python or SABnzbd on my NAS. Installed Python first and then Sab yet when I try start SAB it fails stating "Failed to run package service"

Any ideas what we can do please?

@SkiBum1942
Copy link

If you have an existing sickbeard or couchpotato install, you can grab the "env" from there to fix your sabnzbd install. This fixed it for me:

rsync -av /volume1/@appstore/sickbeard/env /volume1/@appstore/sabnzbd/
chown -R sabnzbd /volume1/@appstore/sabnzbd/env

Afterwards I could start the sabnzbd service.

@LachlanS
Copy link

LachlanS commented Nov 5, 2012

Confirming the same issue for me. I stopped all packages that used Python before upgrading Python, then upgrading SABnzbd. The "env" folder is likewise not present. Now I'm a spk_newb, but is SABnzbd really supposed to have its own copy of Python?

@subascha
Copy link

subascha commented Nov 5, 2012

Hey there, have the same issue. No env directory is present. Is there a chance that someone zips the env directory for download? Have nothing to copy.

@Diaoul
Copy link
Member

Diaoul commented Nov 5, 2012

Yes

@secavia
Copy link

secavia commented Nov 5, 2012

on DS1511+
Python 2.7.3-2 installed from package center, Sabnzbd 0.7.5-2 from package center.
error : "Echec lors du lancement de la réparation du paquet" :(
no log in Python, no log in Sabnzbd

in var log message :
Nov 5 22:03:17 PkgMan.cgi: pkgtool.cpp:2597 Failed to start package sabnzbd

:(

@mormerod
Copy link

mormerod commented Nov 5, 2012

Fixed. Awesome, Thanks

@CB4STI3N
Copy link

CB4STI3N commented Nov 5, 2012

Fixed for me :

Uninstall all programs using python (after making a backup configurations)
Uninstalling python 2.7.3-3
Installing python 2.7.3-2 from the package center
Install sabnzbd 0.7.5-2
Install other program using python
and finally copy the configuration files for each program.

Everything is ok
Thanks Diaoul and others.

@secavia
Copy link

secavia commented Nov 5, 2012

on DS1511+ not fixed for me

Uninstall Python, reboot
Inslall python 2.7.3.-2 for package center
Install sanzbd 0.7.5-2 for package center

Error : Echec lors de la réparation du paquet

Help me please

@ytsejam1138
Copy link

I'm still have a problem running SABnzbd, I have a DS212.

Uninstall Python, reboot
Inslall python 2.7.3.-2 for package center
Install sanzbd 0.7.5-2 for package center

It still fails to run. Everything else works fine, it's just SABnzbd I have the same download directory I have always had /volume1/video/

I have also noticed that when installing a package I now have to hit install twice. Once to download the SPK and once to actually install the SPK.

@metryann
Copy link

metryann commented Nov 5, 2012

Hello,

@secavia and @ytsejam1138 : I had exactly the same problem. I resolved it by deleting manually some remaining SABnzbd folders.

  1. Uninstall SABnzbd
  2. Search SABnzbd remaining folders : find / -name sabnzbd
  3. Delete folders found
  4. Try reinstalling SABnzbd

That fixed the problem for me, I could install and run SABnzbd.

However, I also have to click "Install" twice. If anyone knows why, thank you for help.

Thanks

@Diaoul
Copy link
Member

Diaoul commented Nov 5, 2012

Yes, that's a bug in the Package Center. First click actually download the package, second click installs.

@ytsejam1138
Copy link

@mertyann

Thank you so much!! That worked. I needed to delete the folllowing directories:

/usr/local/sabnzbd
/usr/local/sabnzbd/sabnzbd
/usr/syno/etc/packages/sabnzbd
/tmp/@synopackage/sabnzbd

@Diaoul
Copy link
Member

Diaoul commented Nov 5, 2012

FYI, I recompiled Python 2.7.3-3 and I'm uploading to the private beta repository.
After a first check, everything seems fine, I think that parallel make must have break something the first time.

@bigblackvenom
Copy link

Thanks a bunch metryann and ytsejam1138,

It solved the issue after delete some remaining sabnzbd folders.

DS411
DSM 4.1-2647

@secavia
Copy link

secavia commented Nov 5, 2012

Thanks a bunch metryann and ytsejam1138,

It solved the issue after delete some remaining sabnzbd folders.

DS1511+

@A1rwav3
Copy link

A1rwav3 commented Nov 5, 2012

Don't be sorry, Thanks a lot for your work!

@Diaoul
Copy link
Member

Diaoul commented Nov 8, 2012

Any issues with the Python in private beta? I'll deploy the it soon

@Diaoul
Copy link
Member

Diaoul commented Nov 8, 2012

You are faster to report issues than to contribute...

@ytsejam1138
Copy link

How can we report on the Python 2.7.3-3 if it's a Private BETA? It doesn't show up in Package Center.

@Diaoul
Copy link
Member

Diaoul commented Nov 8, 2012

Send me an email so I can give you access to the private beta repository. You can find my email here.

@ruinit
Copy link

ruinit commented Nov 9, 2012

Could someone help me out I am a terrible newb. I tried this listed above to fix my sab install but it gives me and error.
rsync -av /volume1/@appstore/sickbeard/env /volume1/@appstore/sabnzbd/
chown -R sabnzbd /volume1/@appstore/sabnzbd/env

ERROR: module is read only
rsync error: syntax or usage error (code 1) at main.c(1034) [Receiver=3.0.8]
rsync error: rsync service is no running (code 43) at io.c(653) [sender=3.0.8]

I really have no idea how to backup my sab config files to do a reinstall so any help would be great

@ytsejam1138
Copy link

Running Python 2.7.3-3 now in conjunction with SABnzbd, CouchPotato, and SickBeard with no problems

@mutovkin
Copy link

mutovkin commented Dec 5, 2012

The way I fix the issue is that I ssh into the box and edit
/var/packages/sabnzbd/scripts/start-stop-status

There I just need to fix python path to be:
PYTHON="${PYTHON_DIR}/bin/python"

and now everything works, no need to re-install anything or perform any other reboot, restart, reinstall magic.

@Diaoul
Copy link
Member

Diaoul commented Dec 5, 2012

As I already said, this solution isn't recomended.

@alwyatt
Copy link

alwyatt commented Oct 22, 2014

Hey there, I've got the same issue. I've tried lots of these suggestions above and here: #63, but can't actually use sabnzbd

Sabnzbd: 0.7.18-10
Python: 2.7.8-10
Synology: DS412+
DSM: 5.0-4493 Update 5

I've tried uninstalling both sabnzbd & python, deleting any sabnzb folders, restarting and then reinstalling both and then restarting again before running.

I've been able to run the wizard and NOT enable https, but as soon as I try to launch localhost:8080 , 127.0.0.1:8080 or 192.168.1.100:8080 I get "web page not available"

According to the package center sabnzb is running and if I run "/var/packages/sabnzbd/scripts/start-stop-status start" it returns that sabnzbd is already running.

Can anyone help?

I have read in the log that there is an error about changing permissions in the /volume1/downloads/incomplete folder , but I don't understand how this would stop the package from running

@Dr-Bean
Copy link
Contributor

Dr-Bean commented Oct 22, 2014

@alwyatt Can I suggest to open a new issue? Adding on to a two year old closed issue might not be the best approach...

When you open a new issue, add the sabnzbd logs (either via GUI, or via /usr/local/sabnzbd/var/logs). If the logs contain more than, say, 10 lines, upload them to gist.github.com or pastebin, and provide a link in the new issue instead of pasting them directly into the issue.

While you're at it, check if the firewall on the NAS allows port 8080 (or allow all traffic for testing purposes), and in your browser, do http://ip-of-your-NAS:8080. Both localhost and 127.0.0.1 cannot be used, because those link to the device you're working on.

@alwyatt
Copy link

alwyatt commented Oct 24, 2014

@Dr-Bean thanks and posted here #1286

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests