• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
HELP! 0 songs in Database!
#1
Exclamation 
Mike,

after having added a couple of songs to the library MS was unresponsive and I closed it. A message said something like "failed to load database" and now 0 songs instead of 1976 are shown in the library. This is my master library in Windows, MS 2.3.8
Can I restore the library with today's data (instead of taking an old backup?)

Thanks!
Ben
#2
Ben,

Go to Settings->Backup and Restore->Restore Automatic Database Backup and see if there is a backup from yesterday or a few days ago. That would at least restore you to that state. If you don't see an automatic backup available, you'll have to restore an old backup unless you happen to have a copy of mobilesheets.db with your latest changes.

Mike
#3
Thank you Mike.
The automatic db backup restore option shows one file, it was probably created just after the "crash", considering the "successfully restored" db shows 0 songs in the library as well. This restored mobilesheets.db is 444 KB (I copied it before following your suggestion), an integer if older db on a second device is 2.7MB.
Any idea what can cause the library or db to be "wiped out" all of a sudden? This never happened before luckily.

Ben
#4
I've been always a bit anxious about a situation where because of clumsiness or other circumstances the autobackup is overwritten with a new autobackup of the damaged db.

Is there a securtiy check that might prevent such overwriting (for example if the new autobackup is more than 200k smaller than the previous one) so there is no unintended data loss?

If not I'd like to suggest something like that.
#5
Two easy ways:
  • do not save/update/overwrite database if there are 0 songs, at least not with a strong warning
  • maintain multiple copies of the recovery db
Johan
johanvromans.nl — hetgeluidvanseptember.nl — mojore.nl -- howsagoin.nl
Samsung Galaxy Note S7FE (T733) 12.4", Android 13.0, AirTurn Duo & Digit (Gigs).
Samsung Galaxy Note S4 (T830) 10.5", Android 10.0 (maintenance and backup).
Samsung A3 (A320FL), Android 8.0.0 (emergency).
#6
This was advice for me, yes?

Well I'm a backup fanatic having put hours and hours into building my database. My database is spread over 5 devices with multiple manual backups and also in the cloud.
I even copied the autobackups before opening MSP when there was a MS hangup with actual or potential data loss in the current database (there were a few).

So of course I can deal with it. It was a suggestion for a safety feature for users with less paranoia or experience with MSP.
#7
To me it sounds more like a proposal for Mike.
first language: German
Acer A1-830, Android 4.4.2 - HP x2 210 G2 Detachable, Win 10 22H2 - Huawei Media Pad T5, Android 8.0 - Boox Tab Ultra C, Android 11
www.moonlightcrisis.de - www.basdjo.de - www.frankenbaend.de


#8
Yes, it was definitely a suggestion for me. I'll revisit some of the logic for creating the automatic database backups, but I don't want a huge list of backups being created, as those are really only supposed to be used as a last ditch effort when the database can't be recovered. There is merit to the suggestion of not overwriting an automatic backup if there are 0 songs in the library though, as there are few scenarios where that would occur other than a complete loss of the database. I definitely don't want to add a lot of complexity for creating the backup where I try to compare sizes though, as a user may just have cleared a lot of songs out of their library.  

Mike




Users browsing this thread:
3 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2024 MyBB Group.