Auto cache issues

Issue description:

Logs:

(apologies for the edit but accidentally got some wires crossed)
Having an issue with the caching - it is removing what seems to be perfectly good files as if they are no longer associated but I am able to play them perfectly fine through both Navidrome itself and the Symfonium client

Upload description: VikingSchism

Additional information:

 
I’m having an issue with caching of files, whereby the cached files seem to get cleaned as if the track had been removed from the server (they haven’t been)
This has led to the same files being downloaded and then wiped and then downloaded again (auto-rules)
 

Reproduction steps:

 
Using Navidrome as source
On recent update
Cached files are being repeatedly cleaned despite being present on the server and playable
 

Media provider:

Subsonic

Screenshots:

     

I will need a lot more details about what files and what auto rules.

Files downloaded via auto rules but no more in a rule are removed that’s normal.

Rule is presence in a playlist, and the tracks are still present in said playlist
The auto-rule is triggering to redownload them after they get removed becuase of this

What kind of playlist? How are they created, what settings for the rule?

The playlist is a standard playlist (not a smart one) and the rule is simply to cache everything in the playlist

Imported from Navidrome? Created then pushed ? Read only ? Locked to provider ? … Where the files moved at some point or retaged after the creations of the playlists ?

Playlist was created in Symfonium - not sure if I ever pushed to the provider
The tracks that I’m seeing have not been moved or retagged since adding to the playlist as far as I’m aware

Did you update Navidrome to 0.55.x after the creation of the playlist ?

You can try to remove those songs from the playlist and add them again to workaround it should work.

Haven’t updated yet, though I guess I might as well

I’ll try that, though it’s a lot of songs (in the hundreds)

The only explanation would be that the filepath of the media have changed and so Symfonium no more matches the songs.

We need to figure out why it happened to see what kind of fix I need.

I’m certain the filepath hasn’t changed - I haven’t moved the files or changed anything
It all seemed to be working fine yesterday and then all of a sudden half of my playlist needs redownloading and then they get wiped and start redownloading again
I’ve seen that this happens when I press the cleanup button as well - and this does not affect files which I’ve permanently cached
I have since upgraded to Navidrome 0.55 but have not had time to experiment with the removing and readding strategy - I may try playing around with creating a new playlist with the files I’ve observed having issues and see what that does
I can observe that it is only happening with auto-cached files (artist, playlist etc)
I can also observe that the cache indicator icon doesn’t appear to show on these tracks even after apparently being downloaded from what I can see (observing them downloading and finishing in the download queue and then checking the playlist and not seeing the icon) - it is showing on some, and those seem to be the ones that aren’t getting wiped

As an update, creating a new playlist with known problem tracks and setting an auto-cache rule on there is seeming to work

Navidrome does not return always the real path.

I forget that in 0.54.1 he changed the paths to return disc number :frowning: I guess all those have disc number in tags.

Will readd the workaround for that :slight_smile:

2 Likes