almindor / etherwall

Ethereum QT5 Wallet
GNU General Public License v3.0
143 stars 59 forks source link

make an option to reconnect to geth pipe #10

Closed SnaiLiuS closed 8 years ago

SnaiLiuS commented 8 years ago

sometimes geth starts very slow and wallet cant connect to it. make an option to manual connect to geth

almindor commented 8 years ago

This is already there. You need to click the bottom right "net bars" icon to reconnect.

almindor commented 8 years ago

Added a FAQ entry too

SnaiLiuS commented 8 years ago

Here is the log at startup: Unable to establish IPC connection to Geth. Fix path to Geth and try again. Connecting to IPC socket .\pipe\geth.ipc Geth starting geth.exe --verbosity 3 --jitvm --cache 1024 --targetgaslimit 1500000 --gasprice 20000000000 --support-dao-fork Checking to see if there is an already running geth... Etherwall starting

Status bar shows: "Starting Geth" and net icon is disable but geth is syncing :)

almindor commented 8 years ago

Hmm did the geth log show the IPC endpoint opened? I noticed that geth sometimes gets "stuck" in a state where it just doesn't open the IPC.

If it did then it's an etherwall issue.

SnaiLiuS commented 8 years ago

i will check and include a log when this "bug" occure

SnaiLiuS commented 8 years ago

confirmed at start. geth shows "IPC endpoint opened" 3 sec later after etherwall message: Unable to establish IPC connection to Geth. Fix path to Geth and try again. Connecting to IPC socket .\pipe\geth.ipc

Net icon and other tabs disable. Geth is syncing normal, but etherwall is not reconnect to geth pipe and status bar shows "Geth is starting..."

almindor commented 8 years ago

Ok so that means Etherwall times out on waiting for geth and then it seems to try to run it again...

I'll try it on windows with a slow disk to see if I can reproduce.

Just to be clear, you cannot reconnect by clicking the network status icon? (bottom right)

SnaiLiuS commented 8 years ago

yes, this icon is disable. in normal situation i can click to it and etherwall reconnects to geth ipc. this situation occures randomly only at start of etherwall. Etherwall starts geth and wait for geth ipc open, geth is too slow to open it, etherwall shows that it cant connect to geth ipc and dont reconnect and net icon and tabs (account, transactions, ...) are disable.

almindor commented 8 years ago

OK thanks for reporting. I think etherwall gets into a funny state after this set of events. I'll have to reproduce to fix.

almindor commented 8 years ago

This should now be fixed in version 1.4.2. You may still get the error if geth is too slow, but you should be able to click the reconnect button now.

SnaiLiuS commented 8 years ago

1.4.2 it works