docker run bitcoin testnet3 and signet doesn't work well

Open
#503 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
docker

Research direction

Reproduce the Docker setup using the linked build and Bitcoin testnet3 instructions, then compare the testnet3 and signet behavior with regtest. Start by inspecting the container's nginx configuration, electrs logs, and the presence of /var/electrs-rest.sock. Done means the backend REST service starts after synchronization and the socket is created for testnet3 and signet.

Written by the indexing model from the issue text.

Description

run esplora via docker:

  1. build the docker image first on server according to https://github.com/Blockstream/esplora?tab=readme-ov-file#how-to-build-the-docker-image

  2. run testnet3 according to https://github.com/Blockstream/esplora?tab=readme-ov-file#how-to-run-the-explorer-for-bitcoin-testnet3

bitcoind can sync up blocks normally, yet the backend service is not started.

check nginx config in the container:

CleanShot-20240609014811

ls under /var:

CleanShot-20240609014718

/var/electrs-rest.sock does not exist

check electrs logs:

CleanShot-20240609015508

it keeps printing the same log without errors after syncing all the blocks.

--

try to run bitcoin signet, the phenomenon is the same as testnet3

--

try to run bitcoin regtest, everything works well.

check regtest electrs logs:

CleanShot-20240609020105

it has 2 lines of output that say the rest service is up, once the blocks are synced, whereas testnet3 and signet don't have this kind of log.

please check

Dominant language
JavaScript
Stars
1.3k
Forks
527
Avg merge
2d 5h
Merged PRs (30d)
4

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Blockstream/esplora

All issues in Blockstream/esplora

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.