1

I am developing ethereum contract. so i have setup ethereum server. i used this

geth --rpc console --datadir "ethdata" --networkid xxxxx --nodiscover --rpcaddr "xx.xx.x.xxx" -rpcport 8545 --rpccorsdomain * --rpcapi "web3,net,personal,eth" attach http://0.0.0.0:8545 mygenesis.json to run ethereum server.

Ethereum server is working fine.

then i setup truffle with testrpc which is working fine. i try to truffle with my etherum server. it displays like following

Expecting result:

finish migrate.

Actual result:

#truffle migrate
Running migration: 1_initial_migration.js
Deploying Migrations...

nothing happened for a long time

2

Copy the geth.ipc file location and in another terminal window run geth attach command -

geth attach ipc://path_to_ipc_file/geth.ipc

After that unlock your default account -

personal.unlockAccount(eth.coinbase, 'password', 0)

and then run following command -

miner.start()

Your truffle migrations shall start working then.

  • where can i see geth.ipc file in my local machine – Bala Jun 29 '17 at 6:55
  • When you start your geth node, you will see some logs. One of them would be like this - INFO [06-29|00:20:54] IPC endpoint opened: /home/sanchitb/Workspace/pnet/geth.ipc That's your geth.ipc path. – Sanchit Jun 29 '17 at 6:57
  • or you can also locate your geth.ipc file in your machine. – Sanchit Jun 29 '17 at 7:06
  • HI sanchit, Fatal: Unable to attach to remote geth: dial unix /home/blockchain/blockchain/ethdata/geth.ipc: connect: no such file or directory i got this error. that geth.ipc file is not in specified folder. how can i create geth.ipc file – Bala Jun 29 '17 at 7:32
  • ethereum.stackexchange.com/questions/125/… I did answer a similar question, on how to setup private net. That should help. If not then let's discuss on chat. – Sanchit Jun 29 '17 at 7:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.