Title: Insight: Can't connect to coind to get live updates from the p2p network. Post by: mmitech on August 11, 2015, 05:26:04 PM I am struggling with this for a couple of hours now:
Quote Can't connect to coind to get live updates from the p2p network. (Tried connecting to bitcoind at 127.0.0.1:5837 and failed.) in the log I see Code: { '0': 'connecting to 127.0.0.1:5837' } after a while { '0': 'disconnected from peer 127.0.0.1:5837' }. I can telnet 127.0.0.1 5837 and 0.0.0.0 5837 Code: telnet 127.0.0.1 5837 I double checked the magic again, and it is d9e6e7e5 exactly like in the source code https://github.com/Leocoin-project/LEOcoin/blob/master/src/main.cpp#L3023 The Protocol version is 70000 same as in the code Code: "version" : "v1.3.0.0-L32a928e-leo-enhanced", but I can't get it to work !!! any suggestion ? did I miss anything ? Title: Re: Insight: Can't connect to coind to get live updates from the p2p network. Post by: achow101 on August 11, 2015, 05:32:35 PM Did you set the rpc user and password correctly both in the config file and in the environment variables when starting Insight?
Title: Re: Insight: Can't connect to coind to get live updates from the p2p network. Post by: mmitech on August 11, 2015, 05:43:41 PM Did you set the rpc user and password correctly both in the config file and in the environment variables when starting Insight? I did set it in the config file at Code: insight/node_modules/insight-bitcore-api/config/config.js Title: Re: Insight: Can't connect to coind to get live updates from the p2p network. Post by: achow101 on August 11, 2015, 05:47:42 PM Did you set the rpc user and password correctly both in the config file and in the environment variables when starting Insight? I did set it in the config file at Code: insight/node_modules/insight-bitcore-api/config/config.js Also, what command are you using to start insight? Title: Re: Insight: Can't connect to coind to get live updates from the p2p network. Post by: mmitech on August 11, 2015, 05:53:15 PM Did you set the rpc user and password correctly both in the config file and in the environment variables when starting Insight? I did set it in the config file at Code: insight/node_modules/insight-bitcore-api/config/config.js Also, what command are you using to start insight? They are the same, I am starting it with npm start . Edit: I get the net stats and block height, the problem is that insight doesn't submit latest blocks in the network Title: Re: Insight: Can't connect to coind to get live updates from the p2p network. Post by: achow101 on August 11, 2015, 06:00:12 PM They are the same, I am starting it with npm start . Do you start it with Edit: I get the net stats and block height, the problem is that insight doesn't submit latest blocks in the network Code: INSIGHT_NETWORK=livenet Title: Re: Insight: Can't connect to coind to get live updates from the p2p network. Post by: mmitech on August 11, 2015, 06:03:05 PM They are the same, I am starting it with npm start . Do you start it with Edit: I get the net stats and block height, the problem is that insight doesn't submit latest blocks in the network Code: INSIGHT_NETWORK=livenet yes it is on the live net, in fact I have the same config for both livenet and testnet. as you can see www.mmitech.info it is showing the main net Title: Re: Insight: Can't connect to coind to get live updates from the p2p network. Post by: achow101 on August 11, 2015, 06:27:01 PM Have you tried restarting insight or clearing its databases to resynce? That might help, otherwise, I don't know if what the problem is. Also, if you search for the latest block, it will still show the data even with the error.
Title: Re: Insight: Can't connect to coind to get live updates from the p2p network. Post by: mmitech on August 11, 2015, 06:28:21 PM Have you tried restarting insight or clearing its databases to resynce? That might help, otherwise, I don't know if what the problem is. Also, if you search for the latest block, it will still show the data even with the error. I see, it got messed up again...Title: Re: Insight: Can't connect to coind to get live updates from the p2p network. Post by: mmitech on August 11, 2015, 06:56:23 PM Have you tried restarting insight or clearing its databases to resynce? That might help, otherwise, I don't know if what the problem is. Also, if you search for the latest block, it will still show the data even with the error. OK, I tried re-syncing, but I see the same problem !!! all suggestions are welcome, maybe I am missing something really small here... Title: Re: Insight: Can't connect to coind to get live updates from the p2p network. Post by: achow101 on August 11, 2015, 08:22:40 PM Have you tried restarting insight or clearing its databases to resynce? That might help, otherwise, I don't know if what the problem is. Also, if you search for the latest block, it will still show the data even with the error. OK, I tried re-syncing, but I see the same problem !!! all suggestions are welcome, maybe I am missing something really small here... Title: Re: Insight: Can't connect to coind to get live updates from the p2p network. Post by: mmitech on August 11, 2015, 08:40:57 PM Have you tried restarting insight or clearing its databases to resynce? That might help, otherwise, I don't know if what the problem is. Also, if you search for the latest block, it will still show the data even with the error. OK, I tried re-syncing, but I see the same problem !!! all suggestions are welcome, maybe I am missing something really small here... Code: > insight-bitcore@0.2.7 start /root/insight I removed HTTP calls Title: Re: Insight: Can't connect to coind to get live updates from the p2p network. Post by: mmitech on August 12, 2015, 11:23:31 AM I found the trick, it was my mistake, I made a mistake with the magic, I mixed the mainnet one with the testnet one.... make sure you have the right magic or your daemon will reject connections
|