Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Electrum Server in myNode not providing SSL connection on port 50002 #360

Open
maltokyo opened this issue Jul 17, 2020 · 43 comments
Open

Electrum Server in myNode not providing SSL connection on port 50002 #360

maltokyo opened this issue Jul 17, 2020 · 43 comments

Comments

@maltokyo
Copy link

Can only connect on non-encrypted 50001 port, but I cannot connect with 50002.

Details here in an issue raised on electrs GitHub, but as you can see they asked me to post here as they said it is a myNode issue:

romanz/electrs#275

@tehelsper
Copy link
Collaborator

Try upgrading to the latest version and regenerating your electrs certificate via the settings page.

@maltokyo
Copy link
Author

Thank you

  • I am on the latest version
  • Regenerated now from the settings page
  • deleted all certs from electrum wallet certs directory
  • started wallet (same config file as linked above)
  • same error, no change.

Full log below:

20200717T234517.417089Z |     INFO | logging | Electrum version: 4.0.2 - https://electrum.org - https://github.com/spesmilo/electrum
20200717T234517.432736Z |     INFO | logging | Python version: 3.7.7 (default, Jun 23 2020, 16:29:54) 
[Clang 11.0.0 (clang-1100.0.33.17)]. On platform: Darwin-19.5.0-x86_64-i386-64bit
20200717T234517.433107Z |     INFO | logging | Logging to file: /Users/me/.electrum/logs/electrum_log_20200717T234517Z_22327.log
20200717T234517.433206Z |     INFO | logging | Log filters: verbosity '', verbosity_shortcuts ''
20200717T234517.438424Z |     INFO | plugin.Plugins | registering hardware bitbox02: ('hardware', 'bitbox02', 'BitBox02')
20200717T234517.439340Z |     INFO | plugin.Plugins | registering hardware coldcard: ('hardware', 'coldcard', 'Coldcard Wallet')
20200717T234517.441179Z |     INFO | plugin.Plugins | registering hardware digitalbitbox: ('hardware', 'digitalbitbox', 'Digital Bitbox wallet')
20200717T234517.444694Z |     INFO | plugin.Plugins | registering hardware keepkey: ('hardware', 'keepkey', 'KeepKey wallet')
20200717T234517.446294Z |     INFO | plugin.Plugins | registering hardware ledger: ('hardware', 'ledger', 'Ledger wallet')
20200717T234517.448145Z |     INFO | plugin.Plugins | registering hardware safe_t: ('hardware', 'safe_t', 'Safe-T mini wallet')
20200717T234517.449006Z |     INFO | plugin.Plugins | registering hardware trezor: ('hardware', 'trezor', 'Trezor wallet')
20200717T234517.449846Z |     INFO | plugin.Plugins | registering wallet type ('2fa', 'trustedcoin')
20200717T234517.450899Z |    DEBUG | util.profiler | Plugins.__init__ 0.0172
20200717T234517.459623Z |     INFO | network | blockchains [0]
20200717T234517.461170Z |     INFO | exchange_rate.FxThread | using exchange CoinGecko
20200717T234517.462405Z |    DEBUG | util.profiler | Daemon.__init__ 0.0114
20200717T234517.462554Z |     INFO | daemon.Daemon | launching GUI: qt
20200717T234517.463082Z |     INFO | network | starting network
20200717T234517.463404Z |     INFO | network | setting proxy None
20200717T234517.463765Z |     INFO | daemon.Daemon | starting taskgroup.
20200717T234517.464082Z |     INFO | network | connecting to 192.168.1.175:50002:s as new interface
20200717T234517.464797Z |     INFO | network | starting taskgroup.
20200717T234517.760457Z |     INFO | gui.qt.history_list | could not import electrum.plot. This feature needs matplotlib to be installed.
20200717T234517.761762Z |     INFO | interface.[192.168.1.175:50002] | succeeded in getting cert
20200717T234517.769125Z |     INFO | gui.qt.ElectrumGui | Qt GUI starting up... Qt=5.14.2, PyQt=5.14.2
20200717T234517.771143Z |  WARNING | interface.[192.168.1.175:50002] | Cannot connect to main server due to SSL error (maybe cert changed compared to "/Users/mal/.electrum/certs/192.168.1.175"). Exc: ConnectError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1076)'))
20200717T234517.773934Z |     INFO | network | couldn't launch iface 192.168.1.175:50002:s -- CancelledError()
20200717T234518.230390Z |    DEBUG | util.profiler | ElectrumGui.__init__ 0.4640
20200717T234518.231003Z |     INFO | storage.WalletStorage | wallet path /Users/me/.electrum/wallets/test
20200717T234520.090230Z |     INFO | network | connecting to 192.168.1.175:50002:s as new interface
20200717T234520.285128Z |  WARNING | interface.[192.168.1.175:50002] | Cannot connect to main server due to SSL error (maybe cert changed compared to "/Users/mal/.electrum/certs/192.168.1.175"). Exc: ConnectError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1076)'))
20200717T234520.285467Z |     INFO | network | couldn't launch iface 192.168.1.175:50002:s -- CancelledError()
20200717T234524.908811Z |     INFO | network | connecting to 192.168.1.175:50002:s as new interface
20200717T234524.995813Z |  WARNING | interface.[192.168.1.175:50002] | Cannot connect to main server due to SSL error (maybe cert changed compared to "/Users/mal/.electrum/certs/192.168.1.175"). Exc: ConnectError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1076)'))
20200717T234524.996107Z |     INFO | network | couldn't launch iface 192.168.1.175:50002:s -- CancelledError()
20200717T234525.903334Z |    DEBUG | util.profiler | WalletDB._load_transactions 0.0009
20200717T234525.905188Z |    DEBUG | util.profiler | AddressSynchronizer.load_local_history 0.0001
20200717T234525.905621Z |    DEBUG | util.profiler | AddressSynchronizer.check_history 0.0003
20200717T234525.906792Z |    DEBUG | util.profiler | WalletDB._load_transactions 0.0001
20200717T234525.906947Z |    DEBUG | util.profiler | AddressSynchronizer.load_local_history 0.0000
20200717T234525.907061Z |    DEBUG | util.profiler | AddressSynchronizer.check_history 0.0000
20200717T234525.960871Z |    DEBUG | util.profiler | AddressList.update 0.0000
20200717T234526.044328Z |    DEBUG | util.profiler | Deterministic_Wallet.try_detecting_internal_addresses_corruption 0.0141
20200717T234526.044496Z |    DEBUG | util.profiler | ElectrumWindow.load_wallet 0.0471
20200717T234526.097730Z |     INFO | gui.qt.history_list.HistoryModel | refreshing... reason: update_tabs
20200717T234526.098880Z |    DEBUG | util.profiler | Abstract_Wallet.get_full_history 0.0009
20200717T234526.099506Z |    DEBUG | util.profiler | HistoryModel.refresh 0.0018
20200717T234526.100684Z |    DEBUG | util.profiler | AddressList.update 0.0000
20200717T234526.202042Z |     INFO | gui.qt.update_checker.UpdateCheckThread | valid sig for version announcement '3.3.8' from address '13xjmVAB1EATPP8RshTE8S8sNwwSUM9p1P'
20200717T234533.601806Z |     INFO | network | connecting to 192.168.1.175:50002:s as new interface
20200717T234533.805952Z |  WARNING | interface.[192.168.1.175:50002] | Cannot connect to main server due to SSL error (maybe cert changed compared to "/Users/mal/.electrum/certs/192.168.1.175"). Exc: ConnectError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1076)'))
20200717T234533.809814Z |     INFO | network | couldn't launch iface 192.168.1.175:50002:s -- CancelledError()
20200717T234541.626917Z |     INFO | network | connecting to mynode.local:50002:s as new interface
20200717T234551.719871Z |     INFO | interface.[mynode.local:50002] | succeeded in getting cert
20200717T234552.097904Z |     INFO | gui.qt.main_window.[henry_electrum_backup_1mio_sats] | close_wallet /Users/mal/.electrum/wallets/henry_electrum_backup_1mio_sats
20200717T234552.104115Z |     INFO | storage.WalletStorage | saved /Users/mal/.electrum/wallets/henry_electrum_backup_1mio_sats
20200717T234552.104302Z |    DEBUG | util.profiler | WalletStorage.write 0.0033
20200717T234552.115667Z |     INFO | gui.qt.ElectrumGui | closing GUI
20200717T234552.115880Z |     INFO | daemon.Daemon | shutting down network
20200717T234552.116200Z |     INFO | network | stopping network
20200717T234552.116470Z |     INFO | interface.[mynode.local:50002] | disconnecting due to: CancelledError()
20200717T234552.116707Z |     INFO | network | couldn't launch iface mynode.local:50002:s -- CancelledError()
20200717T234552.116979Z |     INFO | network | taskgroup stopped.
20200717T234552.117260Z |     INFO | daemon.Daemon | stopping taskgroup
20200717T234552.117582Z |     INFO | daemon.Daemon | taskgroup stopped.
20200717T234552.117736Z |     INFO | daemon.Daemon | removing lockfile
20200717T234552.118012Z |     INFO | daemon.Daemon | stopped
20200717T234552.123028Z |     INFO | plugin.Plugins | stopped

@tehelsper
Copy link
Collaborator

OK, it looks like some changes I made for HTTPS certs broke electrs certificate generation. I have some fixes in for release in v0.2.12 that should help.

I was able to reproduce the issue with a certificate re-generated using v0.2.11.

@tehelsper
Copy link
Collaborator

Can you retest this with the latest version?

@maltokyo
Copy link
Author

Will do. Might be a few days.

@maltokyo
Copy link
Author

maltokyo commented Aug 2, 2020

Hi @tehelsper still an error, with latest version of mynode 2.1.3 and fully synched electrs. Something wrong with ssl.
(I deleted all certs just to make sure, and even then still get the below)

20200802T082522.366719Z |     INFO | logging | Electrum version: 4.0.2 - https://electrum.org - https://github.com/spesmilo/electrum
20200802T082522.380244Z |     INFO | logging | Python version: 3.7.7 (default, Jun 23 2020, 16:29:54) 
[Clang 11.0.0 (clang-1100.0.33.17)]. On platform: Darwin-19.6.0-x86_64-i386-64bit
20200802T082522.380635Z |     INFO | logging | Logging to file: /Users/mal/.electrum/logs/electrum_log_20200802T082522Z_1117.log
20200802T082522.380736Z |     INFO | logging | Log filters: verbosity '', verbosity_shortcuts ''
20200802T082522.383279Z |     INFO | plugin.Plugins | registering hardware bitbox02: ('hardware', 'bitbox02', 'BitBox02')
20200802T082522.383835Z |     INFO | plugin.Plugins | registering hardware coldcard: ('hardware', 'coldcard', 'Coldcard Wallet')
20200802T082522.384690Z |     INFO | plugin.Plugins | registering hardware digitalbitbox: ('hardware', 'digitalbitbox', 'Digital Bitbox wallet')
20200802T082522.387379Z |     INFO | plugin.Plugins | registering hardware keepkey: ('hardware', 'keepkey', 'KeepKey wallet')
20200802T082522.388286Z |     INFO | plugin.Plugins | registering hardware ledger: ('hardware', 'ledger', 'Ledger wallet')
20200802T082522.389229Z |     INFO | plugin.Plugins | registering hardware safe_t: ('hardware', 'safe_t', 'Safe-T mini wallet')
20200802T082522.389748Z |     INFO | plugin.Plugins | registering hardware trezor: ('hardware', 'trezor', 'Trezor wallet')
20200802T082522.390280Z |     INFO | plugin.Plugins | registering wallet type ('2fa', 'trustedcoin')
20200802T082522.390950Z |    DEBUG | util.profiler | Plugins.__init__ 0.0098
20200802T082522.391638Z |     INFO | network | blockchains [0]
20200802T082522.392613Z |     INFO | exchange_rate.FxThread | using exchange CoinGecko
20200802T082522.393749Z |    DEBUG | util.profiler | Daemon.__init__ 0.0027
20200802T082522.394050Z |     INFO | daemon.Daemon | launching GUI: qt
20200802T082522.394550Z |     INFO | network | starting network
20200802T082522.394775Z |     INFO | network | setting proxy None
20200802T082522.395190Z |     INFO | daemon.Daemon | starting taskgroup.
20200802T082522.395515Z |     INFO | network | connecting to mynode.local:50002:s as new interface
20200802T082522.396311Z |     INFO | network | starting taskgroup.
20200802T082522.469162Z |     INFO | gui.qt.history_list | could not import electrum.plot. This feature needs matplotlib to be installed.
20200802T082522.474477Z |     INFO | gui.qt.ElectrumGui | Qt GUI starting up... Qt=5.14.2, PyQt=5.14.2
20200802T082522.614609Z |    DEBUG | util.profiler | ElectrumGui.__init__ 0.1415
20200802T082522.615165Z |     INFO | storage.WalletStorage | wallet path /Users/mal/.electrum/wallets/xxx_electrum_backup_1mio_sats
20200802T082522.820375Z |     INFO | storage.WalletStorage | wallet path /Users/mal/.electrum/wallets/xxx_electrum_backup_1mio_sats
20200802T082526.303000Z |    DEBUG | util.profiler | WalletDB._load_transactions 0.0006
20200802T082526.304647Z |    DEBUG | util.profiler | AddressSynchronizer.load_local_history 0.0001
20200802T082526.305031Z |    DEBUG | util.profiler | AddressSynchronizer.check_history 0.0003
20200802T082526.306126Z |    DEBUG | util.profiler | WalletDB._load_transactions 0.0001
20200802T082526.306272Z |    DEBUG | util.profiler | AddressSynchronizer.load_local_history 0.0000
20200802T082526.306651Z |    DEBUG | util.profiler | AddressSynchronizer.check_history 0.0000
20200802T082526.345366Z |    DEBUG | util.profiler | AddressList.update 0.0000
20200802T082526.419562Z |    DEBUG | util.profiler | Deterministic_Wallet.try_detecting_internal_addresses_corruption 0.0133
20200802T082526.419725Z |    DEBUG | util.profiler | ElectrumWindow.load_wallet 0.0443
20200802T082526.549830Z |     INFO | gui.qt.update_checker.UpdateCheckThread | valid sig for version announcement '3.3.8' from address '13xjmVAB1EATPP8RshTE8S8sNwwSUM9p1P'
20200802T082526.550648Z |     INFO | gui.qt.history_list.HistoryModel | refreshing... reason: update_tabs
20200802T082526.551643Z |    DEBUG | util.profiler | Abstract_Wallet.get_full_history 0.0008
20200802T082526.552219Z |    DEBUG | util.profiler | HistoryModel.refresh 0.0016
20200802T082526.553445Z |    DEBUG | util.profiler | AddressList.update 0.0000
20200802T082532.747811Z |     INFO | interface.[mynode.local:50002] | succeeded in getting cert
20200802T082537.866138Z |  WARNING | interface.[mynode.local:50002] | Cannot connect to main server due to SSL error (maybe cert changed compared to "/Users/mal/.electrum/certs/mynode.local"). Exc: ConnectError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1076)'))
20200802T082537.866893Z |     INFO | network | couldn't launch iface mynode.local:50002:s -- CancelledError()
20200802T082537.929469Z |     INFO | network | connecting to mynode.local:50002:s as new interface
20200802T082542.985019Z |  WARNING | interface.[mynode.local:50002] | Cannot connect to main server due to SSL error (maybe cert changed compared to "/Users/mal/.electrum/certs/mynode.local"). Exc: ConnectError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1076)'))
20200802T082542.985900Z |     INFO | network | couldn't launch iface mynode.local:50002:s -- CancelledError()
20200802T082542.999775Z |     INFO | network | connecting to mynode.local:50002:s as new interface
20200802T082548.035335Z |  WARNING | interface.[mynode.local:50002] | Cannot connect to main server due to SSL error (maybe cert changed compared to "/Users/mal/.electrum/certs/mynode.local"). Exc: ConnectError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1076)'))
20200802T082548.036123Z |     INFO | network | couldn't launch iface mynode.local:50002:s -- CancelledError()
20200802T082550.172804Z |     INFO | gui.qt.main_window.[xxx_electrum_backup_1mio_sats] | close_wallet /Users/mal/.electrum/wallets/xxx_electrum_backup_1mio_sats
20200802T082550.177710Z |     INFO | storage.WalletStorage | saved /Users/mal/.electrum/wallets/xxx_electrum_backup_1mio_sats
20200802T082550.177854Z |    DEBUG | util.profiler | WalletStorage.write 0.0030
20200802T082550.186611Z |     INFO | gui.qt.ElectrumGui | closing GUI
20200802T082550.186824Z |     INFO | daemon.Daemon | shutting down network
20200802T082550.187139Z |     INFO | network | stopping network
20200802T082550.187566Z |     INFO | network | taskgroup stopped.
20200802T082550.187870Z |     INFO | daemon.Daemon | stopping taskgroup
20200802T082550.188272Z |     INFO | daemon.Daemon | taskgroup stopped.
20200802T082550.188502Z |     INFO | daemon.Daemon | removing lockfile
20200802T082550.188829Z |     INFO | daemon.Daemon | stopped
20200802T082550.275569Z |     INFO | plugin.Plugins | stopped

@tehelsper
Copy link
Collaborator

I'm starting to think some clients are pickier about the cert than others for some reason. Which OS are you on? Can you try and connect from a phone or different PC? I can connect from a Windows client and Ubuntu.

@maltokyo
Copy link
Author

maltokyo commented Aug 3, 2020

Hi @tehelsper

Electrum 4.0.2 is running on MacOS (latest version). I don't have windows or another device at the moment. I will try to borrow one or otherwise set something up.

@tripletuple
Copy link

I have the same issue. Latest version of mynode and running electrum 4.0.2. I have had this issue since electrum 4.0 and the last few version of mynode. Electrum will not connect.

@tripletuple
Copy link

additionally, bluewallet on latest iOS will connect but no version of electrum. Perhaps that helps with the troubleshooting here.

@tehelsper
Copy link
Collaborator

Have you tried installing Electrum wallet v3 again to see if it connects? I've tried on both 3 and 4 and can connect on all combinations I have tried.

@tripletuple
Copy link

tripletuple commented Aug 5, 2020 via email

@tripletuple
Copy link

tripletuple commented Aug 5, 2020 via email

@maltokyo
Copy link
Author

maltokyo commented Aug 5, 2020

Me too. It never works anymore on 50002. I've an electrumx server on another machine and it works fine. I'll stick with that 🙂 until this is resolved.

@craig5999
Copy link

I can connect to electrum server on 50002 from my mac, however all mynode https are inaccessible from macOS and android. Is this a known issue?

@tehelsper
Copy link
Collaborator

@craig5999

  • Which version of Android and is that Safari on MacOS?
  • Have you tried the regenerate HTTPS cert via Settings in myNode?

Finally, what is the error you see? Does it indicate no response or invalid certificate?

@craig5999
Copy link

Android 7.1.1
Both Safari and Chrome on MacOS 10.15.5
I have tried regen https

Chrome error is as follows:

`This site can’t be reached192.168.2.152 refused to connect.
Try:

Checking the connection
Checking the proxy and the firewall
ERR_CONNECTION_REFUSED`

Safari error is in below image
Screen Shot 2020-08-07 at 10 50 38

Thank you!

@tripletuple
Copy link

Could this be a specific issue with the virtual machine version of mynode? Again, i have wiped, reinstalled the vm version from the website (its really old so it then has to upgrade), and fully upgraded mynode to the latest version and electrum 3.x and 4.x cant connect. I have tried all of the suggestions above as well as the suggestions you made from my original ticket (regen certificate, etc).

@tehelsper
Copy link
Collaborator

Can anyone retest this again after upgrading to v0.2.15? It uses NGINX now for the secure electrum server connection.

@maltokyo
Copy link
Author

maltokyo commented Aug 25, 2020

Hi @tehelsper

Unfortunately still the same error even after upgrade to v0.2.15.

Log:

20200825T165229.866903Z |     INFO | logging | Electrum version: 4.0.2 - https://electrum.org - https://github.com/spesmilo/electrum
20200825T165229.879539Z |     INFO | logging | Python version: 3.7.7 (default, Jun 23 2020, 16:29:54) 
[Clang 11.0.0 (clang-1100.0.33.17)]. On platform: Darwin-19.6.0-x86_64-i386-64bit
20200825T165229.879913Z |     INFO | logging | Logging to file: /Users/xxx/.electrum/logs/electrum_log_20200825T165229Z_5552.log
20200825T165229.880026Z |     INFO | logging | Log filters: verbosity '', verbosity_shortcuts ''
20200825T165229.882462Z |     INFO | plugin.Plugins | registering hardware bitbox02: ('hardware', 'bitbox02', 'BitBox02')
20200825T165229.882991Z |     INFO | plugin.Plugins | registering hardware coldcard: ('hardware', 'coldcard', 'Coldcard Wallet')
20200825T165229.883851Z |     INFO | plugin.Plugins | registering hardware digitalbitbox: ('hardware', 'digitalbitbox', 'Digital Bitbox wallet')
20200825T165229.886555Z |     INFO | plugin.Plugins | registering hardware keepkey: ('hardware', 'keepkey', 'KeepKey wallet')
20200825T165229.887426Z |     INFO | plugin.Plugins | registering hardware ledger: ('hardware', 'ledger', 'Ledger wallet')
20200825T165229.888352Z |     INFO | plugin.Plugins | registering hardware safe_t: ('hardware', 'safe_t', 'Safe-T mini wallet')
20200825T165229.888839Z |     INFO | plugin.Plugins | registering hardware trezor: ('hardware', 'trezor', 'Trezor wallet')
20200825T165229.889349Z |     INFO | plugin.Plugins | registering wallet type ('2fa', 'trustedcoin')
20200825T165229.890032Z |    DEBUG | util.profiler | Plugins.__init__ 0.0096
20200825T165229.890937Z |     INFO | network | blockchains [0]
20200825T165229.892045Z |     INFO | exchange_rate.FxThread | using exchange CoinGecko
20200825T165229.893200Z |    DEBUG | util.profiler | Daemon.__init__ 0.0030
20200825T165229.893365Z |     INFO | daemon.Daemon | launching GUI: qt
20200825T165229.893530Z |     INFO | network | starting network
20200825T165229.893929Z |     INFO | network | setting proxy None
20200825T165229.894339Z |     INFO | daemon.Daemon | starting taskgroup.
20200825T165229.894606Z |     INFO | network | connecting to 192.168.1.175:50002:s as new interface
20200825T165229.895753Z |     INFO | network | starting taskgroup.
20200825T165229.969097Z |     INFO | gui.qt.history_list | could not import electrum.plot. This feature needs matplotlib to be installed.
20200825T165229.974841Z |     INFO | gui.qt.ElectrumGui | Qt GUI starting up... Qt=5.14.2, PyQt=5.14.2
20200825T165229.991422Z |     INFO | interface.[192.168.1.175:50002] | succeeded in getting cert
20200825T165229.997467Z |  WARNING | interface.[192.168.1.175:50002] | Cannot connect to main server due to SSL error (maybe cert changed compared to "/Users/xxx/.electrum/certs/192.168.1.175"). Exc: ConnectError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1076)'))
20200825T165229.997946Z |     INFO | network | couldn't launch iface 192.168.1.175:50002:s -- CancelledError()
20200825T165230.107390Z |    DEBUG | util.profiler | ElectrumGui.__init__ 0.1341
20200825T165230.107949Z |     INFO | storage.WalletStorage | wallet path /Users/xxx/.electrum/wallets/test
20200825T165230.317067Z |     INFO | storage.WalletStorage | wallet path /Users/xxx/.electrum/wallets/test
20200825T165232.689555Z |     INFO | network | connecting to 192.168.1.175:50002:s as new interface
20200825T165232.705269Z |  WARNING | interface.[192.168.1.175:50002] | Cannot connect to main server due to SSL error (maybe cert changed compared to "/Users/xxx/.electrum/certs/192.168.1.175"). Exc: ConnectError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1076)'))
20200825T165232.705618Z |     INFO | network | couldn't launch iface 192.168.1.175:50002:s -- CancelledError()
20200825T165233.954141Z |    DEBUG | util.profiler | WalletDB._load_transactions 0.0006
20200825T165233.956009Z |    DEBUG | util.profiler | AddressSynchronizer.load_local_history 0.0002
20200825T165233.956431Z |    DEBUG | util.profiler | AddressSynchronizer.check_history 0.0003
20200825T165233.957539Z |    DEBUG | util.profiler | WalletDB._load_transactions 0.0001
20200825T165233.957702Z |    DEBUG | util.profiler | AddressSynchronizer.load_local_history 0.0000
20200825T165233.957815Z |    DEBUG | util.profiler | AddressSynchronizer.check_history 0.0000
20200825T165233.996306Z |    DEBUG | util.profiler | AddressList.update 0.0000
20200825T165234.072132Z |    DEBUG | util.profiler | Deterministic_Wallet.try_detecting_internal_addresses_corruption 0.0137
20200825T165234.072485Z |    DEBUG | util.profiler | ElectrumWindow.load_wallet 0.0457
20200825T165234.185144Z |     INFO | gui.qt.update_checker.UpdateCheckThread | valid sig for version announcement '3.3.8' from address '13xjmVAB1EATPP8RshTE8S8sNwwSUM9p1P'
20200825T165234.309427Z |     INFO | gui.qt.history_list.HistoryModel | refreshing... reason: update_tabs
20200825T165234.310427Z |    DEBUG | util.profiler | Abstract_Wallet.get_full_history 0.0008
20200825T165234.310925Z |    DEBUG | util.profiler | HistoryModel.refresh 0.0015
20200825T165234.312243Z |    DEBUG | util.profiler | AddressList.update 0.0000
20200825T165236.024076Z |     INFO | gui.qt.main_window.[test] | close_wallet /Users/xxx/.electrum/wallets/test
20200825T165236.029462Z |     INFO | storage.WalletStorage | saved /Users/xxx/.electrum/wallets/test
20200825T165236.029650Z |    DEBUG | util.profiler | WalletStorage.write 0.0034
20200825T165236.038409Z |     INFO | gui.qt.ElectrumGui | closing GUI
20200825T165236.038613Z |     INFO | daemon.Daemon | shutting down network
20200825T165236.038926Z |     INFO | network | stopping network
20200825T165236.039386Z |     INFO | network | taskgroup stopped.
20200825T165236.039666Z |     INFO | daemon.Daemon | stopping taskgroup
20200825T165236.040003Z |     INFO | daemon.Daemon | taskgroup stopped.
20200825T165236.040156Z |     INFO | daemon.Daemon | removing lockfile
20200825T165236.040428Z |     INFO | daemon.Daemon | stopped
20200825T165236.082718Z |     INFO | plugin.Plugins | stopped

@tripletuple
Copy link

This still does not work for me even after the new update that runs nginx. any clues as to whats going on?

@maltokyo
Copy link
Author

Same for me @tehelsper , is this working for anyone that you know of?

@tripletuple
Copy link

@maltokyo - are you by chance running mynode on a VM via virtualbox? That is my setup and i am having the same problem. I wonder if this is somehow part of the problem otherwise I have to believe that many other users would be raising this issue. I assume running myode as a vm is not the most common deployment and therefore there is not much traction on this issue.

@maltokyo
Copy link
Author

I run it on an old pc ;) amd64. But recently (because if this issue) switched to https://getumbrel.com/

@tehelsper
Copy link
Collaborator

@maltokyo - are you by chance running mynode on a VM via virtualbox? That is my setup and i am having the same problem. I wonder if this is somehow part of the problem otherwise I have to believe that many other users would be raising this issue. I assume running myode as a vm is not the most common deployment and therefore there is not much traction on this issue.

RP4 is by far the most common, but there are a decent number of VM users. I have tried resetting and re-syncing a VM version of electrs many times and have not been able to reproduce it. The error comes from a library within electrum client for validating the cert - I'm not really sure what to do, especially if other clients can connect.

Have you tried a totally fresh VM to see if that changed anything?

@tripletuple
Copy link

Yea I did that and I did it by downloading a fresh copy of the ova and installing it and then going through the upgrades to get to the current version at the time and still had the same problem. I also spun up a new vm with the latest version after you updated the ova's from the mynode website - still the same problem.

@tripletuple
Copy link

@tehelsper any way to help us open an issue for the electrum devs to maybe take a look since it seems to be affecting electrum only?

@tehelsper
Copy link
Collaborator

@tripletuple Good idea - I should have logged one a while ago. Here's a link if you want to add any more info:

spesmilo/electrum#6700

I don't think electrs, the certificate, or nginx is the issue based on how frequently it works for other users and is running properly on port 50001, so I logged it with the electrum client project.

@tripletuple
Copy link

ACK. Thanks!

@tripletuple
Copy link

It also doesnt work on 50001. Does that change anything?

@tehelsper
Copy link
Collaborator

Ah, yeah, it would for you. The original issue indicated 50001 works ok. What happens when you try port 50001?

@tripletuple
Copy link

Same issue. Electrum 3.x or 4.x cant connect to ex: 192.168.100.x:50002 or 192.168.100.x:50001.

@tehelsper
Copy link
Collaborator

Are you updating the config file to ensure is it not attempting a secure connection on port 50001? You can't just update it in the UI.

What does this command show?

sudo journalctl -r -u electrs

@tripletuple
Copy link

A lot of this:

Oct 29 08:34:15 mynode electrs[4986]: 2020-10-29T08:34:15.536-05:00 - TRACE - RPC PeriodicUpdate
Oct 29 08:34:00 mynode electrs[4986]: 2020-10-29T08:34:00.317-05:00 - TRACE - RPC PeriodicUpdate

with the occasional:

Oct 29 08:47:15 mynode electrs[4986]: 2020-10-29T08:47:15.308-05:00 - DEBUG - applying 1 new headers from height 654663
Oct 29 08:47:15 mynode electrs[4986]: 2020-10-29T08:47:15.139-05:00 - INFO - best=00000000000000000008473440d77092a669e55c3f377d
Oct 29 08:47:15 mynode electrs[4986]: 2020-10-29T08:47:15.139-05:00 - TRACE - downloaded 1 block headers
Oct 29 08:47:15 mynode electrs[4986]: 2020-10-29T08:47:15.113-05:00 - DEBUG - downloading new block headers (654663 already inde

@tripletuple
Copy link

Im just updating the UI. Thats always worked in the past since before this issue cropped up a few releases ago. I also have this same setup on another VM except running mint with bitcoin core/electrum personal server and connecting to that node works over 50001 or 50002.

@tehelsper
Copy link
Collaborator

Hmmm.... That info looks like it is running fine. Can you try updating the config file? You should need to change the "t/s" letter at the end.

https://mynodebtc.com/guide/debug_electrum

@tripletuple
Copy link

I cleared the certs using that debug page and all is well now! Thanks man.

@tehelsper
Copy link
Collaborator

@maltokyo Did you ever use a different device to try and connect on port 50002? I still think this is on the client side caused by certificate confusion.

@maltokyo
Copy link
Author

Yes I tried electrum on Android too. Couldn't connect. All of them connect flawlessly to electrum server in Umbrel

@tripletuple
Copy link

One thing to note about this issue is that if the mynode VM gets rebooted, you have to go through the process to clear the certificates every time on the local machine where you are running electrum. Is there a way to fix this permanently?

@blindnew23
Copy link

I have a similar problem, I use a MacOS and mine ( Electrum ) does not connect.

Captura de Tela 2022-11-29 às 08 48 40

Captura de Tela 2022-11-29 às 08 48 58

Captura de Tela 2022-11-29 às 08 49 11

Captura de Tela 2022-11-29 às 08 49 30

@tehelsper
Copy link
Collaborator

@sha-265
Copy link

sha-265 commented Mar 16, 2023

I have the same problem with EPS. I removed the certs directory, and tried to switch to t instead of secure connection. But it didn't help. Any recommendations?

EDIT: nvm the problem was in EPS side - chris-belcher/electrum-personal-server#286 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants