gigahodlerFull Member
Posts: 35 · Reputation: 306
#1Jan 2, 2020, 08:21 PM
I'm running BTC Core v0.27 on Mac OS X and I'm hitting a wall with Electrs not being able to connect to the bitcoin node on the same machine. The firewall is disabled, and I've messed around with rpcbind and rpcallowip for localhost but still getting the same error.
Here's the error I'm getting: electrs failed. The cause seems to be:
0: bitcoin p2p failed to connect: 127.0.0.1:8333
1: Connection refused (os error 61)
This is what's in my btc.conf:
[main]
server=1
prune=0
txindex=1
timeout=6000
walletbroadcast=0
blockfilterindex=1
datadir=/Users/xxx/Library/ApplicationSupport/Bitcoin
rpccookiefile=/Users/xxx/Library/ApplicationSupport/Bitcoin/.cookie
And here's the command I used to run Electrs:
./target/release/electrs log-filters=DEBUG db-dir /Volumes/USB_3TB/db daemon-dir ~/Library/ApplicationSupport/Bitcoin network=bitcoin
Starting electrs 0.10.5 on x86_64 macos with Config { network: Bitcoin, db_path: "/Volumes/USB_3TB/db/bitcoin", db_log_dir: None, daemon_dir: "/Users/xxx/Library/ApplicationSupport/Bitcoin", daemon_auth: CookieFile("/Users/xxx/Library/ApplicationSupport/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.5 (Electrum Rust Server)!", signet_magic: f9beb4d9, args: [] }
[2024-07-04T19:48:57.591Z DEBUG tiny_http] Server listening on 127.0.0.1:4224
[2024-07-04T19:48:57.591Z INFO electrs::metrics::metrics_impl