Open wolfposd opened 8 years ago
Hi @wolfposd. I think your issue is due a different leveldb version. Current repository version only supports sst
files but this was changed in https://github.com/google/leveldb/commit/0b9a89f40efdd143fa1426e7d5cd997f67ba6361 (Release LevelDB 1.14 release). I think it was due an extension conflict in Windows. You can find more info here.
Same problem with org.fusesource.leveldbjni with windows 10. I tried Version 1.8, 1.8-redhat.003, 1.13-redhat.002. I only need Readonly-Access to the leveldb, so my workaround is, copying all files and rename .ldb to .sst
Exact same error? I was able to read my .ldb files when using that library.
Not exactly the same error but:
org.fusesource.leveldbjni.internal.NativeDB$DBException: Corruption: 7 missing files; e.g.: C:\Users\zimmermann\AppData\Local\Temp\leveldb7307729845232549361/000005.sst at org.fusesource.leveldbjni.internal.NativeDB.checkStatus(NativeDB.java:200) ~[leveldbjni-all-1.8.jar:1.8] at org.fusesource.leveldbjni.internal.NativeDB.open(NativeDB.java:218) ~[leveldbjni-all-1.8.jar:1.8] at org.fusesource.leveldbjni.JniDBFactory.open(JniDBFactory.java:168) ~[leveldbjni-all-1.8.jar:1.8] at com.zimmerbell.repaper.sources.MomentumSource.updateFromLevelDB(MomentumSource.java:85) ~[classes/:?] at com.zimmerbell.repaper.sources.MomentumSource.update(MomentumSource.java:69) ~[classes/:?] at com.zimmerbell.repaper.Repaper.update(Repaper.java:243) [classes/:?] at com.zimmerbell.repaper.Repaper.<init>(Repaper.java:96) [classes/:?] at com.zimmerbell.repaper.Repaper.main(Repaper.java:84) [classes/:?]
It sounds like you were renaming files when you were making a hack. Perhaps if you redownload the DB it will resolve the issue? If not, could you post your brief code grabbing an itr?
I quickly wrote a test that opens the leveldb of (a copy of) your chrome profile: https://github.com/noooz/repaper/blob/master/src/test/java/com/zimmerbell/repaper/ReadLevelDBTest.java It fails, if you remove the renaming in line 26.
I have the same problem @dain Can you help us?
Not sure if Bug or different LevelDB version. But in my DB there are no ...sst files only ...ldb files, so i get the following error:
However, when i change org.iq80.leveldb.impl.Filename.java#59 from "sst" to "ldb" it works fine