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

[tm-monitor] docker container of tendermint monitor connection refused #92

Closed
yunkunrao opened this issue May 7, 2018 · 6 comments
Closed
Assignees

Comments

@yunkunrao
Copy link
Contributor

yunkunrao commented May 7, 2018

Follow the steps in README, i.e.:

docker run -it --rm -v "/tmp:/tendermint" tendermint/tendermint init
docker run -it --rm -v "/tmp:/tendermint" -p "46657:46657" --name=tm tendermint/tendermint

docker run -it --rm --link=tm tendermint/monitor tm:46657

there's a connection refused issue for the monitor, here's the log detail:

root@ubuntu18:/home/ryk/go_home/src/github.com/tendermint/tendermint/DOCKER# docker run -it --rm --link=tm tendermint/monitor tm:46657
panic: dial tcp 172.17.0.2:46657: getsockopt: connection refused

goroutine 1 [running]:
main.startMonitor(0x7ffcff9abe1a, 0x8, 0x6)
        /go/src/github.com/tendermint/tools/tm-monitor/main.go:79 +0x3dc
main.main()
        /go/src/github.com/tendermint/tools/tm-monitor/main.go:53 +0x16b

Is there something wrong with environment? Thanks.

@yunkunrao
Copy link
Contributor Author

BY adding "node --proxy-app=XX" subcmd, this issue was fixed. So do you have any plan about updating README?
By the way, there's tm-monitor build failure with latest commit on master branch. Could you help double confirm about this? Thanks very much.

@melekes
Copy link
Contributor

melekes commented May 8, 2018

Refs tendermint/tendermint#1538

@yunkunrao
Copy link
Contributor Author

I have the workaround and give comments for tendermint/tendermint#1538. And thanks for your reply.

@LilithVL
Copy link

LilithVL commented May 9, 2018

Can confirm the tm-monitor build failure.
Additionally, I have the same error and the "node --proxy-app=XX" subcmd doesn't fix this for me.

@yunkunrao
Copy link
Contributor Author

Hi, @LilithVL, go get this tool repo and dep ensure will fix build errors and it works at least in my env. 😊

@melekes melekes self-assigned this May 16, 2018
melekes added a commit that referenced this issue May 16, 2018
@melekes
Copy link
Contributor

melekes commented May 16, 2018

@yunkunrao @LilithVL sorry for confusion! fixed by 399c7ea

Re build failure: execute make get_vendor_deps

Re node --proxy-app=XX: this is only needed if you don't have an ABCI app (by default tendermint probes tcp://127.0.0.1:46658 for ABCI application).

  • If you don't have an app, you can use kvstore: node --proxy_app=kvstore.
  • If you have and it's running somewhere else, again point tendermint to the right location: node --proxy_app=tcp://{IP}:{Port} or node --proxy_app=unix://{IP}:{Port}

@melekes melekes closed this as completed May 16, 2018
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

3 participants