I have a question about Ethereum truffle error.

Asked 2 years ago, Updated 2 years ago, 99 views

geth —testnet —syncmode fast —rpc —rpcapi db,eth,net,web3,personal —cache=1024 —rpcport 8545 —rpcaddr 127.0.0.1 —rpccorsdomain "*"

Or

geth —rinkeby —syncmode "fast" —rpc —rpcapi db,eth,net,web3,personal —cache=1024 —rpcport 8545 —rpcaddr 127.0.0.1 —rpccorsdomain "*"

It always ran when I entered the truffle console after running, but suddenly

Could not connect to your Ethereum client. Please check that your Ethereum client: - - is running - - is accepting RPC connections (i.e., "--rpc" option is used in geth) - - is accessible over the network - - is properly configured in your Truffle configuration file (truffle.js)

These errors are frequent.

geth works normally, but I don't know why the error appears no matter how much I look for it.

Even if I ask the tutorial company, they say they don't know

I got it all right with port 8545 and there is no problem with setting the truffle.js file.

If there is anything different than before, you must enter the sudo geth --ipcdisable command when you run geth.

Has anyone experienced this problem?

ethereum truffle geth

2022-09-22 18:30

1 Answers

Did you paste the above command? You used — when you gave the option, but it's a different character than -.
If you used —, I think truffle console didn't work because it was the same as just geth

Please paste this and try it. If you can't, please reply!

geth -rinkeby -syncmode "fast" -rpc -rpcapi db,eth,net,web3,personal -cache=1024 -rpcport 8545 -rpcaddr 127.0.0.1 -rpccorsdomain "*"


2022-09-22 18:30

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.