-
Notifications
You must be signed in to change notification settings - Fork 8.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
deploy chaincode problem #4951
Comments
llh@llh-virtual-machine:~$ docker exec -it cli1 bash |
i can‘t add go chaincode but java can add that, what wrong makes that?someone can help me? |
what fabric version |
is the docker service running? |
|
https://github.com/hyperledger/fabric/blob/release-2.4/Makefile#L81 there's a mismatch between the go version you have and the fabric. The first thing I would try is to either lower go to 1.18.10 or upgrade fabric to 2.5.9. Also, fabric 2.4 and below is no longer supported. |
thanks for you reply ,I will try for that |
not work, |
go to 1.18.3 and fabric 2.5.9. |
|
if fabric 2.5.9, you can leave go at 1.21. |
you need more context, more logs. |
just running the course with fabric |
|
and docker images are latest 2.4.1 and ca 1.5.2 |
can you show me the file ../asset-transfer-basic/chaincode-go/go.mod |
I understand correctly that you are using github.com/hyperledger/fabric-samples ? |
yes, and go.mod show that go 1.21.0 require ( require ( |
i truly hope you can help me solve this problem, it exist 2 month and i do anything i can do and search for any help in internet,but it still no work.
i truly hope you can help me solve this problem, it exist 2 month and i try anything i can do and search for any help in internet,but it still no work. |
and i update go to 1.23.0 |
because in the repository, the line with "go" looks like this.
Don't. The fabric doesn't support it yet. |
i running ./boostrap.sh install fabric and docker images, step by step in documentation. i will try to updating fabric-samples again |
I got same issue with 3.0.0-preview, you can ref log at: any suggestion? |
here is the error. go code, which has the toolchain directive, is compiled by a version of go, which knows nothing about this directive (most likely 1.20.3) instead of 3.0.0-preview take 3.0.0-rc1 |
|
Line 81 in a8e078f
in fabric 3.0.0-preview go version 1.20.7 the toolchains directive is only known since go version 1.21 |
in 3.0.0-rc1 there is no docker tools container and no cli program. |
yes, well, as fabric sample golang chaincode need golang with 1.22 (above?) version to complete the install. So... when some one running with a lower version, the issue comes. it's near midnight for me today, but it seems at step here with latest fabric sample code, we need golang 1.22(above)? which further match with |
@SamYuan1990 I'll tell you right now: your example is built from different versions that don't agree with each other. You need to align all versions. I'd recommend the following: fabric v3.0.0-rc1, fabric-samples with commit 137f365ec9a5093b1224427be2b7d9e851d41167. go 1.23.1 |
Have you solved this problem? I'm encountering the same issue. |
Description
Chaincode is packaged
Installing chaincode on peer0.org1...
Using organization 1
Error: chaincode install failed with status: 500 - failed to invoke backing implementation of 'InstallChaincode': could not build chaincode: docker build failed: docker image build failed: docker build failed: Error returned from build: 1 "vendor/golang.org/x/net/http/httpguts/httplex.go:12:2: //go:build comment without // +build comment
vendor/google.golang.org/grpc/internal/channelz/syscall_linux.go:24:2: //go:build comment without // +build comment
vendor/github.com/hyperledger/fabric-protos-go/peer/chaincode_shim.pb.go:10:2: //go:build comment without // +build comment
vendor/google.golang.org/grpc/internal/channelz/funcs.go:28:2: //go:build comment without // +build comment
vendor/google.golang.org/grpc/channelz/channelz.go:32:8: //go:build comment without // +build comment
vendor/google.golang.org/grpc/balancer/roundrobin/roundrobin.go:30:2: //go:build comment without // +build comment
"
Chaincode installation on peer0.org1 has failed
Deploying chaincode failed
Steps to reproduce
my go verison is 1.21.0
The text was updated successfully, but these errors were encountered: