-
Notifications
You must be signed in to change notification settings - Fork 648
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Doesn't always wait for bitcoind to be fully started up #498
Comments
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 |
What other parameter did you change? Opening the link you provided goes to the same line at
|
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: bitpay/bitcore#1434 |
Thanks to @daraeman bitcore-node/lib/services/bitcoind.js Line 929 in 97683d2
and bitcore-node/lib/services/bitcoind.js Line 884 in 97683d2
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
The text was updated successfully, but these errors were encountered: