SABnzb folder problem

Status
Not open for further replies.

dTardis

Dabbler
Joined
Jan 29, 2016
Messages
24
I have added a DataSet to the SAB plugin jail. updated permissions that should allow it to write to the directories. Everything looks correct as far as I can tell. Here is the problem.

When I go into setup>folders. I try to change the Temporary download directory from the default to the new directory I created. I use the browse button and navigate to the directory. '/mnt/working/temp'. It seems to be fine. I hit save changes and I don't seem to get errors. BUT if I navigate to a different tab and then back to folders. It is set back at the default. Any idea what I could be doing wrong?
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
do other settings save? can you show the output of the following in the sabnzbd jail?
ls -l /var/db/sabnzbd
ls -l /mnt/working/temp
 

dTardis

Dabbler
Joined
Jan 29, 2016
Messages
24
do other settings save? can you show the output of the following in the sabnzbd jail?
ls -l /var/db/sabnzbd
ls -l /mnt/working/temp

Other settings to appear to save.

Sure I can do that:

root@sabnzbd_1:/mnt/working # ls -l /var/db/sabnzbd
total 29
drwxrwxrwx 3 media media 3 Feb 9 07:46 Downloads
drwxrwxrwx 2 media media 10 Feb 9 08:38 admin
drwxrwxrwx 2 media media 4 Feb 9 07:46 logs
-rw------- 1 media media 4421 Feb 9 09:16 sabnzbd.ini
-rw-rw-rw- 1 media media 4421 Feb 9 09:16 sabnzbd.ini.bak
root@sabnzbd_1:/mnt/working #

ls -l /mnt/working/temp
total 0

root@sabnzbd_1:/mnt/working # ls -l
total 2
drwxr-xr-x 2 root ds_media 2 Feb 9 09:04 complete
drwxr-xr-x 2 root ds_media 2 Feb 9 09:16 movie
drwxr-xr-x 2 root ds_media 2 Feb 9 08:57 temp
drwxr-xr-x 2 root ds_media 2 Feb 9 09:16 tv
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
your temp folder is not writable by sabnzbd's user
 

dTardis

Dabbler
Joined
Jan 29, 2016
Messages
24
your temp folder is not writable by sabnzbd's user

ok, but if the user is media I have added media to the group ds_media. I also saw it was still wrong so it looks like this now.

It is still failing to save the change to the new directory.

root@sabnzbd_1:/mnt/working # ls -al

total 3
drwxrwxr-x 6 root ds_media 6 Feb 9 09:16 .
drwxr-xr-x 3 root wheel 3 Feb 9 08:46 ..
drwxrwxr-x 2 root ds_media 2 Feb 9 09:04 complete
drwxrwxr-x 2 root ds_media 2 Feb 9 09:16 movie
drwxrwxr-x 2 root ds_media 2 Feb 9 08:57 temp
drwxrwxr-x 2 root ds_media 2 Feb 9 09:16 tv

root@sabnzbd_1:/mnt/working # cd ..
root@sabnzbd_1:/mnt # ls -al

total 15
drwxr-xr-x 3 root wheel 3 Feb 9 08:46 .
drwxr-xr-x 18 root wheel 22 Feb 5 14:13 ..
drwxrwxr-x 6 root ds_media 6 Feb 9 09:16 working
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
ok, but if the user is media I have added media to the group ds_media. I also saw it was still wrong so it looks like this now.

It is still failing to save the change to the new directory.

root@sabnzbd_1:/mnt/working # ls -al

total 3
drwxrwxr-x 6 root ds_media 6 Feb 9 09:16 .
drwxr-xr-x 3 root wheel 3 Feb 9 08:46 ..
drwxrwxr-x 2 root ds_media 2 Feb 9 09:04 complete
drwxrwxr-x 2 root ds_media 2 Feb 9 09:16 movie
drwxrwxr-x 2 root ds_media 2 Feb 9 08:57 temp
drwxrwxr-x 2 root ds_media 2 Feb 9 09:16 tv

root@sabnzbd_1:/mnt/working # cd ..
root@sabnzbd_1:/mnt # ls -al

total 15
drwxr-xr-x 3 root wheel 3 Feb 9 08:46 .
drwxr-xr-x 18 root wheel 22 Feb 5 14:13 ..
drwxrwxr-x 6 root ds_media 6 Feb 9 09:16 working
ohh, it should be writable then. you added media to the group in the jail right?
 

dTardis

Dabbler
Joined
Jan 29, 2016
Messages
24
ohh, it should be writable then. you added media to the group in the jail right?
in the jail. I created the group ds_media (1004). I then added the user media to that group. In freenas I created a user sab_media with the same uid and gid in my case 816. I then added that user to the freenas group 1004 that has write access into that dataset. Does that answer the question? Sorry I am new at Freenas so I'm not trying to be a jerk. I really need some help figuring out why this isnt working.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
in the jail. I created the group ds_media (1004). I then added the user media to that group. In freenas I created a user sab_media with the same uid and gid in my case 816. I then added that user to the freenas group 1004 that has write access into that dataset. Does that answer the question? Sorry I am new at Freenas so I'm not trying to be a jerk. I really need some help figuring out why this isnt working.
yeah, if the 'media' user is in the group in the jail it should be writable so I'm not sure the issue.
here's a quick test to make sure it is writable

chsh -s /bin/sh media
su media
touch /mnt/working/temp/test
 

dTardis

Dabbler
Joined
Jan 29, 2016
Messages
24
yeah, if the 'media' user is in the group in the jail it should be writable so I'm not sure the issue.
here's a quick test to make sure it is writable

chsh -s /bin/sh media
su media
touch /mnt/working/temp/test

Thank you again for your help. Here are the results:

root@sabnzbd_1:/mnt # chsh -s /bin/sh media
chsh: user information updated
root@sabnzbd_1:/mnt # su media
$ touch /mnt/working/temp/test
$ ls -al
total 15
drwxr-xr-x 3 root wheel 3 Feb 9 08:46 .
drwxr-xr-x 18 root wheel 22 Feb 5 14:13 ..
drwxrwxr-x 6 root ds_media 6 Feb 9 09:16 working
$ cd working
$ ls
complete movie temp tv
$ cd temp/
$ ls
test
$ ls -al
total 2
drwxrwxr-x 2 root ds_media 3 Feb 9 18:57 .
drwxrwxr-x 6 root ds_media 6 Feb 9 09:16 ..
-rw-r--r-- 1 media ds_media 0 Feb 9 18:57 test
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Thank you again for your help. Here are the results:

root@sabnzbd_1:/mnt # chsh -s /bin/sh media
chsh: user information updated
root@sabnzbd_1:/mnt # su media
$ touch /mnt/working/temp/test
$ ls -al
total 15
drwxr-xr-x 3 root wheel 3 Feb 9 08:46 .
drwxr-xr-x 18 root wheel 22 Feb 5 14:13 ..
drwxrwxr-x 6 root ds_media 6 Feb 9 09:16 working
$ cd working
$ ls
complete movie temp tv
$ cd temp/
$ ls
test
$ ls -al
total 2
drwxrwxr-x 2 root ds_media 3 Feb 9 18:57 .
drwxrwxr-x 6 root ds_media 6 Feb 9 09:16 ..
-rw-r--r-- 1 media ds_media 0 Feb 9 18:57 test
OK, obviously not a permission problem then. You might want ask on the sabnzbd forum, I know this issue has come up before for different OSs.
 
Status
Not open for further replies.
Top