Skip to content
This repository has been archived by the owner on Mar 30, 2018. It is now read-only.

Asset Management Example Chaincode Deployment Failure #2407

Open
AmjadNZ opened this issue Nov 17, 2016 · 2 comments
Open

Asset Management Example Chaincode Deployment Failure #2407

AmjadNZ opened this issue Nov 17, 2016 · 2 comments

Comments

@AmjadNZ
Copy link

AmjadNZ commented Nov 17, 2016

Starting with HYPERLEDGER and following all the tutorials

Description

  1. using Option 2 - DockerFile setup
  2. Downloaded all the images - and used a 4 node setup to start 4 validator nodes and 1 membersrvc node
  3. Started the containers all seems to be fine.
  4. Am able to login, query the regular example (chaincode example 01,02 etc)
  5. Failing to use the asset_management and asset_management_2 samples
    NOTE: this setup I've tried many times but still not success

Describe How to Reproduce

For deployment I'm using after logging into the docker console (not in any contianers!)

curl -XPOST -d '{"jsonrpc": "2.0", "method": "deploy", "params": {"type": 1,"chaincodeID": { "name":"myam1","path": "github.com/hyperledger/fabric/examples/chaincode/go/asset_management_with_roles","language": "GOLANG"}, "ctorMsg": { "args": ["init"] }, "metadata":[97, 115, 115, 105, 103, 110, 101, 114] ,"secureContext": "assigner"} ,"id": 0}' http://192.168.99.100:7050/chaincode

On deploying the blockchain I get the following error

################## LOG #######################
| 06:30:07.222 [consensus/pbft] executeOne -> INFO 036 Replica 2 executing/committing request batch for view=0/seqNo=2 and digest rmHTMly0mH74VcD7JXDG4xrOE6hVCuCl66Wn6tb4QNRnB/gV7jh40ei/3g9eJNcC7aD0uOPLyznbAXcMyffVbg==
vp2_1 | 06:30:07.244 [dockercontroller] deployImage -> ERRO 037 Error building images: API error (500): {"message":"Cannot locate specified Dockerfile: Dockerfile"}
vp2_1 | 06:30:07.244 [dockercontroller] deployImage -> ERRO 038 Image Output:
vp2_1 | ********************
vp2_1 |
vp2_1 | ********************
vp2_1 | 06:30:07.260 [dockercontroller] deployImage -> ERRO 039 Error building images: API error (500): {"message":"Cannot locate specified Dockerfile: Dockerfile"}
vp2_1 | 06:30:07.260 [dockercontroller] deployImage -> ERRO 03a Image Output:
vp2_1 | ********************
vp2_1 |
vp2_1 | ********************
vp2_1 | 06:30:07.260 [chaincode] Launch -> ERRO 03b launchAndWaitForRegister failed Error starting container: API error (500): {"message":"Cannot locate specified Dockerfile: Dockerfile"}

@AmjadNZ
Copy link
Author

AmjadNZ commented Nov 17, 2016

As per further reading - 2 docker images i've pulled and retried the setup
Its stil not working

Images Pulled:
hyperledger/fabric-baseimage - needed to rebuild it as this is no more available on dochub
golang:1.6

@Suyash-Sukthankar
Copy link

I am trying understand hyperledger and i have deployed example02 and it seems to be working. I am curious to understand where fmt.Println() would send the output.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants