Page 1 of 2

Download covert art problem

PostPosted: Thu Jan 30, 2014 4:32 pm
by HerrNilsson
Hi,

I have the following problem
Setup is Subsonic 4.9 running on a tomcat7 (Ubuntu 12.04.3 LTS)
Everything is working fine except downloading covers.

When i try to download the covers i get
java.io.FileNotFoundException: /mnt/spfnas03music/Sorted/Heavy Metal/P/Pantera (USA)/pantera-extreme_steel_plus-2001-pms/cover.jpg (Permission denied)

My etc/fstab
Code: Select all
//192.168.1.9/files/music /mnt/spfnas03music cifs username=username,password=password,iocharset=utf8,sec=ntlm  0  0


As you can see below the cover-files are created with read only.

subsonic@SPFAPP06:/mnt/spfnas03music/Sorted/Death Metal/C/Cannibal Corpse (USA)$ ls -alh
total 0
drwxrwxrwx 52 3516924404 3516924417 0 Dec 16 21:00 .
drwxrwxrwx 7 1025 users 0 Dec 16 21:09 ..
drwxrwxrwx 3 1025 users 0 Dec 16 21:00 Cannibal_Corpse-15_Year_Killing_Spree-3CD-ltd.ed.-2003-FFF

subsonic@SPFAPP06:/mnt/spfnas03music/Sorted/Death Metal/C/Cannibal Corpse (USA)/Cannibal_Corpse-Vile-(Remastered)-2007-MP3$ ls -ahl
total 53M
drwxrwxrwx 2 1025 users 0 Jan 30 11:31 .
drwxrwxrwx 52 3516924404 3516924417 0 Dec 16 21:00 ..
-rwxrwxrwx 1 1025 users 447 Jan 12 2012 00-cannibal_corpse-vile-(remastered)-2007-mp3.m3u
-rwxrwxrwx 1 1025 users 5.7K Jan 12 2012 00-cannibal_corpse-vile-(remastered)-2007-mp3.nfo
-rwxrwxrwx 1 1025 users 557 Jan 12 2012 00-cannibal_corpse-vile-(remastered)-2007-mp3.sfv
-rwxrwxrwx 1 1025 users 4.6M Jan 12 2012 01-cannibal_corpse-devoured_by_vermin.mp3
-rwxrwxrwx 1 1025 users 4.4M Jan 12 2012 02-cannibal_corpse-mummified_in_barbed_wire.mp3
-rwxrwxrwx 1 1025 users 5.7M Jan 12 2012 03-cannibal_corpse-perverse_suffering.mp3
-rwxrwxrwx 1 1025 users 5.5M Jan 12 2012 04-cannibal_corpse-disfigured.mp3
-rwxrwxrwx 1 1025 users 6.1M Jan 12 2012 05-cannibal_corpse-bloodlands.mp3
-rwxrwxrwx 1 1025 users 2.5M Jan 12 2012 06-cannibal_corpse-puncture_wound_massacre.mp3
-rwxrwxrwx 1 1025 users 3.2M Jan 12 2012 07-cannibal_corpse-relentless_beating.mp3
-rwxrwxrwx 1 1025 users 4.3M Jan 12 2012 08-cannibal_corpse-absolute_hatred.mp3
-rwxrwxrwx 1 1025 users 5.1M Jan 12 2012 09-cannibal_corpse-eaten_from_inside.mp3
-rwxrwxrwx 1 1025 users 5.1M Jan 12 2012 10-cannibal_corpse-orgasm_through_torture.mp3
-rwxrwxrwx 1 1025 users 6.3M Jan 12 2012 11-cannibal_corpse-monolith.mp3
-rw-r--r-- 1 1026 users 0 Jan 30 11:21 cover.backup.png
-rw-r--r-- 1 1026 users 0 Jan 30 11:31 cover.png


Thanks

Re: Download covert art problem

PostPosted: Thu Jan 30, 2014 4:54 pm
by sir2u
Can you try a chmod 755 on the cover.jpg file?

Re: Download covert art problem

PostPosted: Thu Jan 30, 2014 5:05 pm
by HerrNilsson
Yepp.
Then the permission gets right. But when i download a new cover it creates a new cover.jpg and renames the other one to cover.backup.jpg.
The new one with just read permissions.

Re: Download covert art problem

PostPosted: Thu Jan 30, 2014 5:23 pm
by sir2u
what are you using to download the album art?

Re: Download covert art problem

PostPosted: Thu Jan 30, 2014 5:28 pm
by sir2u
I just noticed that the file size on the objects is 0. What do the permissions look like on the Windows side? Try giving "Everyone" read and execute permissions on the Windows server.

Re: Download covert art problem

PostPosted: Thu Jan 30, 2014 5:29 pm
by HerrNilsson
I click on an album -> change and then i suppose it uses google image search. So i just click the image i want.
Also if i try to enter a link i get the same error message.

Re: Download covert art problem

PostPosted: Thu Jan 30, 2014 5:31 pm
by HerrNilsson
sir2u wrote:I just noticed that the file size on the objects is 0. What do the permissions look like on the Windows side? Try giving "Everyone" read and execute permissions on the Windows server.


Yeah it's 0 byte.
I have Everyone and Guest full access.

Re: Download covert art problem

PostPosted: Thu Jan 30, 2014 5:35 pm
by HerrNilsson
This wasnt a problem with my old subsonic installation. Happened when i installed a new machine with tomcat and so on.

Re: Download covert art problem

PostPosted: Thu Jan 30, 2014 7:17 pm
by sir2u
Ok... there was some confusion on my part about how the album art was being downloaded. I understand the problem more now and I'm able to reproduce it on my own installation. Give me some time to figure it out.

Re: Download covert art problem

PostPosted: Thu Jan 30, 2014 7:20 pm
by HerrNilsson
Awesome! Thank you!

Re: Download covert art problem

PostPosted: Thu Jan 30, 2014 9:06 pm
by sir2u
Ok... find the gid for tomcat. On my system, the gid is 111.

username@servername:~$ sudo cat /etc/group
tomcat6:x:111:

Take that info and add this to the string used to mount the share:

gid=111,dir_mode=0775,file_mode=0775

So now my entry looks like:
//192.168.1.106/mp3 /mnt/mp3 cifs credentials=/root/.ntfs,_netdev,rw,nounix,gid=111,dir_mode=0775,file_mode=0775,iocharset=utf8, 0 0

Umount then remount the share and try again (reboot if you're lazy like me).

Re: Download covert art problem

PostPosted: Thu Jan 30, 2014 9:27 pm
by HerrNilsson
I added the entry and rebooted. Same problem i'm afraid.
Used gid 114

subsonic:x:1000:
lpadmin:x:111:subsonic
sambashare:x:112:subsonic
ssl-cert:x:113:
tomcat7:x:114:

//192.168.1.9/files/music /mnt/spfnas03music cifs username=Share,password, password,gid=114,dir_mode=0775,file_mode=0775,iocharset=utf8,sec=ntlm 0 0

Sent from my GT-I9505 using Tapatalk

Re: Download covert art problem

PostPosted: Thu Jan 30, 2014 9:30 pm
by sir2u
What do the linux and windows permissions look like at the directory and folder levels now?

Re: Download covert art problem

PostPosted: Thu Jan 30, 2014 9:36 pm
by HerrNilsson
subsonic@SPFAPP06:/mnt/spfnas03music/Sorted/Death Metal/C/Cannibal Corpse (USA)/Cannibal_Corpse-Vile-(Remastered)-2007-MP3$ ls -lah
total 53M
drwxrwxrwx 2 1025 tomcat7 0 Jan 30 18:36 .
drwxrwxrwx 52 3516924404 tomcat7 0 Dec 16 21:00 ..
----rwx--- 1 1025 tomcat7 447 Jan 12 2012 00-cannibal_corpse-vile-(remastered)-2007-mp3.m3u
----rwx--- 1 1025 tomcat7 5.7K Jan 12 2012 00-cannibal_corpse-vile-(remastered)-2007-mp3.nfo
----rwx--- 1 1025 tomcat7 557 Jan 12 2012 00-cannibal_corpse-vile-(remastered)-2007-mp3.sfv
----rwx--- 1 1025 tomcat7 4.6M Jan 12 2012 01-cannibal_corpse-devoured_by_vermin.mp3
----rwx--- 1 1025 tomcat7 4.4M Jan 12 2012 02-cannibal_corpse-mummified_in_barbed_wire.mp3
----rwx--- 1 1025 tomcat7 5.7M Jan 12 2012 03-cannibal_corpse-perverse_suffering.mp3
----rwx--- 1 1025 tomcat7 5.5M Jan 12 2012 04-cannibal_corpse-disfigured.mp3
----rwx--- 1 1025 tomcat7 6.1M Jan 12 2012 05-cannibal_corpse-bloodlands.mp3
----rwx--- 1 1025 tomcat7 2.5M Jan 12 2012 06-cannibal_corpse-puncture_wound_massacre.mp3
----rwx--- 1 1025 tomcat7 3.2M Jan 12 2012 07-cannibal_corpse-relentless_beating.mp3
----rwx--- 1 1025 tomcat7 4.3M Jan 12 2012 08-cannibal_corpse-absolute_hatred.mp3
----rwx--- 1 1025 tomcat7 5.1M Jan 12 2012 09-cannibal_corpse-eaten_from_inside.mp3
----rwx--- 1 1025 tomcat7 5.1M Jan 12 2012 10-cannibal_corpse-orgasm_through_torture.mp3
----rwx--- 1 1025 tomcat7 6.3M Jan 12 2012 11-cannibal_corpse-monolith.mp3
----rwx--- 1 1025 tomcat7 0 Jan 30 18:04 cover.backup.jpg
-rwx------ 1 1026 tomcat7 0 Jan 30 18:36 cover.jpg
----rwx--- 1 1025 tomcat7 0 Jan 30 11:31 cover.png
subsonic@SPFAPP06:/mnt/spfnas03music/Sorted/Death Metal/C/Cannibal Corpse (USA)/Cannibal_Corpse-Vile-(Remastered)-2007-MP3$

Sent from my GT-I9505 using Tapatalk

Re: Download covert art problem

PostPosted: Thu Jan 30, 2014 9:37 pm
by HerrNilsson
And The folders

subsonic@SPFAPP06:/mnt/spfnas03music/Sorted/Death Metal/C/Cannibal Corpse (USA)$ ls -lah
total 0
drwxrwxrwx 52 3516924404 tomcat7 0 Dec 16 21:00 .
drwxrwxrwx 7 1025 tomcat7 0 Dec 16 21:09 ..
drwxrwxrwx 3 1025 tomcat7 0 Dec 16 21:00 Cannibal_Corpse-15_Year_Killing_Spree-3CD-ltd.ed.-2003-FFF
drwxrwxrwx 3 1025 tomcat7 0 Dec 16 21:00 Cannibal_Corpse-Bloodthirst-1999-dupe_int
drwxrwxrwx 2 1025 tomcat7 0 Mar 8 2013 Cannibal_Corpse-Bloodthirst-1999-gB
drwxrwxrwx 2 1025 tomcat7 0 Mar 8 2013 Cannibal_Corpse-Born_In_A_Casket-Vinyl-1991-ss

Sent from my GT-I9505 using Tapatalk