monero-project / monero-gui

Monero: the secure, private, untraceable cryptocurrency
Other
1.73k stars 767 forks source link

Monero Wallet GUI fails to detect already running monerod #3724

Open adrelanos opened 2 years ago

adrelanos commented 2 years ago

If monerod is already running or better said if port 18081 on localhost is already open, Monero Wallet CLI auto detects that, uses that port to connect to to that monerod.

Monero Wallet GUI however ignores existing localhost port 18081 and starts its own monerod.

Could you please autodetect if monerod is running on the default port on localhost and in that case avoid Monero Wallet GUI from starting its own monerod?

selsta commented 2 years ago

That must be some configuration issue. The GUI does auto detect if a daemon is running on port 18081 and uses it. Is anything special with your setup?

adrelanos commented 2 years ago

This is the full setup: https://www.whonix.org/wiki/Monero_Wallet_Isolation

Special because socat opens the listening port and forwards it. Monero Wallet CLI can deal with it. Monero Wallet GUI seems to do something else. Does it attempt to detect the process instead of the listening port?

rbrunner7 commented 2 years ago

For what it's worth, for me (on bog-standard Linux) sometimes it does not detect an already-running daemon fast enough, the GUI wallet kind of gives up and starts to show its "countdown to daemon start" dialog box. If I click the "special settings" button there to prevent any daemon start attempt it takes only a few seconds more until it finally connects to the daemon. No idea why detecting the daemon should take so long ...