Giter Site home page Giter Site logo

grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: failed to write window update: write tcp 172.18.0.5:49656->172.18.0.4:7051: write: broken pipe"; Reconnecting to {peer0.org1.example.com:7051 <nil>} transport: http2Client.notify Error got notified that the client transport was broken read tcp 172.18.0.5:49658->172.18.0.4:7051: read: connection reset by peer. about docker-compose-files HOT 15 CLOSED

yeasy avatar yeasy commented on August 10, 2024
grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: failed to write window update: write tcp 172.18.0.5:49656->172.18.0.4:7051: write: broken pipe"; Reconnecting to {peer0.org1.example.com:7051 } transport: http2Client.notify Error got notified that the client transport was broken read tcp 172.18.0.5:49658->172.18.0.4:7051: read: connection reset by peer.

from docker-compose-files.

Comments (15)

qiang0723 avatar qiang0723 commented on August 10, 2024

@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.

smfaizalkhan avatar smfaizalkhan commented on August 10, 2024

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.

qiang0723 avatar qiang0723 commented on August 10, 2024

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.

smfaizalkhan avatar smfaizalkhan commented on August 10, 2024

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.

qiang0723 avatar qiang0723 commented on August 10, 2024

There may have path problem before, but now we have fixed it.

from docker-compose-files.

smfaizalkhan avatar smfaizalkhan commented on August 10, 2024

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.

qiang0723 avatar qiang0723 commented on August 10, 2024

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.

smfaizalkhan avatar smfaizalkhan commented on August 10, 2024

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.

qiang0723 avatar qiang0723 commented on August 10, 2024

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.

qiang0723 avatar qiang0723 commented on August 10, 2024

#51 , later we will complete doc, hope can help you.

from docker-compose-files.

smfaizalkhan avatar smfaizalkhan commented on August 10, 2024

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.

  1. initialize.sh (CHANNEL_NAME="$1" : ${CHANNEL_NAME:="businesschannel"} )
  2. channel.json ( "channel_id": "businesschannel" )
  3. test_4peers.sh (CHANNEL_NAME="$1" : ${CHANNEL_NAME:="businesschannel"}

Is there anywhere else that i sud change the channel name ?

from docker-compose-files.

qiang0723 avatar qiang0723 commented on August 10, 2024

suggest use the latest version compare with yours, find differents

from docker-compose-files.

smfaizalkhan avatar smfaizalkhan commented on August 10, 2024

Yes qiang.I will rmi all docker conatiners and images ,Start afresh

from docker-compose-files.

smfaizalkhan avatar smfaizalkhan commented on August 10, 2024

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.

GuillaumeCisco avatar GuillaumeCisco commented on August 10, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.