Blockstream / esplora

Explorer for Bitcoin and Liquid
MIT License
1.01k stars 400 forks source link

PLEASE HELP ME | ERROR "Esplora is currently unavailable, please try again later" #492

Open emimugar2 opened 7 months ago

emimugar2 commented 7 months ago

Hi, I have a docker with splore installed connected by RPC to my bitcoin core that I have on windows. All the blocks have been synchronized and I have access to the esplore web in http://localhost:8080/ but it shows me the error "Esplore is currently unavailable, please try again later" and in the console gives me error requests in the api. I leave the logs of the docker console and nginx to see if you can help me, because I've been trying everything and I do not know what it can be.

image image

CONSOLE DOCKER LOGS:

PS C:\Users\emimu> docker logs --tail 200 8c493b613a688949226ef686d1422b8ffd95b93c81eef7f8780efb673104c50e
4-2024-04-07T11:02:24Z SetNetworkActive: true
4-2024-04-07T11:02:24Z Cache configuration:
4-2024-04-07T11:02:24Z * Using 2.0 MiB for block index database
4-2024-04-07T11:02:24Z * Using 8.0 MiB for chain state database
4-2024-04-07T11:02:24Z * Using 440.0 MiB for in-memory UTXO set (plus up to 953.7 MiB of unused mempool space)
4-2024-04-07T11:02:24Z init message: Loading block index…
4-2024-04-07T11:02:24Z Assuming ancestors of block 00000000000000000009c97098b5295f7e5f183ac811fb5d1534040adb93cabd have valid signatures.
4-2024-04-07T11:02:24Z Setting nMinimumChainWork=00000000000000000000000000000000000000003404ba0801921119f903495e
4-2024-04-07T11:02:24Z Switching active chainstate to Chainstate [ibd] @ height -1 (null)
4-2024-04-07T11:02:24Z Opening LevelDB in /data/bitcoin/blocks/index
4-2024-04-07T11:02:24Z Fatal LevelDB error: IO error: /data/bitcoin/blocks/index/LOCK: Permission denied
4-2024-04-07T11:02:24Z You can use -debug=leveldb to get more complete diagnostic messages
4-2024-04-07T11:02:24Z Fatal LevelDB error: IO error: /data/bitcoin/blocks/index/LOCK: Permission denied
4-2024-04-07T11:02:24Z : Error opening block database.
4-Please restart with -reindex or -reindex-chainstate to recover.
4-: Error opening block database.
4-Please restart with -reindex or -reindex-chainstate to recover.
4-2024-04-07T11:02:24Z Aborted block database rebuild. Exiting.
4-2024-04-07T11:02:24Z Shutdown: In progress...
4-2024-04-07T11:02:24Z scheduler thread exit
4-2024-04-07T11:02:24Z Shutdown: done
4-2024-04-07T11:02:24Z Ignoring unknown configuration value main.enforcenodebloom
4-2024-04-07T11:02:24Z Bitcoin Core version v24.1.0 (release build)
4-2024-04-07T11:02:24Z ParameterInteraction: parameter interaction: -disablewallet -> ignoring -wallet=Farolillo
4-2024-04-07T11:02:24Z Using the 'sse4(1way),sse41(4way)' SHA256 implementation
4-2024-04-07T11:02:24Z Default data directory /.bitcoin
4-2024-04-07T11:02:24Z Using data directory /data/bitcoin
4-2024-04-07T11:02:24Z Config file: /data/.bitcoin.conf
4-2024-04-07T11:02:24Z Config file arg: [main] blocknotify="pkill -USR1 electrs"
4-2024-04-07T11:02:24Z Config file arg: [main] disablewallet="1"
4-2024-04-07T11:02:24Z Config file arg: [main] listen="1"
4-2024-04-07T11:02:24Z Config file arg: [main] listenonion="1"
4-2024-04-07T11:02:24Z Config file arg: [main] maxmempool="1000"
4-2024-04-07T11:02:24Z Config file arg: [main] mempoolfullrbf="1"
4-2024-04-07T11:02:24Z Config file arg: [main] peerbloomfilters="0"
4-2024-04-07T11:02:24Z Config file arg: [main] server="1"
4-2024-04-07T11:02:24Z Setting file arg: wallet = ["Farolillo"]
4-2024-04-07T11:02:24Z Command-line arg: conf="/data/.bitcoin.conf"
4-2024-04-07T11:02:24Z Command-line arg: datadir="/data/bitcoin"
4-2024-04-07T11:02:24Z Using at most 125 automatic connections (1048576 file descriptors available)
4-2024-04-07T11:02:25Z Using 16 MiB out of 16 MiB requested for signature cache, able to store 524288 elements
4-2024-04-07T11:02:25Z Using 16 MiB out of 16 MiB requested for script execution cache, able to store 524288 elements
4-2024-04-07T11:02:25Z Script verification uses 3 additional threads
4-2024-04-07T11:02:25Z Wallet disabled!
4-2024-04-07T11:02:25Z scheduler thread start
4-2024-04-07T11:02:25Z [libevent:warning] getaddrinfo: address family for nodename not supported
4-2024-04-07T11:02:25Z Binding RPC on address ::1 port 8332 failed.
4-2024-04-07T11:02:25Z [http] creating work queue of depth 16
4-2024-04-07T11:02:25Z Using random cookie authentication.
4-2024-04-07T11:02:25Z Generated RPC authentication cookie /data/bitcoin/.cookie
4-2024-04-07T11:02:25Z [http] starting 4 worker threads
4-2024-04-07T11:02:25Z Using /16 prefix for IP bucketing
4-2024-04-07T11:02:25Z init message: Loading P2P addresses…
2-2024-04-07T11:02:25.550+00:00 - WARN - reconnecting to bitcoind: {"code":-28,"message":"Loading P2P addresses…"}
4-2024-04-07T11:02:26Z Loaded 66482 addresses from peers.dat  1863ms
4-2024-04-07T11:02:26Z init message: Loading banlist…
4-2024-04-07T11:02:26Z SetNetworkActive: true
4-2024-04-07T11:02:27Z Cache configuration:
4-2024-04-07T11:02:27Z * Using 2.0 MiB for block index database
4-2024-04-07T11:02:27Z * Using 8.0 MiB for chain state database
4-2024-04-07T11:02:27Z * Using 440.0 MiB for in-memory UTXO set (plus up to 953.7 MiB of unused mempool space)
4-2024-04-07T11:02:27Z init message: Loading block index…
4-2024-04-07T11:02:27Z Assuming ancestors of block 00000000000000000009c97098b5295f7e5f183ac811fb5d1534040adb93cabd have valid signatures.
4-2024-04-07T11:02:27Z Setting nMinimumChainWork=00000000000000000000000000000000000000003404ba0801921119f903495e
4-2024-04-07T11:02:27Z Switching active chainstate to Chainstate [ibd] @ height -1 (null)
4-2024-04-07T11:02:27Z Opening LevelDB in /data/bitcoin/blocks/index
4-2024-04-07T11:02:27Z Fatal LevelDB error: IO error: /data/bitcoin/blocks/index/LOCK: Permission denied
4-2024-04-07T11:02:27Z You can use -debug=leveldb to get more complete diagnostic messages
4-2024-04-07T11:02:27Z Fatal LevelDB error: IO error: /data/bitcoin/blocks/index/LOCK: Permission denied
4-2024-04-07T11:02:27Z : Error opening block database.
4-Please restart with -reindex or -reindex-chainstate to recover.
4-: Error opening block database.
4-Please restart with -reindex or -reindex-chainstate to recover.
4-2024-04-07T11:02:27Z Aborted block database rebuild. Exiting.
4-2024-04-07T11:02:27Z Shutdown: In progress...
2-2024-04-07T11:02:28.551+00:00 - WARN - failed to connect daemon at 127.0.0.1:8332: Connection refused (os error 111)
2-2024-04-07T11:02:31.551+00:00 - WARN - failed to connect daemon at 127.0.0.1:8332: Connection refused (os error 111)
2-2024-04-07T11:02:34.551+00:00 - WARN - failed to connect daemon at 127.0.0.1:8332: Connection refused (os error 111)
2-2024-04-07T11:02:37.552+00:00 - WARN - failed to connect daemon at 127.0.0.1:8332: Connection refused (os error 111)
2-2024-04-07T11:02:40.552+00:00 - WARN - failed to connect daemon at 127.0.0.1:8332: Connection refused (os error 111)
2-2024-04-07T11:02:43.552+00:00 - WARN - failed to connect daemon at 127.0.0.1:8332: Connection refused (os error 111)
2-2024-04-07T11:02:46.553+00:00 - WARN - failed to connect daemon at 127.0.0.1:8332: Connection refused (os error 111)
2-2024-04-07T11:02:49.553+00:00 - WARN - failed to connect daemon at 127.0.0.1:8332: Connection refused (os error 111)
2-2024-04-07T11:02:52.553+00:00 - WARN - failed to connect daemon at 127.0.0.1:8332: Connection refused (os error 111)
2-2024-04-07T11:02:55.554+00:00 - WARN - failed to connect daemon at 127.0.0.1:8332: Connection refused (os error 111)
4-2024-04-07T11:02:55Z scheduler thread exit
4-2024-04-07T11:02:55Z Shutdown: done
4-2024-04-07T11:02:55Z Ignoring unknown configuration value main.enforcenodebloom
4-2024-04-07T11:02:55Z Bitcoin Core version v24.1.0 (release build)
4-2024-04-07T11:02:55Z ParameterInteraction: parameter interaction: -disablewallet -> ignoring -wallet=Farolillo
4-2024-04-07T11:02:55Z Using the 'sse4(1way),sse41(4way)' SHA256 implementation
4-2024-04-07T11:02:55Z Default data directory /.bitcoin
4-2024-04-07T11:02:55Z Using data directory /data/bitcoin
4-2024-04-07T11:02:55Z Config file: /data/.bitcoin.conf
4-2024-04-07T11:02:55Z Config file arg: [main] blocknotify="pkill -USR1 electrs"
4-2024-04-07T11:02:55Z Config file arg: [main] disablewallet="1"
4-2024-04-07T11:02:55Z Config file arg: [main] listen="1"
4-2024-04-07T11:02:55Z Config file arg: [main] listenonion="1"
4-2024-04-07T11:02:55Z Config file arg: [main] maxmempool="1000"
4-2024-04-07T11:02:55Z Config file arg: [main] mempoolfullrbf="1"
4-2024-04-07T11:02:55Z Config file arg: [main] peerbloomfilters="0"
4-2024-04-07T11:02:55Z Config file arg: [main] server="1"
4-2024-04-07T11:02:55Z Setting file arg: wallet = ["Farolillo"]
4-2024-04-07T11:02:55Z Command-line arg: conf="/data/.bitcoin.conf"
4-2024-04-07T11:02:55Z Command-line arg: datadir="/data/bitcoin"
4-2024-04-07T11:02:55Z Using at most 125 automatic connections (1048576 file descriptors available)
4-2024-04-07T11:02:55Z Using 16 MiB out of 16 MiB requested for signature cache, able to store 524288 elements
4-2024-04-07T11:02:55Z Using 16 MiB out of 16 MiB requested for script execution cache, able to store 524288 elements
4-2024-04-07T11:02:55Z Script verification uses 3 additional threads
4-2024-04-07T11:02:55Z Wallet disabled!
4-2024-04-07T11:02:55Z scheduler thread start
4-2024-04-07T11:02:55Z [libevent:warning] getaddrinfo: address family for nodename not supported
4-2024-04-07T11:02:55Z Binding RPC on address ::1 port 8332 failed.
4-2024-04-07T11:02:55Z [http] creating work queue of depth 16
4-2024-04-07T11:02:55Z Using random cookie authentication.
4-2024-04-07T11:02:55Z Generated RPC authentication cookie /data/bitcoin/.cookie
4-2024-04-07T11:02:55Z [http] starting 4 worker threads
4-2024-04-07T11:02:55Z Using /16 prefix for IP bucketing
4-2024-04-07T11:02:55Z init message: Loading P2P addresses…
4-2024-04-07T11:02:57Z Loaded 66482 addresses from peers.dat  1662ms
4-2024-04-07T11:02:57Z init message: Loading banlist…
4-2024-04-07T11:02:57Z SetNetworkActive: true
4-2024-04-07T11:02:57Z Cache configuration:
4-2024-04-07T11:02:57Z * Using 2.0 MiB for block index database
4-2024-04-07T11:02:57Z * Using 8.0 MiB for chain state database
4-2024-04-07T11:02:57Z * Using 440.0 MiB for in-memory UTXO set (plus up to 953.7 MiB of unused mempool space)
4-2024-04-07T11:02:57Z init message: Loading block index…
4-2024-04-07T11:02:57Z Assuming ancestors of block 00000000000000000009c97098b5295f7e5f183ac811fb5d1534040adb93cabd have valid signatures.
4-2024-04-07T11:02:57Z Setting nMinimumChainWork=00000000000000000000000000000000000000003404ba0801921119f903495e
4-2024-04-07T11:02:57Z Switching active chainstate to Chainstate [ibd] @ height -1 (null)
4-2024-04-07T11:02:57Z Opening LevelDB in /data/bitcoin/blocks/index
4-2024-04-07T11:02:57Z Fatal LevelDB error: IO error: /data/bitcoin/blocks/index/LOCK: Permission denied
4-2024-04-07T11:02:57Z You can use -debug=leveldb to get more complete diagnostic messages
4-2024-04-07T11:02:57Z Fatal LevelDB error: IO error: /data/bitcoin/blocks/index/LOCK: Permission denied
4-2024-04-07T11:02:57Z : Error opening block database.
4-Please restart with -reindex or -reindex-chainstate to recover.
4-: Error opening block database.
4-Please restart with -reindex or -reindex-chainstate to recover.
4-2024-04-07T11:02:57Z Aborted block database rebuild. Exiting.
4-2024-04-07T11:02:57Z Shutdown: In progress...
4-2024-04-07T11:02:57Z scheduler thread exit
4-2024-04-07T11:02:57Z Shutdown: done
4-2024-04-07T11:02:57Z Ignoring unknown configuration value main.enforcenodebloom
4-2024-04-07T11:02:57Z Bitcoin Core version v24.1.0 (release build)
4-2024-04-07T11:02:57Z ParameterInteraction: parameter interaction: -disablewallet -> ignoring -wallet=Farolillo
4-2024-04-07T11:02:57Z Using the 'sse4(1way),sse41(4way)' SHA256 implementation
4-2024-04-07T11:02:57Z Default data directory /.bitcoin
4-2024-04-07T11:02:57Z Using data directory /data/bitcoin
4-2024-04-07T11:02:57Z Config file: /data/.bitcoin.conf
4-2024-04-07T11:02:57Z Config file arg: [main] blocknotify="pkill -USR1 electrs"
4-2024-04-07T11:02:57Z Config file arg: [main] disablewallet="1"
4-2024-04-07T11:02:57Z Config file arg: [main] listen="1"
4-2024-04-07T11:02:57Z Config file arg: [main] listenonion="1"
4-2024-04-07T11:02:57Z Config file arg: [main] maxmempool="1000"
4-2024-04-07T11:02:57Z Config file arg: [main] mempoolfullrbf="1"
4-2024-04-07T11:02:57Z Config file arg: [main] peerbloomfilters="0"
4-2024-04-07T11:02:57Z Config file arg: [main] server="1"
4-2024-04-07T11:02:57Z Setting file arg: wallet = ["Farolillo"]
4-2024-04-07T11:02:57Z Command-line arg: conf="/data/.bitcoin.conf"
4-2024-04-07T11:02:57Z Command-line arg: datadir="/data/bitcoin"
4-2024-04-07T11:02:57Z Using at most 125 automatic connections (1048576 file descriptors available)
4-2024-04-07T11:02:57Z Using 16 MiB out of 16 MiB requested for signature cache, able to store 524288 elements
4-2024-04-07T11:02:57Z Using 16 MiB out of 16 MiB requested for script execution cache, able to store 524288 elements
4-2024-04-07T11:02:57Z Script verification uses 3 additional threads
4-2024-04-07T11:02:57Z Wallet disabled!
4-2024-04-07T11:02:57Z scheduler thread start
4-2024-04-07T11:02:57Z [libevent:warning] getaddrinfo: address family for nodename not supported
4-2024-04-07T11:02:57Z Binding RPC on address ::1 port 8332 failed.
4-2024-04-07T11:02:57Z [http] creating work queue of depth 16
4-2024-04-07T11:02:57Z Using random cookie authentication.
4-2024-04-07T11:02:57Z Generated RPC authentication cookie /data/bitcoin/.cookie
4-2024-04-07T11:02:57Z [http] starting 4 worker threads
4-2024-04-07T11:02:57Z Using /16 prefix for IP bucketing
4-2024-04-07T11:02:57Z init message: Loading P2P addresses…
2-2024-04-07T11:02:58.557+00:00 - WARN - reconnecting to bitcoind: {"code":-28,"message":"Loading P2P addresses…"}
4-2024-04-07T11:02:59Z Loaded 66482 addresses from peers.dat  1639ms
4-2024-04-07T11:02:59Z init message: Loading banlist…
4-2024-04-07T11:02:59Z SetNetworkActive: true
4-2024-04-07T11:02:59Z Cache configuration:
4-2024-04-07T11:02:59Z * Using 2.0 MiB for block index database
4-2024-04-07T11:02:59Z * Using 8.0 MiB for chain state database
4-2024-04-07T11:02:59Z * Using 440.0 MiB for in-memory UTXO set (plus up to 953.7 MiB of unused mempool space)
4-2024-04-07T11:02:59Z init message: Loading block index…
4-2024-04-07T11:02:59Z Assuming ancestors of block 00000000000000000009c97098b5295f7e5f183ac811fb5d1534040adb93cabd have valid signatures.
4-2024-04-07T11:02:59Z Setting nMinimumChainWork=00000000000000000000000000000000000000003404ba0801921119f903495e
4-2024-04-07T11:02:59Z Switching active chainstate to Chainstate [ibd] @ height -1 (null)
4-2024-04-07T11:02:59Z Opening LevelDB in /data/bitcoin/blocks/index
4-2024-04-07T11:02:59Z Fatal LevelDB error: IO error: /data/bitcoin/blocks/index/LOCK: Permission denied
4-2024-04-07T11:02:59Z You can use -debug=leveldb to get more complete diagnostic messages
4-2024-04-07T11:02:59Z Fatal LevelDB error: IO error: /data/bitcoin/blocks/index/LOCK: Permission denied
4-2024-04-07T11:02:59Z : Error opening block database.
4-Please restart with -reindex or -reindex-chainstate to recover.
4-: Error opening block database.
4-Please restart with -reindex or -reindex-chainstate to recover.
4-2024-04-07T11:02:59Z Aborted block database rebuild. Exiting.
4-2024-04-07T11:02:59Z Shutdown: In progress...
2-2024-04-07T11:03:01.557+00:00 - WARN - failed to connect daemon at 127.0.0.1:8332: Connection refused (os error 111)

LOGS NGINX: image

tail -f /var/log/nginx/error.log 2024/04/07 11:04:34 [crit] 97#97: *434 connect() to unix:/var/electrs-rest.sock failed (2: No such file or directory) while connecting to upstream, client: 172.17.0.1, server: , request: "GET /api/mempool/recent HTTP/1.1", upstream: "http://unix:/var/electrs-rest.sock:/mempool/recent", host: "localhost:8080" 2024/04/07 11:06:00 [error] 97#97: *439 open() "/srv/explorer/static/bitcoin-mainnet/bootstrap.min.css.map" failed (2: No such file or directory), client: 172.17.0.1, server: , request: "GET /bootstrap.min.css.map HTTP/1.1", host: "localhost:8080" 2024/04/07 11:06:32 [crit] 97#97: *439 connect() to unix:/var/electrs-rest.sock failed (2: No such file or directory) while connecting to upstream, client: 172.17.0.1, server: , request: "GET /api/blocks/ HTTP/1.1", upstream: "http://unix:/var/electrs-rest.sock:/blocks/", host: "localhost:8080" 2024/04/07 11:08:28 [crit] 97#97: *439 connect() to unix:/var/electrs-rest.sock failed (2: No such file or directory) while connecting to upstream, client: 172.17.0.1, server: , request: "GET /api/blocks HTTP/1.1", upstream: "http://unix:/var/electrs-rest.sock:/blocks", host: "localhost:8080" 2024/04/07 11:08:28 [crit] 97#97: *438 connect() to unix:/var/electrs-rest.sock failed (2: No such file or directory) while connecting to upstream, client: 172.17.0.1, server: , request: "GET /api/mempool/recent HTTP/1.1", upstream: "http://unix:/var/electrs-rest.sock:/mempool/recent", host: "localhost:8080" 2024/04/07 11:08:30 [crit] 97#97: *438 connect() to unix:/var/electrs-rest.sock failed (2: No such file or directory) while connecting to upstream, client: 172.17.0.1, server: , request: "GET /api/blocks HTTP/1.1", upstream: "http://unix:/var/electrs-rest.sock:/blocks", host: "localhost:8080" 2024/04/07 11:08:30 [crit] 97#97: *438 connect() to unix:/var/electrs-rest.sock failed (2: No such file or directory) while connecting to upstream, client: 172.17.0.1, server: , request: "GET /api/mempool/recent HTTP/1.1", upstream: "http://unix:/var/electrs-rest.sock:/mempool/recent", host: "localhost:8080" 2024/04/07 11:08:32 [crit] 97#97: *438 connect() to unix:/var/electrs-rest.sock failed (2: No such file or directory) while connecting to upstream, client: 172.17.0.1, server: , request: "GET /api/blocks HTTP/1.1", upstream: "http://unix:/var/electrs-rest.sock:/blocks", host: "localhost:8080" 2024/04/07 11:08:32 [crit] 97#97: *438 connect() to unix:/var/electrs-rest.sock failed (2: No such file or directory) while connecting to upstream, client: 172.17.0.1, server: , request: "GET /api/mempool/recent HTTP/1.1", upstream: "http://unix:/var/electrs-rest.sock:/mempool/recent", host: "localhost:8080" 2024/04/07 11:08:32 [crit] 97#97: *445 connect() to unix:/var/electrs-rest.sock failed (2: No such file or directory) while connecting to upstream, client: 172.17.0.1, server: , request: "GET /api/blocks/tip/height HTTP/1.1", upstream: "http://unix:/var/electrs-rest.sock:/blocks/tip/height", host: "localhost:8080"

emimugar2 commented 7 months ago

any can help me? :(

supertobby commented 6 months ago

I met the same issue :(

pberritta commented 4 months ago

Esplora uses it's own bitcoind instance and you have to syncronize that instance before getting esplora working. It seems that your block directory is corrupted or not working "Fatal LevelDB error: IO error: /data/bitcoin/blocks/index/LOCK:" Try to reindex the bitcoind instance of esplora checking the correct path for block data.