Apple M1: Channel creation failed: orderer client failed to connect to localhost:7050
I tried to do network down and then network up then sudo ./network.sh up createChannel -ca -s couchdb but I still encounter this error. Please help as I'm stuck on this.
Creating channel mychannel
Using organization 1
- peer channel create -o localhost:7050 -c mychannel --ordererTLSHostnameOverride orderer.example.com -f ./channel-artifacts/mychannel.tx --outputBlock ./channel-artifacts/mychannel.block --tls --cafile /Users/ciel/go/src/github.com/hyperledger/fabric-samples/test-network/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem
- res=1
- peer channel create -o localhost:7050 -c mychannel --ordererTLSHostnameOverride orderer.example.com -f ./channel-artifacts/mychannel.tx --outputBlock ./channel-artifacts/mychannel.block --tls --cafile /Users/ciel/go/src/github.com/hyperledger/fabric-samples/test-network/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem
- res=1
- peer channel create -o localhost:7050 -c mychannel --ordererTLSHostnameOverride orderer.example.com -f ./channel-artifacts/mychannel.tx --outputBlock ./channel-artifacts/mychannel.block --tls --cafile /Users/ciel/go/src/github.com/hyperledger/fabric-samples/test-network/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem
- res=1
- peer channel create -o localhost:7050 -c mychannel --ordererTLSHostnameOverride orderer.example.com -f ./channel-artifacts/mychannel.tx --outputBlock ./channel-artifacts/mychannel.block --tls --cafile /Users/ciel/go/src/github.com/hyperledger/fabric-samples/test-network/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem
- res=1
Error: failed to create deliver client for orderer: orderer client failed to connect to localhost:7050: failed to create new connection: connection error: desc = "transport: error while dialing: dial tcp [::1]:7050: connect: connection refused"
Channel creation failed
Best Answer
-
Hi @Bobbijn the hyperledger documentations on installations and running the test network worked for me. I would like to suggest to update the documentations on Labs 2.1 and 4.1 to follow what's on hyperledger documentation. Thank you.
https://hyperledger-fabric.readthedocs.io/en/release-2.5/install.html
https://hyperledger-fabric.readthedocs.io/en/release-2.5/test_network.html0
Answers
-
reinstalled docker and followed the steps here https://dev.to/capriciousrebel/getting-started-with-hyperledger-fabric-on-macos-2937 and getting this error now
Error: Post "https://localhost:7053/participation/v1/channels": dial tcp [::1]:7053: connect: connection refused
Channel 'mychannel' created
Joining org1 peer to the channel...
Using organization 1- peer channel join -b ./channel-artifacts/mychannel.block
- res=1
- peer channel join -b ./channel-artifacts/mychannel.block
- res=1
- peer channel join -b ./channel-artifacts/mychannel.block
- res=1
- peer channel join -b ./channel-artifacts/mychannel.block
- res=1
Error: error getting endorser client for channel: endorser client failed to connect to localhost:7051: failed to create new connection: connection error: desc = "transport: error while dialing: dial tcp [::1]:7051: connect: connection refused"
After 5 attempts, peer0.org1 has failed to join channel 'mychannel'
0 -
Hello @skyrocket55 ,
Welcome to the Developers course for Fabric. Getting the system set up correctly is imperative for success in the course.
The error you're encountering is related to a connection issue with the orderer and peer services, which suggests they might not be running or are inaccessible at the specified ports.
First, please ensure that all Docker containers for your network are up and running using the docker ps command.
If they're not running, you might need to check your Docker setup and restart.Also, ensure there are no network conflicts, and the ports mentioned in the error messages are correctly mapped and accessible.
Additionally, double-check the configuration files for any discrepancies in the port numbers or addresses. For more detailed troubleshooting, consider revisiting the network setup instructions or consulting Hyperledger Fabric's official documentation for guidance on resolving connection issues.
Let me know if this helps, Bobbi
0
Categories
- All Categories
- 177 LFX Mentorship
- 177 LFX Mentorship: Linux Kernel
- 750 Linux Foundation IT Professional Programs
- 373 Cloud Engineer IT Professional Program
- 169 Advanced Cloud Engineer IT Professional Program
- 74 DevOps IT Professional Program - Discontinued
- 4 DevOps & GitOps IT Professional Program
- 99 Cloud Native Developer IT Professional Program
- 7.6K Training Courses & Learning Paths
- 1 AI & ML Training
- 1 Blockchain & Decentralized Identity Training
- 4 Cloud & Containers Training
- 1 Cybersecurity Training
- 2 DevOps & Site-Reliability Training
- 1 Linux Kernel Development Training
- 1 Networking Training
- 2 Open Source Best Practice Training
- 1 System Administration Training
- 1 System Engineering Training
- 1 Web & Application Development Training
- 792 Hardware
- 202 Drivers
- 68 I/O Devices
- 37 Monitors
- 95 Multimedia
- 173 Networking
- 91 Printers & Scanners
- 87 Storage
- 769 Linux Distributions
- 81 Debian
- 68 Fedora
- 22 Linux Mint
- 13 Mageia
- 24 openSUSE
- 150 Red Hat Enterprise
- 31 Slackware
- 13 SUSE Enterprise
- 356 Ubuntu
- 465 Linux System Administration
- 31 Cloud Computing
- 73 Command Line/Scripting
- Github systems admin projects
- 98 Linux Security
- 78 Network Management
- 101 System Management
- 46 Web Management
- 106 Mobile Computing
- 18 Android
- 73 Development
- 1.2K New to Linux
- 1K Getting Started with Linux
- 392 Off Topic
- 121 Introductions
- 181 Small Talk
- 29 Study Material
- 955 Programming and Development
- 310 Kernel Development
- 627 Software Development
- 984 Software
- 376 Applications
- 182 Command Line
- 5 Compiling/Installing
- 68 Games
- 317 Installation
- Archived
- 2 LFD140 Class Forum
- 1.4K LFS258 Class Forum
Upcoming Training
-
August 20, 2018
Kubernetes Administration (LFS458)
-
August 20, 2018
Linux System Administration (LFS301)
-
August 27, 2018
Open Source Virtualization (LFS462)
-
August 27, 2018
Linux Kernel Debugging and Security (LFD440)
