Finally got back to this project (briefly) over the weekend, and made some progress. I re-compiled Electrs, this time with static link to the database, and figured I'd enable Prometheus even though I have no plans to use it for monitoring. I know I shouldn't change too many things at once if I want to find the root cause of my issues, but I'm not sure either of those settings had anything to do with my problem.
There is progress, however: I still cannot connect to Electrs over LAN, but I can through Tor. This makes me think NotAThether is on the right track:
It is almost definitely related to your firewall.
I can't help but agree at this point.
You should allow all outbound traffic, as it's common for software to open temporary ports, and it might not be able to send anything to you. Alternatively, just whitelist your IP address in the firewall if that's possible.
So, I tried disabling UFW all together, but the issue is still persistent. What could be causing my
outbound traffic to be blocked?
ETA: Figured I dump this recent log entry here, even though I don't see anything concerning:
Aug 29 15:30:06 electrs[951]: [2022-08-29T22:30:06.947Z DEBUG electrs::p2p] got 0 new headers
Aug 29 15:30:06 electrs[951]: [2022-08-29T22:30:06.947Z DEBUG bitcoincore_rpc] JSON-RPC request: getrawmempool []
Aug 29 15:30:06 electrs[951]: [2022-08-29T22:30:06.952Z DEBUG electrs::mempool] loading 416 mempool transactions
Aug 29 15:30:06 electrs[951]: [2022-08-29T22:30:06.953Z DEBUG bitcoincore_rpc] JSON-RPC request: getrawtransaction ["07e3bc92af092d07c048e0869faed7bf262f9ebebc547a2c78879cb8edc29b3d",false]
Aug 29 15:30:06 electrs[951]: [2022-08-29T22:30:06.953Z DEBUG bitcoincore_rpc] JSON-RPC request: getrawtransaction ["504763fc8292effe05d35533c093ea6072a1eb9f783d58727902517aed0bd114",false]
Aug 29 15:30:06 electrs[951]: [2022-08-29T22:30:06.953Z DEBUG bitcoincore_rpc] JSON-RPC request: getrawtransaction ["a3dbe06bf83b73b956e94a030eceb52424c6cb0dbe89d614839de53732358112",false]
Aug 29 15:30:06 electrs[951]: [2022-08-29T22:30:06.953Z DEBUG bitcoincore_rpc] JSON-RPC request: getrawtransaction ["038f27d76686d60a23b2dd388bce1b4b1eb890677d973d390f93d0733d820d93",false]
Aug 29 15:30:06 electrs[951]: [2022-08-29T22:30:06.955Z DEBUG bitcoincore_rpc] JSON-RPC request: getmempoolentry ["a3dbe06bf83b73b956e94a030eceb52424c6cb0dbe89d614839de53732358112"]
Aug 29 15:30:06 electrs[951]: [2022-08-29T22:30:06.957Z DEBUG bitcoincore_rpc] JSON-RPC request: getrawtransaction ["67912e69b63df613e735d725fe7b0c1e8b5a46015ac73e0653c8b239bc4281ed",false]
Aug 29 15:30:06 electrs[951]: [2022-08-29T22:30:06.963Z DEBUG bitcoincore_rpc] JSON-RPC request: getmempoolentry ["67912e69b63df613e735d725fe7b0c1e8b5a46015ac73e0653c8b239bc4281ed"]
Aug 29 15:30:06 electrs[951]: [2022-08-29T22:30:06.965Z DEBUG bitcoincore_rpc] JSON-RPC request: getrawtransaction ["82a7ca92163874e96af142dc6ca6d5af915f33f5de88859555576cc40869ed5f",false]
Aug 29 15:30:06 electrs[951]: [2022-08-29T22:30:06.966Z DEBUG bitcoincore_rpc] JSON-RPC request: getmempoolentry ["82a7ca92163874e96af142dc6ca6d5af915f33f5de88859555576cc40869ed5f"]
Aug 29 15:30:06 electrs[951]: [2022-08-29T22:30:06.967Z DEBUG bitcoincore_rpc] JSON-RPC request: getrawtransaction ["caf69bf692bfcf61cf8c5f781828d62078297173ad5d1d9023f3f46720610db7",false]
Aug 29 15:30:06 electrs[951]: [2022-08-29T22:30:06.974Z DEBUG bitcoincore_rpc] JSON-RPC request: getmempoolentry ["caf69bf692bfcf61cf8c5f781828d62078297173ad5d1d9023f3f46720610db7"]
Aug 29 15:30:06 electrs[951]: [2022-08-29T22:30:06.975Z DEBUG bitcoincore_rpc] JSON-RPC request: getrawtransaction ["f2419d360af96cacf761376d26f9737c8004a6a9c0153abb5125ab27d260304e",false]
Aug 29 15:30:06 electrs[951]: [2022-08-29T22:30:06.976Z DEBUG bitcoincore_rpc] JSON-RPC request: getmempoolentry ["f2419d360af96cacf761376d26f9737c8004a6a9c0153abb5125ab27d260304e"]
Aug 29 15:30:06 electrs[951]: [2022-08-29T22:30:06.977Z DEBUG bitcoincore_rpc] JSON-RPC request: getrawtransaction ["61339062c5c1af55d3903c0d697e56298373c35d1d9162dccf7d00144f4e630d",false]
Aug 29 15:30:06 electrs[951]: [2022-08-29T22:30:06.979Z DEBUG bitcoincore_rpc] JSON-RPC request: getmempoolentry ["61339062c5c1af55d3903c0d697e56298373c35d1d9162dccf7d00144f4e630d"]
Aug 29 15:30:06 electrs[951]: [2022-08-29T22:30:06.980Z DEBUG bitcoincore_rpc] JSON-RPC request: getrawtransaction ["c916f4a8684e3040f63603ecfb9cc7a64e0632f4d8dc57c394d94ec458456df8",false]
Aug 29 15:30:06 electrs[951]: [2022-08-29T22:30:06.981Z DEBUG bitcoincore_rpc] JSON-RPC request: getmempoolentry ["c916f4a8684e3040f63603ecfb9cc7a64e0632f4d8dc57c394d94ec458456df8"]
Aug 29 15:30:06 electrs[951]: [2022-08-29T22:30:06.983Z DEBUG bitcoincore_rpc] JSON-RPC request: getrawtransaction ["f0776f134b7b823aaa76ab2bfff8b3449fb60357fba129885309aa298dcac685",false]
Aug 29 15:30:06 electrs[951]: [2022-08-29T22:30:06.984Z DEBUG bitcoincore_rpc] JSON-RPC request: getmempoolentry ["f0776f134b7b823aaa76ab2bfff8b3449fb60357fba129885309aa298dcac685"]
Aug 29 15:30:06 electrs[951]: [2022-08-29T22:30:06.985Z DEBUG bitcoincore_rpc] JSON-RPC request: getrawtransaction ["99ab7e3c85626c71207a8fb322d2338810d75fb6af6516ec148203cb6f8d21e9",false]
Aug 29 15:30:06 electrs[951]: [2022-08-29T22:30:06.987Z DEBUG bitcoincore_rpc] JSON-RPC request: getmempoolentry ["99ab7e3c85626c71207a8fb322d2338810d75fb6af6516ec148203cb6f8d21e9"]
Aug 29 15:30:06 electrs[951]: [2022-08-29T22:30:06.988Z DEBUG bitcoincore_rpc] JSON-RPC request: getrawtransaction ["3c801521efd8a2b2734ff1ec20a963936c566a4a4326afc311a990845738c08a",false]
Aug 29 15:30:06 electrs[951]: [2022-08-29T22:30:06.990Z DEBUG bitcoincore_rpc] JSON-RPC request: getmempoolentry ["3c801521efd8a2b2734ff1ec20a963936c566a4a4326afc311a990845738c08a"]
Aug 29 15:30:06 electrs[951]: [2022-08-29T22:30:06.991Z DEBUG bitcoincore_rpc] JSON-RPC request: getrawtransaction ["7e48ef78dfa7cf4d7f9011227677bfa17413129eab258ce4f337caf018ba22f6",false]
Aug 29 15:30:06 electrs[951]: [2022-08-29T22:30:06.993Z DEBUG bitcoincore_rpc] JSON-RPC request: getmempoolentry ["7e48ef78dfa7cf4d7f9011227677bfa17413129eab258ce4f337caf018ba22f6"]
Aug 29 15:30:06 electrs[951]: [2022-08-29T22:30:06.994Z DEBUG bitcoincore_rpc] JSON-RPC request: getrawtransaction ["518df40e3b91a6a34290b63373e6ad1e0079c1652e8582aa89ffadc639789f6f",false]
Aug 29 15:30:06 electrs[951]: [2022-08-29T22:30:06.995Z DEBUG bitcoincore_rpc] JSON-RPC request: getmempoolentry ["518df40e3b91a6a34290b63373e6ad1e0079c1652e8582aa89ffadc639789f6f"]
Aug 29 15:30:06 electrs[951]: [2022-08-29T22:30:06.996Z DEBUG bitcoincore_rpc] JSON-RPC request: getrawtransaction ["646cccdba45b7f2bee730340accfce1ff84075ce596ddd34e0d9d38d6d1a6eec",false]
Aug 29 15:30:06 electrs[951]: [2022-08-29T22:30:06.998Z DEBUG bitcoincore_rpc] JSON-RPC request: getmempoolentry ["646cccdba45b7f2bee730340accfce1ff84075ce596ddd34e0d9d38d6d1a6eec"]
Aug 29 15:30:07 electrs[951]: [2022-08-29T22:30:07.001Z DEBUG bitcoincore_rpc] JSON-RPC request: getmempoolentry ["504763fc8292effe05d35533c093ea6072a1eb9f783d58727902517aed0bd114"]
Aug 29 15:30:07 electrs[951]: [2022-08-29T22:30:07.001Z DEBUG bitcoincore_rpc] JSON-RPC request: getmempoolentry ["07e3bc92af092d07c048e0869faed7bf262f9ebebc547a2c78879cb8edc29b3d"]
Aug 29 15:30:07 electrs[951]: [2022-08-29T22:30:07.001Z DEBUG bitcoincore_rpc] JSON-RPC request: getmempoolentry ["038f27d76686d60a23b2dd388bce1b4b1eb890677d973d390f93d0733d820d93"]
Aug 29 15:30:07 electrs[951]: [2022-08-29T22:30:07.002Z DEBUG bitcoincore_rpc] JSON-RPC request: getrawtransaction ["fe0d8881b8f7f14531df84498dc34c2cfb9ac1287f7e9b7ddba73a791a5db5b4",false]
Aug 29 15:30:07 electrs[951]: [2022-08-29T22:30:07.003Z DEBUG bitcoincore_rpc] JSON-RPC request: getrawtransaction ["f6cfc19ce584f9c215ff7c0fb32f13aeecae54908d71c53a10315607f0314d09",false]
Aug 29 15:30:07 electrs[951]: [2022-08-29T22:30:07.004Z DEBUG bitcoincore_rpc] JSON-RPC request: getrawtransaction ["e8a5b714859edf19e0d75ffea6da675a7409e858c677d2e4455ccedecf0f2f46",false]
Aug 29 15:30:07 electrs[951]: [2022-08-29T22:30:07.005Z DEBUG bitcoincore_rpc] JSON-RPC request: getmempoolentry ["fe0d8881b8f7f14531df84498dc34c2cfb9ac1287f7e9b7ddba73a791a5db5b4"]
Aug 29 15:30:07 electrs[951]: [2022-08-29T22:30:07.005Z DEBUG bitcoincore_rpc] JSON-RPC request: getrawtransaction ["4af384514bbe9fc9fe0180e5437cfe9741beadd64f1b80995a7d36449692ff50",false]
Aug 29 15:30:07 electrs[951]: [2022-08-29T22:30:07.006Z DEBUG bitcoincore_rpc] JSON-RPC request: getmempoolentry ["e8a5b714859edf19e0d75ffea6da675a7409e858c677d2e4455ccedecf0f2f46"]
Aug 29 15:30:07 electrs[951]: [2022-08-29T22:30:07.007Z DEBUG bitcoincore_rpc] JSON-RPC request: getrawtransaction ["3e03ee89a17ba174129307650b2d8cd9d322ce7789958fea979901711b7c5821",false]
Aug 29 15:30:07 electrs[951]: [2022-08-29T22:30:07.008Z DEBUG bitcoincore_rpc] JSON-RPC request: getrawtransaction ["489e2c5842bedf36621d0d1d26b146e5820fc133945b9f53065b2666996f3644",false]
Aug 29 15:30:07 electrs[951]: [2022-08-29T22:30:07.008Z DEBUG bitcoincore_rpc] JSON-RPC request: getmempoolentry ["4af384514bbe9fc9fe0180e5437cfe9741beadd64f1b80995a7d36449692ff50"]
Aug 29 15:30:07 electrs[951]: [2022-08-29T22:30:07.009Z DEBUG bitcoincore_rpc] JSON-RPC request: getmempoolentry ["489e2c5842bedf36621d0d1d26b146e5820fc133945b9f53065b2666996f3644"]
Aug 29 15:30:07 electrs[951]: [2022-08-29T22:30:07.010Z DEBUG bitcoincore_rpc] JSON-RPC request: getmempoolentry ["3e03ee89a17ba174129307650b2d8cd9d322ce7789958fea979901711b7c5821"]
Aug 29 15:30:07 electrs[951]: [2022-08-29T22:30:07.010Z DEBUG bitcoincore_rpc] JSON-RPC request: getrawtransaction ["30acfe93cf208a180fc11df5e294bb44f039bab410d6bb0763a7bdf4bb193b6d",false]
Aug 29 15:30:07 electrs[951]: [2022-08-29T22:30:07.011Z DEBUG bitcoincore_rpc] JSON-RPC request: getrawtransaction ["c776975f7d11aa6a4da6bdfd7fe1193928604ad40d51ecceb1d86e50f12aa885",false]
Aug 29 15:30:07 electrs[951]: [2022-08-29T22:30:07.012Z DEBUG bitcoincore_rpc] JSON-RPC request: getrawtransaction ["36889e2eb929f53526928a876dc682ec8f178dc3b6efe0518aadabd5ecd98d2a",false]
Aug 29 15:30:07 electrs[951]: [2022-08-29T22:30:07.013Z DEBUG bitcoincore_rpc] JSON-RPC request: getmempoolentry ["c776975f7d11aa6a4da6bdfd7fe1193928604ad40d51ecceb1d86e50f12aa885"]
Aug 29 15:30:07 electrs[951]: [2022-08-29T22:30:07.014Z DEBUG bitcoincore_rpc] JSON-RPC request: getmempoolentry ["36889e2eb929f53526928a876dc682ec8f178dc3b6efe0518aadabd5ecd98d2a"]
Aug 29 15:30:07 electrs[951]: [2022-08-29T22:30:07.015Z DEBUG bitcoincore_rpc] JSON-RPC request: getrawtransaction ["a4c3e4f43099ad98fd0d3b02cbcb5fed001bb62b7eb310de34b7fca34981d99d",false]
Aug 29 15:30:07 electrs[951]: [2022-08-29T22:30:07.015Z DEBUG bitcoincore_rpc] JSON-RPC request: getrawtransaction ["cc0ab5528289711e1d25e6a2dc138174c9ac201b06dfe81c9ea1e4ce332b09c9",false]
Aug 29 15:30:07 electrs[951]: [2022-08-29T22:30:07.016Z DEBUG bitcoincore_rpc] JSON-RPC request: getmempoolentry ["a4c3e4f43099ad98fd0d3b02cbcb5fed001bb62b7eb310de34b7fca34981d99d"]
Aug 29 15:30:07 electrs[951]: [2022-08-29T22:30:07.017Z DEBUG bitcoincore_rpc] JSON-RPC request: getmempoolentry ["cc0ab5528289711e1d25e6a2dc138174c9ac201b06dfe81c9ea1e4ce332b09c9"]
Aug 29 15:30:07 electrs[951]: [2022-08-29T22:30:07.053Z DEBUG bitcoincore_rpc] JSON-RPC request: getmempoolentry ["f6cfc19ce584f9c215ff7c0fb32f13aeecae54908d71c53a10315607f0314d09"]
Aug 29 15:30:07 electrs[951]: [2022-08-29T22:30:07.057Z DEBUG bitcoincore_rpc] JSON-RPC request: getmempoolentry ["30acfe93cf208a180fc11df5e294bb44f039bab410d6bb0763a7bdf4bb193b6d"]
Aug 29 15:30:07 electrs[951]: [2022-08-29T22:30:07.060Z DEBUG electrs::mempool] 416 mempool txs: 27 added, 0 removed