Skip to content

Instantly share code, notes, and snippets.

@shuangjj
Last active May 27, 2016 01:12
Show Gist options
  • Save shuangjj/b1414f750fcef5eb72120dd2c8fdcf91 to your computer and use it in GitHub Desktop.
Save shuangjj/b1414f750fcef5eb72120dd2c8fdcf91 to your computer and use it in GitHub Desktop.
eris keys gen --> failed
-----------------------
docker run -it --entrypoint "/bin/bash" quay.io/eris/keys:alpine
bash-4.3$ eris-keys gen --no-pass
Could not connect to eris-keys server. Start it with `eris-keys server &`. Error: Post http://localhost:4767/gen:
dial tcp: lookup localhost on 8.8.8.8:53: no such host
bash-4.3$ go version
go version go1.5.4 linux/amd64
bash-4.3$ eris-keys gen --no-pass --host 0.0.0.0
Request body: {"auth":"","name":"","type":"ed25519,ripemd160"}
Generating new key. Type (ed25519,ripemd160). Encrypted (false)
Generated new key. Address (6a9fad0b2a2247f9560f016e75639b265e4a8bfe). Type (ed25519,ripemd160). Encrypted (false)
6A9FAD0B2A2247F9560F016E75639B265E4A8BFE
Solution:
Rebuild the eris-keys with --tags netgo in the Dockerfile
Ref: https://www.reddit.com/r/golang/comments/2oik71/tcp_lookup_no_such_host_error/
=========================
Sending Call to eris-keys server path=http://keys:4767
type=ed25519,ripemd160
endpoint=gen
Could not connect to eris-keys server. Start it with `eris services start keys`. Error: Post http://keys:4767/gen: dial tcp: lookup keys on 8.8.8.8:53: no such host
Solution
------------
Rebuild eris-cm docker image with the --tags netgo
==============
shuang@shuang-UX32VD idi$ eris pkgs do --chain simplechain --address $addr
Performing action. This can sometimes take a wee while
Post http://chain:46657/status: dial tcp: lookup chain on 8.8.8.8:53: no such host
Solution
-----------
Rebuild eris-pm image with the --tags netgo
===============
./chains/operate.go: ops.Args = []string{"mkdir", "--parents", path.Join(ErisContainerRoot, "chains", do.ChainID)}
alpine mkdir command doesn't support long option "--parents", change to "-p" in the operate.go file solved the problem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment