Skip to content
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

Overcame "Genesis hash mismatch" stalled by "ipaddress.AddressValueError: 'localhost' does not appear to be an IPv4 or IPv6 address." #16

Open
DazWilkin opened this issue Nov 3, 2017 · 0 comments

Comments

@DazWilkin
Copy link

Subsequent error appeared solvable but I encountered a further problem and am abandoning this :-(

I took the hint and replaced the values of eth.genesis_hash through the docker-compose.yaml

replaced: d4e56740f876aef8c010b86a40d5f56745a118d0906a34e69aec8c0db1cb8fa3
with: 283bd9430c5f3114872f93beefe99d6626980b3a4a18a44ddd27749cd89688f2

This got me beyond:

bootstrap    | deleting 32047
bootstrap    | Initializing chain from provided genesis declaration
bootstrap    | INFO:eth.chainservice	chain at number=0
bootstrap    | Traceback (most recent call last):
bootstrap    |   File "/usr/local/bin/pyethapp", line 11, in <module>
bootstrap    |     sys.exit(app())
bootstrap    |   File "/usr/local/lib/python2.7/site-packages/click/core.py", line 722, in __call__
bootstrap    |     return self.main(*args, **kwargs)
bootstrap    |   File "/usr/local/lib/python2.7/site-packages/click/core.py", line 697, in main
bootstrap    |     rv = self.invoke(ctx)
bootstrap    |   File "/usr/local/lib/python2.7/site-packages/click/core.py", line 1066, in invoke
bootstrap    |     return _process_result(sub_ctx.command.invoke(sub_ctx))
bootstrap    |   File "/usr/local/lib/python2.7/site-packages/click/core.py", line 895, in invoke
bootstrap    |     return ctx.invoke(self.callback, **ctx.params)
bootstrap    |   File "/usr/local/lib/python2.7/site-packages/click/core.py", line 535, in invoke
bootstrap    |     return callback(*args, **kwargs)
bootstrap    |   File "/usr/local/lib/python2.7/site-packages/click/decorators.py", line 17, in new_func
bootstrap    |     return f(get_current_context(), *args, **kwargs)
bootstrap    |   File "/usr/local/lib/python2.7/site-packages/pyethapp/app.py", line 223, in run
bootstrap    |     service.register_with_app(app)
bootstrap    |   File "/usr/local/lib/python2.7/site-packages/devp2p/service.py", line 47, in register_with_app
bootstrap    |     s = klass(app)
bootstrap    |   File "/usr/local/lib/python2.7/site-packages/pyethapp/eth_service.py", line 171, in __init__
bootstrap    |     sce['genesis_hash'], self.chain.genesis.hex_hash)
bootstrap    | AssertionError: Genesis hash mismatch.
bootstrap    |   Expected: 283bd9430c5f3114872f93beefe99d6626980b3a4a18a44ddd27749cd89688f2
bootstrap    |   Got: d4e56740f876aef8c010b86a40d5f56745a118d0906a34e69aec8c0db1cb8fa3
bootstrap exited with code 1

BUT finally blocked by:

bootstrap    | INFO:p2p.peermgr	starting listener addr=('0.0.0.0', 30303)
bootstrap    | INFO:p2p.discovery	starting discovery 
bootstrap    | INFO:p2p.discovery	starting listener host=0.0.0.0 port=30303
bootstrap    | Traceback (most recent call last):
bootstrap    |   File "/usr/local/bin/pyethapp", line 11, in <module>
bootstrap    |     sys.exit(app())
bootstrap    |   File "/usr/local/lib/python2.7/site-packages/click/core.py", line 722, in __call__
bootstrap    |     return self.main(*args, **kwargs)
bootstrap    |   File "/usr/local/lib/python2.7/site-packages/click/core.py", line 697, in main
bootstrap    |     rv = self.invoke(ctx)
bootstrap    |   File "/usr/local/lib/python2.7/site-packages/click/core.py", line 1066, in invoke
bootstrap    |     return _process_result(sub_ctx.command.invoke(sub_ctx))
bootstrap    |   File "/usr/local/lib/python2.7/site-packages/click/core.py", line 895, in invoke
bootstrap    |     return ctx.invoke(self.callback, **ctx.params)
bootstrap    |   File "/usr/local/lib/python2.7/site-packages/click/core.py", line 535, in invoke
bootstrap    |     return callback(*args, **kwargs)
bootstrap    |   File "/usr/local/lib/python2.7/site-packages/click/decorators.py", line 17, in new_func
bootstrap    |     return f(get_current_context(), *args, **kwargs)
bootstrap    |   File "/usr/local/lib/python2.7/site-packages/pyethapp/app.py", line 228, in run
bootstrap    |     app.start()
bootstrap    |   File "/usr/local/lib/python2.7/site-packages/devp2p/app.py", line 41, in start
bootstrap    |     service.start()
bootstrap    |   File "/usr/local/lib/python2.7/site-packages/devp2p/discovery.py", line 587, in start
bootstrap    |     nodes = [Node.from_uri(x) for x in self.app.config['discovery']['bootstrap_nodes']]
bootstrap    |   File "/usr/local/lib/python2.7/site-packages/devp2p/discovery.py", line 123, in from_uri
bootstrap    |     return cls(pubkey, Address(ip, int(port)))
bootstrap    |   File "/usr/local/lib/python2.7/site-packages/devp2p/discovery.py", line 75, in __init__
bootstrap    |     raise e
bootstrap    | ipaddress.AddressValueError: 'localhost' does not appear to be an IPv4 or IPv6 address. Did you pass in a bytes (str in Python 2) instead of a unicode object?
bootstrap exited with code 1
@DazWilkin DazWilkin changed the title Overcame 'Genesis hash mismatch' stalled by "ipaddress.AddressValueError: 'localhost' does not appear to be an IPv4 or IPv6 address.' Overcame "Genesis hash mismatch" stalled by "ipaddress.AddressValueError: 'localhost' does not appear to be an IPv4 or IPv6 address." Nov 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant