You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Feb 28 07:01:35 zeus systemd[1]: Started Electrs.
Feb 28 07:01:35 zeus electrs[3058]: Starting electrs 0.10.3 on x86_64 linux with Config { network: Bitcoin, db_path: "./db/bitcoin", db_log_dir: None, daemon_dir: "/home/bitcoin/.bitcoin", daemon_auth: CookieFile("/home/bitcoin/.bitcoin/.cookie"), daemon_rpc_addr: 127.0.0.1:8332, daemon_p2p_addr: 127.0.0.1:8333, electrum_rpc_addr: 127.0.0.1:50001, monitoring_addr: 127.0.0.1:4224, wait_duration: 10s, jsonrpc_timeout: 15s, index_batch_size: 10, index_lookup_limit: None, reindex_last_blocks: 0, auto_reindex: true, ignore_mempool: false, sync_once: false, skip_block_download_wait: false, disable_electrum_rpc: false, server_banner: "Welcome to electrs 0.10.3 (Electrum Rust Server)!", signet_magic: f9beb4d9, args: [] }
Feb 28 07:04:35 zeus electrs[3058]: [2024-02-28T12:04:35.317Z WARN electrs::thread] p2p_send thread failed: p2p failed to send
Feb 28 07:04:35 zeus electrs[3058]: [2024-02-28T12:04:35.317Z WARN electrs::thread] because: Broken pipe (os error 32)
Feb 28 07:04:35 zeus electrs[3058]: [2024-02-28T12:04:35.317Z WARN electrs::electrum] RPC blockchain.scripthash.get_history failed: failed to get block 000000000000000000083b1f4b5bdc0a589f7637ad6de6f578ddbb1cbe21bc92: receiving on an empty and disconnected channel
Feb 28 07:04:35 zeus electrs[3058]: Error: electrs failed
Feb 28 07:04:35 zeus electrs[3058]: Caused by:
Feb 28 07:04:35 zeus electrs[3058]: 0: sync failed
Feb 28 07:04:35 zeus electrs[3058]: 1: sending on a disconnected channel
Feb 28 07:04:35 zeus systemd[1]: electrs.service: Main process exited, code=exited, status=1/FAILURE
Feb 28 07:04:35 zeus systemd[1]: electrs.service: Failed with result 'exit-code'.
Feb 28 07:04:35 zeus systemd[1]: electrs.service: Consumed 20.130s CPU time.
bitcoin.conf
rpcauth=XXX
[main]
rpcbind=127.0.0.1
rpcbind=X.X.X.X
rpcallowip=127.0.0.1
rpcallowip=X.X.X.0/24
## Whitelisting is intended for 'electrs'
[email protected][email protected]
The same happened on my end with a direct connection on the same server.
I have a script which analyzes a lot of transactions and balances. If the electrs server crashes after several days, it is quite annoying.
[2024-08-11T03:45:38.331Z DEBUG electrs::server] 16: recv [{"method": "blockchain.scripthash.get_history", "params": ["03308ec8dd9f3324db5fef4e83a268abcabbafd247ae53e7bcfec51002c236e9"], "id": 39398, "jsonrpc": "2.0"}]
[2024-08-11T03:45:38.331Z INFO electrs::electrum] your wallet uses less efficient method of querying electrs, consider contacting the developer of your wallet. Reason: blockchain.scripthash.get_history called for unsubscribed scripthash
[2024-08-11T03:45:40.159Z DEBUG electrs::p2p] loading 216003 blocks
[2024-08-11T03:45:40.202Z DEBUG electrs::p2p] closing p2p_loop thread: peer has disconnected
[2024-08-11T03:45:40.202Z WARN electrs::thread] p2p_send thread failed: p2p failed to send
[2024-08-11T03:45:40.202Z WARN electrs::thread] p2p_recv thread failed: failed to recv a message from peer: IO error
[2024-08-11T03:45:40.203Z WARN electrs::electrum] RPC blockchain.scripthash.get_history failed: failed to get block 00000000000000000012206336bbb49aca889479cae2877399756ad5798d4ffb: receiving on an empty and disconnected channel
[2024-08-11T03:45:40.203Z DEBUG electrs::server] 16: send [{"error":{"code":1,"message":"failed to get block 00000000000000000012206336bbb49aca889479cae2877399756ad5798d4ffb"},"id":39398,"jsonrpc":"2.0"}]
[2024-08-11T03:45:40.204Z INFO electrs::db] closing DB at ./db/bitcoin
[2024-08-11T03:45:40.203Z WARN electrs::thread] because: Broken pipe (os error 32)
[2024-08-11T03:46:03.905Z DEBUG electrs::server] 16: disconnected
Error: electrs failed
Caused by:
0: sync failed
1: sending on a disconnected channel
Describe the bug
electrs fails on p2p disconnects running against Satoshi:26.0.0 on Debian bullseye with "Broken pipe (os error 32)".
Electrs version
electrs v0.10.3
To Reproduce
Steps to reproduce the behavior:
Expected behavior
electrs should not exit.
Configuration
electrs.service
electrs error log
bitcoin.conf
Environment variables: N/A
Arguments: see above
System running electrs
Electrum client
Sparrow on macOS Sonoma 14.2.1
Additional context
Sparrow is connecting via SSH tunnel.
Trace file is attached. Apologies for the large file.
problem.log
Many thanks for your help. Cheers!
The text was updated successfully, but these errors were encountered: