Open markasoftware opened 7 years ago
Having the same problem here. :/
@jhoutromundo ouch :( unfortunately I never really fixed this issue. I ended up putting a hard-coded timeout in to wait 30 minutes before attempting to connect.
I had this error intermittently as well. After some digging it appears to be this line causing the problem.
There is a hardcoded 60 time retry in the initial connect function, and if bitcoind hasn't finished starting up by that point bitcore (wrongly) assumes something has gone wrong.
You should be able to work around this by setting that retry value to something higher.
Just changing that one line didn't actually solve it for me, I also changed the other one here and that solved it.
@daraeman what actual figure did you set?
@xelawafs Looks like I settled on 100,000, but it really just depends on your machine and the state of your data. I think I had it and 10,000 and had to up it since it occasionally still failed.
I initially had it at 200, it failed. Bumped it up to 20000 and now it's back to syncing
@daraeman
Just changing that one line didn't actually solve it for me, I also changed the other one here and that solved it.
What other parameter did you change? Opening the link you provided goes to the same line at
async.retry({times: 60, ...
Got it. Two lines with the same content....
Thanks to @daraeman and others who commented on increasing the hardcoded values for retries, as it worked for me.
This fix applies to another issue thread: https://github.com/bitpay/bitcore/issues/1434
Thanks to @daraeman you save my day. i have changes in https://github.com/bitpay/bitcore-node/blob/97683d2ff1dd8e84bf9f7f338052cc0ed258961f/lib/services/bitcoind.js#L929 and https://github.com/bitpay/bitcore-node/blob/97683d2ff1dd8e84bf9f7f338052cc0ed258961f/lib/services/bitcoind.js#L884 line. change time to 60 to 200.
When starting up bitcore-node now, I get the following error:
It seems like bitcore is trying to send RPC calls before bitcoind is fully started up, as explained here: http://bitcoin.stackexchange.com/questions/40583/what-does-it-mean-error-code-28-message-activating-best-chain