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

EthProvider unreachable in simulation tests #1979

Open
sangaman opened this issue Nov 3, 2020 · 2 comments
Open

EthProvider unreachable in simulation tests #1979

sangaman opened this issue Nov 3, 2020 · 2 comments
Labels
automated tests bug Something isn't working build Related to build process and automation P3 low priority

Comments

@sangaman
Copy link
Collaborator

sangaman commented Nov 3, 2020

I don't know how my local simulation tests got in this state exactly, I did a docker system prune -a and then npm run test:sim:build and had some early tests fail due to bugs in my new test cases, now after fixing those bugs I always get errors like below when running simulation tests. Another system prune or clean might fix it but I wanted to open an issue for this so we can track it or maybe prevent it from happening again, or at least figure out what happened here.

Any thoughts @erkarl @LePremierHomme ?

~/Documents/GitHub/xud/test/simulation/temp/indra ~/Documents/GitHub/xud/test/simulation
bash ops/start-indra.sh
n3qd1y1ll8hdu0atrfbeuubgh
Using docker images indra_name:latest 
Proxy configured
Node configured
Created secret called indra_database_dev with id q2re0q8d2m09bj84po7et3qby
Database configured
Nats configured
No $INDRA_CHAIN_PROVIDERS provided, spinning up local testnets & using those.
A secret called indra_mnemonic_dev already exists, skipping secret setup
Starting testnet_1337 & testnet_1338..
Running dev-mode image for testnet 1338: indra_builder
Unable to find image 'indra_builder:latest' locally
docker: Error response from daemon: pull access denied for indra_builder, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.
See 'docker run --help'.
make: *** [Makefile:48: start] Error 125
~/Documents/GitHub/xud/test/simulation
Creating simulation_gomod_1   ... done
Creating simulation_xud_1     ... done
Creating simulation_btcd_1    ... done
Creating simulation_lnd_1     ... done
Creating simulation_connext_1 ... done
=== RUN   TestIntegration
2020/11/03 16:01:59 EthProvider reachability failure: Post http://172.17.0.1:8545: dial tcp 172.17.0.1:8545: connect: connection refused
exit status 1
FAIL	github.com/ExchangeUnion/xud-simulation	0.059s

docker-run.sh: test failed, re-running... (1/3)

Starting simulation_xud_1     ... done
Starting simulation_connext_1 ... done
Starting simulation_gomod_1   ... done
Starting simulation_lnd_1     ... done
Starting simulation_btcd_1    ... done
^Cgo build github.com/ethereum/go-ethereum/crypto/secp256k1: /usr/local/go/pkg/tool/linux_amd64/cgo: signal: interrupt

docker-run.sh: test failed, re-running... (2/3)

Starting simulation_lnd_1     ... done
Starting simulation_connext_1 ... done
Starting simulation_btcd_1    ... done
Starting simulation_xud_1     ... done
Starting simulation_gomod_1   ... done
=== RUN   TestIntegration
2020/11/03 16:02:55 EthProvider reachability failure: Post http://172.17.0.1:8545: dial tcp 172.17.0.1:8545: connect: connection refused
exit status 1
FAIL	github.com/ExchangeUnion/xud-simulation	0.082s

@kilrau kilrau added bug Something isn't working build Related to build process and automation P3 low priority labels Nov 3, 2020
@ghost
Copy link

ghost commented Nov 10, 2020

Just curious - do you also have indra cloned/previously running locally?

@sangaman
Copy link
Collaborator Author

Previously yes but I haven't run it or done anything with it in a while, and it should've been cleaned by pruning docker.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automated tests bug Something isn't working build Related to build process and automation P3 low priority
Projects
None yet
Development

No branches or pull requests

2 participants