Umbrel: Show Electrs status in the UI

Created on 8 Oct 2020  路  11Comments  路  Source: getumbrel/umbrel

Is it supposed to show in the dashboard with the beautiful UI like the other components of the stack? The only way I can interact with Electrs is through cli. Is it normal?

enhancement

Most helpful comment

I would like to add my voice to this request. Electrs sync status affects a number of apps that depend on it, such as the block explorer and connection of external wallets. After a short period of downtime the Bitcoin Core catches up quickly but the Electrs daemon is still syncing, indexing and compacting databases. On an underpowered CPU this takes the longest time and several important services fail (e.g. Connecting an Electrum wallet or the block explorer) with no indication as to why they are failing or when they will stop failing.

It would be great if the dashboard showed that Electrs (call it "transaction detailed indexing") is still in progress and how far it has to go.

All 11 comments

Hey @maltokyo, they should be available in Bitcoin Core > ... > Connect Wallet > Electrum

Hi @mayankchhabra - Connection with electrum wallet worked!

However, I was after more of a status page, showing the sync status and other details about electrs, and any errors etc..

Great!

Agree, that'd be useful. I've added it to our long-term roadmap. Thanks!

@mayankchhabra would you mind re-opening this issue until this is implemented?

I tried to connect with electrum to my fully synced node, but it just fails and there is no indication why this might be happening (i.e. there is no message like 'your Electrum server is still syncing, please try again later' or whatever on client side and also nothing in umbrel's ui). I then went through the system logs and saw that electrs is still indexing, so this explains the problem.
It would be great to have some kind of status indicator in the ui to show whether electrs is 'ready' (does not necessarily have to be 0-100% progress indicator, which would be even better obviously).

I also opened https://github.com/romanz/electrs/issues/309 to maybe make this less confusing for an end user.

I would like to add my voice to this request. Electrs sync status affects a number of apps that depend on it, such as the block explorer and connection of external wallets. After a short period of downtime the Bitcoin Core catches up quickly but the Electrs daemon is still syncing, indexing and compacting databases. On an underpowered CPU this takes the longest time and several important services fail (e.g. Connecting an Electrum wallet or the block explorer) with no indication as to why they are failing or when they will stop failing.

It would be great if the dashboard showed that Electrs (call it "transaction detailed indexing") is still in progress and how far it has to go.

Yeah we know this is definitely needed. It hasn't been super high priority since we only had wallets before, but since we now have apps depending on electrs it's definitely more important.

One issue is that electrs doesn't really expose a clean way to get the sync progress (afaik). We'll have to do something dirty like parse the output coming from stdout to figure out what electrs is doing.

That or switch to ElectrumX which I think does expose a rich RPC that returns this data.

@lukechilds you maintain the best ElectrumX docker image yourself...! I've been an avid user. I still use it instead of electrs for exactly this reason, and that it's just simply more robust and less resource intensive, imo.

Yeah, a big pro for electrs is that it doesn't require txindex, and we didn't have txindex enabled in Umbrel when we were adding it.

However now we need to have it enabled for most apps so there's very little reason to use electrs over ElectrumX.

@lukechilds If I make a PR to add ElectrumX, would you accept it, and help me to Umbrel'ise it?

People that are using the Mempool Explorer are getting the error "Connection to server lost, please retry" when they are querying addresses and asking us what is the problem. We could improve our error message, but the Electrum Server sync status should be visible in the UI as many people are confused by this and asking how to see when it is done syncing.

I still maintain that switching to electrumx would be better for this, and general usability.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

maltokyo picture maltokyo  路  8Comments

mayankchhabra picture mayankchhabra  路  3Comments

snapo picture snapo  路  9Comments

mayankchhabra picture mayankchhabra  路  3Comments

lukechilds picture lukechilds  路  3Comments