Comments (15)
@smfaizalkhan, I think the peer node didn't start successfully.
whether the peer occurs some error logs (docker logs peer0.org1.example.com) and how did you start the network?
from docker-compose-files.
peer0.org1.example.com logs.zip
@qiang0723 :Please find the logs for the container peer0.org1.example.com
I started the network using command "sudo docker-compose -f docker-compose-1peer.yaml up"
I have attcached the docker-compose yaml files
docker-compose.zip
from docker-compose-files.
Apologies!, it is difficult to locate your cause of the error from the logs. please use docker-compose-2orgs-4peers.yaml
first, refer to Bootup and test Fabric 1.0 and I will test/modify docker-compose-1peers.yaml now.
Notice: we support TLS now, if you don't want to use it, you can setting *_TLS_ENABLED=false in docker-compose-2orgs-4peers.yaml, peer-base.yaml and orderer-base.yaml.
from docker-compose-files.
No issues ,Thanks for the feedback.In the meant time while following up with docker-compose-2orgs-4peers.yaml first, refer to Bootup and test Fabric 1.0 ,i noticed that while initializing fabric and executing the command $ bash ./scripts/initialize.sh after docker-exec -it fabric-cli bash it sayd no cuch folder or directory .It is a mounting issue .If so i dont find the file
from docker-compose-files.
There may have path problem before, but now we have fixed it.
from docker-compose-files.
Sorry I got it.When i cloned it, the file "initialzie.sh" was missing which has been added 5 days back,But now i get
"Error: Invalid channel create transaction : mismatched channel ID mychannel != businesschannel" error
The content of log.txt is as below
cat log.txt
2017-06-14 07:21:50.908 UTC [msp] getMspConfig -> INFO 001 intermediate certs folder not found at [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/[email protected]/msp/intermediatecerts]. Skipping.: [stat /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/[email protected]/msp/intermediatecerts: no such file or directory]
2017-06-14 07:21:50.908 UTC [msp] getMspConfig -> INFO 002 crls folder not found at [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/[email protected]/msp/intermediatecerts]. Skipping.: [stat /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/[email protected]/msp/crls: no such file or directory]
2017-06-14 07:21:50.908 UTC [msp] getMspConfig -> INFO 003 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]
2017-06-14 07:21:50.960 UTC [msp] GetLocalMSP -> DEBU 004 Returning existing local MSP
2017-06-14 07:21:50.960 UTC [msp] GetDefaultSigningIdentity -> DEBU 005 Obtaining default signing identity
2017-06-14 07:21:50.985 UTC [channelCmd] InitCmdFactory -> INFO 006 Endorser and orderer connections initialized
Error: Invalid channel create transaction : mismatched channel ID mychannel != businesschannel
from docker-compose-files.
That's because you didn't update project, we changed default channel mychannel
to businesschannel
, and related configurations have changed also.
from docker-compose-files.
Yes ,Done ..Downloaded the latest channel.tx artificat and copied into my existing folder and now it is done!!
Now i got the same Invalid channel create transaction : mismatched channel ID mychannel != businesschannel for Ancor Channel,So i copied a;ll the contents of the channel-artifacts from github and copied into local channel_artificats and then started the network using "sudo docker-compose -f docker-compose-2orgs-4peers.yaml up" and while running the initialise.sh script from fabric-cli got the BAD_REQUEST as below
Sign: digest: BF497B88C1DC913F62ADE5638F539CB906FDA5B3F78BD44214C7244B311A6561
Error: Got unexpected status: BAD_REQUEST
In the orderer i found a warning
orderer.example.com | 2017-06-14 08:01:35.901 UTC [orderer/common/broadcast] Handle -> WARN 213 Rejecting CONFIG_UPDATE because: Error authorizing update: Error validating ReadSet: Readset expected key [Groups] /Channel/Application at version 0, but got version 1
From the same issue (51) @yeasy has asked for OS version .
I'm using ubuntu 16.04 LTS
BTW , As Yeasy says CHANNEL already exists.How to remove the channel ?.Can we add the functionality in initialise.sh to check before creation ?
from docker-compose-files.
In scripts/initialise.sh and scripts/test-4peers.sh have a env called CHANNEL_NAME, did you change it to businesschannel?
from docker-compose-files.
#51 , later we will complete doc, hope can help you.
from docker-compose-files.
Yes, #51 later
@qiang : in test-4ppers.sh i have changed it to businesschannel and started the network ,i still get
"Error: Got unexpected status: BAD_REQUEST"
I check the following files.
- initialize.sh (CHANNEL_NAME="$1" : ${CHANNEL_NAME:="businesschannel"} )
- channel.json ( "channel_id": "businesschannel" )
- test_4peers.sh (CHANNEL_NAME="$1" : ${CHANNEL_NAME:="businesschannel"}
Is there anywhere else that i sud change the channel name ?
from docker-compose-files.
suggest use the latest version compare with yours, find differents
from docker-compose-files.
Yes qiang.I will rmi all docker conatiners and images ,Start afresh
from docker-compose-files.
Thanks @qiang0723 :It was successful after doing it afresh.
Channel created and got the ===== All GOOD initialization completed ============
So i ran the test_4peers.sh,But that time i got the Output as Attempting to Query PEER 2 and then it exists
from docker-compose-files.
I get this exact same error when I try to execute a peer
command for querying my chaincode from outside the docker network i.e my own machine.
If I create a docker container from the docker-compose file with the attribute networks
correctly filled, it works great, but not if I test it from my own machine. How can I tell the peer command to use the same network created by the docker-compose file?
Thank you.
from docker-compose-files.
Related Issues (20)
- error in scripts/download_images.sh
- Does the block explorer not work with mysql 8.0.4? HOT 5
- Error: got unexpected status: BAD_REQUEST -- HOT 2
- v1.1.0 rc1 chaincode instantiate失败 API error (404): {"message":"network v110rc1_default not found"} HOT 4
- <channel-ID.block> file disappears after restarting the network HOT 2
- Error: Got unexpected status: BAD_REQUEST HOT 1
- error: [Orderer.js]: sendBroadcast - timed out after:250000 [2018-06-04 12:43:17.982] [ERROR] Create-Channel - Error: REQUEST_TIMEOUT
- How to use fabric v1.2 ca-test with mutual tls HOT 1
- make test_cc_install sometimes fails with v1.2 - need to rerun it few times to succeed HOT 2
- hyperledger rpc端口问题 HOT 1
- 请教chaincode接口调用产生transaction的问题 HOT 1
- [channel: mychannel1] Rejecting broadcast of config message from 172.26.0.11:35706 because of error: error validating channel creation transaction for new channel 'mychannel1', could not succesfully apply update to template configuration: error authorizing update: error validating ReadSet: existing config does not contain element for [Group] /Channel/Application/Org2MSP but was in the read set HOT 4
- orderer.genesis.block: is a directory
- Can't make orderer-docker
- 1.4版本好多报错:Error response from daemon: manifest for hyperledger/fabric-nodeenv:1.4.6 not found: manifest unknown: manifest unknown HOT 1
- Error response from daemon: manifest for hyperledger/fabric-ca:2.0.0 not found: manifest unknown: manifest unknown HOT 1
- ERRO 029 Error creating connection to peer address vp0:7051: grpc: timed out when dialing
- haproxy_web这个默认的用户名和密码是什么? HOT 1
- chatWithPeer -> ERRO 029 Error creating connection to peer address vp0:7051: grpc: timed out when dialing HOT 5
- where is the docker-compose-1orgs-1peers-dev.yaml
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-compose-files.