Page 1 of 1

Weird issue on synology NAS

Posted: May 17th, 2012, 9:33 am
by iMediocre
Hi everybody,

I really hope this hasn't been posted before, if it has, please point me to the right thread.

My problem is as follows: I've had sabnzbd working on a synology DS211J in combination with sickbeard. Everything worked fine for a long time but all of a sudden it just broke (I guess). I couldn't connect to the webinterface nor was anything downloading. It also made accessing websites which I hosted on my nas impossible. I first just tried stopping the package but for a few days I would just get an error that another package was being configured or installed and that I should wait. I wasn't doing anything with a different package so wasn't really sure what to do. After a few days I could stop and run the package again but nothing would happen, I still couldn't reach sabnzbd. So I deinstalled sabnzb and tried to reinstall (this only fixed accessing the websites). But when I try to install I get the message that a different package is already using that port. When I go to the sabnzbd port I get this error (even though sabnzbd isn't installed anymore):

Unrecoverable error in the server.
Traceback (most recent call last):
File "/usr/local/sabnzbd/share/SABnzbd/cherrypy/_cpwsgi.py", line 78, in setapp
File "/usr/local/sabnzbd/share/SABnzbd/cherrypy/_cpwsgi.py", line 233, in get_request
File "/usr/local/sabnzbd/share/SABnzbd/cherrypy/_cptree.py", line 112, in get_serving
File "/usr/local/sabnzbd/share/SABnzbd/cherrypy/process/wspbus.py", line 147, in publish
File "/usr/local/sabnzbd/share/SABnzbd/cherrypy/process/plugins.py", line 514, in acquire_thread
File "/usr/local/sabnzbd/share/SABnzbd/cherrypy/process/wspbus.py", line 147, in publish
File "/usr/local/sabnzbd/share/SABnzbd/sabnzbd/__init__.py", line 180, in connect_db
File "/usr/local/sabnzbd/share/SABnzbd/sabnzbd/database.py", line 50, in get_history_handle
File "/usr/local/sabnzbd/share/SABnzbd/sabnzbd/database.py", line 66, in __init__
OperationalError: unable to open database file

I'm not sure what to try next. I hope someone knows how to solve this.

Thanks in advance.

Re: Weird issue on synology NAS

Posted: May 17th, 2012, 2:04 pm
by shypike
Try to find the file history1.db and remove it.

Re: Weird issue on synology NAS

Posted: May 17th, 2012, 3:21 pm
by iMediocre
Thanks for the response.

I wouldn't really be sure where to look for it. The only place I'd know is in the sabnzbd folder, and it's not there. Don't suppose you could help me a bit further?

Re: Weird issue on synology NAS

Posted: May 18th, 2012, 2:05 am
by shypike
It depends on what the package creator did.
By default all admin files are in $HOME/.sabnzbd
Where $HOME is the home folder of the user account under which SABnzbd runs.
You'll need an ssh terminal session for access.

Re: Weird issue on synology NAS

Posted: May 18th, 2012, 6:58 am
by iMediocre
I'm really a noob at the terminal thing.

I've tried going into the homes folders (and subfolders) and used ls to list the files. None were history1.db. I also tried the command: find -name "history1.db" while in the homes folder, but it doesn't seem to find anything. I also tried looking while in /volume1 but there it doesn't find anything either. I do get a list of folders where permission was denied, but these don't have anything to do with sabnzbd. When I try to look in the folders which are listed in my first post, I get a lot of permission denied errors. I'm not sure why that is, I double checked everything and I should have permission.

BTW, I'm using the superzebulon repository/package.

Re: Weird issue on synology NAS

Posted: May 18th, 2012, 7:19 am
by shypike
The Config->Folders page will show you where files are located.
"System" section, field "Default Base Folder".
Then look in "Administrative Folder" (usually "admin").

Re: Weird issue on synology NAS

Posted: May 18th, 2012, 7:35 am
by iMediocre
I understand, but the only problem is that I can't get sabnzbd working at all. I deleted sabnzb and tried to reinstall but I keep getting an error message that port 8080 is already reserved/being used by another service. So there's no way for me to check the config -> folders page.

Re: Weird issue on synology NAS

Posted: May 18th, 2012, 8:10 am
by shypike
I'm afraid you'll have to go back to the package creator for more info.