2017-07-05 55 views
0

我非常新的這個問題,我必須去通過織物樣品。 但在這一點上我有問題 Environment variableshyperledger織物peer0環境

# Environment variables for PEER0 

CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/[email protected]/msp 
CORE_PEER_ADDRESS=peer0.org1.example.com:7051 
CORE_PEER_LOCALMSPID="Org1MSP" 
CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt 

但我的搬運工,撰寫-base.yaml文件有以下幾行

environment: 
     - CORE_PEER_ID=peer0.org1.example.com 
     - CORE_PEER_ADDRESS=peer0.org1.example.com:7051 
     - CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer0.org1.example.com:7051 
     - CORE_PEER_LOCALMSPID=Org1MSP 

當我運行此命令

peer channel create -o orderer.example.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/channel.tx --tls $CORE_PEER_TLS_ENABLED --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem 

我有這樣的錯誤消息

INFO 004 MSP configuration file not found at [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/[email protected]/msp/config.yaml]: [stat /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/[email protected]/msp/config.yaml: no such file or directory] 

我相信通過缺失/不同的線路在我的搬運工,撰寫-base.yaml套管此錯誤消息

我可以在這種情況下怎麼辦? 只需將這些行放在我的文件中? 或者某些地方出了問題,我沒有意識到?因爲我剛開始跟我

請承擔。

謝謝

編輯:我有這樣的錯誤消息

Error: Got unexpected status: BAD_REQUEST 
Usage: 
    peer channel create [flags] 

enter image description here

回答

3

這不是一個錯誤消息,而是一個信息之一。 的MSP可以配置爲具有在它下面的字段配置文件中有一個OU:

OrganizationalUnitIdentifiers: 
    - Certificate: "cacerts/cacert.pem" 
OrganizationalUnitIdentifier: "COP" 

這是完全罰款有這個文件,看到這個INFO消息。

+0

謝謝現在我看到它是一個信息。你能檢查我問題中的最後幾行嗎?我剛剛添加了他們,因爲我忘記了這一點。 –

+1

是的。關於錯誤 - 你可以看看訂購服務日誌嗎?它會解釋你爲什麼收到錯誤。 – yacovm

+0

你能幫我看看日誌文件的位置或如何從CLI獲取它嗎? –