Code Monkey home page Code Monkey logo

goledger-challenge's Issues

Instantiate Chaincode error: 500

I'm following the steps provided on README but there was an error
when trying to instantiate the chain code:

Instantiate the chaincode:

root@f2d3b8665efe:/opt/gopath/src/github.com/hyperledger/fabric/peer# peer chaincode instantiate \
	-o orderer.example.com:7050 \
	--tls --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 fabcar \
	-v 1.0 \
	-c '{"Args":["init"]}'

Error:

2021-10-07 13:12:53.105 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 001 Using default escc
2021-10-07 13:12:53.106 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: Post http://unix.sock/containers/create?
name=dev-peer0.org1.example.com-fabcar-1.0: dial unix /host/var/run/docker.sock: connect: no such file or directory

I've searched on the web but I couldn't find much.

I'm using macOS Big Sur 11.5.2, and Docker 4.1.0 .

It seems to be a Docker problem, related to that version on macOS. At StackOverflow someone said they had
to downgrade Docker to version 2, and then it worked.

If anyone has a workaround, please let me know.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.