"Mempool Sync Failed" error in Electrs logs

Just wanted to understand what this error message is:

2024-09-12T10:53:56-04:00 [2024-09-12T14:53:56.212Z WARN electrs::mempool] mempool sync failed: batch getmempoolentry request failed: transport error: Couldn’t connect to host: Resource temporarily unavailable (os error 11)

I get this one a lot it seems, as well as “missing mempool tx” and “missing mempool entry” errors in Electrs logs. Just wanting to make sense of it, thanks!

Hi osmo!

The error you’re encountering suggests that Electrs (an Electrum in Rust implementation) is having trouble connecting to the Bitcoin node’s mempool. Specifically, it’s failing to sync because the request to get the mempool entry batch couldn’t be completed due to a network issue or the Bitcoin node not being reachable.

You should ensure your Bitcoin core is up and running and fully synchronized, as well that Electrs can access it. You may want to check the OS logs for any connectivity issues or errors. Have you been changing any configuration in bitcoin core or electrs? If not you can set both configs to default and save to make sure all is correct.