Title: Running Electrum server: what can I do now? Post by: simpic on January 27, 2023, 09:33:12 AM I'm running an Electrum server (under Tor) using electrs and I successfully connected an Electrum wallet to it.
Now, is it discoverable by others than me? How can I see if any client connect to my server? Title: Re: Running Electrum server: what can I do now? Post by: nc50lc on January 27, 2023, 11:04:03 AM Now, is it discoverable by others than me? Check if it's included in this list, but do not fully rely on it in case your server isn't listed there: https://1209k.com/bitcoin-eye/ele.php?chain=btc (https://1209k.com/bitcoin-eye/ele.php?chain=btc)How can I see if any client connect to my server? I'm not using electrs, but have your tried "monitoring.md" from their documentations?: github.com/romanz/electrs/tree/master/doc (http://github.com/romanz/electrs/tree/master/doc)Title: Re: Running Electrum server: what can I do now? Post by: simpic on January 27, 2023, 01:54:53 PM Check if it's included in this list, but do not fully rely on it in case your server isn't listed there: https://1209k.com/bitcoin-eye/ele.php?chain=btc (https://1209k.com/bitcoin-eye/ele.php?chain=btc) Do you know what are the criteria for which my node can appear there or not? I'm not using electrs, but have your tried "monitoring.md" from their documentations?: github.com/romanz/electrs/tree/master/doc (http://github.com/romanz/electrs/tree/master/doc) It uses Prometheus that is a general purpose monitoring solution... anyway I couldn't get it to work: the query suggested in the documentation is not working ("No datapoints found").Title: Re: Running Electrum server: what can I do now? Post by: DaveF on January 27, 2023, 02:39:08 PM Check if it's included in this list, but do not fully rely on it in case your server isn't listed there: https://1209k.com/bitcoin-eye/ele.php?chain=btc (https://1209k.com/bitcoin-eye/ele.php?chain=btc) Do you know what are the criteria for which my node can appear there or not? I'm not using electrs, but have your tried "monitoring.md" from their documentations?: github.com/romanz/electrs/tree/master/doc (http://github.com/romanz/electrs/tree/master/doc) It uses Prometheus that is a general purpose monitoring solution... anyway I couldn't get it to work: the query suggested in the documentation is not working ("No datapoints found").You can scroll to the bottom of the page you can add it. Nothing required beyond that. If it can see it it will add it, if it can't it will not. If it goes offline it will mark it as such. At least that's the way it used to work, have not used 1209 in a while. -Dave Title: Re: Running Electrum server: what can I do now? Post by: DireWolfM14 on January 27, 2023, 06:54:21 PM I'm running an Electrum server (under Tor) using electrs and I successfully connected an Electrum wallet to it. Good job, electrs has been good to me for personal use. Now, is it discoverable by others than me? It is, but without advertising your onion address it's not likely anyone else will connect to it. At least that's what I've noticed. How can I see if any client connect to my server? As others have mentioned you can use Prometheus, but personally I've never done so. You can follow the log file with the utilities that are included with Linux such as the journalctl (assuming your starting electrs with systemd,) or the tail commands. For example: Code: journalctl -f -u electrs.service Or Code: tail -f /path/to/data_dir/electrs.log If anyone connects to your server the log file will provide the queries requested. Title: Re: Running Electrum server: what can I do now? Post by: BlackHatCoiner on January 27, 2023, 07:08:10 PM Now, is it discoverable by others than me? You need to have it included in some list, to be discoverable. Remember, running an Electrum server, isn't the same as running a Bitcoin node, because the latter connects with already existent nodes (which means you're been already advertised), while the former is exclusively connected with your Bitcoin node. Not with a peer-to-peer network.Alternatively with 1209k, you can create a pull request in the Electrum repository. You don't have anything to lose if you try. Title: Re: Running Electrum server: what can I do now? Post by: simpic on January 27, 2023, 10:29:28 PM Code: tail -f /path/to/data_dir/electrs.log If anyone connects to your server the log file will provide the queries requested. There I have "LOG" file (without extension) and some LOG.old.<XXXXXX> files. Title: Re: Running Electrum server: what can I do now? Post by: DireWolfM14 on January 28, 2023, 01:53:44 AM Code: tail -f /path/to/data_dir/electrs.log If anyone connects to your server the log file will provide the queries requested. There I have "LOG" file (without extension) and some LOG.old.<XXXXXX> files. Yeah, the log file is indeed named "LOG" all caps, no extension. Sorry about that. I was at work when I posted before and I couldn't remember the exact file name. In my case: Code: tail -f /var/lib/electrs/bitcoin/LOG Edit: Ctrl+c to stop tailing. Title: Re: Running Electrum server: what can I do now? Post by: simpic on January 28, 2023, 02:25:38 PM Yeah, the log file is indeed named "LOG" all caps, no extension. Sorry about that. I was at work when I posted before and I couldn't remember the exact file name. In my case: Code: tail -f /var/lib/electrs/bitcoin/LOG Edit: Ctrl+c to stop tailing. Do you see anything interesting there? Any line related to connected peers? This is my output: Code: 2023/01/28-15:24:13.833331 744b9e6010 [db/db_impl/db_impl_compaction_flush.cc:1391] [config] Manual flush finished, status: OK Title: Re: Running Electrum server: what can I do now? Post by: DireWolfM14 on January 28, 2023, 04:33:39 PM Do you see anything interesting there? Any line related to connected peers? That's very similar to what I see because my config file includes the setting log_filters="INFO". That's relatively basic logging including system errors, problems connecting to bitcoin, transaction processing, or errors from connected clients. If no connected wallets are experiencing errors you won't see any client connection details. To escalate logging see here: https://github.com/romanz/electrs/blob/master/doc/upgrading.md https://i.postimg.cc/rw0sbSpd/image.png (https://github.com/romanz/electrs/blob/master/doc/upgrading.md) Title: Re: Running Electrum server: what can I do now? Post by: simpic on January 30, 2023, 11:19:35 AM Can you tell me what kind of information should I see?
I'm trying to connect with a wallet but I cannot see significant messages in the log file... |