eth.syncing false eth.blockNumber 5199029
truffle deploy --network=live
Running migration: 1_initial_migration.js Deploying Migrations... ... undefined Error encountered, bailing. Network state unknown. Review successful transactions manually. Error: insufficient funds for gas * price + value

I understand I need to add funds to my wallet. But why "network state unknown"?

Yes I ran with RPC. I first got an error that the account was locked so I unlocked it.

Reran the truffle deploy --network=live command and still got "network state unknown"

~/truffle version
Truffle v4.1.3 (core: 4.1.3)
Solidity v0.4.19 (solc-js)
~/geth version
Version: 1.8.2-stable
Architecture: amd64
Protocol Versions: [63 62]
Network Id: 1
Go Version: go1.10
Operating System: darwin
  • I think the only problem is that you don't have funds in your wallet. I'd bet that if you added funds this would go away. – Alex Mar 8 '18 at 0:54
  • I think you would be right, but when I add the balance: ethereum.stackexchange.com/questions/42068/… happens – quantumpotato Mar 8 '18 at 1:09
  • What version of truffle do you use? – Orry Mar 11 '18 at 10:46
  • Added to question. I deployed my contract through REMIX, after paying far higher than the "recommended" gas – quantumpotato Mar 11 '18 at 22:34

Possible it's not unlocked long enough?

web3.personal.unlockAccount(web3.personal.listAccounts[0],"password",15000); // 1st account, pw & time in seconds ...
  • That's the most reasonable answer yet. I still have this problem: ethereum.stackexchange.com/questions/42068/… but I'm awarding you the bounty for a reasonable answer – quantumpotato Mar 13 '18 at 15:17
  • Sweet. Thanks. It's unfortunate the errors can be cryptic and somewhat misleading. It makes us doublecheck all the things we think we know. Funded, unlocked, sufficient funds for eth + gas, constructor can run. Did you check that there is nothing in the constructor that might throw with infinite gas consumption? A require? – Rob Hitchens Mar 13 '18 at 15:36
  • Yeah -- I ended up deploying through Metamask + Remix, and offering about quadruple the amount of gas I was. Anything below that was giving me warnings: "want to retry with more gas?" – quantumpotato Mar 13 '18 at 21:25

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.