chainHero / heroes-service

Short tutorial to build a blockchain application in Go with Hyperledger Fabric
https://chainhero.io/2018/06/tutorial-build-blockchain-app-v1-1-0/
Apache License 2.0
275 stars 147 forks source link

dep ensure - remote repository at https://github.com/milagro-crypto/amcl does not exist, or is inaccessible #33

Open pvrbharg opened 5 years ago

pvrbharg commented 5 years ago

Hi,

I am getting the following issue and I am on more later version of Go and also Ubuntu. Please let me know if this is the issue.

hlbcadmin@ubuntu:~/go/src/github.com/heroes-service$ dep ensure ensure Solve(): no valid source could be created: failed to set up sources from the following URLs: https://github.com/milagro-crypto/amcl : remote repository at https://github.com/milagro-crypto/amcl does not exist, or is inaccessible: : exit status 128 failed to set up sources from the following URLs: ssh://git@github.com/milagro-crypto/amcl : remote repository at ssh://git@github.com/milagro-crypto/amcl does not exist, or is inaccessible: : exit status 128 failed to set up sources from the following URLs: git://github.com/milagro-crypto/amcl : remote repository at git://github.com/milagro-crypto/amcl does not exist, or is inaccessible: : exit status 128 failed to set up sources from the following URLs: http://github.com/milagro-crypto/amcl : remote repository at http://github.com/milagro-crypto/amcl does not exist, or is inaccessible: : exit status 128 hlbcadmin@ubuntu:~/go/src/github.com/heroes-service$

The above failure eventually leads to:

hlbcadmin@ubuntu:~/go/src/github.com/heroes-service/fixtures$ docker-compose up -d && cd .. && ./heroes-service Starting orderer.hf.chainhero.io ... done Starting ca.org1.hf.chainhero.io ... done Starting peer1.org1.hf.chainhero.io ... done Starting peer0.org1.hf.chainhero.io ... done Unable to initialize the Fabric SDK: failed to create SDK: failed to initialize configuration: unable to load endpoint config: failed to initialize endpoint config from config backend: network configuration load failed: failed to load channel configs: failed to network config: failed to load network TLSConfig: failed to load orderer/peer TLSConfig : failed to load orderer cert: failed to load pem bytes from path /home/hlbcadmin/go/src/github.com/chainHero/heroes-service/fixtures/crypto-config/ordererOrganizations/hf.chainhero.io/tlsca/tlsca.hf.chainhero.io-cert.pem: open /home/hlbcadmin/go/src/github.com/chainHero/heroes-service/fixtures/crypto-config/ordererOrganizations/hf.chainhero.io/tlsca/tlsca.hf.chainhero.io-cert.pem: no such file or directory

Thanks.

prayagsingh commented 5 years ago

@pvrbharg check whether all the prerequisites are installed or not. Also, did you create the Gopkg.toml before running the dep ensure command? you can refer to this link for more: https://github.com/golang/dep/issues/1495#issuecomment-354509879 check tlsca.hf.chainhero.io-cert.pem exists in config/ordererOrganizations/hf.chainhero.io/tlsca/ directory and if it's not there then first generates all the certs.