{"action":"opened","issue":{"url":"https://api.github.com/repos/bitpay/insight/issues/620","labels_url":"https://api.github.com/repos/bitpay/insight/issues/620/labels{/name}","comments_url":"https://api.github.com/repos/bitpay/insight/issues/620/comments","events_url":"https://api.github.com/repos/bitpay/insight/issues/620/events","html_url":"https://github.com/bitpay/insight/issues/620","id":77755205,"number":620,"title":"Can't connect to insight server. Attempting to reconnect...","user":{"login":"AkiraTakizawa","id":8864848,"avatar_url":"https://avatars.githubusercontent.com/u/8864848?v=3","gravatar_id":"","url":"https://api.github.com/users/AkiraTakizawa","html_url":"https://github.com/AkiraTakizawa","followers_url":"https://api.github.com/users/AkiraTakizawa/followers","following_url":"https://api.github.com/users/AkiraTakizawa/following{/other_user}","gists_url":"https://api.github.com/users/AkiraTakizawa/gists{/gist_id}","starred_url":"https://api.github.com/users/AkiraTakizawa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AkiraTakizawa/subscriptions","organizations_url":"https://api.github.com/users/AkiraTakizawa/orgs","repos_url":"https://api.github.com/users/AkiraTakizawa/repos","events_url":"https://api.github.com/users/AkiraTakizawa/events{/privacy}","received_events_url":"https://api.github.com/users/AkiraTakizawa/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-18T18:25:39Z","updated_at":"2015-05-18T18:25:39Z","closed_at":null,"body":"I made a few changes to Insight to explorer the Mineralscoin block chain and succesfully loaded the complete blockchain. Everything works as expected, except that the application loses its connection after a while and the user gets this on his screen: \r\n\r\n![screenshot8](https://cloud.githubusercontent.com/assets/8864848/7686883/6d624a18-fd99-11e4-8ee7-f8fd76538000.png)\r\n\r\nFrom this point on, there is no way to continue browsing the blockchain. Clicking on any link will just try to load that link forever. From this point on, any other browser is unable to open the site.\r\n\r\nOn the server running insight, no error is displayed, but it stopped occasionally printing the message \r\n```{ '0': 'livenet', '1': '1 of 1 peers connected' }```\r\nI believe something made it disconnect from the my wallet's daemon.\r\nThe console log currently shows: \r\n\r\n```\r\n{ '0': 'livenet', '1': '1 of 1 peers connected' }\r\n{ '0': 'livenet', '1': '1 of 1 peers connected' }\r\n{ '0': 'livenet', '1': '1 of 1 peers connected' }\r\nGET /api/block/82e5dbe32a25b8e8c8e7589378a3fbd0aac501ed672a7343a7615418dfa59c91 200 6ms - 945b\r\nGET /api/blocks?limit=5 200 23ms - 995b\r\nGET /api/block/82e5dbe32a25b8e8c8e7589378a3fbd0aac501ed672a7343a7615418dfa59c91 304 6ms\r\nGET /api/blocks?limit=5 304 24ms\r\nGET /api/blocks?limit=5 304 24ms\r\ninfo: Resuming sync from block: 82e5dbe32a25b8e8c8e7589378a3fbd0aac501ed672a7343a7615418dfa59c91 #1556906\r\ninfo: Got 1556906 blocks in current DB, out of 1556906 blocks at startcoind\r\ninfo: syncing from RPC (slow)\r\ninfo: Starting from:  82e5dbe32a25b8e8c8e7589378a3fbd0aac501ed672a7343a7615418dfa59c91\r\ninfo: status: [100%]\r\ninfo: NEW TIP: 82e5dbe32a25b8e8c8e7589378a3fbd0aac501ed672a7343a7615418dfa59c91 NEED REORG (old tip: 82e5dbe32a25b8e8c8e7589378a3fbd0aac501ed672a7343a7615418dfa59c91 #1556906)\r\ninfo: Reorg Case 1) OldNext: 82e5dbe32a25b8e8c8e7589378a3fbd0aac501ed672a7343a7615418dfa59c91 NewHeight: 1556906\r\ninfo:   Unconfirming 2 Txs\r\ninfo: status: [100%]\r\n{ '0': 'livenet', '1': '1 of 1 peers connected' }\r\n```\r\n\r\nThe error can be 'fixed' by restarting insight, but having to repeat this every 30 minutes or so is not very interesting.\r\n\r\nI start insight with this command: \r\n```NODE_ENV=production INSIGHT_NETWORK=livenet npm start```\r\nOnce started, it resumes synchronizing its database with the blockchain and things works until the next time it loses its connection.\r\n\r\nI'm running the following versions:\r\n* Insight v0.2.5\r\n* Insight API v0.2.12\r\n* Bitcore v0.1.18\r\n"}}