3
votes

As shown below, when running truffle deploy contracts are being compiled in /build directory, but they are never migrated to the specified network.

There are NO LOGS at all for truffle deploy to allow debugging of the issue. even while running --versbose-rpc, it shows nothing that makes sense.

I have enough Eth and blockchain is running fine.

Truffle.js config Truffle Config

Eth Amount Eth Amount

Truffle Deploy --network NetworkName Result Deploy Result

2
Does it work with truffle migrate? - nikos fotiadis
Have you tried with Truffle v4? - Zulhilmi Zainudin
@nikosfotiadis no, it fails silently as if nothing was executed. - Ghassan Zein
@ZulhilmiZainudin yes it's working on v4 but my solidity contracts are written in solc 0.5.0 which forces truffle v5 so am facing version issues. The same environment is working fine locally on Mac, but on live server (ubuntu 16.04) it's not. - Ghassan Zein
Did you add your contract to the migrations file? If not truffle migrate will not deploy it. - nikos fotiadis

2 Answers

0
votes

I found out what the issue is. I was deploying to a previous backup of geth blockchain, which is not possible in this case.

This has been solved by creating a fresh new blockchain directory and then deploying all the solidity files there.

What bothers here is why truffle doesnt log these issues. I hope they add more and more logging on the next release.

0
votes