regtest-server icon indicating copy to clipboard operation
regtest-server copied to clipboard

Error: connect ECONNREFUSED 127.0.0.1:8080

Open drewstone opened this issue 6 years ago • 7 comments

I setup the docker instance as documented, it seems to be running, though I cannot connect or run my own tests.

drewstone avatar Oct 04 '19 18:10 drewstone

you need to expose the ports via the -p option

ie.

docker run -p 8080:8080 xxxxx

this tells docker to bind the 8080 port of the container to the 8080 port of host's localhost

junderw avatar Oct 04 '19 22:10 junderw

Yea I did run with that too, same as the instructions, no?

On Sat, Oct 5, 2019 at 1:24 AM Jonathan Underwood [email protected] wrote:

you need to expose the ports via the -p option

ie.

docker run -p 8080:8080 xxxxx

this tells docker to bind the 8080 port of the container to the 8080 port of host's localhost

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/bitcoinjs/regtest-server/issues/9?email_source=notifications&email_token=ADELLF6IGNW5OLE7KL3ELOLQM67BZA5CNFSM4I5TANM2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEANBCGY#issuecomment-538579227, or mute the thread https://github.com/notifications/unsubscribe-auth/ADELLF5LN43ALS7WY33HOYLQM67BZANCNFSM4I5TANMQ .

drewstone avatar Oct 04 '19 22:10 drewstone

run

sudo netstat -tulpn

and see if anything is listening to localhost 8080 and what process it is.

junderw avatar Oct 04 '19 23:10 junderw

With the full command I get: netstat: n: unknown or uninstrumented protocol With partial commands I do not see any localhost. If I try to run the docker run command again I get:

docker: Error response from daemon: driver failed programming external connectivity on endpoint goofy_jang (<NUM>): Bind for 0.0.0.0:8080 failed: port is already allocated.

drewstone avatar Oct 04 '19 23:10 drewstone

Are you using the image from docker hub or did you build it yourself?

junderw avatar Oct 04 '19 23:10 junderw

I built it myself after cloning this repo.

drewstone avatar Oct 04 '19 23:10 drewstone

try using the image from docker hub.

let me know what happens

junderw avatar Oct 05 '19 00:10 junderw