fabric icon indicating copy to clipboard operation
fabric copied to clipboard

Unable to instantiate chaincode: transport.go:416:45: undefined: os.ErrDeadlineExceeded

Open brano543 opened this issue 2 years ago • 0 comments

Hello community,

we have been using fabric-samples (curl -sSL https://bit.ly/2ysbOFE | bash -s -- 1.4.8 1.4.9) for some time, but recently the whole setup of test network started to fail. We are using fully sandboxed environment (Nix package manager), so we are sure that the configuration that worked used same platform / dependencies. We suspect that only thing that had to change are the Docker images or script steps which suddenly caused this issue. I was able to reproduce this issue with Golang 1.17, 1.18, 1.19. It seems like golang can't compile http module due to syntax error.

Could you please help me resolve the issue?

root@deadb7f570d8:/opt/gopath/src/github.com/hyperledger/fabric/peer# peer chaincode instantiate -o orderer.example.com:7050 --tls true --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem -C mychannel -n jcicc -l golang -v 1.0 -c '{"Args":["init","a","100","b","200"]}' -P 'AND ('''Org1MSP.peer''','''Org2MSP.peer''')' 2022-08-31 14:34:55.758 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 001 Using default escc 2022-08-31 14:34:55.758 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 002 Using default vscc Error: could not assemble transaction, err proposal response was not successful, error code 500, msg error starting container: error starting container: Failed to generate platform-specific docker build: Error returned from build: 2 "# github.com/chaincode/jci/chaincode/vendor/golang.org/x/net/http2 chaincode/input/src/github.com/chaincode/jci/chaincode/vendor/golang.org/x/net/http2/transport.go:416:45: undefined: os.ErrDeadlineExceeded

github.com/chaincode/jci/chaincode/vendor/github.com/jci/chaincode/vendor/golang.org/x/net/http2

chaincode/input/src/github.com/chaincode/jci/chaincode/vendor/github.com/jci/chaincode/vendor/golang.org/x/net/http2/transport.go:416:45: undefined: os.ErrDeadlineExceeded

brano543 avatar Aug 31 '22 14:08 brano543