Go-ethereum: attach failed on testnet

Created on 29 Apr 2016  路  9Comments  路  Source: ethereum/go-ethereum

System information

Geth version: 1.4.0 RC
OS & Version: Linux
Commit hash : (if develop)

when run geth attach

Expected behaviour

attach successfully

Actual behaviour

Exception shows that ./ethereum/geth.ipc cannot connect

Steps to reproduce the behaviour

  1. start geth using testnet: geth --testnet
  2. try attach using another process as: geth attach

    Backtrace

After that, I try to make an soft link for geth.ipc on directory .ethereum/, and than it runs ok
ln -s ./testnet/geth.ipc geth.ipc

Most helpful comment

How hard is it to check for geth.ipc in /.ethereum _AND_ in /.ethereum/testnet ?
You can't run both on the mainnet and the testnet anyway.

All 9 comments

We're looking in to making this easier. For now you can do the following: geth attach ipc:/home/<username>/.ethereum/testnet/geth.ipc.

The --ipcpath flag also does not appear to be working with attach. Running geth 1.4.4.

@obscuren's suggestion worked for me, though.

Worth noting that geth attach ipc:~/Library/Ethereum/testnet/geth.ipc doesn't work because the ~ is not expanded. You need to do the full path `geth attach ipc:/Users/<your_osx_username>/Library/Ethereum/testnet/geth.ipc

Any progress on this? Our automation scripts are breaking because of this.

@pipermerriam The ipc: prefix is longer required on the develop branch.

How hard is it to check for geth.ipc in /.ethereum _AND_ in /.ethereum/testnet ?
You can't run both on the mainnet and the testnet anyway.

@GitDoggo wondering the same. Anyone?

ethminer is refusing to look in /testnet for geth.ipc (i think) and i'm getting
JSON-RPC problem. Probably couldn't connect. Retrying in 1...

The symlink trick worked for geth attach, but ethminer is still not working :/

AFAIK ethminer uses HTTP RPC, not IPC. I.e. you need to allow RPC connections to geth (--rpc) to make ethminer connect to it. But that's a completely different topic from this thread.

Since geth attach <path> works and is pretty obvious, I see no reason to keep this issue open. Feel free to open a new issue if you have something in particular, but this thread got too convoluted already to follow a clear "problem".

Was this page helpful?
0 / 5 - 0 ratings