Closed lyp830414 closed 3 years ago
You can display the log information of user dashboard。Which chaincode do you use,example02?You can display the initialization page, I want to see your parameters。
Yes, @XuHugo , I uploaded fabric-samples-release-1.4's chaincode-->chaincode_example02-->go ver chancode onto the cello user dashboard( put the go file to a directory, then package it into a zip and upload then). Following lists more details about user dashboard. (The key clue is that I did not use k8s for network model, but choosed the "docker" (docker swarm) on the cello operator to build my chain network)
Here are the user dashboard docker log and all dockers' logs(those generatedfor make logs ) , just coppied after the failure of initialize the go-ver chaincode : docker_logs_for_user_dashboard.txt docker_logs_from_make_logs.txt
And,following are more deatils on my user dashboard.
Here is the error content in above error message window.
请求错误 400: http://192.168.1.137:8081/v2/chaincodes/5fd0792f648e8d005cd0d5c7/instantiate 发出的请求有错误,服务器没有进行新建或修改数据的操作。
You can display the log information of user dashboard。Which chaincode do you use,example02?You can display the initialization page, I want to see your parameters。
You can display the log information of user dashboard。Which chaincode do you use,example02?You can display the initialization page, I want to see your parameters。
More information about:
Whatever the chaincode I use with the go-ver chaincode ( any fabric-samples' chaincode with ver1.4 ), it always report the same error message, any no new vm-docker-container was created in the backend. But as I used the java-ver chaincode to choose initialize chaincode, the java's vm-docker-container could be created, but it always stucked in step of initialized the chaincode step in the dashboard, so I cannot see a record was made in the following graph. (But for now, I just want to find why go-ver chaincode could not be initialized under docker swarm network mode)
I think that should be something wrong with cello platform, or anything wrong with my manual operation's sequences?
This issue was finally solved after try following 2 steps:
I packaged the chaincode_example02.go into "chaincode_example02" folder and zip it. -- For my previous operation, I put the chaincode_example02.go into different folder name: i.e: folder named "test"
I used the wrong ccenv docker image with following clue:
Elther wrong operation from 1 and 2 will lead that issue. Now my go-ver chaincode canbe intialized.
I will close this problem. thank you for reponse my issue anyway ! I may need your greatly help for my further cello problems.
This issue has been solved now.
Expected Behavior
The go-ver chaincode should be instantiate in succeed.
Current Behavior
Failure as I tried to instantiate a go-ver chaincode.
Possible Solution
Steps to Reproduce
Context (Environment)
Detailed Description and log
Possible Implementation