{"action":"created","issue":{"url":"https://api.github.com/repos/bitcoin/bitcoin/issues/5668","labels_url":"https://api.github.com/repos/bitcoin/bitcoin/issues/5668/labels{/name}","comments_url":"https://api.github.com/repos/bitcoin/bitcoin/issues/5668/comments","events_url":"https://api.github.com/repos/bitcoin/bitcoin/issues/5668/events","html_url":"https://github.com/bitcoin/bitcoin/issues/5668","id":54483893,"number":5668,"title":"ERROR: ReadBlockFromDisk : Deserialize or I/O error - ReadCompactSize() : size too large","user":{"login":"eN0Rm","id":2642101,"avatar_url":"https://avatars.githubusercontent.com/u/2642101?v=3","gravatar_id":"","url":"https://api.github.com/users/eN0Rm","html_url":"https://github.com/eN0Rm","followers_url":"https://api.github.com/users/eN0Rm/followers","following_url":"https://api.github.com/users/eN0Rm/following{/other_user}","gists_url":"https://api.github.com/users/eN0Rm/gists{/gist_id}","starred_url":"https://api.github.com/users/eN0Rm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eN0Rm/subscriptions","organizations_url":"https://api.github.com/users/eN0Rm/orgs","repos_url":"https://api.github.com/users/eN0Rm/repos","events_url":"https://api.github.com/users/eN0Rm/events{/privacy}","received_events_url":"https://api.github.com/users/eN0Rm/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bitcoin/bitcoin/labels/UTXO%20Db%20and%20Indexes","name":"UTXO Db and Indexes","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":107,"created_at":"2015-01-15T18:12:56Z","updated_at":"2015-03-24T10:27:48Z","closed_at":null,"body":"Client info\r\n\r\n2015-01-15 18:15:21 Bitcoin version v0.10.99.0-4f73a8f-dirty (2015-01-09 20:21:19 -0800)\r\n2015-01-15 18:15:21 Using OpenSSL version OpenSSL 1.0.1f 6 Jan 2014\r\n2015-01-15 18:15:21 Using BerkeleyDB version Berkeley DB 5.3.28: (September  9, 2013)\r\n2015-01-15 18:15:21 Default data directory /home/fredrik/.bitcoin\r\n2015-01-15 18:15:21 Using data directory /home/fredrik/.bitcoin\r\n2015-01-15 18:15:21 Using config file /home/fredrik/.bitcoin/bitcoin.conf\r\n2015-01-15 18:15:21 Using at most 200 connections (1024 file descriptors available)\r\n2015-01-15 18:15:21 Using 0 threads for script verification\r\n2015-01-15 18:15:21 Binding RPC on address ::1 port 8332 (IPv4+IPv6 bind any: 0)\r\n2015-01-15 18:15:21 Binding RPC on address 127.0.0.1 port 8332 (IPv4+IPv6 bind any: 0)\r\n2015-01-15 18:15:21 Using wallet wallet.dat\r\n2015-01-15 18:15:21 init message: Verifying wallet...\r\n2015-01-15 18:15:21 CDBEnv::Open : LogDir=/home/fredrik/.bitcoin/database ErrorFile=/home/fredrik/.bitcoin/db.log\r\n2015-01-15 18:15:21 Bound to [::]:8333\r\n2015-01-15 18:15:21 Bound to 0.0.0.0:8333\r\n2015-01-15 18:15:21 init message: Loading block index...\r\n2015-01-15 18:15:21 Opening LevelDB in /home/fredrik/.bitcoin/blocks/index\r\n2015-01-15 18:15:22 Opened LevelDB successfully\r\n2015-01-15 18:15:22 Opening LevelDB in /home/fredrik/.bitcoin/chainstate\r\n2015-01-15 18:15:28 Opened LevelDB successfully\r\n2015-01-15 18:15:32 LoadBlockIndexDB: last block file = 218\r\n2015-01-15 18:15:32 LoadBlockIndexDB: last block file info: CBlockFileInfo(blocks=274, size=115501816, heights=338812...339085, time=2015-01-13...2015-01-15)\r\n2015-01-15 18:15:32 Checking all blk files are present...\r\n2015-01-15 18:15:32 LoadBlockIndexDB(): transaction index disabled\r\n2015-01-15 18:15:32 LoadBlockIndexDB(): hashBestChain=0000000000000000188de542fd76b1676c4be6c380b39ddea119358c290cebd7 height=339085 date=2015-01-15 18:07:14 progress=0.999987\r\n2015-01-15 18:15:32 init message: Verifying blocks...\r\n2015-01-15 18:15:32 Verifying last 288 blocks at level 3\r\n\r\n\r\n\r\nlog before crash\r\n\r\n2015-01-13 22:15:27 UpdateTip: new best=0000000000000000159e7d66c954312bccb5f12de808f2991b3859205665c442  height=338819  log2_work=81.997891  tx=56658614  date=2015-01-13 22:14:41 progress=0.999999  cache=6969\r\n2015-01-13 22:15:58 ResendWalletTransactions()\r\n2015-01-13 22:17:06 receive version message: /Satoshi:0.9.2/opennodes.org:0.1/: version 70002, blocks=338819, us=84.215.171.162:8333, peer=2855\r\n2015-01-13 22:17:25 receive version message: /libbitcoin:2.0/: version 60000, blocks=0, us=10.0.0.1:8333, peer=2856\r\n2015-01-13 22:17:25 Added time data, samples 200, offset -5 (+0 minutes)\r\n2015-01-13 22:18:06 socket recv error Connection reset by peer (104)\r\n2015-01-13 22:18:13 receive version message: /bitcoinseeder:0.01/: version 60000, blocks=230000, us=84.215.171.162:8333, peer=2857\r\n2015-01-13 22:18:31 receive version message: /getaddr.bitnodes.io:0.1/: version 70002, blocks=338818, us=84.215.171.162:8333, peer=2858\r\n2015-01-13 22:19:16 receive version message: /Satoshi:0.9.3/: version 70002, blocks=338817, us=84.215.171.162:8333, peer=2859\r\n2015-01-13 22:19:16 Added time data, samples 200, offset -2 (+0 minutes)\r\n2015-01-13 22:19:32 receive version message: /Snoopy:0.1/: version 60001, blocks=0, us=84.215.171.162:8333, peer=2860\r\n2015-01-13 22:19:47 receive version message: /bitcoinseeder:0.01/: version 60000, blocks=230000, us=84.215.171.162:8333, peer=2861\r\n2015-01-13 22:22:36 receive version message: /getaddr.bitnodes.io:0.1/: version 70002, blocks=338819, us=84.215.171.162:8333, peer=2862\r\n2015-01-13 22:22:44 ERROR: AcceptToMemoryPool : inputs already spent\r\n2015-01-13 22:22:45 receive version message: /BTCXchange.ro Mapper:0.01/: version 60000, blocks=230000, us=84.215.171.162:8333, peer=2863\r\n2015-01-13 22:22:47 receive version message: /BitCoinJ:0.11.2/MultiBit:0.5.18/: version 70001, blocks=338819, us=127.0.0.1:8333, peer=2864\r\n2015-01-13 22:22:47 Added time data, samples 200, offset +10 (+0 minutes)\r\n2015-01-13 22:23:00 receive version message: /Satoshi:0.8.4/: version 70001, blocks=338819, us=84.215.171.162:8333, peer=2865\r\n2015-01-13 22:23:00 Added time data, samples 200, offset -7 (+0 minutes)\r\n2015-01-13 22:23:53 receive version message: /Satoshi:0.8.2.2/: version 70001, blocks=336635, us=84.215.171.162:8333, peer=2866\r\n2015-01-13 22:23:53 Added time data, samples 200, offset +14 (+0 minutes)\r\n2015-01-13 22:24:13 receive version message: /Satoshi:0.9.3/: version 70002, blocks=338735, us=84.215.171.162:8333, peer=2867\r\n2015-01-13 22:24:13 Added time data, samples 200, offset -5 (+0 minutes)\r\n2015-01-13 22:25:06 receive version message: /Snoopy:0.1/: version 60001, blocks=0, us=84.215.171.162:8333, peer=2868\r\n2015-01-13 22:25:49 receive version message: /bitcoinseeder:0.01/: version 60000, blocks=230000, us=84.215.171.162:8333, peer=2869\r\n2015-01-13 22:26:33 UpdateTip: new best=00000000000000001829e20898eaff72aa667d3715a94535afae5ae7ada07bc0  height=338820  log2_work=81.997947  tx=56659414  date=2015-01-13 22:25:41 progress=0.999999  cache=9596\r\n2015-01-13 22:26:35 ERROR: AcceptToMemoryPool : inputs already spent\r\n2015-01-13 22:26:43 ERROR: AcceptToMemoryPool : nonstandard transaction: dust\r\n2015-01-13 22:26:48 ERROR: AcceptToMemoryPool : inputs already spent\r\n2015-01-13 22:26:58 ERROR: AcceptToMemoryPool : inputs already spent\r\n2015-01-13 22:27:01 receive version message: /bitcoinseeder:0.01/: version 60000, blocks=230000, us=84.215.171.162:8333, peer=2870\r\n2015-01-13 22:27:20 ERROR: AcceptToMemoryPool : inputs already spent\r\n2015-01-13 22:27:22 ERROR: AcceptToMemoryPool : inputs already spent\r\n2015-01-13 22:27:46 UpdateTip: new best=000000000000000008b332686e0043a4b95ca7e46d1b0785536981b543dfc755  height=338821  log2_work=81.998004  tx=56659415  date=2015-01-13 22:36:09 progress=1.000013  cache=9706\r\n2015-01-13 22:28:29 ERROR: AcceptToMemoryPool : inputs already spent\r\n2015-01-13 22:28:34 ERROR: AcceptToMemoryPool : inputs already spent\r\n2015-01-13 22:28:48 ERROR: AcceptToMemoryPool : inputs already spent\r\n2015-01-13 22:28:52 receive version message: /getaddr.bitnodes.io:0.1/: version 70002, blocks=338819, us=84.215.171.162:8333, peer=2871\r\n2015-01-13 22:29:22 ERROR: AcceptToMemoryPool : inputs already spent\r\n2015-01-13 22:30:29 ERROR: ReadBlockFromDisk : Deserialize or I/O error - ReadCompactSize() : size too large\r\n2015-01-15 18:02:07 \r\n"},"comment":{"url":"https://api.github.com/repos/bitcoin/bitcoin/issues/comments/85442124","html_url":"https://github.com/bitcoin/bitcoin/issues/5668#issuecomment-85442124","issue_url":"https://api.github.com/repos/bitcoin/bitcoin/issues/5668","id":85442124,"user":{"login":"laanwj","id":126646,"avatar_url":"https://avatars.githubusercontent.com/u/126646?v=3","gravatar_id":"","url":"https://api.github.com/users/laanwj","html_url":"https://github.com/laanwj","followers_url":"https://api.github.com/users/laanwj/followers","following_url":"https://api.github.com/users/laanwj/following{/other_user}","gists_url":"https://api.github.com/users/laanwj/gists{/gist_id}","starred_url":"https://api.github.com/users/laanwj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laanwj/subscriptions","organizations_url":"https://api.github.com/users/laanwj/orgs","repos_url":"https://api.github.com/users/laanwj/repos","events_url":"https://api.github.com/users/laanwj/events{/privacy}","received_events_url":"https://api.github.com/users/laanwj/received_events","type":"User","site_admin":false},"created_at":"2015-03-24T10:27:48Z","updated_at":"2015-03-24T10:27:48Z","body":"@jlopp I wouldn't pay too much attention to those overlapping blocks. Look at the unrealistic ranges, those are misidentified\r\n\r\n    Overlap with last block (0378c0b9,d06685d7)\r\n\r\nI've created a repository here https://github.com/laanwj/blockdb-troubleshoot for these troubleshooting tools. Let's try to maintain them there.\r\n\r\nIt contains a newer version of `list-blocks.py` without this problem, a version of `printblockdb.py` as well as everything needed to build the `leveldb.so` module for python for that (as the default distro py-leveldb will corrupt your database due to compression, see my [this](https://gist.github.com/ajweiss/68a832d9cf26e89b9e0a#comment-1409665) comment).\r\n"}}