Covert art problems

Need help? Post your questions here.

Moderator: moderators

Covert art problems

Postby Gus » Fri Jul 30, 2010 2:00 pm

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?
Running Subsonic 4.0.1 on Ubuntu Lucid Lynx 64-bits.
Gus
 
Posts: 8
Joined: Tue Jul 20, 2010 1:06 pm

Postby delcypher » Fri Jul 30, 2010 4:39 pm

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.
delcypher
 
Posts: 109
Joined: Tue Jun 01, 2010 10:39 am

Postby Gus » Sat Jul 31, 2010 9:43 am

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!
Running Subsonic 4.0.1 on Ubuntu Lucid Lynx 64-bits.
Gus
 
Posts: 8
Joined: Tue Jul 20, 2010 1:06 pm

Postby Gus » Sun Aug 01, 2010 2:16 pm

Please, anyone?
Running Subsonic 4.0.1 on Ubuntu Lucid Lynx 64-bits.
Gus
 
Posts: 8
Joined: Tue Jul 20, 2010 1:06 pm

Postby delcypher » Sun Aug 01, 2010 2:42 pm

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.
delcypher
 
Posts: 109
Joined: Tue Jun 01, 2010 10:39 am

Postby Gus » Sun Aug 01, 2010 9:58 pm

delcypher, thank you very much for all your help. I'll be trying that and see how it works.
Running Subsonic 4.0.1 on Ubuntu Lucid Lynx 64-bits.
Gus
 
Posts: 8
Joined: Tue Jul 20, 2010 1:06 pm


Return to Help

Who is online

Users browsing this forum: No registered users and 37 guests