我已經安裝使用在Ubuntu 14.04泊塢圖像通過創建2個容器中,作爲每提供@http://hyperledger-fabric.readthedocs.io/en/latest/Setup/Network-setup/#leveraging-published-docker-imagesHyperledger泊塢端點
然後我試圖部署chaincode,其編譯沒有錯誤的步驟的2節點Hyperledger網絡,通過調用POST/chaincode API並獲得響應200,併爲已部署的鏈式代碼返回散列值。
但之後,我得到了在泊塢窗記錄以下錯誤:
08:44:26.560 [consensus/noops] processTransactions -> DEBU 053 Starting TX batch with timestamp: seconds:1473929066 nanos:560229743
08:44:26.560 [consensus/noops] processTransactions -> DEBU 054 Executing batch of 1 transactions with timestamp seconds:1473929066 nanos:560229743
08:44:26.563 [chaincode] getArgsAndEnv -> DEBU 055 Executable is /opt/gopath/bin/1e90b51f9129b97d5312d5c24364085777602a06d40d6e2c9209b4f30d7e66facb26e956443028611539962acc6de550eba03bbb1fd0e7bbd655cb19c5a6ef84
08:44:26.564 [chaincode] Deploy -> DEBU 056 deploying chaincode 1e90b51f9129b97d5312d5c24364085777602a06d40d6e2c9209b4f30d7e66facb26e956443028611539962acc6de550eba03bbb1fd0e7bbd655cb19c5a6ef84(networkid:dev,peerid:vp0)
08:44:26.564 [container] lockContainer -> DEBU 057 waiting for container(dev-vp0-1e90b51f9129b97d5312d5c24364085777602a06d40d6e2c9209b4f30d7e66facb26e956443028611539962acc6de550eba03bbb1fd0e7bbd655cb19c5a6ef84) lock
08:44:26.564 [container] lockContainer -> DEBU 058 got container (dev-vp0-1e90b51f9129b97d5312d5c24364085777602a06d40d6e2c9209b4f30d7e66facb26e956443028611539962acc6de550eba03bbb1fd0e7bbd655cb19c5a6ef84) lock
**08:44:26.565 [dockercontroller] deployImage -> ERRO 059 Error building images: cannot connect to Docker endpoint**
那麼,如何解決這個問題?
另一個更新。我做了以下操作:
1)編輯/ etc/default/docker以添加條目:DOCKER_OPTS =「 - api-cors-header ='*'-H tcp://0.0.0.0:2375 -H UNIX:///var/run/docker.sock「
2)重新啓動的搬運工
3)使用搬運工-構成了命令
試過部署chaincode發起者的節點,並且現在我得到一個不同的錯誤:
vp0_1 | 06:09:33.441 [consensus/noops] handleChannels -> DEBU 048 Process block due to time
vp0_1 | 06:09:33.441 [consensus/noops] processTransactions -> DEBU 049 Starting TX batch with timestamp: seconds:1475042973 nanos:441383619
vp0_1 | 06:09:33.441 [consensus/noops] processTransactions -> DEBU 04a Executing batch of 1 transactions with timestamp seconds:1475042973 nanos:441383619
vp0_1 | 06:09:33.446 [chaincode] getArgsAndEnv -> DEBU 04b Executable is /opt/gopath/bin/1e90b51f9129b97d5312d5c24364085777602a06d40d6e2c9209b4f30d7e66facb26e956443028611539962acc6de550eba03bbb1fd0e7bbd655cb19c5a6ef84
vp0_1 | 06:09:33.446 [chaincode] Deploy -> DEBU 04c deploying chaincode 1e90b51f9129b97d5312d5c24364085777602a06d40d6e2c9209b4f30d7e66facb26e956443028611539962acc6de550eba03bbb1fd0e7bbd655cb19c5a6ef84(networkid:dev,peerid:vp0)
vp0_1 | 06:09:33.446 [container] lockContainer -> DEBU 04d waiting for container(dev-vp0-1e90b51f9129b97d5312d5c24364085777602a06d40d6e2c9209b4f30d7e66facb26e956443028611539962acc6de550eba03bbb1fd0e7bbd655cb19c5a6ef84) lock
vp0_1 | 06:09:33.446 [container] lockContainer -> DEBU 04e got container (dev-vp0-1e90b51f9129b97d5312d5c24364085777602a06d40d6e2c9209b4f30d7e66facb26e956443028611539962acc6de550eba03bbb1fd0e7bbd655cb19c5a6ef84) lock
vp0_1 | 06:09:37.608 [peer] ensureConnected -> DEBU 04f Touch service indicates no dropped connections
vp0_1 | 06:09:37.608 [peer] ensureConnected -> DEBU 050 Connected to: [] vp0_1 | 06:09:37.608 [peer] ensureConnected -> DEBU 051 Discovery knows about: []
vp0_1 | 06:09:39.533 [dockercontroller] deployImage -> ERRO 052 Error building images: Tag latest not found in repository docker.io/hyperledger/fabric-baseimage
vp0_1 | 06:09:39.533 [dockercontroller] deployImage -> ERRO 053 Image Output:
你定義正確的終點,同時創造了網絡? –
我正在使用以下
docker-compose文件vp0:image:hyperledger/fabric-peer ports: - 「7050:7050」environment: - CORE_PEER_ADDRESSAUTODETECT = true - CORE_VM_ENDPOINT = 172.17.0.1:2375 - CORE_PEER_ID = vp0 - CORE_LOGGING_LEVEL = DEBUG命令:對等節點啓動 –