fablo icon indicating copy to clipboard operation
fablo copied to clipboard

Chaincode instantiate: Could not assemble transaction on Fabric 1.4.x

Open Hejwo opened this issue 4 years ago • 1 comments

Steps to reproduce:

  • fablo init node
  • replace fablo-config.json with provided file.

Branch: main

Result: when instantiating chaincode 'chaincode1' on channel 'my-channel1' as 'Org1':

Error: could not assemble transaction, err proposal response was not successful, error code 500, msg chaincode registration failed: container exited with 0

Hejwo avatar Oct 19 '21 16:10 Hejwo

config to reproduce:

{
  "$schema": "https://github.com/softwaremill/fablo/releases/download/0.3.0-unstable/schema.json",
  "networkSettings": {
    "fabricVersion": "1.4.6",
    "tls": true
  },
  "rootOrg": {
    "organization": {
      "name": "Root",
      "domain": "root.com"
    },
    "orderer": {
      "type": "raft",
      "instances": 3
    }
  },
  "orgs": [
    {
      "organization": {
        "name": "Org1",
        "domain": "org1.com"
      },
      "peer": {
        "instances": 2,
        "db": "LevelDb"
      }
    },
    {
      "organization": {
        "name": "Org2",
        "domain": "org2.com"
      },
      "peer": {
        "instances": 2,
        "db": "LevelDb"
      }
    },
    {
      "organization": {
        "name": "Org3",
        "domain": "org3.com"
      },
      "peer": {
        "instances": 2,
        "db": "LevelDb"
      }
    }
  ],
  "channels": [
    {
      "name": "my-channel1",
      "orgs": [
        {
          "name": "Org1",
          "peers": [
            "peer0"
          ]
        },
        {
          "name": "Org2",
          "peers": [
            "peer0"
          ]
        }
      ]
    },
    {
      "name": "my-channel2",
      "orgs": [
        {
          "name": "Org2",
          "peers": [
            "peer1"
          ]
        },
        {
          "name": "Org3",
          "peers": [
            "peer1"
          ]
        }
      ]
    }
  ],
  "chaincodes": [
    {
      "name": "chaincode1",
      "version": "0.0.1",
      "lang": "node",
      "channel": "my-channel1",
      "directory": "./chaincodes/chaincode-kv-node",
      "init": "{\"Args\":[]}",
      "endorsement": "AND ('Org1MSP.member', 'Org2MSP.member')"
    },
    {
      "name": "chaincode2",
      "version": "0.0.1",
      "lang": "node",
      "channel": "my-channel2",
      "directory": "./chaincodes/chaincode-kv-node",
      "init": "{\"Args\":[]}",
      "endorsement": "AND ('Org2MSP.member', 'Org3MSP.member')"
    }
  ]
}

Hejwo avatar Oct 19 '21 16:10 Hejwo