electrs
electrs copied to clipboard
Failing to find bitcoind auth cookie file
joe@pop-os:~$ electrs
Starting electrs 0.10.6 on x86_64 linux with Config { network: Bitcoin, db_path: "$hodl/.electrs/db/bitcoin", db_log_dir: None, daemon_dir: "/home/hodl/.bitcoin", daemon_auth: CookieFile("/var/run/bitcoin-mainnet/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: Some(1000), 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.6 (Electrum Rust Server)!", signet_magic: f9beb4d9 }
[2024-10-15T01:18:50.755Z INFO electrs::metrics::metrics_impl] serving Prometheus metrics on 127.0.0.1:4224
[2024-10-15T01:18:50.755Z INFO electrs::server] serving Electrum RPC on 127.0.0.1:50001
[2024-10-15T01:18:50.798Z INFO electrs::db] "$hodl/.electrs/db/bitcoin": 221 SST files, 50.781165209 GB, 6.288829024 Grows
[2024-10-15T01:18:52.100Z INFO electrs::chain] loading 865494 headers, tip=00000000000000000002cfdedd8358532b2284bc157e1352dbc8682b2067fb0c
[2024-10-15T01:18:53.707Z INFO electrs::chain] chain updated: tip=00000000000000000002cfdedd8358532b2284bc157e1352dbc8682b2067fb0c, height=865494
[2024-10-15T01:18:53.712Z INFO electrs::db] closing DB at $hodl/.electrs/db/bitcoin
Error: electrs failed
Caused by:
0: failed to open bitcoind cookie file: /var/run/bitcoin-mainnet/cookie
1: No such file or directory (os error 2)
any help in resolving above errors would be appreciated. sorry, noob here.
Please make sure bitcoind is running and that it has written its cookie to /var/run/bitcoin-mainnet/cookie.
The path is usually logged when bitcoind is started:
2024-10-15T14:19:57.329325Z Using random cookie authentication.
2024-10-15T14:19:57.329394Z Generated RPC authentication cookie ~/.bitcoin/.cookie
2024-10-15T14:19:57.329406Z Permissions used for cookie: rw-------