No matter how old I am, I decide to be robot fan to focus on blockchain area
Don't wanna be here? Send us removal request.
Text
Common issues for hyperledger fabric 1.0 and solution
The following are the common issues and solutions when you try to install hyperledger fabric 1.0 in your machine to take a look of fancy blockchain technology.
Environment: Windows 7/10 + Vagrant+ Docker
1. "Error: Error endorsing chaincode: rpc error: code = 2 desc = Illegal file mode detected for file src/github.com/hyperledger/fabric/examples/chaincode/go/chaincode_example02/chaincode_example02.go: 100777" when running "peer chaincode install"
This issue is caused by chaincode execute permission. Upgrade sample chaincode folder permission will solve this problem. The following solution is to initialize chaincode files in sample folder permission to be 0666:
(1) Find Vagrantfile under folder “\hyperledger\fabric\devenv”, open it with text editor.
(2) Add the following text under the line of “config.vm.synced_folder "..", "/opt/gopath/src/github.com/hyperledger/fabric"”
config.vm.synced_folder "../examples/chaincode/go", "/opt/gopath/src/github.com/hyperledger/fabric/examples/chaincode/go", :mount_options => ["dmode=777","fmode=666"]
(3) Restart your vagrant Virtual machine.
2.  “Error: Ordering service endpoint is not valid or missing”
Solution: add orderer host and port after your command:Â -o orderer:7050
0 notes