gonic icon indicating copy to clipboard operation
gonic copied to clipboard

Artist artwork not working

Open ajmxco opened this issue 1 year ago • 11 comments

gonic version: v0.19.0

Have two separate installs of gonic, home-LAN and Oracle Cloud. With the Last.fm keys installed respectively in each instance and both linked, the home-LAN pulls in the artist artwork fine and all is good. However, the cloud install doesn't and the logs show below when clicking on an artist in the client app (same app for both instances):

response 200 GET /getAlbumList2stuff

response 200 GET /getArtist?stuff

response 200 GET /getArtistInfo2stuff

subsonic error code 10: couldn't find cover "ar-65": no cover found: cache miss

response 200 GET /getCoverArt?c=supersonic&f=xml&id=ar-65stuff

And the Artist artwork is blank in the client app. When switching the client app to the home-LAN instance the "subsonic error code 10: couldn't find cover "ar-65": no cover found: cache miss" doesn't happen and the artist art is pulled in correctly into the client app.

Both instances are using the same gonic configs except the music directory path.

Why is this error message occurring for the cloud instance and the artist art not pulling in?

Any help is greatly appreciated thank you.

ajmxco avatar Oct 18 '25 22:10 ajmxco

More info...

gonic is pulling in the artist description, just not the picture. I think "ar-65" maps to the ar-XX-XXX.jpegs in the cache directory correct? I see two ar*.jpeg's in the cache directory and those artist pictures do work (2 out of 100+). It looks like gonic isn't grabbing all the other ar*jpeg's and saving them in the cache directory; hence example "ar-65" is artist number 65.

ajmxco avatar Oct 19 '25 00:10 ajmxco

Last update for today...

On the client when enumerating the list of artists that pull in the artists artwork, the home-LAN works fine no problem but on the cloud gonic there's tons of these in the gonic logs:

Oct 19 00:31:56 instance-20251018-0411 gonic[1448]: 2025/10/19 00:31:56 subsonic error code 10: please provide an id parameter Oct 19 00:31:56 instance-20251018-0411 gonic[1448]: 2025/10/19 00:31:56 response 200 GET /getCoverArt?***stuff

ajmxco avatar Oct 19 '25 00:10 ajmxco

@ajmxco could you share the output of sqlite3 path/to/db -header -csv "select * from artist_info_cache" on the broken instance ?

sentriz avatar Oct 19 '25 16:10 sentriz

@sentriz - here's the output:

sqlite3 ./gonic.db -header -csv "select * from artist_info_cache"

Error: in prepare, no such table: artist_info_cache

ajmxco avatar Oct 19 '25 17:10 ajmxco

Here's the output from the working home-LAN instance:

sqlite3 ./gonic.db -header -csv "select * from artist_info_cache"

Error: in prepare, no such table: artist_info_cache

ajmxco avatar Oct 19 '25 17:10 ajmxco

sorry i meant sqlite3 path/to/db -header -csv "select * from artist_info"

sentriz avatar Oct 19 '25 17:10 sentriz

Working instance: sqlite3 ./gonic.db -header -csv "select * from artist_info"

Error: in prepare, no such table: artist_info

Non-working instance: sqlite3 ./gonic.db -header -csv "select * from artist_info"

Error: in prepare, no such table: artist_info

ajmxco avatar Oct 19 '25 17:10 ajmxco

sqlite3 ./gonic.db -header -csv ".tables"

album_artists artists settings
album_genres bookmarks track_artists
album_infos genres track_genres
album_ratings internet_radio_stations track_ratings
album_stars migrations track_stars
albums play_queues tracks
artist_appearances plays transcode_preferences
artist_infos podcast_episodes users
artist_ratings podcasts
artist_stars sessions

If you mean artist_infos then there's a lot of data in there and here's an example:

28,2025-10-18T13:40:02.522932035Z,2025-10-18T13:40:02.769170698Z,"Alfred McCoy Tyner (December 11, 1938 - March 6, 2020) was a jazz pianist from Philadelphia, Pennsylvania, known for his work with the John Coltrane Quartet and a long solo career.

Tyner was born in Philadelphia as the oldest of three children. He was encouraged to study piano by his mother. He finally began studying the piano at age 13 and within two years, music had become the focal point in his life. His early influences included Bud Powell, a Philadelphia neighbor. <a href=""https://www.last.fm/music/McCoy+Tyner"">Read more on Last.fm",22fe7b6f-af38-458e-87bd-8971e7a2912e,https://www.last.fm/music/McCoy+Tyner,"","Joe Henderson;Wayne Shorter;McCoy Tyner Trio;Lee Morgan;Andrew Hill","When Sunny Gets Blue;Search For Peace;We'll Be Together Again;Days Of Wine And Roses;Contemplation;Blues On The Corner;Satin Doll;Passion Dance;Four By Five;You Taught My Heart To Sing;Naima;After The Rain;Groove Waltz;Blue Monk;Three Flowers;For Heaven's Sake;She's Leaving Home;Autumn Leaves;Giant Steps;Star Eyes;'Round Midnight;A Prayer For My Family;Moment's Notice;Rebirth;Fly With the Wind;Effendi;Valley Of Life;A Night In Tunisia;Message From The Nile;Ebony Queen;I Mean You;There Is No Greater Love;Lonnie's Lament;Blue Bossa;Inception;Beautiful Love;Contemporary Focus;Rio;Speak Low;Afro Blue;Sahara;T 'N' A Blues;Beutiful Love;Impressions;Wave;Sama Layuca;Caravan;Lush Life;Crescent;The Wanderer"

ajmxco avatar Oct 19 '25 20:10 ajmxco

The working instance has the .jpg in the database entry for this same McCoy artist but the broken instance doesn't. Why doesn't broken the instance have this entry for the artist .jpg?

https://lastfm.freetls.fastly.net/i/u/ar0/28af3ffe1afbac8b035c84893a11809d.jpg

Here's the working instance with the last.fm's .jpg of the artist.

28,2025-10-16T19:39:03.465287226-07:00,2025-10-17T05:29:00.680832944-07:00,"Alfred McCoy Tyner (December 11, 1938 - March 6, 2020) was a jazz pianist from Philadelphia, Pennsylvania, known for his work with the John Coltrane Quartet and a long solo career.

Tyner was born in Philadelphia as the oldest of three children. He was encouraged to study piano by his mother. He finally began studying the piano at age 13 and within two years, music had become the focal point in his life. His early influences included Bud Powell, a Philadelphia neighbor. <a href=""https://www.last.fm/music/McCoy+Tyner"">Read more on Last.fm",22fe7b6f-af38-458e-87bd-8971e7a2912e,https://www.last.fm/music/McCoy+Tyner,https://lastfm.freetls.fastly.net/i/u/ar0/28af3ffe1afbac8b035c84893a11809d.jpg,"Wayne Shorter;Joe H

ajmxco avatar Oct 19 '25 20:10 ajmxco

hi @ajmxco can you try the cache entry for the one with no image? eg delete from artist_infos where id=<the artist id>

it looks like there was likely a network error the first time the cache was filled

sentriz avatar Oct 23 '25 15:10 sentriz

I ended up starting fresh with a new db and still had the same problem so I moved over to navidrome. I think this is a problem with this specific installation, not something with gonic since it's working on my LAN instance.

Closing ticket.

ajmxco avatar Oct 23 '25 18:10 ajmxco