monero-gui icon indicating copy to clipboard operation
monero-gui copied to clipboard

GUI hangs if `monerod` cannot bind

Open hinto-janai opened this issue 7 months ago • 2 comments

When starting monero-wallet-gui and starting a local node, it will hang with no indication/error/log if monerod itself cannot bind, e.g:

2023-11-07 17:44:20.109	E ZMQ bind failed: Address already in use
2023-11-07 17:44:20.121	E Exception in main! Failed to add TCP socket(127.0.0.1:18082) to ZMQ RPC Server

Reproduce

  1. Start something on ZMQ/RPC port
  2. Start monero-wallet-gui and launch local node
  3. monero-wallet-gui hangs forever attempting to launch monerod which cannot bind

image

Something could be logged if monerod exits with non-zero.

hinto-janai avatar Nov 07 '23 15:11 hinto-janai

after 120 seconds i get a notification that the daemon failed to start. does this scenario fool the checks? (i bound an rpc wallet to 18083 and launched monerod in from the gui with --zmq-pub tcp://127.0.0.1:18083 )

plowsof avatar Nov 12 '23 23:11 plowsof

Interesting - if that flag (or any flag I'm assuming) is passed, it will properly error:

image

This doesn't happen without a flag though, port blocked with no flag will hang forever - maybe this error should be copy+pasted here. I'll try fixing this later.

hinto-janai avatar Nov 13 '23 20:11 hinto-janai