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)
Please see attached my take on that recovery (after a few hacks in source code).
--
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 h2-database...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/h2-database/36d00b37-fb1c-4860-8fc4-2807649ccb62%40googlegroups.com.
Try to run the Recover tool from H2 version 196 or 197. I regularly deal with corrupted databases since moving to 199 and in 9 out of 10 cases the older Recover tool works where the one in 199 will not. This does not only hold for the Recover tool since 196/197 usually open my "corrupted" databases without issues.To make sure you do not run into compatibility issues between versions also use the RunScript from the older version to create a new database. Until now I had no issues in opening these with 199.
--
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 h2-database...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/h2-database/1cb933a1-da69-44fb-b217-43a092e6b8a4%40googlegroups.com.