I want to set up a Hyperledger fabric network on the Aws server, the network is working in my local system but on the AWS server I am getting below error while starting Hyperleger fabric network.
1. ERROR: for peer0.org1.example.com Cannot start service peer0.org1.example.com: driver failed programming external connectivity on endpoint peer0.org1.example.com (21b20bf94e4e1856ea3c5b179dc7f4e5853dbe8b1bfa65e0c9011b0844c961f2): (COMMAND_FAILED: '/sbin/iptables -w2 -t filter -A DOCKER ! -i br-7df572901231 -o br-7df572901231 -p tcp -d 192.168.112.9 --dport 7051 -j ACCEPT' failed: Another app is currently holding the xtables lock. Stopped waiting after 2s.
2. Error: error getting endorser client for channel: endorser client failed to connect to peer0.org1.example.com:7051: failed to create new connection: connection error: desc = "transport: error while dialing: dial tcp 192.168.144.12:7051: connect: connection refused" peer0.org1 failed to join the channel, Retry after 3 seconds.
Edit:
3. .Endorser client failed to connect : connection refused Error
Error: error getting endorser client for channel: endorser client failed to connect to peer0.org1.example.com:7051: failed to create new
connection: connection error: desc = "transport: error while dialing:
dial tcp 192.168.144.12:7051: connect: connection refused" peer0.org1
failed to join the channel, Retry after 3 seconds
version:
> Hyperledger Version: 1.4.6
> Go version: go1.12.12
> OS/Arch:linux/amd64
> Chaincode: Base Image Version: 0.4.18
while up the first network, by using the below command:
./byfn.sh up -a -s couchdb
Please help me on how to resolve the above issues.