by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Aug 04 11:26
    Kixunil opened #288
  • Aug 04 08:16
    Kixunil commented #287
  • Aug 03 18:45
    romanz assigned #286
  • Aug 03 18:44
    romanz assigned #287
  • Aug 03 18:44
    romanz commented #287
  • Aug 02 10:36
    Kixunil opened #287
  • Jul 31 17:17

    romanz on master

    Reduce log verbosity for missin… (compare)

  • Jul 31 16:24
    Kixunil commented #257
  • Jul 31 16:15
    Kixunil commented #279
  • Jul 31 16:14
    Kixunil opened #286
  • Jul 31 15:55
    Kixunil commented #283
  • Jul 31 11:24
    romanz commented #283
  • Jul 31 11:14
    romanz commented #284
  • Jul 31 11:13
    romanz closed #284
  • Jul 31 11:13
    romanz closed #283
  • Jul 31 11:13

    romanz on master

    Drop receiver in handle_replies… A few small fixes (compare)

  • Jul 30 13:22
    jonjonez commented #283
  • Jul 29 20:58
    Kixunil commented #283
  • Jul 29 14:46
    jonjonez commented #283
  • Jul 29 14:39
    jonjonez commented #283
exeabyss
@exeabyss
Hi, I've got an issue with Electrs.
My Electrum Android can no longer be connected to my Electrs server.
The errors are logged as follows:
raspberrypi electrs[659]: ... - INFO - [127.0.0.1:51164] connected peer
raspberrypi electrs[659]: ... - TRACE - RPC Done
raspberrypi electrs[659]: ... - DEBUG - [127.0.0.1:51164] shutting down connection
raspberrypi electrs[659]: ... - INFO - [127.0.0.1:51164] disconnected peer
raspberrypi electrs[659]: ... - INFO - [127.0.0.1:51166] connected peer
raspberrypi electrs[659]: ... - TRACE - RPC Done
raspberrypi electrs[659]: ... - DEBUG - [127.0.0.1:51166] shutting down connection
raspberrypi electrs[659]: ... - INFO - [127.0.0.1:51166] disconnected peer
raspberrypi electrs[659]: ... - INFO - [127.0.0.1:51168] connected peer
raspberrypi electrs[659]: ... - TRACE - RPC Done
raspberrypi electrs[659]: ... - DEBUG - [127.0.0.1:51168] shutting down connection
raspberrypi electrs[659]: ... - INFO - [127.0.0.1:51168] disconnected peer
raspberrypi electrs[659]: ... - INFO - [127.0.0.1:51170] connected peer
raspberrypi electrs[659]: ... - TRACE - RPC Done
raspberrypi electrs[659]: ... - DEBUG - [127.0.0.1:51170] shutting down connection
raspberrypi electrs[659]: ... - INFO - [127.0.0.1:51170] disconnected peer
raspberrypi electrs[659]: ... - INFO - [127.0.0.1:51172] connected peer
raspberrypi electrs[659]: ... - TRACE - RPC Done
raspberrypi electrs[659]: ... - DEBUG - [127.0.0.1:51172] shutting down connection
raspberrypi electrs[659]: ... - INFO - [127.0.0.1:51172] disconnected peer
raspberrypi electrs[659]: ... - INFO - [127.0.0.1:51174] connected peer
raspberrypi electrs[659]: ... - TRACE - RPC Done
raspberrypi electrs[659]: ... - DEBUG - [127.0.0.1:51174] shutting down connection
raspberrypi electrs[659]: ... - INFO - [127.0.0.1:51174] disconnected peer
The server is set up by following the RaspiBolt tutorial, with only minor changes except that txindex is enabled in Bitcoin Core.
Also tried Electrum on Windows. Same outcome.
exeabyss
@exeabyss
They used to work.
Any idea what could be the problem?
@Stadicus Can you think of anything in RaspiBolt that may be the cause?
Roman Zeyde
@romanz
Does it work with the desktop version of Electrum?
Which version of electrs are you running?
Roman Zeyde
@romanz
According to the server log, it seems that the client closes the connection (by closing the socket).
Is it possible to get client-side verbose logs?
exeabyss
@exeabyss
No, I tested Electrum Windows and it did not work.
exeabyss
@exeabyss
The version of electrs is 0.8.2, if I'm not mistaken.
exeabyss
@exeabyss
I can't find how to get the client-side logs. Do you know how?
I can't even reproduce the said issue anymore. Both Android and Windows can't seem to find the server, even though the server IP is correct and ping works.
The firewall status is like this:
$ sudo ufw status
Status: active

To                         Action      From
--                         ------      ----
22                         ALLOW       Anywhere                   # allow SSH from LAN
8333                       ALLOW       Anywhere                   # allow Bitcoin
9735                       ALLOW       Anywhere                   # allow Lightning
50002                      ALLOW       Anywhere                   # allow Electrum SSL
22 (v6)                    ALLOW       Anywhere (v6)              # allow SSH from LAN
8333 (v6)                  ALLOW       Anywhere (v6)              # allow Bitcoin
9735 (v6)                  ALLOW       Anywhere (v6)              # allow Lightning
50002 (v6)                 ALLOW       Anywhere (v6)              # allow Electrum SSL
0x000000ff
@0x000000ff1_twitter
I'm having the same issue as @exeabyss
I tried upgrading to v0.8.3 and same issue
0x000000ff
@0x000000ff1_twitter

@exeabyss I think I fixed it by creating a new self-signed cert using the method that stadicus outlined:

sudo openssl req -x509 -nodes -newkey rsa:2048 -keyout /etc/ssl/private/nginx-selfsigned.key -out /etc/ssl/certs/nginx-selfsigned.crt -subj "/CN=localhost" -days 3650

and then adding TLSv1.3 to my nginx.conf:

stream {
  ssl_certificate /etc/ssl/certs/nginx-selfsigned.crt;
  ssl_certificate_key /etc/ssl/private/nginx-selfsigned.key;
  ssl_session_cache shared:SSL:1m;
  ssl_session_timeout 4h;
  ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3;
  ssl_prefer_server_ciphers on;

  upstream electrs {
    server 127.0.0.1:50001;
  }
  server {
    listen 50002 ssl;
    proxy_pass electrs;
  }
}
I restarted nginxafter that with sudo systemctl restart nginx
MrNayda
@MrNayda

Hello, Ubuntu / electrs noob here who cannot get Electrum wallet to connect to local electrs server.

Have electrs up & running (confirmed with: sudo systemctl status electrs), installed Electrum wallet, & edited the electrum.desktop file as follows to connect to localhost -

Exec=sh -c "PATH=\"\$HOME/.local/bin:\$PATH\"; electrum --oneserver --server localhost:50001:t %u"

Network Server tab in Electrum wallet shows "Server: localhost 50001" & all other servers greyed out, however within Network Overview, Status: shows "Not connected" & Server: shows "None"

Perhaps there are config edits I need to make elsewhere for Electrum to connect to electrs?

Any suggestions greatly appreciated! Thank you in advance.

Roman Zeyde
@romanz

I can't find how to get the client-side logs. Do you know how?

Running electrum -v should emit more verbose log on the command-line.

You can also try to access the non-encrypted Electrum RPC on 50001 port (TCP).
Roman Zeyde
@romanz

Hello, Ubuntu / electrs noob here who cannot get Electrum wallet to connect to local electrs server.

Have electrs up & running (confirmed with: sudo systemctl status electrs), installed Electrum wallet, & edited the electrum.desktop file as follows to connect to localhost -

Exec=sh -c "PATH=\"\$HOME/.local/bin:\$PATH\"; electrum --oneserver --server localhost:50001:t %u"

Network Server tab in Electrum wallet shows "Server: localhost 50001" & all other servers greyed out, however within Network Overview, Status: shows "Not connected" & Server: shows "None"

Perhaps there are config edits I need to make elsewhere for Electrum to connect to electrs?

Any suggestions greatly appreciated! Thank you in advance.

Could you run electrum -v -1 -s localhost:50001:t from the commandline, and attach the logs?

MrNayda
@MrNayda

@romanz Thanks for your response! The following is printed repeatedly until I ctrl+c exit the process -

image.png

image.png
image.png
MrNayda
@MrNayda
image.png
@romanz I've just checked the status of electrs & my query returned the following error message which I've not seen prior. Guessing this is impacting Electrum's ability to connect to electrs? -
Roman Zeyde
@romanz
Could you please update to the latest Electrum (from https://github.com/spesmilo/electrum)?
I am currently running latest master (spesmilo/electrum@ffa3760).
Bitcoinbopulos Michael
@bitcoinbopulos_twitter
i'm running electrs on a raspi 4 (bundled with mynode). Every time I have my wallet open on the Windows side, it runs at 95-100% cpu. If I close it, it drops. Any idea how I can determine what's wrong?
I'm running the latest electrum (4.0.2)
Roman Zeyde
@romanz
How many transaction there are in your wallet?
Note that electrs CPU usage scales linearly with the # of transactions in your wallet...
Bitcoinbopulos Michael
@bitcoinbopulos_twitter
about 200 transactions. but the same problem happens when I open a wallet with only 2 transactions.
Roman Zeyde
@romanz
Seems like there is something in electrs that doesn't work as expected on your device :(
Could you please open an issue in https://github.com/mynodebtc/mynode/issues?
It is possible other users have the same issue, so we can help them too.
Please mention me at the issue, so I would be able to follow it :)
Bitcoinbopulos Michael
@bitcoinbopulos_twitter
Thank you, Roman. I will.
Bitcoinbopulos Michael
@bitcoinbopulos_twitter
posted issue here mynodebtc/mynode#357
Jonathan Zernik
@yzernik
Hi. I have a question. Is it possible to run electrs with btcd as the backend?
instead of bitcoind
Roman Zeyde
@romanz
If btcd supports bitcoind JSON RPC, it should (in theory) work as well.
Jonathan Zernik
@yzernik
thanks @romanz . Do you know if electrs will work if I am running btcd on network=simnet?
I think it is similar to regtest
Roman Zeyde
@romanz

thanks @romanz . Do you know if electrs will work if I am running btcd on network=simnet?

Never tried to run it with btcd, so I don't know if it'll work

keblek
@keblek
Hi does electrs support testnet? I have my testnet node running and I want to connect my testnet eclair wallet to electrs running on my laptop.
Is this possible with minimal configuration?
Roman Zeyde
@romanz
You can use --network=testnet to index testnet :)