Page 1 of 1

Albums disappear after I add cover art

PostPosted: Fri Jan 31, 2014 6:38 pm
by boognish43
It doesnt happen to all albums but for some reason when I add cover art to some folders the album disappears from existence in subsonic. This happens using the change cover tool in the web browser and also when I add a cover.jpg to the folder manually. any ideas?

Re: Albums disappear after I add cover art

PostPosted: Thu Jun 19, 2014 5:53 am
by faka
Hey I got the same exact thing happening to me.

I am using 4.8 (build 3434) on a Windows system. I usually use an Android client for home use but today decided to mess with it from work and use the web interface. As I was checking out all the options available I was totally stoked about the download cover option. So I started to add covers for quite a few albums that didn't have any. Later when I went to look at what I added I noticed the albums I added covers for are no longer listed in subsonic. Not just the browser but also the android clients.

In the actual music folder dir the missing albums are still there. I noticed it leaves a cover.jpg in the folders when adding covers, so I decided to delete a few of those jpgs and rescan to see if it finds the missing albums. It is going to take awhile but I will report back if it fixes or not.

Just curious has this happened to anyone else?

Re: Albums disappear after I add cover art

PostPosted: Thu Jun 19, 2014 6:15 am
by faka
Well rescanning doesn't seem to find the albums even after removing the folder.jpg. Open to any suggestions

Re: Albums disappear after I add cover art

PostPosted: Tue Oct 28, 2014 5:17 am
by boognish43
This keeps happening and is very annoying... wish i could find a solution

Re: Albums disappear after I add cover art

PostPosted: Wed Nov 12, 2014 4:27 pm
by jefflunt
Same happens to me. Using 5.0 (build 4100). If I go to the home page, then back to the artist the album will show up again, but the cover art isn't applied. This is when I try to update the cover art via the "Change" -> image search -> "Image successfully downloaded" route.

All I see in the log is:
Code: Select all
[2014-11-12 09:58:40,027] INFO CoverArtService - Backed up old image file to /home/subsonic/media/music/David Bowie/Earthling/cover.backup.jpg


Obviously substitute the album/artist name with the album in your case.

Tried on multiple artists/albums, including some with and without any spaces or special characters in the name. Ex: /home/subsonic/media/music/Beck/Odelay
No luck here either.

Checked my subsonic config, as well as the running process via ps, and everything looks okay, including folder permissions:

Code: Select all
# ps aux | grep java
subsonic  5854 19.8  4.4 2007860 360092 pts/0  Sl   10:21   0:33 java -Xmx350m -Dsubsonic.home=/var/subsonic -Dsubsonic.host=0.0.0.0 -Dsubsonic.port=4040 -Dsubsonic.httpsPort=0 -Dsubsonic.contextPath=/ -Dsubsonic.defaultMusicFolder=/home/subsonic/media/music -Dsubsonic.defaultPodcastFolder=/home/subsonic/media/podcasts -Dsubsonic.defaultPlaylistFolder=/home/subsonic/media/playlists -Djava.awt.headless=true -verbose:gc -jar subsonic-booter-jar-with-dependencies.jar


Confirmed that the file is actually getting written to disk, as when I download album art via the UI, the cover.jpg file size and timestamp change, so it doesn't appear to be a permission issue.

Yesterday, also tried changing my subsonic config to run as the root user instead of the subsonic user. Confirmed again that the file size and timestamps of the cover.jpg files were being change (except their ownership was being set to root:root), yet still not updating in the UI.

Couldn't get the album art to update, even after:
1. Remove /var/subsonic/thumbs folder
2. Restart subsonic
3. Re-scanned media files

The album still shows up under the text list of albums, even if the thumbnail image isn't working, but defeats the purpose of the cover art feature if it doesn't function.

On the off-chance that subsonic's download wasn't working, or was triggering some kind of image hot-link issue (where it looks like you download an image, but you get an error page instead), I downloaded an album art image by hand, confirmed it was on my local computer, then SCPed it into the destination folder. Still no album art change.

Re: Albums disappear after I add cover art

PostPosted: Wed Nov 12, 2014 4:32 pm
by jefflunt
Wait, it looks like this might be a browser caching issue. I can't believe I didn't try this sooner.

When I'm in Chrome (my default browser) I see one set of album images.

When I'm in Firefox (my backup browser, but not used often), I see a different set of album images.

When I clear just the cached image history from Chrome and reload my page, the album covers that I've been downloading over the last few days seem to appear, and the list of album images suddenly matches what I see in Firefox.

Re: Albums disappear after I add cover art

PostPosted: Wed Nov 12, 2014 4:38 pm
by jefflunt
Yep, this is totally a caching issue, at least in my case.

When I do everything in Firefox, and I force a reload w/no cache after updating an album image, then everything works as expected.

I wonder if it would be possible to help the browser a bit by changing the URL of the album image each time it's changed, so that an updated image would be at a new URL. But at least I have a workaround now.

Re: Albums disappear after I add cover art

PostPosted: Wed Nov 12, 2014 5:00 pm
by jefflunt
Saw the same behavior when I switch to another browser (Safari), and over the the mobile client on Android.

It's all caching related. The functionality of updating the album art, at least on the back-end, is working as expected. This is all about the UI layer.

Re: Albums disappear after I add cover art

PostPosted: Sat Nov 15, 2014 5:12 pm
by jefflunt
BTW, I most often use Jamstash (an HTML5 player for subsonic) when I'm on my desktop. It doesn't seem to have this caching problem.