Hello,

One of my clients had their database corrupted and I've spent way too much 
time googling and trying to find a solution on how to repair it. I tried 
using the Recover tool but it just stops at the broken chunk and gives this 
error:

Exception in thread "main" java.lang.IllegalStateException: File corrupted 
in chunk 232960, expected page length 4..3072, got 0 [1.4.199/6]
        at 
org.h2.mvstore.DataUtils.newIllegalStateException(DataUtils.java:883)
        at org.h2.mvstore.MVStore.readBufferForPage(MVStore.java:1055)
        at org.h2.mvstore.MVStore.readPage(MVStore.java:2186)
        at org.h2.mvstore.MVMap.readPage(MVMap.java:554)
        at org.h2.mvstore.Page$NonLeaf.getChildPage(Page.java:1086)
        at org.h2.mvstore.Cursor.traverseDown(Cursor.java:165)
        at org.h2.mvstore.Cursor.<init>(Cursor.java:31)
        at org.h2.mvstore.Cursor.<init>(Cursor.java:27)
        at org.h2.mvstore.MVMap.cursor(MVMap.java:660)
        at org.h2.mvstore.MVStore.readStoreHeader(MVStore.java:792)
        at org.h2.mvstore.MVStore.<init>(MVStore.java:401)
        at org.h2.mvstore.MVStore$Builder.open(MVStore.java:3343)
        at org.h2.mvstore.MVStoreTool.info(MVStoreTool.java:347)
        at org.h2.tools.Recover.process(Recover.java:344)
        at org.h2.tools.Recover.runTool(Recover.java:195)
        at org.h2.tools.Recover.main(Recover.java:158)

Is there a way to bypass this? I've seen posts alluding to such a method 
existing but none explaining how it could be done.

Database can be found 
here: 
https://cdn.discordapp.com/attachments/570385804858490910/598995343555952650/database.zip

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/h2-database/040cc509-147c-482f-b5d5-ff36d5ca3a6a%40googlegroups.com.

Reply via email to