{"action":"created","issue":{"url":"https://api.github.com/repos/kyuupichan/electrumx/issues/75","repository_url":"https://api.github.com/repos/kyuupichan/electrumx","labels_url":"https://api.github.com/repos/kyuupichan/electrumx/issues/75/labels{/name}","comments_url":"https://api.github.com/repos/kyuupichan/electrumx/issues/75/comments","events_url":"https://api.github.com/repos/kyuupichan/electrumx/issues/75/events","html_url":"https://github.com/kyuupichan/electrumx/issues/75","id":196135338,"number":75,"title":"plyvel._plyvel.CorruptionError: b'Corruption: 12 missing files","user":{"login":"santzi","id":8566191,"avatar_url":"https://avatars.githubusercontent.com/u/8566191?v=3","gravatar_id":"","url":"https://api.github.com/users/santzi","html_url":"https://github.com/santzi","followers_url":"https://api.github.com/users/santzi/followers","following_url":"https://api.github.com/users/santzi/following{/other_user}","gists_url":"https://api.github.com/users/santzi/gists{/gist_id}","starred_url":"https://api.github.com/users/santzi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/santzi/subscriptions","organizations_url":"https://api.github.com/users/santzi/orgs","repos_url":"https://api.github.com/users/santzi/repos","events_url":"https://api.github.com/users/santzi/events{/privacy}","received_events_url":"https://api.github.com/users/santzi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-12-16T19:23:07Z","updated_at":"2016-12-20T21:46:12Z","closed_at":null,"body":"Version 0.9.9\r\nElectrumX runnning on VM (Ubuntu) and host crashed to kernel panic (Debian).\r\nI started host and VM again, but ElectrumX BTC does not start anymore (LTC and DASH started ok)\r\nIs there any possibility to fix this database or should I start from scratch?\r\n\r\n-- Logs begin at Fri 2016-12-16 20:13:00 EET. --\r\nDec 16 20:14:40 ubuntu systemd[1]: Started Electrumx-btc.\r\nDec 16 20:14:42 ubuntu electrumx_server.py[1073]: INFO:root:ElectrumX server starting\r\nDec 16 20:14:42 ubuntu electrumx_server.py[1073]: INFO:BlockProcessor:switching current directory to /home/santzi/debian_shares/electrumx_db/BTC/\r\nDec 16 20:14:42 ubuntu electrumx_server.py[1073]: INFO:BlockProcessor:reorg limit is 200 blocks\r\nDec 16 20:14:43 ubuntu electrumx_server.py[1073]: Traceback (most recent call last):\r\nDec 16 20:14:43 ubuntu electrumx_server.py[1073]:   File \"/usr/local/lib/python3.5/dist-packages/electrumx-0.9.9-py3.5.egg/EGG-INFO/scripts/electrumx_server.py\", line 68, in main\r\nDec 16 20:14:43 ubuntu electrumx_server.py[1073]:   File \"/usr/local/lib/python3.5/dist-packages/electrumx-0.9.9-py3.5.egg/EGG-INFO/scripts/electrumx_server.py\", line 49, in main_loop\r\nDec 16 20:14:43 ubuntu electrumx_server.py[1073]:   File \"/usr/local/lib/python3.5/dist-packages/electrumx-0.9.9-py3.5.egg/server/protocol.py\", line 57, in __init__\r\nDec 16 20:14:43 ubuntu electrumx_server.py[1073]:     self.bp = BlockProcessor(env)\r\nDec 16 20:14:43 ubuntu electrumx_server.py[1073]:   File \"/usr/local/lib/python3.5/dist-packages/electrumx-0.9.9-py3.5.egg/server/block_processor.py\", line 142, in __init__\r\nDec 16 20:14:43 ubuntu electrumx_server.py[1073]:     super().__init__(env)\r\nDec 16 20:14:43 ubuntu electrumx_server.py[1073]:   File \"/usr/local/lib/python3.5/dist-packages/electrumx-0.9.9-py3.5.egg/server/db.py\", line 54, in __init__\r\nDec 16 20:14:43 ubuntu electrumx_server.py[1073]:     self.reopen_db(True)\r\nDec 16 20:14:43 ubuntu electrumx_server.py[1073]:   File \"/usr/local/lib/python3.5/dist-packages/electrumx-0.9.9-py3.5.egg/server/db.py\", line 86, in reopen_db\r\nDec 16 20:14:43 ubuntu electrumx_server.py[1073]:     self.db = open_db(db_name, self.env.db_engine, max_open_files)\r\nDec 16 20:14:43 ubuntu electrumx_server.py[1073]:   File \"/usr/local/lib/python3.5/dist-packages/electrumx-0.9.9-py3.5.egg/server/storage.py\", line 24, in open_db\r\nDec 16 20:14:43 ubuntu electrumx_server.py[1073]:     return db_class(name, for_sync)\r\nDec 16 20:14:43 ubuntu electrumx_server.py[1073]:   File \"/usr/local/lib/python3.5/dist-packages/electrumx-0.9.9-py3.5.egg/server/storage.py\", line 34, in __init__\r\nDec 16 20:14:43 ubuntu electrumx_server.py[1073]:     self.open(name, create=self.is_new, for_sync=for_sync)\r\nDec 16 20:14:43 ubuntu electrumx_server.py[1073]:   File \"/usr/local/lib/python3.5/dist-packages/electrumx-0.9.9-py3.5.egg/server/storage.py\", line 85, in open\r\nDec 16 20:14:43 ubuntu electrumx_server.py[1073]:     max_open_files=mof, compression=None)\r\nDec 16 20:14:43 ubuntu electrumx_server.py[1073]:   File \"_plyvel.pyx\", line 236, in plyvel._plyvel.DB.__init__ (plyvel/_plyvel.cpp:3129)\r\nDec 16 20:14:43 ubuntu electrumx_server.py[1073]:   File \"_plyvel.pyx\", line 83, in plyvel._plyvel.raise_for_status (plyvel/_plyvel.cpp:1733)\r\nDec 16 20:14:43 ubuntu electrumx_server.py[1073]: plyvel._plyvel.CorruptionError: b'Corruption: 12 missing files; e.g.: Bitcoin-mainnet/872883.ldb'\r\nDec 16 20:14:43 ubuntu electrumx_server.py[1073]: CRITICAL:root:ElectrumX server terminated abnormally"},"comment":{"url":"https://api.github.com/repos/kyuupichan/electrumx/issues/comments/268368533","html_url":"https://github.com/kyuupichan/electrumx/issues/75#issuecomment-268368533","issue_url":"https://api.github.com/repos/kyuupichan/electrumx/issues/75","id":268368533,"user":{"login":"kyuupichan","id":3319176,"avatar_url":"https://avatars.githubusercontent.com/u/3319176?v=3","gravatar_id":"","url":"https://api.github.com/users/kyuupichan","html_url":"https://github.com/kyuupichan","followers_url":"https://api.github.com/users/kyuupichan/followers","following_url":"https://api.github.com/users/kyuupichan/following{/other_user}","gists_url":"https://api.github.com/users/kyuupichan/gists{/gist_id}","starred_url":"https://api.github.com/users/kyuupichan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kyuupichan/subscriptions","organizations_url":"https://api.github.com/users/kyuupichan/orgs","repos_url":"https://api.github.com/users/kyuupichan/repos","events_url":"https://api.github.com/users/kyuupichan/events{/privacy}","received_events_url":"https://api.github.com/users/kyuupichan/received_events","type":"User","site_admin":false},"created_at":"2016-12-20T21:46:12Z","updated_at":"2016-12-20T21:46:12Z","body":"Reopening because\r\n\r\nhttps://plyvel.readthedocs.io/en/latest/api.html#DB.write_batch\r\n\r\nwe should probably be passing sync=True and it might have prevented this."}}
{"actor":{"display_login":"kyuupichan"}}