Can't Update Album Art

General discussions.

Moderator: moderators

Can't Update Album Art

Postby c0c0c0 » Sun Jan 04, 2015 8:55 pm

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?
c0c0c0
 
Posts: 11
Joined: Sat Jan 25, 2014 7:27 pm

Re: Can't Update Album Art

Postby c0c0c0 » Mon Jan 12, 2015 3:51 pm

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?
c0c0c0
 
Posts: 11
Joined: Sat Jan 25, 2014 7:27 pm

Re: Can't Update Album Art

Postby Exrace » Wed Jan 14, 2015 4:39 am

Have you tried making the user running subsonic the owner for the directory using chown?
Exrace
 
Posts: 218
Joined: Thu Nov 11, 2010 5:02 am

Re: Can't Update Album Art

Postby c0c0c0 » Tue Jan 20, 2015 8:25 pm

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?
c0c0c0
 
Posts: 11
Joined: Sat Jan 25, 2014 7:27 pm

Re: Can't Update Album Art

Postby Exrace » Sat Jan 24, 2015 1:45 pm

Take a look in your log file and see what errors are hitting. Might be some clues in the log.
Exrace
 
Posts: 218
Joined: Thu Nov 11, 2010 5:02 am

Re: Can't Update Album Art

Postby c0c0c0 » Mon Jan 26, 2015 3:21 pm

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?
c0c0c0
 
Posts: 11
Joined: Sat Jan 25, 2014 7:27 pm


Return to General

Who is online

Users browsing this forum: No registered users and 12 guests