SABnzbd permissions (CIFS) foer /var/db/sabnzbd

Status
Not open for further replies.

Christopher Joyson

Contributor
Joined
May 22, 2014
Messages
105
Hi

I have had SANznbd running OK for a week or two now suddenly it stopped working. the e downloads are not starting at all.

I have looked under connections and they are showing zero. I therefore went to Config> Servers.show details and my Giganews retention is showing zero. When I went to change this it would not save. SABnzbd comes back with "failed" the test sever button does not do anything either.

I then went to Windows and looked at my share:
Plug-ins(\\FREENAS) (P)\sabnzbd_1\var\db\sabnzbd and the owner is media and the permissions are not shown (no box shown against each attribute).

in The Jail the permissions are as follows:
root@sabnzbd_1:/var/db # ls -l
total 278
drwx------ 2 operator operator 2 Jul 11 2014 entropy
drwxr-xr-x 3 root wheel 4 Jul 11 2014 etcupdate
drwx------ 2 root wheel 2 Jul 11 2014 freebsd-update
drwx------ 2 root wheel 2 Jul 11 2014 ipf
-r--r--r-- 1 nobody wheel 366537 Jan 31 04:15 locate.database
-rw------- 1 root wheel 40563 Jul 11 2014 mergemaster.mtree
drwxr-xr-x 9 root wheel 10 Jan 22 20:21 pbi
drwxr-xr-x 2 root wheel 6 Jan 23 03:01 pkg
drwxr-xr-x 2 root wheel 2 Jul 11 2014 ports
drwxr-xr-x 2 root wheel 2 Jul 11 2014 portsnap
drwxr-xr-x 5 media media 7 Jan 23 13:24 sabnzbd

which to me looks as though media is both the owner and group which is what I would expect.
I have added media (user) into media (group). Should I add the SABnzbd user (however I dont know this user number, is there a weary to find this)?

what else should I be looking at so that the Program can save the server details?
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
The sabnzbd plugin's default user is media (UID=816). Those ownership/permissions seem correct.

can you show permissions inside the sabnzbd folder, also restart sabnzbd and check the log
 

Christopher Joyson

Contributor
Joined
May 22, 2014
Messages
105
Inside the Sanbzbd folder

root@sabnzbd_1:/var/db/sabnzbd # ls -l
total 27
drwxrwxrwx 3 media media 3 Jan 23 13:24 Downloads
drwxrwxrwx 3 media media 12 Feb 1 21:31 admin
drwxrwxrwx 2 media media 8 Jan 28 05:08 logs
-rw------- 1 media media 4366 Feb 1 21:30 sabnzbd.ini
-rw-rw-rw- 1 media media 4368 Feb 1 21:30 sabnzbd.ini.bak

The Sabnzbd.log file is too large, i have deleted most of my queue but the log ffile is still 3.99mb is there a way to force a new file?

root@sabnzbd_1:/var/db/sabnzbd/logs # ls -l
total 3631
-rw-rw-rw- 1 media media 0 Jan 23 13:24 sabnzbd.error.log
-rwxrwxrwx 1 media media 4187833 Feb 2 13:47 sabnzbd.log
-rw-rw-rw- 1 media media 5242829 Jan 28 05:08 sabnzbd.log.1
-rw-rw-rw- 1 media media 5242796 Jan 24 19:21 sabnzbd.log.2
-rw-rw-rw- 1 media media 5242805 Jan 24 18:56 sabnzbd.log.3
-rw-rw-rw- 1 media media 5242770 Jan 24 03:58 sabnzbd.log.4

I changed the permissions of my log file so that I could copy it in windows.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Inside the Sanbzbd folder

root@sabnzbd_1:/var/db/sabnzbd # ls -l
total 27
drwxrwxrwx 3 media media 3 Jan 23 13:24 Downloads
drwxrwxrwx 3 media media 12 Feb 1 21:31 admin
drwxrwxrwx 2 media media 8 Jan 28 05:08 logs
-rw------- 1 media media 4366 Feb 1 21:30 sabnzbd.ini
-rw-rw-rw- 1 media media 4368 Feb 1 21:30 sabnzbd.ini.bak

The Sabnzbd.log file is too large, i have deleted most of my queue but the log ffile is still 3.99mb is there a way to force a new file?

root@sabnzbd_1:/var/db/sabnzbd/logs # ls -l
total 3631
-rw-rw-rw- 1 media media 0 Jan 23 13:24 sabnzbd.error.log
-rwxrwxrwx 1 media media 4187833 Feb 2 13:47 sabnzbd.log
-rw-rw-rw- 1 media media 5242829 Jan 28 05:08 sabnzbd.log.1
-rw-rw-rw- 1 media media 5242796 Jan 24 19:21 sabnzbd.log.2
-rw-rw-rw- 1 media media 5242805 Jan 24 18:56 sabnzbd.log.3
-rw-rw-rw- 1 media media 5242770 Jan 24 03:58 sabnzbd.log.4

I changed the permissions of my log file so that I could copy it in windows.
sabnzbd's config is writable by sabnzbd so I don't know why you can't change options in sabnzbd's interface. But, I have heard of others having this issue before, so maybe you should ask on the sabnzbd forums what the possible causes of this is.

Not sure what you're asking about the log file. Just empty it out, try to change some options, then see what is in there.
Code:
cat /dev/null > /var/db/sabnzbd/logs/sabnzbd.log
 

Christopher Joyson

Contributor
Joined
May 22, 2014
Messages
105
Not sure what you're asking about the log file. Just empty it out, try to change some options, then see what is in there.
Code:
cat /dev/null > /var/db/sabnzbd/logs/sabnzbd.log

Thats what I needed to do Clear the File, Thanks. hasn't sorted the problem though. Ive tried deleting the Server and adding a new one comes up with "Server address "news.giganews.com:563" is not valid"' ill try the Sabnzbd forums.
 

Christopher Joyson

Contributor
Joined
May 22, 2014
Messages
105
It's sorted now.
This morning I tried pinging my sabnzbd jail ok. Then tired pinging out - no joy would not even reply at all, no output. I then checked to see if there was an update, there was so I downloaded it. Then checked to see if my SAB jail would out and it could went back to sorting my a server details and all was ok.
back up and running. Seems like my jails had a problem. It may have just needed reset!
 
Status
Not open for further replies.
Top