cculianu / Fulcrum

A fast & nimble SPV Server for BCH, BTC, and LTC
Other
331 stars 76 forks source link

Help with mempool please #176

Closed VegArchie closed 1 year ago

VegArchie commented 1 year ago

I am trying to get mempool (docker implementation) to connect with Fulcrum. I am getting the following repeating errors:

api_1 | Jun 4 00:20:27 [109] WARN: Exception in runMainUpdateLoop(). Retrying in 60 sec. Reason: ETIMEDOUT. Stack trace: Error: ETIMEDOUT api_1 | at Timeout._onTimeout (/backend/package/rpc-api/jsonrpc.js:66:23) api_1 | at listOnTimeout (node:internal/timers:559:17) api_1 | at processTimers (node:internal/timers:502:7) api_1 | Jun 4 00:21:14 [109] ERR: Electrum error: {"errno":-110,"code":"ETIMEDOUT","syscall":"connect","address":"172.27.0.1","port":50002} api_1 | Jun 4 00:21:14 [109] ERR: Electrum error: {"errno":-110,"code":"ETIMEDOUT","syscall":"connect","address":"172.27.0.1","port":50002} api_1 | Jun 4 00:21:14 [109] INFO: Disconnected from Electrum Server at 172.27.0.1:50002 api_1 | Jun 4 00:22:30 [109] WARN: Exception in runMainUpdateLoop(). Retrying in 60 sec. Reason: connect ENETUNREACH 172.27.0.1:8332. Stack trace: Error: connect ENETUNREACH 172.27.0.1:8332 api_1 | at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1187:16) api_1 | Jun 4 00:23:25 [109] ERR: Electrum error: {"errno":-110,"code":"ETIMEDOUT","syscall":"connect","address":"172.27.0.1","port":50002} api_1 | Jun 4 00:23:25 [109] ERR: Electrum error: {"errno":-110,"code":"ETIMEDOUT","syscall":"connect","address":"172.27.0.1","port":50002} api_1 | Jun 4 00:23:25 [109] INFO: Disconnected from Electrum Server at 172.27.0.1:50002 api_1 | Jun 4 00:23:26 [109] INFO: Disconnected from Electrum Server at 172.27.0.1:50002 api_1 | Jun 4 00:23:26 [109] ERR: Electrum error: {"errno":-101,"code":"ENETUNREACH","syscall":"connect","address":"172.27.0.1","port":50002} api_1 | Jun 4 00:23:26 [109] ERR: Electrum error: {"errno":-101,"code":"ENETUNREACH","syscall":"connect","address":"172.27.0.1","port":50002}

Is there a config setting (for either mempool or fulcrum) I could have missed (I have tried several)? FYI, Sparrow wallet connects on 50001 properly.

VegArchie commented 1 year ago

I tried the absolute IP address and I get different errors based on someones recommendation that it was a network/docker issue.

api_1 | Jun 4 01:41:48 [109] WARN: Exception in runMainUpdateLoop(). Retrying in 60 sec. Reason: Invalid params, response status code: 403. Stack trace: Error: Invalid params, response status code: 403 api_1 | at IncomingMessage.<anonymous> (/backend/package/rpc-api/jsonrpc.js:109:31) api_1 | at IncomingMessage.emit (node:events:539:35) api_1 | at endReadableNT (node:internal/streams/readable:1345:12) api_1 | at processTicksAndRejections (node:internal/process/task_queues:83:21) api_1 | Jun 4 01:41:54 [109] INFO: Disconnected from Electrum Server at 192.168.0.123:50002 api_1 | Jun 4 01:41:54 [109] ERR: Electrum error: {} api_1 | Jun 4 01:42:05 [109] ERR: Electrum error: {} api_1 | Jun 4 01:42:05 [109] INFO: Disconnected from Electrum Server at 192.168.0.123:50002 api_1 | Jun 4 01:42:16 [109] ERR: Electrum error: {} api_1 | Jun 4 01:42:16 [109] INFO: Disconnected from Electrum Server at 192.168.0.123:50002 api_1 | Jun 4 01:42:27 [109] INFO: Disconnected from Electrum Server at 192.168.0.123:50002 api_1 | Jun 4 01:42:27 [109] ERR: Electrum error: {} api_1 | Jun 4 01:42:38 [109] INFO: Disconnected from Electrum Server at 192.168.0.123:50002 api_1 | Jun 4 01:42:38 [109] ERR: Electrum error: {} api_1 | Jun 4 01:42:48 [109] WARN: Exception in runMainUpdateLoop(). Retrying in 60 sec. Reason: Invalid params, response status code: 403. Stack trace: Error: Invalid params, response status code: 403

Anyone know what these errors indicate? What parameters are invalid?

VegArchie commented 1 year ago

I tried without using docker and get a similar problem:

Jun 4 12:28:13 [134278] DEBUG: Electrum attempting reconnect... Jun 4 12:28:13 [134278] ERR: Electrum error: {"errno":-111,"code":"ECONNREFUSED","syscall":"connect","address":"127.0.0.1","port":50002} Jun 4 12:28:13 [134278] ERR: Electrum error: {"errno":-111,"code":"ECONNREFUSED","syscall":"connect","address":"127.0.0.1","port":50002} Jun 4 12:28:13 [134278] INFO: Disconnected from Electrum Server at 127.0.0.1:50002

VegArchie commented 1 year ago

eventually got it working through brute force trial and error. Had to use absolute IP address of the machine

cculianu commented 1 year ago

Ah I was going to say this is just some network setup issue outside of Fulcrum. Glad you figured it out!