-
Notifications
You must be signed in to change notification settings - Fork 20.5k
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
Unable to attach to the local running geth node #14536
Comments
Try using |
Thanks for the answer but that was exactly what I did then and this issue is not a request for advice but rather a possible bug report as this behavior doesn't seem logical. |
+1. Replicated on MacOS here. |
@Geth attach--ipcpath ".ethereum/geth.ipc" worked for me i am using the default path. |
If you are using the testnet, you have to include the testnet folder on the path, for example on a mac: |
Connected to the local RPC port worked for me: geth attach http://localhost:8545 |
On MacOS, for testnet:
|
|
I couldn't connect localhost 8545.... |
this works for me on windows geth attach "\.\pipe\whatever.ipc" or note that I started my node with ipcpath "whatever.ipc" and rpcport 8546 I believe it would work on other OS. Basically the parameter of the 'attach' would be a full url that would be used for fileopen equivalent. The convention is inconsistent(where when starting geth, I cannot put \.\pipe\ as part of the path, though so long you know what you are doing, it should work |
On macOS 10.12.6, using Geth/v1.7.3-stable/darwin-amd64/go1.9.2 First I set up a Private Network and started the Geth Node:
Then I opened another Bash terminal window and tried to connect with JavaScript RPC Geth Console using the flags that were shown with
I have shared my code and an explanation here: https://github.com/ltfschoen/geth-node |
Some additions for those who use eth instead of geth. ... --ipcpath "node1.ipc" |
sigh, all these convention things, developers are really not interested in documenting the details(which I can understand as I am also one, it works for me and my time is tight) :-) |
Worked on macOS High Sierra 10.13.3
This will start a peer-to-pear node and begin writing to a location on your drive. Mine is: INFO [02-22|22:05:37] IPC endpoint opened: /var/folders/pd/q90qnj416350xv7g9kpmglt40000gq/T/geth.ipc
If you get a permission issue then run with a sudo command at the beginning like so: Hope this works for you :-) |
As noted above, I used the local host specification and it worked.
|
Seems resolved, no? |
Got a permission error for "localhost", but |
Hi, I'm trying to run a geth node and attach to but can't do it.
System information
Geth version:
OS & Version:
Expected behaviour
I'm able to connect to the running node with
geth attach
Actual behaviour
Steps to reproduce the behaviour
Summary
This behaviour seems incorrect, let me know if I do something wrong. If I connect to a network and then specify the same network in the attach function, I expected geth to successfully attach to the running node.
I've also tried to specify datadir:
And if you read the documentation on attach you'll see this:
So, I've tried to specify datadir after attach with no success:
And I think it's better to remove
--datadir-- from flag from
attachand only leave it in
geth` to avoid ambiguity.I'd like to fix this behavior and I'm asking you to check this first and confirm it's a bug.
Regards,
Ivan.
The text was updated successfully, but these errors were encountered: