hyperledger-labs / minifabric

Do fabric network the right and easy way.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

failed to invoke backing implementation of 'InstallChaincode': could not build chaincode

oguzhannkayaa opened this issue · comments

Hello, When I write ./minifab up I get this error.
failed to invoke backing implementation of 'InstallChaincode': could not build chaincode

Minifab Execution Context:
    FABRIC_RELEASE=2.3.0
    CHANNEL_NAME=mychannel
    PEER_DATABASE_TYPE=golevel
    CHAINCODE_LANGUAGE=go
    CHAINCODE_NAME=simple
    CHAINCODE_VERSION=1.0
    CHAINCODE_INIT_REQUIRED=true
    CHAINCODE_PARAMETERS="init","a","200","b","300"
    CHAINCODE_PRIVATE=false
    CHAINCODE_POLICY=
    TRANSIENT_DATA=
    BLOCK_NUMBER=newest
    EXPOSE_ENDPOINTS=false
    CURRENT_ORG=org0.example.com
    HOST_ADDRESSES=IP
    WORKING_DIRECTORY: /Users/x/mywork```


non-zero return code
go: downloading github.com/hyperledger/fabric v1.4.1
go: downloading github.com/spf13/viper v1.7.1
go: downloading github.com/golang/protobuf v1.3.3
go: downloading github.com/op/go-logging v0.0.0-20160315200505-970db520ece7
go: downloading github.com/grpc-ecosystem/go-grpc-middleware v1.2.1
go: downloading google.golang.org/grpc v1.31.1
go: finding module for package github.com/miekg/pkcs11
go: downloading golang.org/x/net v0.0.0-20200822124328-c89045814202
go: downloading golang.org/x/crypto v0.0.0-20200820211705-5c72a883971a
go: downloading github.com/hashicorp/hcl v1.0.0
go: downloading github.com/miekg/pkcs11 v1.1.1
go: downloading go.uber.org/zap v1.15.0
go: downloading github.com/pelletier/go-toml v1.2.0
go: downloading github.com/mitchellh/mapstructure v1.1.2
go: downloading github.com/sykesm/zap-logfmt v0.0.3
go: downloading github.com/pkg/errors v0.9.1
go: downloading github.com/magiconair/properties v1.8.1
go: downloading github.com/subosito/gotenv v1.2.0
go: downloading github.com/spf13/jwalterweatherman v1.0.0
go: downloading github.com/fsnotify/fsnotify v1.4.7
go: downloading github.com/spf13/cast v1.3.0
go: downloading github.com/spf13/afero v1.1.2
go: downloading go.uber.org/multierr v1.5.0
go: downloading go.uber.org/atomic v1.6.0
go: downloading gopkg.in/yaml.v2 v2.3.0
go: downloading golang.org/x/sys v0.0.0-20200420163511-1957bb5e6d1f
go: downloading gopkg.in/ini.v1 v1.51.0
go: downloading github.com/hyperledger/fabric-amcl v0.0.0-20200424173818-327c9e2cf77a
go: downloading github.com/spf13/pflag v1.0.3
go: downloading golang.org/x/text v0.3.2
go: downloading google.golang.org/genproto v0.0.0-20200423170343-7949de9c1215
go: downloading github.com/fsouza/go-dockerclient v1.6.5
go: downloading github.com/docker/docker v1.4.2-0.20191101170500-ac7306503d23
go: downloading github.com/Microsoft/go-winio v0.4.15-0.20200113171025-3fe6c5262873
go: downloading github.com/docker/go-units v0.4.0
go: downloading github.com/morikuni/aec v1.0.0
go: downloading github.com/opencontainers/image-spec v1.0.1
go: downloading github.com/docker/go-connections v0.4.0
go: downloading github.com/sirupsen/logrus v1.4.2
go: downloading github.com/containerd/containerd v1.3.0
go: downloading github.com/docker/distribution v2.7.1+incompatible
go: downloading github.com/Azure/go-ansiterm v0.0.0-20170929234023-d6e3b3328b78
go: downloading github.com/opencontainers/runc v0.1.1
go: downloading github.com/Microsoft/hcsshim v0.8.7
go: downloading github.com/konsorten/go-windows-terminal-sequences v1.0.1
go: downloading github.com/gogo/protobuf v1.3.1
go: downloading github.com/opencontainers/go-digest v1.0.0-rc1
go: downloading github.com/containerd/continuity v0.0.0-20200228182428-0f16d7a0959c
go: downloading golang.org/x/sync v0.0.0-20190423024810-112230192c58
go: found github.com/miekg/pkcs11 in github.com/miekg/pkcs11 v1.1.1
Error: chaincode install failed with status: 500 - failed to invoke backing implementation of 'InstallChaincode': could not build chaincode: docker build failed: docker image inspection failed: Get "http://unix.sock/images/dev-peer1.org0.example.com-simple_1.0-9f3cb6e6005e8d60de01867e01d785ddf3b969869223a87107792a9614841f26-ef98810c664cf9e74ba1c35b6b0a0251ba94797a280d33603becd60744f5b597/json": dial unix /host/var/run/docker.sock: connect: no such file or directory


docker version Docker version 20.10.13, build a224086
docker-compose docker-compose version 1.29.2, build 5becea4c
go version go1.18.1 darwin/amd64
Operating system: Mac OS intel chip