Page 1 of 1

Covert art problems

PostPosted: Fri Jul 30, 2010 2:00 pm
by Gus
Dear all,

I am experiencing various problems with cover art not downloading. Here is an excerpt from my log:
Code: Select all
[7/30/10 3:55:51 PM CEST]   INFO   CoverArtBatchService   Looking up cover art for - The Red Hot Chili Pepper - Californication.
[7/30/10 3:55:51 PM CEST]   INFO   DiscogsSearchService   Found 0 cover image(s) at Discogs.com in 438 ms.
[7/30/10 3:55:51 PM CEST]   INFO   CoverArtBatchService   No image found.
[7/30/10 3:55:56 PM CEST]   WARN   CoverArtController   Failed to create thumbnail for /home/augustin/Music/Albums/Dark Moor - Shadowland/cover.jpg


When i look into the "Dark Moor" folder above, I notice that:
- i have a "cover.jpg" file
- its size is 0 byte
- its owner is root (unlike the rest of the folder, owned by my user account)

Any help, please?

PostPosted: Fri Jul 30, 2010 4:39 pm
by delcypher
Two points:

1. You're file is named/tagged wrong! It's "The Red hot chilli peppers" NOT "The red hot chilli pepper"

Try a search on discogs.org and you'll see that one fails and the other suceeds.

2. The fact the cover.jpg file is owned by root indicates you're running subsonic as root!

DON'T DO THAT! It's a disaster waiting to happen, subsonic does not need root privilidges. If you need to use a privilidged port (1-1024) then start subsonic on an un-prividged port as a NON-PRIVILIDGED USER and use iptables to do a redirect like so (assuming subsonic is running on port 4040 and you'd like connections to go to port 80)

Code: Select all
iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-ports 4040


Note this redirect will only work when external machines try to connect to you.

PostPosted: Sat Jul 31, 2010 9:43 am
by Gus
delcypher wrote:Two points:

1. You're file is named/tagged wrong! It's "The Red hot chilli peppers" NOT "The red hot chilli pepper"

Try a search on discogs.org and you'll see that one fails and the other suceeds.

Ok, I was planning to run MusicBrainz Picard on my mp3 collection once I got everything working with subsonic. I'll see if all the errors of that type can be linked to wrong names, but I doubt it.

2. The fact the cover.jpg file is owned by root indicates you're running subsonic as root!

DON'T DO THAT! It's a disaster waiting to happen, subsonic does not need root privilidges. If you need to use a privilidged port (1-1024) then start subsonic on an un-prividged port as a NON-PRIVILIDGED USER and use iptables to do a redirect like so (assuming subsonic is running on port 4040 and you'd like connections to go to port 80)

Code: Select all
iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-ports 4040


Note this redirect will only work when external machines try to connect to you.

I don't think I did anything to run subsonic as root. I just installed it as per these instructions: http://www.subsonic.org/pages/installation.jsp#debian

How do I change that behaviour?

Thank you very much for your help!

PostPosted: Sun Aug 01, 2010 2:16 pm
by Gus
Please, anyone?

PostPosted: Sun Aug 01, 2010 2:42 pm
by delcypher
I don't use Ubuntu at the moment. But the .deb installer adds subsonic as a service which may quite likely run as root.

You can find out by running

Code: Select all
ps -o user,cmd -C java


The first column showns the username and the second column shows the command being run by that user. The -C will only display programs running called "java".

For example my ouput is:
Code: Select all
USER     CMD
dan      /usr/lib/jvm/java-6-openjdk/bin/java -Xmx100m -Dsubsonic.home=/var/subsonic -Dsubsonic.host=0.0.0.0 -Dsubsonic.port=4040 -Dsubsonic.contextPath=/ -Dsubsonic.defaultMusicFolder=/var/music -Dsubsonic.defaultPodcastFolder=/var/music/Podcast -Dsubsonic.defaultPlaylistFolder=/var/playlists -jar subsonic-booter-jar-with-dependencies.jar


As for changing this behaviour I'm not really an expert with Ubuntu but as far as I know it uses upstart to control applications to run at start up.

http://www.linux.com/archive/feature/125977?theme=print

I use the stand-alone version which I manually start as an unprivileged user.

PostPosted: Sun Aug 01, 2010 9:58 pm
by Gus
delcypher, thank you very much for all your help. I'll be trying that and see how it works.