Sabnzbd permissions(?) for downloaded files

Get help with all aspects of SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
san7a
Newbie
Newbie
Posts: 3
Joined: October 15th, 2013, 3:51 pm

Sabnzbd permissions(?) for downloaded files

Post by san7a »

Hi

I've had a longstanding problem with Sabnzbd downloading files, which I can't solve for the life of me.....

If I download a media file to my NAS using sab, and try to play it through my TV, my TV doesn't see the downloaded file. When i log into the NAS GUI and simply move the file to a different directory (and even move it back again...), it comes up and works fine.

I get Sab to download using catagories/sorting - nothing weird at all in the sab config that i can tell. The download directory seems to be absolutely fine - other media files in there stream OK, and permissions at the file level are all the same. Doing a chown or chmod to the files doesn't change an iota. Moving the file in the shell with mv <file> <dest> doesn't do anything either. I need to MOVE the file via the Synology interface to get my TV to recognise it. I'm thinking this must be a permissions level thing, and when the Synology GUI moves the file, something changes with the file to make my TV see it. But looking at the file itself in the shell, nothing seems to have changed... ?

I'm using Sab 0.7.11, a Samsung smart TV and a Synology NAS running DSM 4.2. Absolutely lost for what to troubleshoot next, so any ideas are welcomed!!!

Cheers
san7a
Newbie
Newbie
Posts: 3
Joined: October 15th, 2013, 3:51 pm

Re: Sabnzbd permissions(?) for downloaded files

Post by san7a »

Anyone?
User avatar
sander
Release Testers
Release Testers
Posts: 9429
Joined: January 22nd, 2008, 2:22 pm

Re: Sabnzbd permissions(?) for downloaded files

Post by sander »

First things first: analysis!

So: log in on your Synology using ssh or telnet, cd to the directory, and do a "ls -al". Do that for the working and non-working directories, and ... compare.


EDIT:

PS: and upgrade to the newest SABnzbd version 0.7.16
san7a
Newbie
Newbie
Posts: 3
Joined: October 15th, 2013, 3:51 pm

Re: Sabnzbd permissions(?) for downloaded files

Post by san7a »

Hey Sander,

So i've done some troubleshooting and here's the results. I'm running SABnzbd 0.7.16 and Synology DSM 4.2-3211...

Lets test out episode 5 of 2 Broke Girls.

Currently I can't see Episode 5 through my Smart TV interface (Plex or direct... doesn't matter).

JSNAS> ls -la
drwxrwxrwx 2 root root 4096 Oct 22 03:39 .
drwxrwxrwx 4 root root 4096 Oct 16 03:42 ..
-rwxrwxrwx 1 root root 772208838 Sep 23 15:31 2 Broke Girls - S03E01 - 720p HDTV X264-DIMENSION.mkv
-rwxrwxrwx 1 root root 265 Sep 24 02:01 2 Broke Girls - S03E01 - 720p HDTV X264-DIMENSION.nfo
-rwxrwxrwx 1 root root 896 Sep 24 01:56 2 Broke Girls - S03E01 - 720p HDTV X264-DIMENSION.sfv
-rwxrwxrwx 1 root root 4244 Sep 24 01:56 2 Broke Girls - S03E01 - 720p HDTV X264-DIMENSION.srr
-rwxrwxrwx 1 sickbear users 16158 Oct 15 04:07 2 Broke Girls - S03E01 - 720p HDTV X264-DIMENSION.tbn
-rwxrwxrwx 1 root root 755422914 Sep 30 12:44 2 Broke Girls - S03E02 - 720p HDTV X264-DIMENSION.mkv
-rwxrwxrwx 1 root root 296 Oct 1 03:02 2 Broke Girls - S03E02 - 720p HDTV X264-DIMENSION.nfo
-rwxrwxrwx 1 root root 896 Oct 1 02:58 2 Broke Girls - S03E02 - 720p HDTV X264-DIMENSION.sfv
-rwxrwxrwx 1 root root 4275 Oct 1 02:58 2 Broke Girls - S03E02 - 720p HDTV X264-DIMENSION.srr
-rwxrwxrwx 1 sickbear users 45113 Oct 15 04:07 2 Broke Girls - S03E02 - 720p HDTV X264-DIMENSION.tbn
-rwxrwxrwx 1 root root 374 Oct 8 03:32 2 Broke Girls - S03E03 - 720p HDTV X264-DIMENSION.1.nfo
-rwxrwxrwx 1 root root 108 Oct 14 2010 2 Broke Girls - S03E03 - 720p HDTV X264-DIMENSION.1.url
-rwxrwxrwx 1 root root 639398686 Oct 7 16:26 2 Broke Girls - S03E03 - 720p HDTV X264-DIMENSION.mkv
-rwxrwxrwx 1 root root 374 Oct 8 03:00 2 Broke Girls - S03E03 - 720p HDTV X264-DIMENSION.nfo
-rwxrwxrwx 1 sickbear users 17704 Oct 15 04:07 2 Broke Girls - S03E03 - 720p HDTV X264-DIMENSION.tbn
-rwxrwxrwx 1 root root 125 Feb 2 2011 2 Broke Girls - S03E03 - 720p HDTV X264-DIMENSION.url
-rwxrwxrwx 1 root root 327 Oct 15 03:11 2 Broke Girls - S03E04 - 720p HDTV X264-DIMENSION.nfo
-rwxrwxrwx 1 root root 784 Oct 15 02:40 2 Broke Girls - S03E04 - 720p HDTV X264-DIMENSION.sfv
-rwxrwxrwx 1 root root 3834 Oct 15 02:40 2 Broke Girls - S03E04 - 720p HDTV X264-DIMENSION.srr
-rwxrwxrwx 1 sickbear users 80307 Oct 15 04:07 2 Broke Girls - S03E04 - 720p HDTV X264-DIMENSION.tbn
-rw-rw-rw- 1 root root 640264727 Oct 21 13:52 2 Broke Girls - S03E05 - 720p HDTV X264-DIMENSION.mkv
-rw-rw-rw- 1 root root 274 Oct 22 02:46 2 Broke Girls - S03E05 - 720p HDTV X264-DIMENSION.nfo
-rw-rw-rw- 1 root root 728 Oct 22 02:38 2 Broke Girls - S03E05 - 720p HDTV X264-DIMENSION.sfv
-rw-rw-rw- 1 root root 23462 Oct 22 02:38 2 Broke Girls - S03E05 - 720p HDTV X264-DIMENSION.srr
-rw-rw-rw- 1 sickbear users 35883 Oct 22 03:39 2 Broke Girls - S03E05 - 720p HDTV X264-DIMENSION.tbn
JSNAS>


OK so permissions are different. I do chmod 777 on episode 5...

JSNAS> chmod 777 2\ Broke\ Girls\ -\ S03E05\ -\ 720p\ HDTV\ X264-DIMENSION.mkv
JSNAS> chmod 777 2\ Broke\ Girls\ -\ S03E05\ -\ 720p\ HDTV\ X264-DIMENSION.sfv
JSNAS> chmod 777 2\ Broke\ Girls\ -\ S03E05\ -\ 720p\ HDTV\ X264-DIMENSION.srr
JSNAS> chmod 777 2\ Broke\ Girls\ -\ S03E05\ -\ 720p\ HDTV\ X264-DIMENSION.tbn
JSNAS> chmod 777 2\ Broke\ Girls\ -\ S03E05\ -\ 720p\ HDTV\ X264-DIMENSION.nfo
JSNAS> ls -la
drwxrwxrwx 2 root root 4096 Oct 22 03:39 .
drwxrwxrwx 4 root root 4096 Oct 16 03:42 ..
-rwxrwxrwx 1 root root 772208838 Sep 23 15:31 2 Broke Girls - S03E01 - 720p HDTV X264-DIMENSION.mkv
-rwxrwxrwx 1 root root 265 Sep 24 02:01 2 Broke Girls - S03E01 - 720p HDTV X264-DIMENSION.nfo
-rwxrwxrwx 1 root root 896 Sep 24 01:56 2 Broke Girls - S03E01 - 720p HDTV X264-DIMENSION.sfv
-rwxrwxrwx 1 root root 4244 Sep 24 01:56 2 Broke Girls - S03E01 - 720p HDTV X264-DIMENSION.srr
-rwxrwxrwx 1 sickbear users 16158 Oct 15 04:07 2 Broke Girls - S03E01 - 720p HDTV X264-DIMENSION.tbn
-rwxrwxrwx 1 root root 755422914 Sep 30 12:44 2 Broke Girls - S03E02 - 720p HDTV X264-DIMENSION.mkv
-rwxrwxrwx 1 root root 296 Oct 1 03:02 2 Broke Girls - S03E02 - 720p HDTV X264-DIMENSION.nfo
-rwxrwxrwx 1 root root 896 Oct 1 02:58 2 Broke Girls - S03E02 - 720p HDTV X264-DIMENSION.sfv
-rwxrwxrwx 1 root root 4275 Oct 1 02:58 2 Broke Girls - S03E02 - 720p HDTV X264-DIMENSION.srr
-rwxrwxrwx 1 sickbear users 45113 Oct 15 04:07 2 Broke Girls - S03E02 - 720p HDTV X264-DIMENSION.tbn
-rwxrwxrwx 1 root root 374 Oct 8 03:32 2 Broke Girls - S03E03 - 720p HDTV X264-DIMENSION.1.nfo
-rwxrwxrwx 1 root root 108 Oct 14 2010 2 Broke Girls - S03E03 - 720p HDTV X264-DIMENSION.1.url
-rwxrwxrwx 1 root root 639398686 Oct 7 16:26 2 Broke Girls - S03E03 - 720p HDTV X264-DIMENSION.mkv
-rwxrwxrwx 1 root root 374 Oct 8 03:00 2 Broke Girls - S03E03 - 720p HDTV X264-DIMENSION.nfo
-rwxrwxrwx 1 sickbear users 17704 Oct 15 04:07 2 Broke Girls - S03E03 - 720p HDTV X264-DIMENSION.tbn
-rwxrwxrwx 1 root root 125 Feb 2 2011 2 Broke Girls - S03E03 - 720p HDTV X264-DIMENSION.url
-rwxrwxrwx 1 root root 327 Oct 15 03:11 2 Broke Girls - S03E04 - 720p HDTV X264-DIMENSION.nfo
-rwxrwxrwx 1 root root 784 Oct 15 02:40 2 Broke Girls - S03E04 - 720p HDTV X264-DIMENSION.sfv
-rwxrwxrwx 1 root root 3834 Oct 15 02:40 2 Broke Girls - S03E04 - 720p HDTV X264-DIMENSION.srr
-rwxrwxrwx 1 sickbear users 80307 Oct 15 04:07 2 Broke Girls - S03E04 - 720p HDTV X264-DIMENSION.tbn
-rwxrwxrwx 1 root root 640264727 Oct 21 13:52 2 Broke Girls - S03E05 - 720p HDTV X264-DIMENSION.mkv
-rwxrwxrwx 1 root root 274 Oct 22 02:46 2 Broke Girls - S03E05 - 720p HDTV X264-DIMENSION.nfo
-rwxrwxrwx 1 root root 728 Oct 22 02:38 2 Broke Girls - S03E05 - 720p HDTV X264-DIMENSION.sfv
-rwxrwxrwx 1 root root 23462 Oct 22 02:38 2 Broke Girls - S03E05 - 720p HDTV X264-DIMENSION.srr
-rwxrwxrwx 1 sickbear users 35883 Oct 22 03:39 2 Broke Girls - S03E05 - 720p HDTV X264-DIMENSION.tbn
JSNAS>


I've reset the TV just to clear any caching issues, and the result: Episode 5 still dont work. Episodes 1, 2 and 3 work fine.

So I move the video file with "mv" to the upper directory

JSNAS> mv 2\ Broke\ Girls\ -\ S03E05\ -\ 720p\ HDTV\ X264-DIMENSION.mkv ..
JSNAS> cd ..
JSNAS> ls -l
-rwxrwxrwx 1 admin users 669762819 Oct 14 13:20 2 Broke Girls - S03E04 - 720p HDTV X264-DIMENSION.mkv
-rwxrwxrwx 1 sickbear users 2157 Oct 16 03:42 2 Broke Girls - S03E04 - 720p HDTV X264-DIMENSION.nfo
-rwxrwxrwx 1 sickbear users 80307 Oct 16 03:42 2 Broke Girls - S03E04 - 720p HDTV X264-DIMENSION.tbn
-rwxrwxrwx 1 root root 640264727 Oct 21 13:52 2 Broke Girls - S03E05 - 720p HDTV X264-DIMENSION.mkv
drwxrwxrwx 2 root users 4096 Oct 15 21:20 @eaDir
drwxrwxrwx 2 root root 4096 Oct 22 22:20 Season 3
-rwxrwxrwx 1 root root 0 Oct 15 21:22 cd
-rwxrwxrwx 1 sickbear users 768027 Oct 15 04:06 fanart.jpg
-rwxrwxrwx 1 sickbear users 497660 Oct 15 04:06 folder.jpg
-rwxrwxrwx 1 root root 0 Oct 15 21:22 ls
-rwxrwxrwx 1 sickbear users 184155 Oct 15 04:06 season01.tbn
-rwxrwxrwx 1 sickbear users 239058 Oct 15 04:07 season02.tbn
-rwxrwxrwx 1 sickbear users 65961 Oct 15 04:07 season03.tbn
-rwxrwxrwx 1 sickbear users 1697 Oct 15 04:07 tvshow.nfo
JSNAS>

Reset TV, try again... still no joy... move it back.

JSNAS> mv 2\ Broke\ Girls\ -\ S03E05\ -\ 720p\ HDTV\ X264-DIMENSION.mkv Season\ 3/
JSNAS> cd Season\ 3/
JSNAS> ls -la
drwxrwxrwx 2 root root 4096 Oct 22 22:22 .
drwxrwxrwx 4 root root 4096 Oct 22 22:22 ..
-rwxrwxrwx 1 root root 772208838 Sep 23 15:31 2 Broke Girls - S03E01 - 720p HDTV X264-DIMENSION.mkv
-rwxrwxrwx 1 root root 265 Sep 24 02:01 2 Broke Girls - S03E01 - 720p HDTV X264-DIMENSION.nfo
-rwxrwxrwx 1 root root 896 Sep 24 01:56 2 Broke Girls - S03E01 - 720p HDTV X264-DIMENSION.sfv
-rwxrwxrwx 1 root root 4244 Sep 24 01:56 2 Broke Girls - S03E01 - 720p HDTV X264-DIMENSION.srr
-rwxrwxrwx 1 sickbear users 16158 Oct 15 04:07 2 Broke Girls - S03E01 - 720p HDTV X264-DIMENSION.tbn
-rwxrwxrwx 1 root root 755422914 Sep 30 12:44 2 Broke Girls - S03E02 - 720p HDTV X264-DIMENSION.mkv
-rwxrwxrwx 1 root root 296 Oct 1 03:02 2 Broke Girls - S03E02 - 720p HDTV X264-DIMENSION.nfo
-rwxrwxrwx 1 root root 896 Oct 1 02:58 2 Broke Girls - S03E02 - 720p HDTV X264-DIMENSION.sfv
-rwxrwxrwx 1 root root 4275 Oct 1 02:58 2 Broke Girls - S03E02 - 720p HDTV X264-DIMENSION.srr
-rwxrwxrwx 1 sickbear users 45113 Oct 15 04:07 2 Broke Girls - S03E02 - 720p HDTV X264-DIMENSION.tbn
-rwxrwxrwx 1 root root 374 Oct 8 03:32 2 Broke Girls - S03E03 - 720p HDTV X264-DIMENSION.1.nfo
-rwxrwxrwx 1 root root 108 Oct 14 2010 2 Broke Girls - S03E03 - 720p HDTV X264-DIMENSION.1.url
-rwxrwxrwx 1 root root 639398686 Oct 7 16:26 2 Broke Girls - S03E03 - 720p HDTV X264-DIMENSION.mkv
-rwxrwxrwx 1 root root 374 Oct 8 03:00 2 Broke Girls - S03E03 - 720p HDTV X264-DIMENSION.nfo
-rwxrwxrwx 1 sickbear users 17704 Oct 15 04:07 2 Broke Girls - S03E03 - 720p HDTV X264-DIMENSION.tbn
-rwxrwxrwx 1 root root 125 Feb 2 2011 2 Broke Girls - S03E03 - 720p HDTV X264-DIMENSION.url
-rwxrwxrwx 1 root root 327 Oct 15 03:11 2 Broke Girls - S03E04 - 720p HDTV X264-DIMENSION.nfo
-rwxrwxrwx 1 root root 784 Oct 15 02:40 2 Broke Girls - S03E04 - 720p HDTV X264-DIMENSION.sfv
-rwxrwxrwx 1 root root 3834 Oct 15 02:40 2 Broke Girls - S03E04 - 720p HDTV X264-DIMENSION.srr
-rwxrwxrwx 1 sickbear users 80307 Oct 15 04:07 2 Broke Girls - S03E04 - 720p HDTV X264-DIMENSION.tbn
-rwxrwxrwx 1 root root 640264727 Oct 21 13:52 2 Broke Girls - S03E05 - 720p HDTV X264-DIMENSION.mkv
-rwxrwxrwx 1 root root 274 Oct 22 02:46 2 Broke Girls - S03E05 - 720p HDTV X264-DIMENSION.nfo
-rwxrwxrwx 1 root root 728 Oct 22 02:38 2 Broke Girls - S03E05 - 720p HDTV X264-DIMENSION.sfv
-rwxrwxrwx 1 root root 23462 Oct 22 02:38 2 Broke Girls - S03E05 - 720p HDTV X264-DIMENSION.srr
-rwxrwxrwx 1 sickbear users 35883 Oct 22 03:39 2 Broke Girls - S03E05 - 720p HDTV X264-DIMENSION.tbn
JSNAS>

As expected, still no joy.

So I log into Synology web interface and move Episode 5 to upper directory via the File Station app (which is nothing special... just a Synology Explorer app).

JSNAS> ls -la
drwxrwxrwx 4 root root 4096 Oct 22 22:24 .
drwxrwxrwx 24 admin users 4096 Oct 8 22:28 ..
-rwxrwxrwx 1 admin users 669762819 Oct 14 13:20 2 Broke Girls - S03E04 - 720p HDTV X264-DIMENSION.mkv
-rwxrwxrwx 1 sickbear users 2157 Oct 16 03:42 2 Broke Girls - S03E04 - 720p HDTV X264-DIMENSION.nfo
-rwxrwxrwx 1 sickbear users 80307 Oct 16 03:42 2 Broke Girls - S03E04 - 720p HDTV X264-DIMENSION.tbn
-rwxrwxrwx 1 root root 640264727 Oct 21 13:52 2 Broke Girls - S03E05 - 720p HDTV X264-DIMENSION.mkv
drwxrwxrwx 2 root users 4096 Oct 15 21:20 @eaDir
drwxrwxrwx 2 root root 4096 Oct 22 22:24 Season 3
-rwxrwxrwx 1 root root 0 Oct 15 21:22 cd
-rwxrwxrwx 1 sickbear users 768027 Oct 15 04:06 fanart.jpg
-rwxrwxrwx 1 sickbear users 497660 Oct 15 04:06 folder.jpg
-rwxrwxrwx 1 root root 0 Oct 15 21:22 ls
-rwxrwxrwx 1 sickbear users 184155 Oct 15 04:06 season01.tbn
-rwxrwxrwx 1 sickbear users 239058 Oct 15 04:07 season02.tbn
-rwxrwxrwx 1 sickbear users 65961 Oct 15 04:07 season03.tbn
-rwxrwxrwx 1 sickbear users 1697 Oct 15 04:07 tvshow.nfo
JSNAS>

STILL 777 permissions and STILL root/root as user/group level permissions. And hey presto it comes up on the TV fine now...

Very bizzare! ???
User avatar
sander
Release Testers
Release Testers
Posts: 9429
Joined: January 22nd, 2008, 2:22 pm

Re: Sabnzbd permissions(?) for downloaded files

Post by sander »

Bizarre indeed. No idea. Do you use Samba, or some other protocol to share your files.

And: if SAB puts the file there, and you reboot your Synology, does it then appear on your TV ... If so, it's caching thing in your Synology.
Post Reply