corda / vscode-corda

Corda extension for Visual Studio Code
Apache License 2.0
10 stars 7 forks source link

Run nodes keeps saying "Cannot run nodes until they have been deployed" #1

Closed adamdry closed 4 years ago

adamdry commented 5 years ago

Every time I try to "Run nodes" it says "Cannot run nodes until they have been deployed" even though I have deployed them.

Clicking "Click to Deploy Nodes" appears to run the deploy successfully and I got round in this loop forever.

Output from deploy nodes:

adamdry@adamdry-office-pc:~/adamdryit/customers/ivno/projects/ivno-corda (f-docker-be-and-corda)$ cd /home/adamdry/adamdryit/customers/ivno/projects/ivno-corda && ./gradlew deployNodes

> Configure project :
Copying BMNS config to cordapps/config for each node...
BMNS config copied

> Configure project :cordapp-thirdparty
Copying BMNS config to cordapps/config for each node...
BMNS config copied

> Task :cordapp-workflow:configureCordappFatJar
You appear to have included a Corda platform component (DefaultExternalModuleDependency{group='com.r3.corda.lib.ci', name='ci-workflows', version='1.0-RC01', configuration='default'}) usi
ng a 'compile' or 'runtime' dependency.This can cause node stability problems. Please use 'corda' instead.See http://docs.corda.net/cordapp-build-systems.html

> Task :deployNodes
Running Cordform task
Deleting ./build/nodes
Bootstrapping local test network in /home/adamdry/adamdryit/customers/ivno/projects/ivno-corda/build/nodes
Generating node directory for Notary Service
Generating node directory for Bank1 Limited
Generating node directory for Ivno Limited
Waiting for all nodes to generate their node-info files...
Distributing all node-info files to all nodes
Loading existing network parameters... none found
Gathering notary identities
Generating contract implementations whitelist
QUASAR WARNING: Quasar Java Agent isn't running. If you're using another instrumentation method you can ignore this message; otherwise, please refer to the Getting Started section in the 
Quasar documentation.
New NetworkParameters {
      minimumPlatformVersion=4
      notaries=[NotaryInfo(identity=O=Notary Service, L=Zurich, C=CH, validating=false)]
      maxMessageSize=10485760
      maxTransactionSize=524288000
      whitelistedContractImplementations {
        io.ivno.tokenpoc.cordapp.contract.DepositContract=[05BA54003DC156B6232120CA2D093A3628F0FBE4CC405584F77DEFFFE9642924]
    io.ivno.tokenpoc.cordapp.contract.RedeemContract=[05BA54003DC156B6232120CA2D093A3628F0FBE4CC405584F77DEFFFE9642924]
    io.ivno.tokenpoc.cordapp.contract.TransferContract=[05BA54003DC156B6232120CA2D093A3628F0FBE4CC405584F77DEFFFE9642924]
    io.ivno.tokenpoc.cordapp.contract.USIEvolvableTokenContract=[05BA54003DC156B6232120CA2D093A3628F0FBE4CC405584F77DEFFFE9642924]
    com.r3.businessnetworks.membership.states.MembershipContract=[E40084B6AFFA0935DEFC55B6ACDE1E0222835AC384C1257789FD4751BFAB93B7]
    com.r3.corda.lib.tokens.contracts.FungibleTokenContract=[C69A6C6AAB5B54A05BF803FAE33BD08A0B426ECF49F021AF306D03DFE5444A6E]
    com.r3.corda.lib.tokens.contracts.NonFungibleTokenContract=[C69A6C6AAB5B54A05BF803FAE33BD08A0B426ECF49F021AF306D03DFE5444A6E]
    com.r3.corda.lib.tokens.money.internal.DummyContract=[ED3E95E9F205D1B4A125A8A3E1C1DD27C6CC775007E411B994B379DBFEB5E24A]
      }
      eventHorizon=PT720H
      packageOwnership {

      }
      modifiedTime=2019-10-24T11:00:19.481Z
      epoch=1
  }
Bootstrapping complete!
Using custom webserver: /home/adamdry/adamdryit/customers/ivno/projects/ivno-corda/server/build/libs/server-0.19-SNAPSHOT.jar.

BUILD SUCCESSFUL in 25s
18 actionable tasks: 5 executed, 13 up-to-date

Thanks!

waynelcw commented 5 years ago

Could you the directory hierarchy of the build folder after deployed? Apparently it is just checking if the build/nodes folder exists.

adamdry commented 5 years ago

Hi @waynelcw not sure how I missed the notification on your reply..

Anyway this is the output from tree against the build folder, which lives at the repo root:

.
├── kotlin
│   └── sessions
├── libs
│   └── invo-corda-0.19-SNAPSHOT.jar
├── nodes
│   ├── Bank1 Limited
│   │   ├── additional-node-infos
│   │   │   ├── nodeInfo-1F7DEE69A77E51F994C1C545B495A6D3AF1E93C60CBC33F5D460721CC26319A6
│   │   │   ├── nodeInfo-9305A969F68D45C1CECDDA5BE4C12989D7414F71A38B03F07687716ED79E2F36
│   │   │   └── nodeInfo-AE5CBC952C470EB2267820C4C677CA1B74C0E34E3D4719BEA1AA86FA61130BF6
│   │   ├── certificates
│   │   │   ├── nodekeystore.jks
│   │   │   ├── sslkeystore.jks
│   │   │   ├── truststore.jks
│   │   │   └── wrappingkeystore.pkcs12
│   │   ├── corda.jar
│   │   ├── cordapps
│   │   │   ├── ci-workflows-1.0-RC03.jar
│   │   │   ├── config
│   │   │   │   ├── membership-service.conf
│   │   │   │   └── tokens-selection-1.1-RC01.conf
│   │   │   ├── cordapp-contract-0.19-SNAPSHOT.jar
│   │   │   ├── cordapp-workflow-0.19-SNAPSHOT.jar
│   │   │   ├── membership-service-2.0.jar
│   │   │   ├── membership-service-contracts-and-states-2.0.jar
│   │   │   ├── partiture-0.7-SNAPSHOT.jar
│   │   │   ├── tokens-contracts-1.1-RC01.jar
│   │   │   ├── tokens-money-1.1-RC01.jar
│   │   │   ├── tokens-selection-1.1-RC01.jar
│   │   │   ├── tokens-workflows-1.1-RC01.jar
│   │   │   └── vaultaire-0.7.jar
│   │   ├── drivers
│   │   │   └── jolokia-jvm-1.6.0-agent.jar
│   │   ├── logs
│   │   │   ├── details-node-adamdry-office-pc.log
│   │   │   ├── diagnostic-node-adamdry-office-pc.log
│   │   │   ├── node-adamdry-office-pc.log
│   │   │   └── node-info-gen.log
│   │   ├── network-parameters
│   │   ├── node.conf
│   │   ├── nodeInfo-1F7DEE69A77E51F994C1C545B495A6D3AF1E93C60CBC33F5D460721CC26319A6
│   │   ├── persistence.mv.db
│   │   └── persistence.trace.db
│   ├── Bank1 Limited_node.conf
│   ├── Ivno Limited
│   │   ├── additional-node-infos
│   │   │   ├── nodeInfo-1F7DEE69A77E51F994C1C545B495A6D3AF1E93C60CBC33F5D460721CC26319A6
│   │   │   ├── nodeInfo-9305A969F68D45C1CECDDA5BE4C12989D7414F71A38B03F07687716ED79E2F36
│   │   │   └── nodeInfo-AE5CBC952C470EB2267820C4C677CA1B74C0E34E3D4719BEA1AA86FA61130BF6
│   │   ├── certificates
│   │   │   ├── nodekeystore.jks
│   │   │   ├── sslkeystore.jks
│   │   │   ├── truststore.jks
│   │   │   └── wrappingkeystore.pkcs12
│   │   ├── corda.jar
│   │   ├── cordapps
│   │   │   ├── ci-workflows-1.0-RC03.jar
│   │   │   ├── config
│   │   │   │   ├── membership-service.conf
│   │   │   │   └── tokens-selection-1.1-RC01.conf
│   │   │   ├── cordapp-contract-0.19-SNAPSHOT.jar
│   │   │   ├── cordapp-workflow-0.19-SNAPSHOT.jar
│   │   │   ├── membership-service-2.0.jar
│   │   │   ├── membership-service-contracts-and-states-2.0.jar
│   │   │   ├── partiture-0.7-SNAPSHOT.jar
│   │   │   ├── tokens-contracts-1.1-RC01.jar
│   │   │   ├── tokens-money-1.1-RC01.jar
│   │   │   ├── tokens-selection-1.1-RC01.jar
│   │   │   ├── tokens-workflows-1.1-RC01.jar
│   │   │   └── vaultaire-0.7.jar
│   │   ├── corda-webserver.jar
│   │   ├── drivers
│   │   │   └── jolokia-jvm-1.6.0-agent.jar
│   │   ├── logs
│   │   │   ├── details-node-adamdry-office-pc.log
│   │   │   ├── diagnostic-node-adamdry-office-pc.log
│   │   │   ├── node-adamdry-office-pc.log
│   │   │   └── node-info-gen.log
│   │   ├── network-parameters
│   │   ├── node.conf
│   │   ├── nodeInfo-AE5CBC952C470EB2267820C4C677CA1B74C0E34E3D4719BEA1AA86FA61130BF6
│   │   ├── persistence.mv.db
│   │   ├── persistence.trace.db
│   │   └── web-server.conf
│   ├── Ivno Limited_node.conf
│   ├── Ivno Limited_web-server.conf
│   ├── Notary Service
│   │   ├── additional-node-infos
│   │   │   ├── nodeInfo-1F7DEE69A77E51F994C1C545B495A6D3AF1E93C60CBC33F5D460721CC26319A6
│   │   │   ├── nodeInfo-9305A969F68D45C1CECDDA5BE4C12989D7414F71A38B03F07687716ED79E2F36
│   │   │   └── nodeInfo-AE5CBC952C470EB2267820C4C677CA1B74C0E34E3D4719BEA1AA86FA61130BF6
│   │   ├── certificates
│   │   │   ├── nodekeystore.jks
│   │   │   ├── sslkeystore.jks
│   │   │   ├── truststore.jks
│   │   │   └── wrappingkeystore.pkcs12
│   │   ├── corda.jar
│   │   ├── cordapps
│   │   │   └── config
│   │   ├── drivers
│   │   │   └── jolokia-jvm-1.6.0-agent.jar
│   │   ├── logs
│   │   │   ├── details-node-adamdry-office-pc.log
│   │   │   ├── diagnostic-node-adamdry-office-pc.log
│   │   │   ├── node-adamdry-office-pc.log
│   │   │   └── node-info-gen.log
│   │   ├── network-parameters
│   │   ├── node.conf
│   │   ├── nodeInfo-9305A969F68D45C1CECDDA5BE4C12989D7414F71A38B03F07687716ED79E2F36
│   │   ├── persistence.mv.db
│   │   └── persistence.trace.db
│   ├── Notary Service_node.conf
│   ├── runnodes
│   ├── runnodes.bat
│   └── runnodes.jar
└── tmp
    ├── Bank1 Limited_node.conf
    ├── Ivno Limited_node.conf
    ├── Ivno Limited_web-server.conf
    ├── jar
    │   └── MANIFEST.MF
    ├── Notary Service_node.conf
    ├── runnodes
    ├── runnodes.bat
    └── runnodes.jar

27 directories, 98 files
abhaypsoni commented 4 years ago

I am also getting the same issue. How to fix it? And yes, build/nodes folder do exists.

abhaypsoni commented 4 years ago

image

anixon604 commented 4 years ago

@abhaypsoni @adamdry can you please try the new version of the extension available on the marketplace and let us know if this issue is resolved?

anixon604 commented 4 years ago

Closing as no response against latest version. Please reopen issue if it persists. Thx!