Hi there, not sure where is the best place to post a monero support question. Just installed Hydra v0.11.1.0 and started to snyc on a new machine. Got to about 360 days still to sync and getting this message in log:
2017-11-16 11:47:02.061 8500 INFO global src/daemon/rpc.h:63 Core rpc server initialized OK on port: 18081
2017-11-16 11:47:02.061 8500 INFO global src/daemon/core.h:73 Initializing core...
2017-11-16 11:47:02.061 8500 INFO global src/cryptonote_core/cryptonote_core.cpp:323 Loading blockchain from folder C:\ProgramData\bitmonero\lmdb ...
2017-11-16 11:47:02.077 8500 WARN blockchain.db.lmdb src/blockchain_db/lmdb/db_lmdb.cpp:1155 LMDB memory map needs to be resized, doing that now.
2017-11-16 11:47:02.077 8500 INFO global src/blockchain_db/lmdb/db_lmdb.cpp:494 LMDB Mapsize increased. Old: 9195MiB, New: 10219MiB
2017-11-16 11:47:02.077 8500 WARN blockchain.db.lmdb src/blockchain_db/lmdb/db_lmdb.cpp:72 Failed to query m_blocks: MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
2017-11-16 11:47:02.077 8500 ERROR cn src/cryptonote_core/cryptonote_core.cpp:399 Error opening database: Failed to query m_blocks: MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
2017-11-16 11:47:02.077 8500 INFO global src/daemon/rpc.h:90 Deinitializing rpc server...
2017-11-16 11:47:02.077 8500 INFO global src/daemon/p2p.h:90 Deinitializing p2p...
2017-11-16 11:47:02.092 8500 INFO global src/daemon/core.h:89 Deinitializing core...
2017-11-16 11:47:02.092 8500 ERROR daemon src/daemon/core.h:94 Failed to deinitialize core...
2017-11-16 11:47:02.092 8500 INFO global src/daemon/protocol.h:77 Stopping cryptonote protocol...
2017-11-16 11:47:02.108 8500 INFO global src/daemon/protocol.h:81 Cryptonote protocol stopped successfully
Is there any other solution other than deleting blockchain and starting sync from scratch again?
There's the --db-salvage flag, which has to be applied to monerod.exe from the command line, but it's unlikely that it'll "uncorrupt" your blockchain. However, if you'd like to give it a shot, it's done as follows.
1. Exit the GUI and make sure to close the daemon as well.
2. Browse to the directory monero-wallet-gui.exe is located.
3. Open a new command prompt. This is done by first making sure your cursor isn't located on any of the files and subsequently doing SHIFT + right click. It will give you an option to "Open command window here".
4. Now type -> monerod.exe --db-salvage
5. If that doesn't work, you, unfortunately have to resync from scratch. A resync is easily triggered by deleting C:\ProgramData\bitmonero.
Whilst you're syncing the blockchain using the daemon (monerod.exe), always make sure to exit it gracefully. If you're using the CLI, this is done by simply typing "exit" into monerod.exe. In addition, if you're using the GUI, simply click on the x to close the GUI and make sure to close the daemon as well.