Roon fails to import last track of new FLAC albums (ref#60E2P3)

What’s happening?

· Other

How can we help?

· I'm having trouble adding music to my library

Other options

· Other

Describe the issue

Whenever I add a new FLAC album to my library, Roon is detecting the album and importing all tracks apart from the last one which it always says is corrupt with zero bytes in length (you can see this information from viewing the 'Go to folder...' option for the album). In order to get Roon to import all of the tracks and therefore recognise the album is by renaming the folder containing the tracks and then renaming in back to what it was originally. This seems to force Roon to re-analyse the folder and it imports the missing track.
I am guessing that the issue might be because Roon is analysing the FLAC files as they are being copied across to the monitored library folder before they have all been copied fully.
This has only been a problem for the past release or two though and I have imported new albums in the same way for many years without any issues so something seems to have changed.

Describe your network setup

Mac mini M4 Roon server with library files on a USB HDD

I have just imported another album which had the same problem apart it was track 1 that was marked as corrupt and not the last track on the album as before.

1 Like

This could indeed be the issue here. Perhaps you could stop Roon Server before adding albums to the watched folder, and restart Roon Server after all files are copied.

2 Likes

this has been my solution as well. I’ve experienced the same issue since the last update or so, and quitting Roon Server before I import has “solved” the corrupted file issue.

1 Like

I could do that but it’s more than a little inconvenient as I’m adding albums all of the time and often when I’m listening to music…

This has never been an issue before and I’ve been using Roon for years and years so something has definitely changed…

Hi @Chris_Ellison ,

Can you reproduce this issue, note the exact local time + date + track that had the zero bytes in length and let us know here? We will activate diagnostics and check logs for clues to see if there’s anything interesting noted there, thanks!

I few albums imported without issue yesterday and then today I’ve had the same issue at 10:51 local time on the 7th Feb.

The file name of the 0 bytes and ‘Corrupt’ track is: ‘Saint Etienne - The Night [2024 qobuz Digital] - 8 - No Rush.flac’.

The album actually has 14 tracks so not the first or last track this time.

Hi @Chris_Ellison,
Thanks for getting us that timestamp. In your logs the skipped file is shown as corrupt and that’s why it was skipped.

02/07 10:51:08 Info: [Broker:Media] Attach skipped file SkippedFile[afdaeb6f-e366-9f35-1e6b-f8db20836a2b::Saint Etienne/Saint Etienne - 2024 - The Night [2024 qobuz Digital]/Saint Etienne - The Night [2024 qobuz Digital] - 8 - No Rush.flac, Reason=corrupt_file] to folder LibraryFolder[afdaeb6f-e366-9f35-1e6b-f8db20836a2b::Saint Etienne/Saint Etienne - 2024 - The Night [2024 qobuz Digital]]

Can you share that specific file No Rush.flac with us? You can upload it to this link.

I can share it but all I did was rename the album folder within macOS by adding a character, waited a few seconds and then renamed it back and Roon automatically updated the album with the missing track that was no longer listed as corrupt. The track also plays fine.

I assume that Roon is scanning the file before it has been fully copied across and is therefore corrupt at that point in time.

Hi @Chris_Ellison,

That might be the case. You could confirm it by forcing a rescan from the Roon settings → Storage page after the files finish transferring.

Please try that next time you add a new album and let us know what happens.

Hi @Daniel - I had a couple of albums with a corrupted file when I added them an hour or so ago so tried running the Force Rescan as suggested.

This didn’t fix the albums which both still showed a corrupted file after the process had finished. I then renamed the two folders containing the album tracks by just adding another character and then renamed them back to the original name which triggered a rescan of the files and this fixed both albums.

Hey @Chris_Ellison,

Thanks for the follow-up!

Oddly enough, we haven’t made any changes to our analysis mechanism. What is your background audio analysis speed set to? If you change this setting at all, does it affect your importing?

With that, are you by chance importing your files from a different location? What happens if you test out importing from a few different locations?

We’re seeing some errors around the file tags as well, have you incorporated any additional file tagging prior to importing into your storage location?

We’ll be on standby for your response! :+1:

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.