Page 1 of 2

Subsonic 6.1 - Losing tracks after editing tags

PostPosted: Wed May 31, 2017 2:24 am
by chuckles
An album in my collection had a problem with it's title. I used a tag editor to fix it. I ran a scan of media folders and I went back to see my changes to the album in Subsonic, the title was there but all the tracks were gone. The only way I could get them back was to delete the database and scan a new one.

Anyone else seeing this? Any thoughts?

Re: Subsonic 6.1 - Losing tracks after editing tags

PostPosted: Tue Jul 18, 2017 3:21 am
by tmwsiy
Subsonic is horrible at handling album name changes and is very frustrating when this happens.

Sometimes:
> I am able to move the renamed folder to somewhere that Subsonic doesn't index.
> Run a scan
> Clean database
> Add renamed album/folder back to correct location
> Scan again

This sometimes fixes the problem.
Other times, I pull my hair out, smash my computer against the wall, curse wildly, delete database, and start from scratch.

Re: Subsonic 6.1 - Losing tracks after editing tags

PostPosted: Tue Jul 18, 2017 4:28 am
by chuckles
I have found that if I change the date modified of the folder, Subsonic will treat the album as new and it doesn't disappear.

Re: Subsonic 6.1 - Losing tracks after editing tags

PostPosted: Sat Jul 29, 2017 11:14 am
by mason
I have a similar issue with 6.1.1 see viewtopic.php?f=2&t=17158

TL;DR old refreshed albums doesn't get properly updated and won't show up or at least only some tracks. solution is to remove album, scan, clean, readd, scan again... but it's pretty anoying also it's loosing all the stats :/

Re: Subsonic 6.1 - Losing tracks after editing tags

PostPosted: Tue Aug 29, 2017 3:37 pm
by wendigo
mason wrote:I have a similar issue with 6.1.1 see viewtopic.php?f=2&t=17158

TL;DR old refreshed albums doesn't get properly updated and won't show up or at least only some tracks. solution is to remove album, scan, clean, readd, scan again... but it's pretty anoying also it's loosing all the stats :/


Simpler solution is to just add/change/remove any file in that subfolder, e.g. renaming cover.jpg to front.jpg.

Re: Subsonic 6.1 - Losing tracks after editing tags

PostPosted: Sat Sep 23, 2017 2:20 pm
by Wolke
wendigo wrote:
mason wrote:I have a similar issue with 6.1.1 see viewtopic.php?f=2&t=17158

TL;DR old refreshed albums doesn't get properly updated and won't show up or at least only some tracks. solution is to remove album, scan, clean, readd, scan again... but it's pretty anoying also it's loosing all the stats :/


Simpler solution is to just add/change/remove any file in that subfolder, e.g. renaming cover.jpg to front.jpg.


Thank you so much! That saved me a lot of work. Last time I had this problem, I completely resetup the server. Your solution works like a charm. :D

Re: Subsonic 6.1 - Losing tracks after editing tags

PostPosted: Mon Oct 02, 2017 8:17 pm
by Alsaya
That's a nice Workaround but now I've to check every Folder, a lot of uselss work
Please Sindre.-..

Re: Subsonic 6.1 - Losing tracks after editing tags

PostPosted: Fri Oct 20, 2017 9:30 am
by lonesomerider
Wolke wrote:
wendigo wrote:
mason wrote:I have a similar issue with 6.1.1 see viewtopic.php?f=2&t=17158

TL;DR old refreshed albums doesn't get properly updated and won't show up or at least only some tracks. solution is to remove album, scan, clean, readd, scan again... but it's pretty anoying also it's loosing all the stats :/


Simpler solution is to just add/change/remove any file in that subfolder, e.g. renaming cover.jpg to front.jpg.


Thank you so much! That saved me a lot of work. Last time I had this problem, I completely resetup the server. Your solution works like a charm. :D


Did you try to open up the url

<UrlOfSubsonic>/db.view

and execute the follwing sql:

Code: Select all
UPDATE MEDIA_FILE
SET children_last_updated = '1970-01-01 01:00:00.0'
WHERE TYPE IN ( 'ALBUM', 'DIRECTORY')
AND PATH LIKE '%YOUR CHANGED PATH%'



then do a rescan of the library.

this helped me to recover 2% of missing songs after the upgrade to 6.1.1. Maybe this is easier than moving files back and forth...

Re: Subsonic 6.1 - Losing tracks after editing tags

PostPosted: Tue Oct 24, 2017 7:10 am
by wendigo
lonesomerider wrote:
Did you try to open up the url

<UrlOfSubsonic>/db.view

and execute the follwing sql:

Code: Select all
UPDATE MEDIA_FILE
SET children_last_updated = '1970-01-01 01:00:00.0'
WHERE TYPE IN ( 'ALBUM', 'DIRECTORY')
AND PATH LIKE '%YOUR CHANGED PATH%'



then do a rescan of the library.

this helped me to recover 2% of missing songs after the upgrade to 6.1.1. Maybe this is easier than moving files back and forth...


Thanks! I run it over all of the folders and got about 6000 songs re-read :)

Re: Subsonic 6.1 - Losing tracks after editing tags

PostPosted: Tue Oct 24, 2017 6:05 pm
by JamMstrT
I have been able to work around it by creating a CMD file and an "almost" empty TXT file on my server. The TXT file I named UPDATE.TXT and I rotate it between containing a value of 1 or 2 and saving it to update the modification date on the file. The CMD file then proceeds to copy the TXT file into every directory and sub-directory. With this updated TXT file in place, Subsonic seems to re-scan all of the folders.

After making changes to a tags or Album Art, I now just update the TXT file and then run the CMD file and then re-scan the files in Subsonic.

Contents of CMD:

for /r "d:\Music" %%i in (.) do copy /y "c:\update.txt" "%%i"

Re: Subsonic 6.1 - Losing tracks after editing tags

PostPosted: Wed Oct 25, 2017 5:16 pm
by jamesbox360
I noticed this behavior as well. In my case, I was adding album art to mp3 files. I would lose between 50% - 80% of the tracks when the database updated. This started after the update to 6.1 from 6.0.

The solutions mentioned above worked for me.

Re: Subsonic 6.1 - Losing tracks after editing tags

PostPosted: Sun Oct 29, 2017 7:07 pm
by sindre_mehus
Is someone able to consistently reproduce this problem, and willing to work with me to troubleshoot it?

That would involve giving me temporary admin rights to your Subsonic server so I can look at the state of the database.

Please contact me on sindre@activeobjects.no if you would like to help out :)

Thanks
Sindre

Re: Subsonic 6.1 - Losing tracks after editing tags

PostPosted: Mon Oct 30, 2017 6:58 pm
by JamMstrT
sindre_mehus wrote:Is someone able to consistently reproduce this problem, and willing to work with me to troubleshoot it?

That would involve giving me temporary admin rights to your Subsonic server so I can look at the state of the database.

Please contact me on sindre@activeobjects.no if you would like to help out :)

Thanks
Sindre


I shot you an email on this Sindre. I am willing to work with you to troubleshoot his issue if you are still looking for someone to help.

Re: Subsonic 6.1 - Losing tracks after editing tags

PostPosted: Mon Oct 30, 2017 7:02 pm
by sindre_mehus
JamMstrT wrote:
sindre_mehus wrote:Is someone able to consistently reproduce this problem, and willing to work with me to troubleshoot it?

That would involve giving me temporary admin rights to your Subsonic server so I can look at the state of the database.

Please contact me on sindre@activeobjects.no if you would like to help out :)

Thanks
Sindre


I shot you an email on this Sindre. I am willing to work with you to troubleshoot his issue if you are still looking for someone to help.


Brilliant, thanks! I replied to your email, did you get it?

Sindre

Re: Subsonic 6.1 - Losing tracks after editing tags

PostPosted: Mon Oct 30, 2017 7:48 pm
by JamMstrT
sindre_mehus wrote:
JamMstrT wrote:
sindre_mehus wrote:Is someone able to consistently reproduce this problem, and willing to work with me to troubleshoot it?

That would involve giving me temporary admin rights to your Subsonic server so I can look at the state of the database.

Please contact me on sindre@activeobjects.no if you would like to help out :)

Thanks
Sindre


I shot you an email on this Sindre. I am willing to work with you to troubleshoot his issue if you are still looking for someone to help.


Brilliant, thanks! I replied to your email, did you get it?


Sindre



Just sent you the information.