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

run esplora with docker, but no 50001 port listened #526

Open
hanxianlong opened this issue Sep 11, 2024 · 1 comment
Open

run esplora with docker, but no 50001 port listened #526

hanxianlong opened this issue Sep 11, 2024 · 1 comment

Comments

@hanxianlong
Copy link

Hi there,
could anybody help me out..... I build the esplora following the instruction here :https://github.com/Blockstream/esplora#how-to-build-the-docker-image

and when I start the docker image with the following command, it started to sync blocks from mainnet and now it finished, but I cann't connect to it. When I checked the port in the docker container, I found there is no 50001 port listening, could anybody help me out? thanks...

docker run -p 50001:50001 -p 8080:80 \ --volume $PWD/data_bitcoin_mainnet:/data \ --rm -i -t esplora \ bash -c "/srv/explorer/run.sh bitcoin-mainnet explorer"

here is the listening port in the container:
image

@philippem
Copy link
Collaborator

philippem commented Oct 31, 2024

The electrs process inside the container should be listening on TCP port 50001. If you don't see it, that likely means the electrs has terminated unexpectedly.

Can you browse the html pages via http://localhost:8080 ?

Similar output inside a container running regtest node:

root@4c3b5d04ca01:/srv/explorer# ss -lnt
State                  Recv-Q                 Send-Q                                  Local Address:Port                                    Peer Address:Port                 Process                 
LISTEN                 0                      128                                         127.0.0.1:18443                                        0.0.0.0:*                                            
LISTEN                 0                      4096                                        127.0.0.1:18445                                        0.0.0.0:*                                            
LISTEN                 0                      4096                                          0.0.0.0:18444                                        0.0.0.0:*                                            
LISTEN                 0                      4096                                        127.0.0.1:9051                                         0.0.0.0:*                                            
LISTEN                 0                      4096                                        127.0.0.1:9050                                         0.0.0.0:*                                            
LISTEN                 0                      511                                           0.0.0.0:50001                                        0.0.0.0:*                                            
LISTEN                 0                      128                                           0.0.0.0:4224                                         0.0.0.0:*                                            
LISTEN                 0                      511                                           0.0.0.0:80                                           0.0.0.0:*                                            
LISTEN                 0                      4096                                             [::]:18444                                           [::]:*                             

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

2 participants