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

FAILED TO RUN PACKAGE SERVICE on DSM 4.2-3202 #440

Closed
anpretorius opened this issue Mar 11, 2013 · 17 comments
Closed

FAILED TO RUN PACKAGE SERVICE on DSM 4.2-3202 #440

anpretorius opened this issue Mar 11, 2013 · 17 comments

Comments

@anpretorius
Copy link

Since the update to the latest DSM a few days ago, my services (SAB, SB and CP) have not been working as they are supposed to. CP has actually been inaccessible for months which made me consider the update, but after the update ALL my services stopped working.

I have tried everything from checking whether the port in my FIREWALL AND QOS is OK (which wasn't ever required but is now set to check 8080) to checking python's start-and-stop file (which was fine). I tried re-installing DSM but to no avail. The packages install fine, I just can't get it up and running. I have no packages installed at the moment and only testing with SABnzbd.

Always getting this popup:
Capture run

Any advice would be appreciated.

@Diaoul
Copy link
Member

Diaoul commented Mar 16, 2013

See #384.
If that's not your case, try running the package manually with /var/packages/sabnzbd/scripts/start-stop-status start and report here the output.
Also, check the logs in the Package Center or directly in /usr/local/sabnzbd/var/

@anpretorius
Copy link
Author

@Diaoul, thanks for the response. I tried editing start-stop-status but still couldn't get SAB running; not even from the terminal. Replacing exit $? with echo $? did give the following however:

DiskStation> /var/packages/sabnzbd/scripts/start-stop-status start Starting SABnzbd ... su: can't chdir to home directory '/usr/local/sabnzbd/var' -sh: /usr/local/sabnzbd/env/bin/python: Permission denied 126

I can't find the log file using the terminal and the log in Package Center is empty.

@anpretorius
Copy link
Author

I should probably also add that also when trying to start CP and SB from the terminal I get similar Permission denied messages.

And as is the case for SAB, their logs in the Package Center remain empty: No data

@mortensieker
Copy link

I had the same problem. A quick fix for me.
Remove the "-d" at the end of
su - ${USER} -c "PATH=${PATH} ${PYTHON} ${SABNZBD} -f ${CFG_FILE} --pid ${INSTALL_DIR}/var/ -d"
in the start_stop_status file.

Run the script, let sabnzbd start up. Terminate the process. Insert "-d" again.
And now it works through Package center.

@anpretorius
Copy link
Author

I tried removing the -d and also commenting out the exit $? but to no avail. I still get the same message. Tried restarting and doing it again but that also didn't work...

And the fact that it returns 126 when I replace exit $? with echo $? also doesn't seem right (based on what I've read - I am by no means an expert).

@Diaoul
Copy link
Member

Diaoul commented Mar 17, 2013

It seems you are missing the var directory... Maybe something went wrong during the update, that's strange though.
Anyway, if ls -la /usr/local/sabnzbd/var results in an error, you've lost your configuration file and have to reinstall the SPK.

@anpretorius
Copy link
Author

No error:
DiskStation> ls -la /usr/local/sabnzbd/var drwxr-sr-x 3 sabnzbd root 4096 Mar 11 21:43 . drwxrwxrwx 7 sabnzbd root 4096 Mar 17 16:43 .. -rw------- 1 sabnzbd root 3891 Mar 11 22:05 config.ini drwxr-xr-x 2 sabnzbd root 4096 Mar 11 21:42 scripts

@Diaoul
Copy link
Member

Diaoul commented Mar 17, 2013

Do you log in SSH as root or as admin? Because you need to use root.

@anpretorius
Copy link
Author

Have been using Root the whole time.

@Diaoul
Copy link
Member

Diaoul commented Mar 17, 2013

Try to run /usr/local/sabnzbd/env/bin/python, you should get to a python console.

@anpretorius
Copy link
Author

That works as well.

DiskStation> /usr/local/sabnzbd/env/bin/python Python 2.7.3 (default, Mar 7 2013, 19:08:35) [GCC 4.2.1] on linux2 Type "help", "copyright", "credits" or "license" for more information.

@anpretorius
Copy link
Author

Should I perhaps try to reset the whole NAS including hard drives?

@Diaoul
Copy link
Member

Diaoul commented Mar 19, 2013

Try to run SABnzbd manually as root:

/usr/local/sabnzbd/env/bin/python /usr/local/sabnzbd/share/SABnzbd/SABnzbd.py -f /usr/local/sabnzbd/var/config.ini

@anpretorius
Copy link
Author

Well now...

DiskStation> /usr/local/sabnzbd/env/bin/python /usr/local/sabnzbd/share/SABnzbd/ SABnzbd.py -f /usr/local/sabnzbd/var/config.ini 2013-03-20 20:36:30,435::INFO::[SABnzbd:1256] -------------------------------- 2013-03-20 20:36:30,437::INFO::[SABnzbd:1257] SABnzbd.py-0.7.11 (rev=a50412a3275 1f4d1d555020dea20a2da43d6a309) 2013-03-20 20:36:30,439::INFO::[SABnzbd:1269] Platform = posix 2013-03-20 20:36:30,441::INFO::[SABnzbd:1270] Python-version = 2.7.3 (default, M ar 7 2013, 19:08:35) [GCC 4.2.1] 2013-03-20 20:36:30,443::INFO::[SABnzbd:1271] Arguments = /usr/local/sabnzbd/sha re/SABnzbd/SABnzbd.py -f /usr/local/sabnzbd/var/config.ini 2013-03-20 20:36:30,445::INFO::[SABnzbd:1284] Read INI file /usr/local/sabnzbd/v ar/config.ini 2013-03-20 20:36:30,457::INFO::[__init__:928] Loading data for bookmarks.sab fro m /usr/local/sabnzbd/var/admin/bookmarks.sab 2013-03-20 20:36:30,459::INFO::[__init__:931] /usr/local/sabnzbd/var/admin/bookm arks.sab missing, trying old cache 2013-03-20 20:36:30,461::INFO::[__init__:934] /usr/local/sabnzbd/var/cache/bookm arks.sab missing 2013-03-20 20:36:30,464::INFO::[__init__:928] Loading data for rss_data.sab from /usr/local/sabnzbd/var/admin/rss_data.sab 2013-03-20 20:36:30,467::INFO::[__init__:931] /usr/local/sabnzbd/var/admin/rss_d ata.sab missing, trying old cache 2013-03-20 20:36:30,469::INFO::[__init__:934] /usr/local/sabnzbd/var/cache/rss_d ata.sab missing 2013-03-20 20:36:30,472::INFO::[__init__:928] Loading data for totals9.sab from /usr/local/sabnzbd/var/admin/totals9.sab 2013-03-20 20:36:30,474::INFO::[__init__:931] /usr/local/sabnzbd/var/admin/total s9.sab missing, trying old cache 2013-03-20 20:36:30,477::INFO::[__init__:934] /usr/local/sabnzbd/var/cache/total s9.sab missing 2013-03-20 20:36:30,562::INFO::[postproc:90] Loading postproc queue 2013-03-20 20:36:30,565::INFO::[__init__:928] Loading data for postproc1.sab fro m /usr/local/sabnzbd/var/admin/postproc1.sab 2013-03-20 20:36:30,567::INFO::[__init__:931] /usr/local/sabnzbd/var/admin/postp roc1.sab missing, trying old cache 2013-03-20 20:36:30,570::INFO::[__init__:934] /usr/local/sabnzbd/var/cache/postp roc1.sab missing 2013-03-20 20:36:30,574::INFO::[__init__:928] Loading data for queue9.sab from / usr/local/sabnzbd/var/admin/queue9.sab 2013-03-20 20:36:30,577::INFO::[__init__:931] /usr/local/sabnzbd/var/admin/queue 9.sab missing, trying old cache 2013-03-20 20:36:30,579::INFO::[__init__:934] /usr/local/sabnzbd/var/cache/queue 9.sab missing 2013-03-20 20:36:30,586::INFO::[__init__:928] Loading data for watched_data.sab from /usr/local/sabnzbd/var/admin/watched_data.sab 2013-03-20 20:36:30,589::INFO::[__init__:931] /usr/local/sabnzbd/var/admin/watch ed_data.sab missing, trying old cache 2013-03-20 20:36:30,591::INFO::[__init__:934] /usr/local/sabnzbd/var/cache/watch ed_data.sab missing 2013-03-20 20:36:30,598::INFO::[scheduler:170] Setting schedule for midnight BPS reset 2013-03-20 20:36:30,600::INFO::[downloader:211] Resuming 2013-03-20 20:36:30,603::INFO::[__init__:330] All processes started 2013-03-20 20:36:30,605::INFO::[SABnzbd:334] Web dir is /usr/local/sabnzbd/share /SABnzbd/interfaces/Plush 2013-03-20 20:36:30,640::INFO::[SABnzbd:334] Web dir is /usr/local/sabnzbd/share /SABnzbd/interfaces/Config 2013-03-20 20:36:30,749::INFO::[SABnzbd:463] _yenc module... found! 2013-03-20 20:36:30,751::ERROR::[SABnzbd:473] par2 binary... NOT found! 2013-03-20 20:36:30,753::INFO::[SABnzbd:479] unrar binary... found (/usr/syno/bi n/unrar) 2013-03-20 20:36:30,755::INFO::[SABnzbd:484] unzip binary... found (/usr/syno/bi n/unzip) 2013-03-20 20:36:30,758::INFO::[SABnzbd:492] nice binary... NOT found! 2013-03-20 20:36:30,760::INFO::[SABnzbd:496] ionice binary... NOT found! 2013-03-20 20:36:30,761::INFO::[SABnzbd:499] pyOpenSSL... found (True) 2013-03-20 20:36:30,772::INFO::[SABnzbd:1483] Starting web-interface on 0.0.0.0: 8080 2013-03-20 20:36:30,775::INFO::[_cplogging:55] [20/Mar/2013:20:36:30] ENGINE Bus STARTING 2013-03-20 20:36:30,805::INFO::[_cplogging:55] [20/Mar/2013:20:36:30] ENGINE Sta rted monitor thread '_TimeoutMonitor'. 2013-03-20 20:36:31,037::INFO::[_cplogging:55] [20/Mar/2013:20:36:31] ENGINE Ser ving on 0.0.0.0:8080 2013-03-20 20:36:31,039::INFO::[_cplogging:55] [20/Mar/2013:20:36:31] ENGINE Bus STARTED 2013-03-20 20:36:31,556::INFO::[SABnzbd:1552] Starting SABnzbd.py-0.7.11 2013-03-20 20:36:31,563::INFO::[dirscanner:274] Dirscanner starting up 2013-03-20 20:36:31,569::INFO::[urlgrabber:77] URLGrabber starting up

Even though the status is stopped, it does open upif I log in through my browser but I get a warning that there is no PAR2 program found. There clearly are MANY thing "missing". I hope it tells you something Diaoul. By the way, is there a way for me to show my appreciation for your help by donating to the cause?

@anpretorius
Copy link
Author

@Diaoul, does the output I get from starting SAB manually tell you anything?

@Diaoul
Copy link
Member

Diaoul commented Mar 24, 2013

It tells me that it works manually and I don't get why it doesn't through the DSM.
Have you tried reinstalling Python + SABnzbd?

@anpretorius
Copy link
Author

I have tried that many times yes. So that fact that so many items were missing doesn't seem strange to you?

I think I'll try to start over with the NAS. That would mean losing a lot of data but at least I can use my NAS then. At the moment it is just an expensive paperweight.

@Diaoul Diaoul closed this as completed Jun 2, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants