quorum icon indicating copy to clipboard operation
quorum copied to clipboard

Unable to deploy contract while running start.sh

Open ushakrishnan opened this issue 9 years ago • 7 comments

Q1: When running init - No etherbase / account is set. Is that right? Q2: When running start - account[0] is not unlocked (does not exist?) and also deploying contract fails

capture

What has failed and how do I set up the scripts to work as intended?

ushakrishnan avatar Dec 08 '16 03:12 ushakrishnan

Yes, the warning is fine. It just means that some of the nodes don't have accounts.

I can't reproduce the second issue.

init.sh should only be run once, the first time you're setting up the example. Then use start.sh and stop.sh after that.

If you'd like to re-initialize, delete the qdata folder with rm -rf qdata, then run ./init.sh.

patrickmn avatar Dec 08 '16 18:12 patrickmn

I am able to geth attach to all nodes except 1 (dd1).

capture

The failure to deploy to dd1 is due to inability to connect to that node. What can I do to check or fix the connectivity to that node? Not sure why that one node would have issues but all the others run as intended. I completely destroyed the vagrant and recreated it too with the same outcome.

ushakrishnan avatar Dec 08 '16 21:12 ushakrishnan

My guess is that issue is a duplicate of https://github.com/jpmorganchase/quorum/issues/24

Because node 1 is not fully initialized when the transaction is sent, it crashes. Try increasing the sleep duration before sending the transaction in start.sh as a temporary workaround.

patrickmn avatar Dec 08 '16 22:12 patrickmn

There probably is something more than just the delay -

I was able to start node1 manually. worked well. tried several eth js commands, and they work. However unable to deploy contract.

I am able to deploy the contract (script1.js) to all other nodes where account (account[0]) exists. However, node1 does have an account but never able to deploy to it.

A success response from other nodes success

Successful login into node1 logged

Failure response from node1 failure

ushakrishnan avatar Dec 09 '16 00:12 ushakrishnan

Getting this error when starting

[] Starting Constellation nodes [] Starting bootnode wait for bootnode to start... [] Starting node 1 [] Starting node 2 [] Starting node 3 [] Starting node 4 [] Starting node 5 [] Starting node 6 [] Starting node 7 [] Sending first transaction err: TypeError: Cannot access member 'info' of undefined false

I tried to increase sleep time, but no results. Init seems ok...a part from node 5 where I sse this warning..

You're one of the lucky few that will try out the JIT VM (random). If you get a consensus failure please be so kind to report this incident with the block hash that failed. You can switch to the regular VM by setting --jitvm=false

ilmistra avatar Feb 05 '17 16:02 ilmistra

@ilmistra this looks like a different issue. We will investigate and revert back, thanks for raising.

tylobban avatar Feb 05 '17 21:02 tylobban

@ilmistra the issue that you reported was due to a change in the return object from the solidity compiler. A fix has now been committed in the quorum-examples repo.

tylobban avatar Feb 06 '17 21:02 tylobban