Hyperledger Fabric,byfn.sh returns 权限在启动后立即被拒绝
Hyperledger Fabric, byfn.sh returns Permission Denied right after start
我正在学习 how to build my first network 上的教程并下载了文档提供的所有库和二进制文件。我生成了网络,但是当我 运行 byfn.sh up 命令时,我得到了 START 打印出来并在猫之后立即打印:log.txt: Permission denied fail 并且错误测试失败。我已经尝试 运行 用 sudo 连接它,用 sudo -i 进入根目录,但没有任何效果,而且我一直收到这个错误。请帮忙。
<pre>Starting for channel 'mychannel' with CLI timeout of '10' seconds and CLI delay of '3' seconds
Continue? [Y/n] y
proceeding ...
LOCAL_VERSION=1.4.3
DOCKER_IMAGE_VERSION=1.4.3
Starting peer1.org2.example.com ... <font color="#4E9A06">done</font>
Starting peer0.org1.example.com ... <font color="#4E9A06">done</font>
Starting peer0.org2.example.com ... <font color="#4E9A06">done</font>
Starting orderer.example.com ... <font color="#4E9A06">done</font>
Starting peer1.org1.example.com ... <font color="#4E9A06">done</font>
cli is up-to-date
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
e17f63f2cb6c hyperledger/fabric-tools:latest "/bin/bash" 2 minutes ago Up 2 minutes cli
7b7b2971b426 hyperledger/fabric-peer:latest "peer node start" 2 minutes ago Exited (1) Less than a second ago peer1.org2.example.com
6ab313507396 hyperledger/fabric-peer:latest "peer node start" 2 minutes ago Exited (1) 1 second ago peer0.org2.example.com
510f5fc13622 hyperledger/fabric-orderer:latest "orderer" 2 minutes ago Exited (1) 1 second ago orderer.example.com
6e5a09bacbeb hyperledger/fabric-peer:latest "peer node start" 2 minutes ago Up Less than a second 0.0.0.0:7051->7051/tcp peer0.org1.example.com
5e36c3878301 hyperledger/fabric-peer:latest "peer node start" 2 minutes ago Up Less than a second 0.0.0.0:8051->8051/tcp peer1.org1.example.com
28cebd0e310f hello-world "/hello" 4 minutes ago Exited (0) 4 minutes ago admiring_driscoll
d04613d6be54 hello-world "/hello" 6 minutes ago Exited (0) 6 minutes ago keen_swanson
+ peer channel create -o orderer.example.com:7050 -c mychannel -f ./channel-artifacts/channel.tx --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
____ _____ _ ____ _____
/ ___| |_ _| / \ | _ \ |_ _|
\___ \ | | / _ \ | |_) | | |
___) | | | / ___ \ | _ < | |
|____/ |_| /_/ \_\ |_| \_\ |_|
Build your first network (BYFN) end-to-end test
Channel name : mychannel
Creating channel...
+ res=1
+ set +x
cat: log.txt: Permission denied
!!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!!
========= ERROR !!! FAILED to execute End-2-End Scenario ===========
ERROR !!!! Test failed</pre>
与Docker权限有关。我重新安装了 docker 并按照 docker 页面中的安装后步骤进行操作,现在它可以正常工作了。
我正在学习 how to build my first network 上的教程并下载了文档提供的所有库和二进制文件。我生成了网络,但是当我 运行 byfn.sh up 命令时,我得到了 START 打印出来并在猫之后立即打印:log.txt: Permission denied fail 并且错误测试失败。我已经尝试 运行 用 sudo 连接它,用 sudo -i 进入根目录,但没有任何效果,而且我一直收到这个错误。请帮忙。
<pre>Starting for channel 'mychannel' with CLI timeout of '10' seconds and CLI delay of '3' seconds
Continue? [Y/n] y
proceeding ...
LOCAL_VERSION=1.4.3
DOCKER_IMAGE_VERSION=1.4.3
Starting peer1.org2.example.com ... <font color="#4E9A06">done</font>
Starting peer0.org1.example.com ... <font color="#4E9A06">done</font>
Starting peer0.org2.example.com ... <font color="#4E9A06">done</font>
Starting orderer.example.com ... <font color="#4E9A06">done</font>
Starting peer1.org1.example.com ... <font color="#4E9A06">done</font>
cli is up-to-date
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
e17f63f2cb6c hyperledger/fabric-tools:latest "/bin/bash" 2 minutes ago Up 2 minutes cli
7b7b2971b426 hyperledger/fabric-peer:latest "peer node start" 2 minutes ago Exited (1) Less than a second ago peer1.org2.example.com
6ab313507396 hyperledger/fabric-peer:latest "peer node start" 2 minutes ago Exited (1) 1 second ago peer0.org2.example.com
510f5fc13622 hyperledger/fabric-orderer:latest "orderer" 2 minutes ago Exited (1) 1 second ago orderer.example.com
6e5a09bacbeb hyperledger/fabric-peer:latest "peer node start" 2 minutes ago Up Less than a second 0.0.0.0:7051->7051/tcp peer0.org1.example.com
5e36c3878301 hyperledger/fabric-peer:latest "peer node start" 2 minutes ago Up Less than a second 0.0.0.0:8051->8051/tcp peer1.org1.example.com
28cebd0e310f hello-world "/hello" 4 minutes ago Exited (0) 4 minutes ago admiring_driscoll
d04613d6be54 hello-world "/hello" 6 minutes ago Exited (0) 6 minutes ago keen_swanson
+ peer channel create -o orderer.example.com:7050 -c mychannel -f ./channel-artifacts/channel.tx --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
____ _____ _ ____ _____
/ ___| |_ _| / \ | _ \ |_ _|
\___ \ | | / _ \ | |_) | | |
___) | | | / ___ \ | _ < | |
|____/ |_| /_/ \_\ |_| \_\ |_|
Build your first network (BYFN) end-to-end test
Channel name : mychannel
Creating channel...
+ res=1
+ set +x
cat: log.txt: Permission denied
!!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!!
========= ERROR !!! FAILED to execute End-2-End Scenario ===========
ERROR !!!! Test failed</pre>
与Docker权限有关。我重新安装了 docker 并按照 docker 页面中的安装后步骤进行操作,现在它可以正常工作了。