Bitcoin Forum
May 08, 2024, 05:24:51 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Running Electrum server: what can I do now?  (Read 137 times)
simpic (OP)
Hero Member
*****
Offline Offline

Activity: 1237
Merit: 789


View Profile
January 27, 2023, 09:33:12 AM
 #1

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?

1715189091
Hero Member
*
Offline Offline

Posts: 1715189091

View Profile Personal Message (Offline)

Ignore
1715189091
Reply with quote  #2

1715189091
Report to moderator
1715189091
Hero Member
*
Offline Offline

Posts: 1715189091

View Profile Personal Message (Offline)

Ignore
1715189091
Reply with quote  #2

1715189091
Report to moderator
1715189091
Hero Member
*
Offline Offline

Posts: 1715189091

View Profile Personal Message (Offline)

Ignore
1715189091
Reply with quote  #2

1715189091
Report to moderator
"There should not be any signed int. If you've found a signed int somewhere, please tell me (within the next 25 years please) and I'll change it to unsigned int." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715189091
Hero Member
*
Offline Offline

Posts: 1715189091

View Profile Personal Message (Offline)

Ignore
1715189091
Reply with quote  #2

1715189091
Report to moderator
1715189091
Hero Member
*
Offline Offline

Posts: 1715189091

View Profile Personal Message (Offline)

Ignore
1715189091
Reply with quote  #2

1715189091
Report to moderator
1715189091
Hero Member
*
Offline Offline

Posts: 1715189091

View Profile Personal Message (Offline)

Ignore
1715189091
Reply with quote  #2

1715189091
Report to moderator
nc50lc
Legendary
*
Offline Offline

Activity: 2408
Merit: 5591


Self-proclaimed Genius


View Profile
January 27, 2023, 11:04:03 AM
Merited by ABCbits (1)
 #2

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

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

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
simpic (OP)
Hero Member
*****
Offline Offline

Activity: 1237
Merit: 789


View Profile
January 27, 2023, 01:54:53 PM
 #3

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
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
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").

DaveF
Legendary
*
Offline Offline

Activity: 3472
Merit: 6267


Crypto Swap Exchange


View Profile WWW
January 27, 2023, 02:39:08 PM
 #4

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
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
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

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
DireWolfM14
Copper Member
Legendary
*
Offline Offline

Activity: 2170
Merit: 4238


Join the world-leading crypto sportsbook NOW!


View Profile WWW
January 27, 2023, 06:54:21 PM
Last edit: January 28, 2023, 04:41:35 PM by DireWolfM14
 #5

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.

  ▄▄███████▄███████▄▄▄
 █████████████
▀▀▀▀▀▀████▄▄
███████████████
       ▀▀███▄
███████████████
          ▀███
 █████████████
             ███
███████████▀▀               ███
███                         ███
███                         ███
 ███                       ███
  ███▄                   ▄███
   ▀███▄▄             ▄▄███▀
     ▀▀████▄▄▄▄▄▄▄▄▄████▀▀
         ▀▀▀███████▀▀▀
░░░████▄▄▄▄
░▄▄░
▄▄███████▄▀█████▄▄
██▄████▌▐█▌█████▄██
████▀▄▄▄▌███░▄▄▄▀████
██████▄▄▄█▄▄▄██████
█░███████░▐█▌░███████░█
▀▀██▀░██░▐█▌░██░▀██▀▀
▄▄▄░█▀░█░██░▐█▌░██░█░▀█░▄▄▄
██▀░░░░▀██░▐█▌░██▀░░░░▀██
▀██
█████▄███▀▀██▀▀███▄███████▀
▀███████████████████████▀
▀▀▀▀███████████▀▀▀▀
▄▄██████▄▄
▀█▀
█  █▀█▀
  ▄█  ██  █▄  ▄
█ ▄█ █▀█▄▄█▀█ █▄ █
▀▄█ █ ███▄▄▄▄███ █ █▄▀
▀▀ █    ▄▄▄▄    █ ▀▀
   ██████   █
█     ▀▀     █
▀▄▀▄▀▄▀▄▀▄▀▄
▄ ██████▀▀██████ ▄
▄████████ ██ ████████▄
▀▀███████▄▄███████▀▀
▀▀▀████████▀▀▀
█████████████LEADING CRYPTO SPORTSBOOK & CASINO█████████████
MULTI
CURRENCY
1500+
CASINO GAMES
CRYPTO EXCLUSIVE
CLUBHOUSE
FAST & SECURE
PAYMENTS
.
..PLAY NOW!..
BlackHatCoiner
Legendary
*
Online Online

Activity: 1512
Merit: 7358


Farewell, Leo


View Profile
January 27, 2023, 07:08:10 PM
 #6

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.

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
simpic (OP)
Hero Member
*****
Offline Offline

Activity: 1237
Merit: 789


View Profile
January 27, 2023, 10:29:28 PM
 #7


Code:
tail -f /path/to/data_dir/electrs.log

If anyone connects to your server the log file will provide the queries requested.
Do you mean "db/bitcoin" path for data dir? Can't find "electrs.log" file...
There I have "LOG" file (without extension) and some LOG.old.<XXXXXX> files.

DireWolfM14
Copper Member
Legendary
*
Offline Offline

Activity: 2170
Merit: 4238


Join the world-leading crypto sportsbook NOW!


View Profile WWW
January 28, 2023, 01:53:44 AM
 #8


Code:
tail -f /path/to/data_dir/electrs.log

If anyone connects to your server the log file will provide the queries requested.
Do you mean "db/bitcoin" path for data dir? Can't find "electrs.log" file...
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.

  ▄▄███████▄███████▄▄▄
 █████████████
▀▀▀▀▀▀████▄▄
███████████████
       ▀▀███▄
███████████████
          ▀███
 █████████████
             ███
███████████▀▀               ███
███                         ███
███                         ███
 ███                       ███
  ███▄                   ▄███
   ▀███▄▄             ▄▄███▀
     ▀▀████▄▄▄▄▄▄▄▄▄████▀▀
         ▀▀▀███████▀▀▀
░░░████▄▄▄▄
░▄▄░
▄▄███████▄▀█████▄▄
██▄████▌▐█▌█████▄██
████▀▄▄▄▌███░▄▄▄▀████
██████▄▄▄█▄▄▄██████
█░███████░▐█▌░███████░█
▀▀██▀░██░▐█▌░██░▀██▀▀
▄▄▄░█▀░█░██░▐█▌░██░█░▀█░▄▄▄
██▀░░░░▀██░▐█▌░██▀░░░░▀██
▀██
█████▄███▀▀██▀▀███▄███████▀
▀███████████████████████▀
▀▀▀▀███████████▀▀▀▀
▄▄██████▄▄
▀█▀
█  █▀█▀
  ▄█  ██  █▄  ▄
█ ▄█ █▀█▄▄█▀█ █▄ █
▀▄█ █ ███▄▄▄▄███ █ █▄▀
▀▀ █    ▄▄▄▄    █ ▀▀
   ██████   █
█     ▀▀     █
▀▄▀▄▀▄▀▄▀▄▀▄
▄ ██████▀▀██████ ▄
▄████████ ██ ████████▄
▀▀███████▄▄███████▀▀
▀▀▀████████▀▀▀
█████████████LEADING CRYPTO SPORTSBOOK & CASINO█████████████
MULTI
CURRENCY
1500+
CASINO GAMES
CRYPTO EXCLUSIVE
CLUBHOUSE
FAST & SECURE
PAYMENTS
.
..PLAY NOW!..
simpic (OP)
Hero Member
*****
Offline Offline

Activity: 1237
Merit: 789


View Profile
January 28, 2023, 02:25:38 PM
 #9

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
2023/01/28-15:24:13.833340 744b9e6010 [db/db_impl/db_impl_compaction_flush.cc:1380] [headers] Manual flush start.
2023/01/28-15:24:13.833346 744b9e6010 [db/db_impl/db_impl_compaction_flush.cc:1391] [headers] Manual flush finished, status: OK
2023/01/28-15:24:13.833351 744b9e6010 [db/db_impl/db_impl_compaction_flush.cc:1380] [txid] Manual flush start.
2023/01/28-15:24:13.833357 744b9e6010 [db/db_impl/db_impl_compaction_flush.cc:1391] [txid] Manual flush finished, status: OK
2023/01/28-15:24:13.833362 744b9e6010 [db/db_impl/db_impl_compaction_flush.cc:1380] [funding] Manual flush start.
2023/01/28-15:24:13.833367 744b9e6010 [db/db_impl/db_impl_compaction_flush.cc:1391] [funding] Manual flush finished, status: OK
2023/01/28-15:24:13.833372 744b9e6010 [db/db_impl/db_impl_compaction_flush.cc:1380] [spending] Manual flush start.
2023/01/28-15:24:13.833378 744b9e6010 [db/db_impl/db_impl_compaction_flush.cc:1391] [spending] Manual flush finished, status: OK
2023/01/28-15:24:24.005166 744b9e6010 [db/db_impl/db_impl_compaction_flush.cc:1380] [config] Manual flush start.
2023/01/28-15:24:24.005745 744b9e6010 [db/db_impl/db_impl_compaction_flush.cc:1391] [config] Manual flush finished, status: OK
2023/01/28-15:24:24.005773 744b9e6010 [db/db_impl/db_impl_compaction_flush.cc:1380] [headers] Manual flush start.
2023/01/28-15:24:24.005792 744b9e6010 [db/db_impl/db_impl_compaction_flush.cc:1391] [headers] Manual flush finished, status: OK
2023/01/28-15:24:24.005808 744b9e6010 [db/db_impl/db_impl_compaction_flush.cc:1380] [txid] Manual flush start.
2023/01/28-15:24:24.005826 744b9e6010 [db/db_impl/db_impl_compaction_flush.cc:1391] [txid] Manual flush finished, status: OK
2023/01/28-15:24:24.005841 744b9e6010 [db/db_impl/db_impl_compaction_flush.cc:1380] [funding] Manual flush start.
2023/01/28-15:24:24.005860 744b9e6010 [db/db_impl/db_impl_compaction_flush.cc:1391] [funding] Manual flush finished, status: OK
2023/01/28-15:24:24.005874 744b9e6010 [db/db_impl/db_impl_compaction_flush.cc:1380] [spending] Manual flush start.
2023/01/28-15:24:24.005891 744b9e6010 [db/db_impl/db_impl_compaction_flush.cc:1391] [spending] Manual flush finished, status: OK
2023/01/28-15:24:34.531561 744b9e6010 [db/db_impl/db_impl_compaction_flush.cc:1380] [config] Manual flush start.

DireWolfM14
Copper Member
Legendary
*
Offline Offline

Activity: 2170
Merit: 4238


Join the world-leading crypto sportsbook NOW!


View Profile WWW
January 28, 2023, 04:33:39 PM
 #10

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


  ▄▄███████▄███████▄▄▄
 █████████████
▀▀▀▀▀▀████▄▄
███████████████
       ▀▀███▄
███████████████
          ▀███
 █████████████
             ███
███████████▀▀               ███
███                         ███
███                         ███
 ███                       ███
  ███▄                   ▄███
   ▀███▄▄             ▄▄███▀
     ▀▀████▄▄▄▄▄▄▄▄▄████▀▀
         ▀▀▀███████▀▀▀
░░░████▄▄▄▄
░▄▄░
▄▄███████▄▀█████▄▄
██▄████▌▐█▌█████▄██
████▀▄▄▄▌███░▄▄▄▀████
██████▄▄▄█▄▄▄██████
█░███████░▐█▌░███████░█
▀▀██▀░██░▐█▌░██░▀██▀▀
▄▄▄░█▀░█░██░▐█▌░██░█░▀█░▄▄▄
██▀░░░░▀██░▐█▌░██▀░░░░▀██
▀██
█████▄███▀▀██▀▀███▄███████▀
▀███████████████████████▀
▀▀▀▀███████████▀▀▀▀
▄▄██████▄▄
▀█▀
█  █▀█▀
  ▄█  ██  █▄  ▄
█ ▄█ █▀█▄▄█▀█ █▄ █
▀▄█ █ ███▄▄▄▄███ █ █▄▀
▀▀ █    ▄▄▄▄    █ ▀▀
   ██████   █
█     ▀▀     █
▀▄▀▄▀▄▀▄▀▄▀▄
▄ ██████▀▀██████ ▄
▄████████ ██ ████████▄
▀▀███████▄▄███████▀▀
▀▀▀████████▀▀▀
█████████████LEADING CRYPTO SPORTSBOOK & CASINO█████████████
MULTI
CURRENCY
1500+
CASINO GAMES
CRYPTO EXCLUSIVE
CLUBHOUSE
FAST & SECURE
PAYMENTS
.
..PLAY NOW!..
simpic (OP)
Hero Member
*****
Offline Offline

Activity: 1237
Merit: 789


View Profile
January 30, 2023, 11:19:35 AM
 #11

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...

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!