Help with repairing Corrupt map.

Post Reply
User avatar
maikerumine
Member
Posts: 1420
Joined: Mon Aug 04, 2014 14:27
GitHub: maikerumine
In-game: maikerumine

Help with repairing Corrupt map.

by maikerumine » Post

Hi.

I have a corrupt map for a server I run and need help to fix it. The server computer crashed on BSOD thus corrupting the map. I am unable to fix it.

Is there any map fixing gurus out there that could point me to a tool or process that could possible fix this?

Thanks in advance.

-mm
Talamh Survival Minetest-->viewtopic.php?f=10&t=12959

sfan5
Moderator
Posts: 4094
Joined: Wed Aug 24, 2011 09:44
GitHub: sfan5
IRC: sfan5
Location: Germany

Re: Help with repairing Corrupt map.

by sfan5 » Post

The most important questions here are:
  • Can Minetest still open the database file correctly?
  • Does the world load but contents are messed up?
  • Or does MT throw world load errors?
If it's the last you should be able to get by using ignore_world_load_errors = true
Mods: Mesecons | WorldEdit | Nuke & Minetest builds for Windows (32-bit & 64-bit)

talamh
Member
Posts: 156
Joined: Sun Nov 12, 2017 18:24

Re: Help with repairing Corrupt map.

by talamh » Post

"Database disk image is malformed" can sometimes be fixed with DB Browser available from here:

https://sqlitebrowser.org/

Method here:

https://www.databasefilerecovery.com/bl ... ormed.html

Good luck with the repair.

User avatar
maikerumine
Member
Posts: 1420
Joined: Mon Aug 04, 2014 14:27
GitHub: maikerumine
In-game: maikerumine

Re: Help with repairing Corrupt map.

by maikerumine » Post

sfan5 wrote:
Sat Mar 13, 2021 17:55
The most important questions here are:
  • Can Minetest still open the database file correctly?
  • Does the world load but contents are messed up?
  • Or does MT throw world load errors?
If it's the last you should be able to get by using ignore_world_load_errors = true
Nope, it is malformed image. It crashes when entering the world.
talamh wrote:
Sat Mar 13, 2021 19:13
"Database disk image is malformed" can sometimes be fixed with DB Browser available from here:

https://sqlitebrowser.org/

Method here:

https://www.databasefilerecovery.com/bl ... ormed.html

Good luck with the repair.
Thanks mate.

I have tried for a long time and cannot fix it.
I think I may as well pull the plug on any further minetest projects for good and stick with playing other servers or other games.

It was my fault for not backing up daily.
Talamh Survival Minetest-->viewtopic.php?f=10&t=12959

MrPhil
Member
Posts: 30
Joined: Fri Mar 12, 2021 17:21
In-game: MrPhil

Re: Help with repairing Corrupt map.

by MrPhil » Post

See:
https://ronnieroller.com/Repair-an-SQLite-database

and:
https://stackoverflow.com/questions/182 ... 8#57872238

Since you mentioned BSOD, I'm guessing this was running on Windows. You may have better luck trying to recover it on Linux, especially making use of the recover feature that's apparently now built into SQLite.

I generally use PostgreSQL as the backend for any significant database, it's extremely robust. I'm running it as the backend for a Minetest server myself.

See if you can recover it with SQLite's built-in recovery feature before you give up on it completely.

Good luck,

- Phil

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests