nimiq / mining-pool

Nimiq Mining-Pool Server
Apache License 2.0
39 stars 34 forks source link

Error: MDB_CORRUPTED: Located page was wrong type #8

Closed dawk0 closed 6 years ago

dawk0 commented 6 years ago

https://github.com/skypool-org/skypool-nimiq-miner/issues/17 image

Not even changing a thing in the config.txt.

fiaxh commented 6 years ago

The error is not related to the mining pool. As the error message indicates, your database is corrupt. Removing your peer-key/ folder should quick-fix it.

sisou commented 6 years ago

Sadly, I have the same problem, and also after deleting the peer-key directory. It gets recreated at start-up and then failed to read. Seems like LMDB has problems under WSL.

dawk0 commented 6 years ago

Sooooo, no WSL anymore?

AlessandroVol23 commented 5 years ago

I have exactly the same error on Windows 10 and WSL. I tried the example from this repository: https://github.com/kermitt2/delft

python toxicCommentClassifier.py train

And get this error:

Traceback (most recent call last):
  File "toxicCommentClassifier.py", line 103, in <module>
    train(embeddings_name=embeddings_name, fold_count=args.fold_count, architecture=architecture, use_ELMo=use_ELMo, use_BERT=use_BERT)
  File "toxicCommentClassifier.py", line 27, in train
    embeddings_name=embeddings_name, use_ELMo=use_ELMo, use_BERT=use_BERT, batch_size=batch_size, maxlen=maxlen)
  File "/d/repo/delft/delft/textClassification/wrapper.py", line 65, in __init__
    self.embeddings = Embeddings(embeddings_name, use_ELMo=use_ELMo, use_BERT=use_BERT)
  File "/d/repo/delft/delft/utilities/Embeddings.py", line 65, in __init__
    self.make_embeddings_simple(name)
  File "/d/repo/delft/delft/utilities/Embeddings.py", line 296, in make_embeddings_simple
    self.make_embeddings_lmdb(name, hasHeader)
  File "/d/repo/delft/delft/utilities/Embeddings.py", line 218, in make_embeddings_lmdb
    txn.put(word.encode(encoding='UTF-8'), _serialize_pickle(vector))
lmdb.CorruptedError: mdb_put: MDB_CORRUPTED: Located page was wrong type

I deleted the database file which didn't help as well.