Page 1 of 1
Can't Update Album Art

Posted:
Sun Jan 04, 2015 8:55 pm
by c0c0c0
I've got Subsonic running on an Ubuntu 14.04 server, accessing music files on another Ubunto server over a Samba share mounted in fstab. With Subsonic running under it's own system account (not root), everything works fine until I try to update album art, at which point I get this:
java.io.FileNotFoundException: /mnt/path/to/music/cover.jpg (Permission denied)
What's strange is that, when I look at the folder, "/mnt/path/to/music/cover.jpg" actually *did* upload. I just can't see it. And it's a zero byte file.
Running Subsonic as the root account, I don't get this error. SU'd as the "subsonic" account, I have full rw access to this folder.
Any ideas?
Re: Can't Update Album Art

Posted:
Mon Jan 12, 2015 3:51 pm
by c0c0c0
One other thing I noticed was that the 0 byte files are owned by "nobody". I thought that might be related to the accout I've got assigned to the share, but I changed that to "subsonic" and tried again. The time updated, but not the owner.
Does anyone have this working as anyone other than root?
Re: Can't Update Album Art

Posted:
Wed Jan 14, 2015 4:39 am
by Exrace
Have you tried making the user running subsonic the owner for the directory using chown?
Re: Can't Update Album Art

Posted:
Tue Jan 20, 2015 8:25 pm
by c0c0c0
I have. The zero-byte file it's creating on the attempt is owned by user "nobody". Maybe if I knew where that was coming from, I'd have this licked.
Edit: Okay - I've got the downloaded zero-byte file belonging to user "subsonic" now. But it's still zero-byte. Maybe it's because it's not the same "subsonic" account. Do I need an LDAP server to make this work?
Re: Can't Update Album Art

Posted:
Sat Jan 24, 2015 1:45 pm
by Exrace
Take a look in your log file and see what errors are hitting. Might be some clues in the log.
Re: Can't Update Album Art

Posted:
Mon Jan 26, 2015 3:21 pm
by c0c0c0
Two erros (followed by massive stack traces):
javax.imageio.IIOException: Incompatible color conversion
>> I suspect this is not the problem.
java.io.FileNotFoundException: /mnt/music/Rotation/Cat2/blah/blah - blah/cover.jpg (Permission denied)
>> I suspect this IS the problem.
So, back to the architecture:
Subsonic is on "server a", a linux server.
Music files are on a share, on "server b", another linux server.
Subsonic is running under a "subsonic" local account. The files on server b belong to another local account called "subsonic". The guest account for the SAMBA share is "subsonic". The share is set to "writable".
Am I missing anything obvious?