SynoCommunity / spksrc

Cross compilation framework to create native packages for the Synology's NAS
https://synocommunity.com
Other
3.03k stars 1.23k forks source link

SabNZBD cannot be started after upgrade #282

Closed lleblanc51 closed 12 years ago

lleblanc51 commented 12 years ago

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 commented 12 years ago

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

DS212j and DSM 4.1-2647

Diaoul commented 12 years ago

Did you stop SABnzbd before updating ?

lleblanc51 commented 12 years ago

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 commented 12 years ago

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 commented 12 years ago

But what can I do to make SabNZBD work ?

Diaoul commented 12 years ago

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

Diaoul commented 12 years ago

Reboot your NAS will stop any background process

lleblanc51 commented 12 years ago

I just try this :

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 commented 12 years ago

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 commented 12 years ago

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

14750 root 2964 S grep SABnzbd.py

Diaoul commented 12 years ago

In the log tab of the Python SPK in Package Center

SkiBum1942 commented 12 years ago

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

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

lleblanc51 commented 12 years ago

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

Nothing more...

Diaoul commented 12 years ago

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/SynoCommunity/spksrc/issues/282#issuecomment-10056570.

lleblanc51 commented 12 years ago

DS212j

Diaoul commented 12 years ago

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

No fail message when installing Python ?

codeyy commented 12 years ago

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

lleblanc51 commented 12 years ago

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 commented 12 years ago

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

lleblanc51 commented 12 years ago

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 commented 12 years ago

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 commented 12 years ago

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 commented 12 years ago

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 commented 12 years ago

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 commented 12 years ago

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 commented 12 years ago

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 commented 12 years ago

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 commented 12 years ago

Can someone run /usr/local/python/bin/virtualenv --system-site-packages /usr/local/sabnzbd/env and tell me the output?

LachlanS commented 12 years ago

DS410> /usr/local/python/bin/virtualenv --system-site-packages /usr/local/sabnzbd/env -ash: /usr/local/python/bin/virtualenv: not found

Diaoul commented 12 years ago

ls /usr/local/python/bin/ please

LachlanS commented 12 years ago

DS410> ls /usr/local/python/bin/ -1 addgroup adduser bunzip2 busybox bzcat bzcmp bzdiff bzegrep bzfgrep bzgrep bzip2 bzip2recover bzless bzmore c_rehash captoinfo clear delgroup deluser infocmp infotocap openssl python python2 python2.7 reset speexdec speexenc sqlite3 tabs tic toe tput tset

Diaoul commented 12 years ago

Also, please post stuff you have in log tab of Package Center of Python.

Attention: I have done a rollback of Python in 2.7.2-2 in the repository so refresh your packages in the Package Center and reinstall Python to fix any issue

If some of you are willing to help, I might need it to understand what's going on here.

LachlanS commented 12 years ago

The log tab simply reads:

Python 2.7.3

System installed modules:

A1rwav3 commented 12 years ago

When I click on Refresh, I do not have any mention of a possible new version of Python, I suppose I need to remove it and reinstall it...

Due to the dependancies, I also need to remove Sabnzbd, Sickbeard, couchpotato, subliminal and nzb config... Will their respective configuration be lost?

subascha commented 12 years ago

@Diaoul Don't want to deinstall sabnzbd and this is what I must do to uninstall python. Any other workaround?

lleblanc51 commented 12 years ago

Hi!

WHS> /usr/local/python/bin/virtualenv --system-site-packages /usr/local/sabnzbd/ env -ash: /usr/local/python/bin/virtualenv: not found WHS> ls /usr/local/python/bin/ ls: /usr/local/python/bin/: No such file or directory

I'll try to uninstall and reinstall Python and Sab, I already loose my config... :)

Is there a way to backup Sab config ? (For the next time)

Diaoul commented 12 years ago

You can install it manually. @piwi can give you a download link. Or you can wait for a fix by tomorrow

lleblanc51 commented 12 years ago

I re install Python and Sab and everything is fine now...

Thanks for your help...

Diaoul commented 12 years ago

Download links to reinstall a working Python:

http://packages.synocommunity.com/download.php?package=python_88f5281_2.7.3-3.spk http://packages.synocommunity.com/download.php?package=python_88f628x_2.7.3-2.spk http://packages.synocommunity.com/download.php?package=python_bromolow_2.7.3-2.spk http://packages.synocommunity.com/download.php?package=python_cedarview_2.7.3-2.spk http://packages.synocommunity.com/download.php?package=python_powerpc_2.7.3-2.spk http://packages.synocommunity.com/download.php?package=python_ppc824x_2.7.3-2.spk http://packages.synocommunity.com/download.php?package=python_ppc853x_2.7.3-2.spk http://packages.synocommunity.com/download.php?package=python_ppc854x_2.7.3-2.spk http://packages.synocommunity.com/download.php?package=python_qoriq_2.7.3-2.spk http://packages.synocommunity.com/download.php?package=python_x86_2.7.3-2.spk

LachlanS commented 12 years ago

Many thanks - I downloaded and installed the appropriate Python package, ran /usr/local/python/bin/virtualenv --system-site-packages /usr/local/sabnzbd/env again, and started SABnzbd successfully.

subascha commented 12 years ago

Which package to use with DS212+ (88FR131)?

A1rwav3 commented 12 years ago

I do download and try to install the x86 version on my DS1812+ (Atom D2700) but it raised an error telling "This package is not supported on the platform of Diskstation."

Did I miss something ?

Diaoul commented 12 years ago

https://github.com/SynoCommunity/spksrc/wiki/Architecture-per-Synology-model

subascha commented 12 years ago

Works. Thanks!

danfozzy commented 12 years ago

reverting back to the old package and running the script from LachlanS sorted me out, thanks

llpr commented 12 years ago

So, I installed the new Python package, broke SABnzbd. Uninstalled SABnzbd and Python. I then reverted to the previous version of Python.

But now, I'm unable to install SABnzbd v0.7.5-2 on my DS410. I get a "failed to install the package"...

Sickbeard installs with no problem.

I need some suggestions, thanks in advance.

mormerod commented 12 years ago

Same for me on my DS412+, I tried the downgraded Python but get the 'failed to install' message for SAB.

upmg commented 12 years ago

Ok, So I have uninstalled everything.

I have then rebooted my nas and installed: Python 2.7.3-2 from the updated repo. This installs fine. Package info Log is empty at this point.

I then try install SABnzbd and it asks me "Do you want to run this package after installation" first I try "Yes" and I noticed it starts installing jumping to 30% and upwards then I get an error msg "SABnzbd: Failed to install the package." try the same with saying No to the above question and again it fails to install SABnzbd.

Anything I can try please? any error logs or reports you can direct me to run to troubleshoot this?

System info: DS212J - DSM 4.1-2657

Thanks

Diaoul commented 12 years ago

Did you put the correct path for the download directory in the wizard? Like /volume1/downloads

upmg commented 12 years ago

Yes on previous attempts to install SABnzbd with the 2.7.3-3 Python update. YET this time when installing with the reverted version of Python its no longer popping up and asking for my download directory input.