Skip to content
This repository has been archived by the owner on Jul 12, 2021. It is now read-only.

Sometimes electrum-server fails to start when not fully synced with bitcoind #172

Open
gits7r opened this issue Oct 29, 2016 · 2 comments
Open

Comments

@gits7r
Copy link
Contributor

gits7r commented Oct 29, 2016

After several reboots for applying updates electrum-server refused to start with bitcoind and catch up on the blockchain. Here is the traceback:

Exception in thread Thread-4:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 763, in run
self.__target(_self.__args, *_self.__kwargs)
File "build/bdist.linux-x86_64/egg/electrumserver/blockchain_processor.py", line 104, in do_catch_up
self.header = self.block2header(self.bitcoind('getblock', (self.storage.last_hash,)))
File "build/bdist.linux-x86_64/egg/electrumserver/blockchain_processor.py", line 171, in bitcoind
raise BaseException(r['error'])
BaseException: {u'message': u'Block not found', u'code': -5}

@EagleTM
Copy link

EagleTM commented Jan 11, 2017

It basically means bitcoind is not synced up yet and you should wait for that to happen. I was under the impression we're catching "Block not found" with a better error message like "bitcoind probably not synced up yet" but looks like that's not the case.

@gits7r
Copy link
Contributor Author

gits7r commented Jan 14, 2017

Yes but almost every time when bitcoind is not synced up electrum returns: Bitcoind still warming up while keeps running and waits for bitcoind to warm up... while in this particular case described here (which happens rare which is true) electrum-server dies with the stack trace above.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants