monero-lws
monero-lws copied to clipboard
Database error when rescanning
trafficstars
I tried to rescan at a higher with with the command:
monero-lws-admin rescan 2275000 423hS3xz...ECBEGAs
then I got an error in the logs:
2022-06-08 14:56:12.791 I Processed 999 block(s) against 2 account(s)
2022-06-08 14:56:15.777 I Processed 999 block(s) against 2 account(s)
2022-06-08 14:56:19.026 I Processed 999 block(s) against 2 account(s)
2022-06-08 14:56:21.437 I Processed 999 block(s) against 2 account(s)
2022-06-08 14:56:23.968 E Failed to update accounts on disk (thrown at scanner.cpp:496): MDB_NOTFOUND: No matching key/data pair found
2022-06-08 14:56:23.973 D Problems at ssl shutdown: uninitialized
2022-06-08 14:56:23.974 D Problems at cancel: Bad file descriptor
2022-06-08 14:56:23.974 D Problems at shutdown: Bad file descriptor
2022-06-08 14:56:23.987 T [sock -1] Socket destroyed without shutdown.
2022-06-08 14:56:23.988 T [sock -1] Socket destroyed
2022-06-08 14:56:23.988 D Destructing connection #27 to 0.0.0.0
2022-06-08 14:56:23.988 T [sock 44] Socket destroyed without shutdown.
2022-06-08 14:56:23.988 T Closed connection from host 172.20.0.4: 8
2022-06-08 14:56:23.988 T [sock 44] Socket destroyed
Now the container keeps restarting but looks like it can't load the DB again:
root@mainnet:/opt/xmr.sh# docker logs monero-lws --tail 20 -f
2022-06-08 15:03:08.724 I Starting blockchain sync with daemon
2022-06-08 15:03:08.731 I [PARSE URI] regex not matched for uri: ^((.*?)://)?(\[(.*)\](:(\d+))?)(.*)?
2022-06-08 15:03:08.731 I Binding on 0.0.0.0 (IPv4):8000
2022-06-08 15:03:08.731 D start accept (IPv4)
2022-06-08 15:03:08.731 D Spawned connection #0 to 0.0.0.0 currently we have sockets count:1
2022-06-08 15:03:08.731 D test, connection constructor set m_connection_type=1
2022-06-08 15:03:08.731 I Run net_service loop( 1 threads)...
2022-06-08 15:03:08.732 D Run server thread name: NET
2022-06-08 15:03:08.732 D Reiniting OK.
2022-06-08 15:03:08.732 I Listening for REST clients at http://0.0.0.0:8000
2022-06-08 15:03:08.732 I Retrieving current active account list
2022-06-08 15:03:08.732 I Starting scan loops on 2 thread(s) with 4 account(s)
2022-06-08 15:03:08.772 I Processed 2 block(s) against 2 account(s)
2022-06-08 15:03:11.705 E Failed to update accounts on disk (thrown at scanner.cpp:496): MDB_NOTFOUND: No matching key/data pair found
2022-06-08 15:03:11.708 D Problems at ssl shutdown: uninitialized
2022-06-08 15:03:11.708 D Problems at cancel: Bad file descriptor
2022-06-08 15:03:11.708 D Problems at shutdown: Bad file descriptor
2022-06-08 15:03:11.709 T [sock -1] Socket destroyed without shutdown.
2022-06-08 15:03:11.709 T [sock -1] Socket destroyed
2022-06-08 15:03:11.709 D Destructing connection #0 to 0.
Yup, you probably have to try again with a lower height to fix the DB now. Good catch, will fix.