Issues with docker in Fedora 30? #docker


mario.schwaiger@...
 

I'm trying to get the Fabric-Samples running in Fedora 30. Strangely the docker containers always terminate right after starting them:
(base) [user@f30 test-network]$ ./network.sh up
Starting nodes with CLI timeout of '5' tries and CLI delay of '3' seconds and using database 'leveldb'

LOCAL_VERSION=2.2.0
DOCKER_IMAGE_VERSION=2.2.0
Creating network "net_test" with the default driver
Creating volume "net_orderer.example.com" with default driver
Creating volume "net_peer0.org1.example.com" with default driver
Creating volume "net_peer0.org2.example.com" with default driver
Creating orderer.example.com ... done
Creating peer0.org1.example.com ... done
Creating peer0.org2.example.com ... done
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
5270638c799f hyperledger/fabric-peer:latest "peer node start" 1 second ago Up Less than a second 7051/tcp, 0.0.0.0:9051->9051/tcp peer0.org2.example.com
2403a76c3b8e hyperledger/fabric-peer:latest "peer node start" 1 second ago Up Less than a second 0.0.0.0:7051->7051/tcp peer0.org1.example.com
a8a5a31789dd hyperledger/fabric-orderer:latest "orderer" 1 second ago Up Less than a second 0.0.0.0:7050->7050/tcp orderer.example.com
53a4e50a385d bf756fb1ae65 "/hello" 36 minutes ago Exited (0) 36 minutes ago blissful_shannon
15f638ad5f95 hyperledger/fabric-peer "peer node start" 40 minutes ago Exited (0) 40 minutes ago distracted_jones
(base) [user@f30 test-network]$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
In Ubuntu everything works fine and I never had any comparable issues.

Strangely the fabcar-example is causing a weird error. I assumed it might be a permissions-issue, but even running it as sudo is giving me the same, weird results. Right after execution of the script, everything is dead.

(base) [user@f30 fabcar]$ sudo ./startFabric.sh javascript
[sudo] password for user:
/home/user/fabric-samples/test-network /home/user/fabric-samples/fabcar
Stopping network

Removing network net_test
WARNING: Network net_test not found.
Removing volume net_orderer.example.com
WARNING: Volume net_orderer.example.com not found.
Removing volume net_peer0.org1.example.com
WARNING: Volume net_peer0.org1.example.com not found.
Removing volume net_peer0.org2.example.com
WARNING: Volume net_peer0.org2.example.com not found.
Removing network net_test
WARNING: Network net_test not found.
Removing volume net_peer0.org3.example.com
WARNING: Volume net_peer0.org3.example.com not found.
---- No containers available for deletion ----
---- No images available for deletion ----
rm: can't stat 'log.txt': Permission denied
I have tried both, curl -sSL https://bit.ly/2ysbOFE | bash -s -- 2.2.0 1.4.8 and the regular one. Same issue. I know Docker behaves differently under Fedora sometimes and switched temporarily to moby. But still exactly the same problem.

Anyone else using Fedora and can reproduce this issue?


Brett T Logan <brett.t.logan@...>
 

Can you do a `docker ps -a`, the containers are stopped, so a standard `docker ps` wont show them. Then share the logs from one of the exited containers, such as `docker logs peer0.org1.example.com`
 
Thank you,
 
Brett Logan
Software Engineer, IBM Blockchain
Phone: 1-984-242-6890
 
 
 

----- Original message -----
From: mario.schwaiger@...
Sent by: fabric@...
To: fabric@...
Cc:
Subject: [EXTERNAL] [Hyperledger Fabric] Issues with docker in Fedora 30? #docker
Date: Wed, Aug 26, 2020 2:46 PM
 
I'm trying to get the Fabric-Samples running in Fedora 30. Strangely the docker containers always terminate right after starting them:
(base) [user@f30 test-network]$ ./network.sh up
Starting nodes with CLI timeout of '5' tries and CLI delay of '3' seconds and using database 'leveldb'

LOCAL_VERSION=2.2.0
DOCKER_IMAGE_VERSION=2.2.0
Creating network "net_test" with the default driver
Creating volume "net_orderer.example.com" with default driver
Creating volume "net_peer0.org1.example.com" with default driver
Creating volume "net_peer0.org2.example.com" with default driver
Creating orderer.example.com    ... done
Creating peer0.org1.example.com ... done
Creating peer0.org2.example.com ... done
CONTAINER ID        IMAGE                               COMMAND             CREATED             STATUS                      PORTS                              NAMES
5270638c799f        hyperledger/fabric-peer:latest      "peer node start"   1 second ago        Up Less than a second       7051/tcp, 0.0.0.0:9051->9051/tcp   peer0.org2.example.com
2403a76c3b8e        hyperledger/fabric-peer:latest      "peer node start"   1 second ago        Up Less than a second       0.0.0.0:7051->7051/tcp             peer0.org1.example.com
a8a5a31789dd        hyperledger/fabric-orderer:latest   "orderer"           1 second ago        Up Less than a second       0.0.0.0:7050->7050/tcp             orderer.example.com
53a4e50a385d        bf756fb1ae65                        "/hello"            36 minutes ago      Exited (0) 36 minutes ago                                      blissful_shannon
15f638ad5f95        hyperledger/fabric-peer             "peer node start"   40 minutes ago      Exited (0) 40 minutes ago                                      distracted_jones
(base) [user@f30 test-network]$ docker ps
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES
In Ubuntu everything works fine and I never had any comparable issues.

Strangely the fabcar-example is causing a weird error. I assumed it might be a permissions-issue, but even running it as sudo is giving me the same, weird results. Right after execution of the script, everything is dead.
 
(base) [user@f30 fabcar]$ sudo ./startFabric.sh javascript
[sudo] password for user:
/home/user/fabric-samples/test-network /home/user/fabric-samples/fabcar
Stopping network

Removing network net_test
WARNING: Network net_test not found.
Removing volume net_orderer.example.com
WARNING: Volume net_orderer.example.com not found.
Removing volume net_peer0.org1.example.com
WARNING: Volume net_peer0.org1.example.com not found.
Removing volume net_peer0.org2.example.com
WARNING: Volume net_peer0.org2.example.com not found.
Removing network net_test
WARNING: Network net_test not found.
Removing volume net_peer0.org3.example.com
WARNING: Volume net_peer0.org3.example.com not found.
---- No containers available for deletion ----
---- No images available for deletion ----
rm: can't stat 'log.txt': Permission denied
I have tried both, curl -sSL https://bit.ly/2ysbOFE | bash -s -- 2.2.0 1.4.8 and the regular one. Same issue. I know Docker behaves differently under Fedora sometimes and switched temporarily to moby. But still exactly the same problem.

Anyone else using Fedora and can reproduce this issue?
 


mario.schwaiger@...
 

This is getting weirder and weirder. I removed everything, tried to start from a clean build. Got this. (I have to say the peer might be there because I tried docker run hyperledger/fabric-peer - this kind of worked. The docker didn't terminate, but just ran alone)

(base) [user@f30 fabcar]$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
(base) [user@f30 fabcar]$ docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
3176e64e6867 hyperledger/fabric-ca:latest "sh -c 'fabric-ca-se…" 21 seconds ago Exited (1) 18 seconds ago ca_org2
1b2b4aab97fe hyperledger/fabric-ca:latest "sh -c 'fabric-ca-se…" 21 seconds ago Exited (1) 18 seconds ago ca_org1
a526a72ac87d hyperledger/fabric-ca:latest "sh -c 'fabric-ca-se…" 21 seconds ago Exited (1) 18 seconds ago ca_orderer
0c4437009820 ubuntu "bash" 11 minutes ago Exited (0) 11 minutes ago elated_swirles
3d15519bcfab hello-world "/hello" 12 minutes ago Exited (0) 12 minutes ago naughty_borg
53a4e50a385d hello-world "/hello" About an hour ago Exited (0) About an hour ago blissful_shannon
15f638ad5f95 hyperledger/fabric-peer "peer node start" About an hour ago Exited (0) About an hour ago distracted_jones

Here's the complete log. What could that be?
(base) [user@f30 fabcar]$ ./startFabric.sh javascript 
/home/user/fabric-samples/test-network /home/user/fabric-samples/fabcar
Stopping network

Removing network net_test
WARNING: Network net_test not found.
Removing volume net_orderer.example.com
WARNING: Volume net_orderer.example.com not found.
Removing volume net_peer0.org1.example.com
WARNING: Volume net_peer0.org1.example.com not found.
Removing volume net_peer0.org2.example.com
WARNING: Volume net_peer0.org2.example.com not found.
Removing network net_test
WARNING: Network net_test not found.
Removing volume net_peer0.org3.example.com
WARNING: Volume net_peer0.org3.example.com not found.
---- No containers available for deletion ----
---- No images available for deletion ----
Creating channel 'mychannel'.

If network is not up, starting nodes with CLI timeout of '5' tries and CLI delay of '3' seconds and using database 'couchdb with crypto from 'Certificate Authorities'

Bringing up network
LOCAL_VERSION=2.2.0
DOCKER_IMAGE_VERSION=2.2.0
CA_LOCAL_VERSION=1.4.7
CA_DOCKER_IMAGE_VERSION=1.4.7

##########################################################
##### Generate certificates using Fabric CA's ############
##########################################################
Creating network "net_test" with the default driver
Creating ca_orderer ... done
Creating ca_org1 ... done
Creating ca_org2 ... done
##########################################################
############ Create Org1 Identities ######################
##########################################################

Enroll the CA admin

+ fabric-ca-client enroll -u https://admin:adminpw@localhost:7054 --caname ca-org1 --tls.certfiles /home/user/fabric-samples/test-network/organizations/fabric-ca/org1/tls-cert.pem
2020/08/26 19:04:25 [INFO] Created a default configuration file at /home/user/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/fabric-ca-client-config.yaml
2020/08/26 19:04:25 [INFO] TLS Enabled
Error: Failed to get client TLS config: Failed to read '/home/user/fabric-samples/test-network/organizations/fabric-ca/org1/tls-cert.pem': open /home/user/fabric-samples/test-network/organizations/fabric-ca/org1/tls-cert.pem: no such file or directory
+ set +x

Register peer0

+ fabric-ca-client register --caname ca-org1 --id.name peer0 --id.secret peer0pw --id.type peer --tls.certfiles /home/user/fabric-samples/test-network/organizations/fabric-ca/org1/tls-cert.pem
2020/08/26 19:04:25 [INFO] Configuration file location: /home/user/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/fabric-ca-client-config.yaml
2020/08/26 19:04:25 [INFO] TLS Enabled
Error: Failed to get client TLS config: Failed to read '/home/user/fabric-samples/test-network/organizations/fabric-ca/org1/tls-cert.pem': open /home/user/fabric-samples/test-network/organizations/fabric-ca/org1/tls-cert.pem: no such file or directory
+ set +x

Register user

+ fabric-ca-client register --caname ca-org1 --id.name user1 --id.secret user1pw --id.type client --tls.certfiles /home/user/fabric-samples/test-network/organizations/fabric-ca/org1/tls-cert.pem
2020/08/26 19:04:25 [INFO] Configuration file location: /home/user/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/fabric-ca-client-config.yaml
2020/08/26 19:04:25 [INFO] TLS Enabled
Error: Failed to get client TLS config: Failed to read '/home/user/fabric-samples/test-network/organizations/fabric-ca/org1/tls-cert.pem': open /home/user/fabric-samples/test-network/organizations/fabric-ca/org1/tls-cert.pem: no such file or directory
+ set +x

Register the org admin

+ fabric-ca-client register --caname ca-org1 --id.name org1admin --id.secret org1adminpw --id.type admin --tls.certfiles /home/user/fabric-samples/test-network/organizations/fabric-ca/org1/tls-cert.pem
2020/08/26 19:04:25 [INFO] Configuration file location: /home/user/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/fabric-ca-client-config.yaml
2020/08/26 19:04:25 [INFO] TLS Enabled
Error: Failed to get client TLS config: Failed to read '/home/user/fabric-samples/test-network/organizations/fabric-ca/org1/tls-cert.pem': open /home/user/fabric-samples/test-network/organizations/fabric-ca/org1/tls-cert.pem: no such file or directory
+ set +x

## Generate the peer0 msp

+ fabric-ca-client enroll -u https://peer0:peer0pw@localhost:7054 --caname ca-org1 -M /home/user/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/msp --csr.hosts peer0.org1.example.com --tls.certfiles /home/user/fabric-samples/test-network/organizations/fabric-ca/org1/tls-cert.pem
2020/08/26 19:04:25 [INFO] TLS Enabled
Error: Failed to get client TLS config: Failed to read '/home/user/fabric-samples/test-network/organizations/fabric-ca/org1/tls-cert.pem': open /home/user/fabric-samples/test-network/organizations/fabric-ca/org1/tls-cert.pem: no such file or directory
+ set +x

## Generate the peer0-tls certificates

+ fabric-ca-client enroll -u https://peer0:peer0pw@localhost:7054 --caname ca-org1 -M /home/user/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls --enrollment.profile tls --csr.hosts peer0.org1.example.com --csr.hosts localhost --tls.certfiles /home/user/fabric-samples/test-network/organizations/fabric-ca/org1/tls-cert.pem
2020/08/26 19:04:25 [INFO] TLS Enabled
Error: Failed to get client TLS config: Failed to read '/home/user/fabric-samples/test-network/organizations/fabric-ca/org1/tls-cert.pem': open /home/user/fabric-samples/test-network/organizations/fabric-ca/org1/tls-cert.pem: no such file or directory
+ set +x
cp: cannot stat '/home/user/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/tlscacerts/*': No such file or directory
cp: cannot stat '/home/user/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/signcerts/*': No such file or directory
cp: cannot stat '/home/user/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/keystore/*': No such file or directory
cp: cannot stat '/home/user/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/tlscacerts/*': No such file or directory
cp: cannot stat '/home/user/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/tlscacerts/*': No such file or directory
cp: cannot stat '/home/user/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/msp/cacerts/*': No such file or directory

## Generate the user msp

+ fabric-ca-client enroll -u https://user1:user1pw@localhost:7054 --caname ca-org1 -M /home/user/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/users/User1@.../msp --tls.certfiles /home/user/fabric-samples/test-network/organizations/fabric-ca/org1/tls-cert.pem
2020/08/26 19:04:25 [INFO] TLS Enabled
Error: Failed to get client TLS config: Failed to read '/home/user/fabric-samples/test-network/organizations/fabric-ca/org1/tls-cert.pem': open /home/user/fabric-samples/test-network/organizations/fabric-ca/org1/tls-cert.pem: no such file or directory
+ set +x

## Generate the org admin msp

+ fabric-ca-client enroll -u https://org1admin:org1adminpw@localhost:7054 --caname ca-org1 -M /home/user/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/users/Admin@.../msp --tls.certfiles /home/user/fabric-samples/test-network/organizations/fabric-ca/org1/tls-cert.pem
2020/08/26 19:04:25 [INFO] TLS Enabled
Error: Failed to get client TLS config: Failed to read '/home/user/fabric-samples/test-network/organizations/fabric-ca/org1/tls-cert.pem': open /home/user/fabric-samples/test-network/organizations/fabric-ca/org1/tls-cert.pem: no such file or directory
+ set +x
##########################################################
############ Create Org2 Identities ######################
##########################################################

Enroll the CA admin

+ fabric-ca-client enroll -u https://admin:adminpw@localhost:8054 --caname ca-org2 --tls.certfiles /home/user/fabric-samples/test-network/organizations/fabric-ca/org2/tls-cert.pem
2020/08/26 19:04:25 [INFO] Created a default configuration file at /home/user/fabric-samples/test-network/organizations/peerOrganizations/org2.example.com/fabric-ca-client-config.yaml
2020/08/26 19:04:25 [INFO] TLS Enabled
Error: Failed to get client TLS config: Failed to read '/home/user/fabric-samples/test-network/organizations/fabric-ca/org2/tls-cert.pem': open /home/user/fabric-samples/test-network/organizations/fabric-ca/org2/tls-cert.pem: no such file or directory
+ set +x

Register peer0

+ fabric-ca-client register --caname ca-org2 --id.name peer0 --id.secret peer0pw --id.type peer --tls.certfiles /home/user/fabric-samples/test-network/organizations/fabric-ca/org2/tls-cert.pem
2020/08/26 19:04:25 [INFO] Configuration file location: /home/user/fabric-samples/test-network/organizations/peerOrganizations/org2.example.com/fabric-ca-client-config.yaml
2020/08/26 19:04:25 [INFO] TLS Enabled
Error: Failed to get client TLS config: Failed to read '/home/user/fabric-samples/test-network/organizations/fabric-ca/org2/tls-cert.pem': open /home/user/fabric-samples/test-network/organizations/fabric-ca/org2/tls-cert.pem: no such file or directory
+ set +x

Register user

+ fabric-ca-client register --caname ca-org2 --id.name user1 --id.secret user1pw --id.type client --tls.certfiles /home/user/fabric-samples/test-network/organizations/fabric-ca/org2/tls-cert.pem
2020/08/26 19:04:25 [INFO] Configuration file location: /home/user/fabric-samples/test-network/organizations/peerOrganizations/org2.example.com/fabric-ca-client-config.yaml
2020/08/26 19:04:25 [INFO] TLS Enabled
Error: Failed to get client TLS config: Failed to read '/home/user/fabric-samples/test-network/organizations/fabric-ca/org2/tls-cert.pem': open /home/user/fabric-samples/test-network/organizations/fabric-ca/org2/tls-cert.pem: no such file or directory
+ set +x

Register the org admin

+ fabric-ca-client register --caname ca-org2 --id.name org2admin --id.secret org2adminpw --id.type admin --tls.certfiles /home/user/fabric-samples/test-network/organizations/fabric-ca/org2/tls-cert.pem
2020/08/26 19:04:25 [INFO] Configuration file location: /home/user/fabric-samples/test-network/organizations/peerOrganizations/org2.example.com/fabric-ca-client-config.yaml
2020/08/26 19:04:25 [INFO] TLS Enabled
Error: Failed to get client TLS config: Failed to read '/home/user/fabric-samples/test-network/organizations/fabric-ca/org2/tls-cert.pem': open /home/user/fabric-samples/test-network/organizations/fabric-ca/org2/tls-cert.pem: no such file or directory
+ set +x

## Generate the peer0 msp

+ fabric-ca-client enroll -u https://peer0:peer0pw@localhost:8054 --caname ca-org2 -M /home/user/fabric-samples/test-network/organizations/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/msp --csr.hosts peer0.org2.example.com --tls.certfiles /home/user/fabric-samples/test-network/organizations/fabric-ca/org2/tls-cert.pem
2020/08/26 19:04:25 [INFO] TLS Enabled
Error: Failed to get client TLS config: Failed to read '/home/user/fabric-samples/test-network/organizations/fabric-ca/org2/tls-cert.pem': open /home/user/fabric-samples/test-network/organizations/fabric-ca/org2/tls-cert.pem: no such file or directory
+ set +x

## Generate the peer0-tls certificates

+ fabric-ca-client enroll -u https://peer0:peer0pw@localhost:8054 --caname ca-org2 -M /home/user/fabric-samples/test-network/organizations/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls --enrollment.profile tls --csr.hosts peer0.org2.example.com --csr.hosts localhost --tls.certfiles /home/user/fabric-samples/test-network/organizations/fabric-ca/org2/tls-cert.pem
2020/08/26 19:04:25 [INFO] TLS Enabled
Error: Failed to get client TLS config: Failed to read '/home/user/fabric-samples/test-network/organizations/fabric-ca/org2/tls-cert.pem': open /home/user/fabric-samples/test-network/organizations/fabric-ca/org2/tls-cert.pem: no such file or directory
+ set +x
cp: cannot stat '/home/user/fabric-samples/test-network/organizations/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls/tlscacerts/*': No such file or directory
cp: cannot stat '/home/user/fabric-samples/test-network/organizations/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls/signcerts/*': No such file or directory
cp: cannot stat '/home/user/fabric-samples/test-network/organizations/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls/keystore/*': No such file or directory
cp: cannot stat '/home/user/fabric-samples/test-network/organizations/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls/tlscacerts/*': No such file or directory
cp: cannot stat '/home/user/fabric-samples/test-network/organizations/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls/tlscacerts/*': No such file or directory
cp: cannot stat '/home/user/fabric-samples/test-network/organizations/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/msp/cacerts/*': No such file or directory

## Generate the user msp

+ fabric-ca-client enroll -u https://user1:user1pw@localhost:8054 --caname ca-org2 -M /home/user/fabric-samples/test-network/organizations/peerOrganizations/org2.example.com/users/User1@.../msp --tls.certfiles /home/user/fabric-samples/test-network/organizations/fabric-ca/org2/tls-cert.pem
2020/08/26 19:04:25 [INFO] TLS Enabled
Error: Failed to get client TLS config: Failed to read '/home/user/fabric-samples/test-network/organizations/fabric-ca/org2/tls-cert.pem': open /home/user/fabric-samples/test-network/organizations/fabric-ca/org2/tls-cert.pem: no such file or directory
+ set +x

## Generate the org admin msp

+ fabric-ca-client enroll -u https://org2admin:org2adminpw@localhost:8054 --caname ca-org2 -M /home/user/fabric-samples/test-network/organizations/peerOrganizations/org2.example.com/users/Admin@.../msp --tls.certfiles /home/user/fabric-samples/test-network/organizations/fabric-ca/org2/tls-cert.pem
2020/08/26 19:04:25 [INFO] TLS Enabled
Error: Failed to get client TLS config: Failed to read '/home/user/fabric-samples/test-network/organizations/fabric-ca/org2/tls-cert.pem': open /home/user/fabric-samples/test-network/organizations/fabric-ca/org2/tls-cert.pem: no such file or directory
+ set +x
##########################################################
############ Create Orderer Org Identities ###############
##########################################################

Enroll the CA admin

+ fabric-ca-client enroll -u https://admin:adminpw@localhost:9054 --caname ca-orderer --tls.certfiles /home/user/fabric-samples/test-network/organizations/fabric-ca/ordererOrg/tls-cert.pem
2020/08/26 19:04:25 [INFO] Created a default configuration file at /home/user/fabric-samples/test-network/organizations/ordererOrganizations/example.com/fabric-ca-client-config.yaml
2020/08/26 19:04:25 [INFO] TLS Enabled
Error: Failed to get client TLS config: Failed to read '/home/user/fabric-samples/test-network/organizations/fabric-ca/ordererOrg/tls-cert.pem': open /home/user/fabric-samples/test-network/organizations/fabric-ca/ordererOrg/tls-cert.pem: no such file or directory
+ set +x

Register orderer

+ fabric-ca-client register --caname ca-orderer --id.name orderer --id.secret ordererpw --id.type orderer --tls.certfiles /home/user/fabric-samples/test-network/organizations/fabric-ca/ordererOrg/tls-cert.pem
2020/08/26 19:04:25 [INFO] Configuration file location: /home/user/fabric-samples/test-network/organizations/ordererOrganizations/example.com/fabric-ca-client-config.yaml
2020/08/26 19:04:25 [INFO] TLS Enabled
Error: Failed to get client TLS config: Failed to read '/home/user/fabric-samples/test-network/organizations/fabric-ca/ordererOrg/tls-cert.pem': open /home/user/fabric-samples/test-network/organizations/fabric-ca/ordererOrg/tls-cert.pem: no such file or directory
+ set +x

Register the orderer admin

+ fabric-ca-client register --caname ca-orderer --id.name ordererAdmin --id.secret ordererAdminpw --id.type admin --tls.certfiles /home/user/fabric-samples/test-network/organizations/fabric-ca/ordererOrg/tls-cert.pem
2020/08/26 19:04:25 [INFO] Configuration file location: /home/user/fabric-samples/test-network/organizations/ordererOrganizations/example.com/fabric-ca-client-config.yaml
2020/08/26 19:04:25 [INFO] TLS Enabled
Error: Failed to get client TLS config: Failed to read '/home/user/fabric-samples/test-network/organizations/fabric-ca/ordererOrg/tls-cert.pem': open /home/user/fabric-samples/test-network/organizations/fabric-ca/ordererOrg/tls-cert.pem: no such file or directory
+ set +x

## Generate the orderer msp

+ fabric-ca-client enroll -u https://orderer:ordererpw@localhost:9054 --caname ca-orderer -M /home/user/fabric-samples/test-network/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/msp --csr.hosts orderer.example.com --csr.hosts localhost --tls.certfiles /home/user/fabric-samples/test-network/organizations/fabric-ca/ordererOrg/tls-cert.pem
2020/08/26 19:04:25 [INFO] TLS Enabled
Error: Failed to get client TLS config: Failed to read '/home/user/fabric-samples/test-network/organizations/fabric-ca/ordererOrg/tls-cert.pem': open /home/user/fabric-samples/test-network/organizations/fabric-ca/ordererOrg/tls-cert.pem: no such file or directory
+ set +x

## Generate the orderer-tls certificates

+ fabric-ca-client enroll -u https://orderer:ordererpw@localhost:9054 --caname ca-orderer -M /home/user/fabric-samples/test-network/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/tls --enrollment.profile tls --csr.hosts orderer.example.com --csr.hosts localhost --tls.certfiles /home/user/fabric-samples/test-network/organizations/fabric-ca/ordererOrg/tls-cert.pem
2020/08/26 19:04:26 [INFO] TLS Enabled
Error: Failed to get client TLS config: Failed to read '/home/user/fabric-samples/test-network/organizations/fabric-ca/ordererOrg/tls-cert.pem': open /home/user/fabric-samples/test-network/organizations/fabric-ca/ordererOrg/tls-cert.pem: no such file or directory
+ set +x
cp: cannot stat '/home/user/fabric-samples/test-network/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/tls/tlscacerts/*': No such file or directory
cp: cannot stat '/home/user/fabric-samples/test-network/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/tls/signcerts/*': No such file or directory
cp: cannot stat '/home/user/fabric-samples/test-network/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/tls/keystore/*': No such file or directory
cp: cannot stat '/home/user/fabric-samples/test-network/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/tls/tlscacerts/*': No such file or directory
cp: cannot stat '/home/user/fabric-samples/test-network/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/tls/tlscacerts/*': No such file or directory

## Generate the admin msp

+ fabric-ca-client enroll -u https://ordererAdmin:ordererAdminpw@localhost:9054 --caname ca-orderer -M /home/user/fabric-samples/test-network/organizations/ordererOrganizations/example.com/users/Admin@.../msp --tls.certfiles /home/user/fabric-samples/test-network/organizations/fabric-ca/ordererOrg/tls-cert.pem
2020/08/26 19:04:26 [INFO] TLS Enabled
Error: Failed to get client TLS config: Failed to read '/home/user/fabric-samples/test-network/organizations/fabric-ca/ordererOrg/tls-cert.pem': open /home/user/fabric-samples/test-network/organizations/fabric-ca/ordererOrg/tls-cert.pem: no such file or directory
+ set +x

Generate CCP files for Org1 and Org2
awk: fatal: cannot open file `organizations/peerOrganizations/org1.example.com/tlsca/tlsca.org1.example.com-cert.pem' for reading (No such file or directory)
awk: fatal: cannot open file `organizations/peerOrganizations/org1.example.com/ca/ca.org1.example.com-cert.pem' for reading (No such file or directory)
awk: fatal: cannot open file `organizations/peerOrganizations/org1.example.com/tlsca/tlsca.org1.example.com-cert.pem' for reading (No such file or directory)
awk: fatal: cannot open file `organizations/peerOrganizations/org1.example.com/ca/ca.org1.example.com-cert.pem' for reading (No such file or directory)
awk: fatal: cannot open file `organizations/peerOrganizations/org2.example.com/tlsca/tlsca.org2.example.com-cert.pem' for reading (No such file or directory)
awk: fatal: cannot open file `organizations/peerOrganizations/org2.example.com/ca/ca.org2.example.com-cert.pem' for reading (No such file or directory)
awk: fatal: cannot open file `organizations/peerOrganizations/org2.example.com/tlsca/tlsca.org2.example.com-cert.pem' for reading (No such file or directory)
awk: fatal: cannot open file `organizations/peerOrganizations/org2.example.com/ca/ca.org2.example.com-cert.pem' for reading (No such file or directory)
/home/user/fabric-samples/bin/configtxgen
######### Generating Orderer Genesis block ##############
+ configtxgen -profile TwoOrgsOrdererGenesis -channelID system-channel -outputBlock ./system-genesis-block/genesis.block
2020-08-26 19:04:26.173 UTC [common.tools.configtxgen] main -> INFO 001 Loading configuration
2020-08-26 19:04:26.199 UTC [common.tools.configtxgen.localconfig] completeInitialization -> INFO 002 orderer type: etcdraft
2020-08-26 19:04:26.199 UTC [common.tools.configtxgen.localconfig] completeInitialization -> INFO 003 Orderer.EtcdRaft.Options unset, setting to tick_interval:"500ms" election_tick:10 heartbeat_tick:1 max_inflight_blocks:5 snapshot_interval_size:16777216
2020-08-26 19:04:26.199 UTC [common.tools.configtxgen.localconfig] Load -> INFO 004 Loaded configuration: /home/user/fabric-samples/test-network/configtx/configtx.yaml
2020-08-26 19:04:26.199 UTC [common.tools.configtxgen] main -> FATA 005 Error on outputBlock: could not create bootstrapper: could not create channel group: could not create orderer group: cannot marshal metadata for orderer type etcdraft: cannot load client cert for consenter orderer.example.com:7050: open /home/user/fabric-samples/test-network/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/tls/server.crt: no such file or directory
+ res=1
+ set +x
Failed to generate orderer genesis block...


Tong Li
 

Looks like that the ports were fire-walled. Please see this doc https://github.com/litong01/minifabric/blob/master/docs/RunningOnFedora.md to get a solution on how to do this.

Thanks.

Tong Li
IBM Open Technology

mario.schwaiger---08/26/2020 03:13:52 PM---This is getting weirder and weirder. I removed everything, tried to start from a clean build. Got th

From: mario.schwaiger@...
To: fabric@...
Date: 08/26/2020 03:13 PM
Subject: [EXTERNAL] Re: [Hyperledger Fabric] Issues with docker in Fedora 30? #docker
Sent by: fabric@...





This is getting weirder and weirder. I removed everything, tried to start from a clean build. Got this. (I have to say the peer might be there because I tried docker run hyperledger/fabric-peer - this kind of worked. The docker didn't terminate, but just ran alone)

(base) [user@f30 fabcar]$ docker ps
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES
(base) [user@f30 fabcar]$ docker ps -a
CONTAINER ID        IMAGE                          COMMAND                  CREATED             STATUS                         PORTS               NAMES
3176e64e6867        hyperledger/fabric-ca:latest   "sh -c 'fabric-ca-se…"   21 seconds ago      Exited (1) 18 seconds ago                          ca_org2
1b2b4aab97fe        hyperledger/fabric-ca:latest   "sh -c 'fabric-ca-se…"   21 seconds ago      Exited (1) 18 seconds ago                          ca_org1
a526a72ac87d        hyperledger/fabric-ca:latest   "sh -c 'fabric-ca-se…"   21 seconds ago      Exited (1) 18 seconds ago                          ca_orderer
0c4437009820        ubuntu                         "bash"                   11 minutes ago      Exited (0) 11 minutes ago                          elated_swirles
3d15519bcfab        hello-world                    "/hello"                 12 minutes ago      Exited (0) 12 minutes ago                          naughty_borg
53a4e50a385d        hello-world                    "/hello"                 About an hour ago   Exited (0) About an hour ago                       blissful_shannon
15f638ad5f95        hyperledger/fabric-peer        "peer node start"        About an hour ago   Exited (0) About an hour ago                       distracted_jones


Here's the complete log. What could that be?
(base) [user@f30 fabcar]$ ./startFabric.sh javascript
/home/user/fabric-samples/test-network /home/user/fabric-samples/fabcar
Stopping network

Removing network net_test
WARNING: Network net_test not found.
Removing volume net_orderer.example.com
WARNING: Volume net_orderer.example.com not found.
Removing volume net_peer0.org1.example.com
WARNING: Volume net_peer0.org1.example.com not found.
Removing volume net_peer0.org2.example.com
WARNING: Volume net_peer0.org2.example.com not found.
Removing network net_test
WARNING: Network net_test not found.
Removing volume net_peer0.org3.example.com
WARNING: Volume net_peer0.org3.example.com not found.
---- No containers available for deletion ----
---- No images available for deletion ----
Creating channel 'mychannel'.

If network is not up, starting nodes with CLI timeout of '5' tries and CLI delay of '3' seconds and using database 'couchdb with crypto from 'Certificate Authorities'

Bringing up network
LOCAL_VERSION=2.2.0
DOCKER_IMAGE_VERSION=2.2.0
CA_LOCAL_VERSION=1.4.7
CA_DOCKER_IMAGE_VERSION=1.4.7

##########################################################
##### Generate certificates using Fabric CA's ############
##########################################################
Creating network "net_test" with the default driver
Creating ca_orderer ... done
Creating ca_org1    ... done
Creating ca_org2    ... done
##########################################################
############ Create Org1 Identities ######################
##########################################################

Enroll the CA admin

+ fabric-ca-client enroll -u
https://admin:adminpw@localhost:7054 --caname ca-org1 --tls.certfiles /home/user/fabric-samples/test-network/organizations/fabric-ca/org1/tls-cert.pem
2020/08/26 19:04:25 [INFO] Created a default configuration file at /home/user/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/fabric-ca-client-config.yaml
2020/08/26 19:04:25 [INFO] TLS Enabled
Error: Failed to get client TLS config: Failed to read '/home/user/fabric-samples/test-network/organizations/fabric-ca/org1/tls-cert.pem': open /home/user/fabric-samples/test-network/organizations/fabric-ca/org1/tls-cert.pem: no such file or directory
+ set +x

Register peer0

+ fabric-ca-client register --caname ca-org1 --id.name peer0 --id.secret peer0pw --id.type peer --tls.certfiles /home/user/fabric-samples/test-network/organizations/fabric-ca/org1/tls-cert.pem
2020/08/26 19:04:25 [INFO] Configuration file location: /home/user/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/fabric-ca-client-config.yaml
2020/08/26 19:04:25 [INFO] TLS Enabled
Error: Failed to get client TLS config: Failed to read '/home/user/fabric-samples/test-network/organizations/fabric-ca/org1/tls-cert.pem': open /home/user/fabric-samples/test-network/organizations/fabric-ca/org1/tls-cert.pem: no such file or directory
+ set +x

Register user

+ fabric-ca-client register --caname ca-org1 --id.name user1 --id.secret user1pw --id.type client --tls.certfiles /home/user/fabric-samples/test-network/organizations/fabric-ca/org1/tls-cert.pem
2020/08/26 19:04:25 [INFO] Configuration file location: /home/user/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/fabric-ca-client-config.yaml
2020/08/26 19:04:25 [INFO] TLS Enabled
Error: Failed to get client TLS config: Failed to read '/home/user/fabric-samples/test-network/organizations/fabric-ca/org1/tls-cert.pem': open /home/user/fabric-samples/test-network/organizations/fabric-ca/org1/tls-cert.pem: no such file or directory
+ set +x

Register the org admin

+ fabric-ca-client register --caname ca-org1 --id.name org1admin --id.secret org1adminpw --id.type admin --tls.certfiles /home/user/fabric-samples/test-network/organizations/fabric-ca/org1/tls-cert.pem
2020/08/26 19:04:25 [INFO] Configuration file location: /home/user/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/fabric-ca-client-config.yaml
2020/08/26 19:04:25 [INFO] TLS Enabled
Error: Failed to get client TLS config: Failed to read '/home/user/fabric-samples/test-network/organizations/fabric-ca/org1/tls-cert.pem': open /home/user/fabric-samples/test-network/organizations/fabric-ca/org1/tls-cert.pem: no such file or directory
+ set +x

## Generate the peer0 msp

+ fabric-ca-client enroll -u
https://peer0:peer0pw@localhost:7054 --caname ca-org1 -M /home/user/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/msp --csr.hosts peer0.org1.example.com --tls.certfiles /home/user/fabric-samples/test-network/organizations/fabric-ca/org1/tls-cert.pem
2020/08/26 19:04:25 [INFO] TLS Enabled
Error: Failed to get client TLS config: Failed to read '/home/user/fabric-samples/test-network/organizations/fabric-ca/org1/tls-cert.pem': open /home/user/fabric-samples/test-network/organizations/fabric-ca/org1/tls-cert.pem: no such file or directory
+ set +x

## Generate the peer0-tls certificates

+ fabric-ca-client enroll -u
https://peer0:peer0pw@localhost:7054 --caname ca-org1 -M /home/user/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls --enrollment.profile tls --csr.hosts peer0.org1.example.com --csr.hosts localhost --tls.certfiles /home/user/fabric-samples/test-network/organizations/fabric-ca/org1/tls-cert.pem
2020/08/26 19:04:25 [INFO] TLS Enabled
Error: Failed to get client TLS config: Failed to read '/home/user/fabric-samples/test-network/organizations/fabric-ca/org1/tls-cert.pem': open /home/user/fabric-samples/test-network/organizations/fabric-ca/org1/tls-cert.pem: no such file or directory
+ set +x
cp: cannot stat '/home/user/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/tlscacerts/*': No such file or directory
cp: cannot stat '/home/user/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/signcerts/*': No such file or directory
cp: cannot stat '/home/user/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/keystore/*': No such file or directory
cp: cannot stat '/home/user/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/tlscacerts/*': No such file or directory
cp: cannot stat '/home/user/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/tlscacerts/*': No such file or directory
cp: cannot stat '/home/user/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/msp/cacerts/*': No such file or directory

## Generate the user msp

+ fabric-ca-client enroll -u
https://user1:user1pw@localhost:7054 --caname ca-org1 -M /home/user/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/users/User1@.../msp --tls.certfiles /home/user/fabric-samples/test-network/organizations/fabric-ca/org1/tls-cert.pem
2020/08/26 19:04:25 [INFO] TLS Enabled
Error: Failed to get client TLS config: Failed to read '/home/user/fabric-samples/test-network/organizations/fabric-ca/org1/tls-cert.pem': open /home/user/fabric-samples/test-network/organizations/fabric-ca/org1/tls-cert.pem: no such file or directory
+ set +x

## Generate the org admin msp

+ fabric-ca-client enroll -u
https://org1admin:org1adminpw@localhost:7054 --caname ca-org1 -M /home/user/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/users/Admin@.../msp --tls.certfiles /home/user/fabric-samples/test-network/organizations/fabric-ca/org1/tls-cert.pem
2020/08/26 19:04:25 [INFO] TLS Enabled
Error: Failed to get client TLS config: Failed to read '/home/user/fabric-samples/test-network/organizations/fabric-ca/org1/tls-cert.pem': open /home/user/fabric-samples/test-network/organizations/fabric-ca/org1/tls-cert.pem: no such file or directory
+ set +x
##########################################################
############ Create Org2 Identities ######################
##########################################################

Enroll the CA admin

+ fabric-ca-client enroll -u
https://admin:adminpw@localhost:8054 --caname ca-org2 --tls.certfiles /home/user/fabric-samples/test-network/organizations/fabric-ca/org2/tls-cert.pem
2020/08/26 19:04:25 [INFO] Created a default configuration file at /home/user/fabric-samples/test-network/organizations/peerOrganizations/org2.example.com/fabric-ca-client-config.yaml
2020/08/26 19:04:25 [INFO] TLS Enabled
Error: Failed to get client TLS config: Failed to read '/home/user/fabric-samples/test-network/organizations/fabric-ca/org2/tls-cert.pem': open /home/user/fabric-samples/test-network/organizations/fabric-ca/org2/tls-cert.pem: no such file or directory
+ set +x

Register peer0

+ fabric-ca-client register --caname ca-org2 --id.name peer0 --id.secret peer0pw --id.type peer --tls.certfiles /home/user/fabric-samples/test-network/organizations/fabric-ca/org2/tls-cert.pem
2020/08/26 19:04:25 [INFO] Configuration file location: /home/user/fabric-samples/test-network/organizations/peerOrganizations/org2.example.com/fabric-ca-client-config.yaml
2020/08/26 19:04:25 [INFO] TLS Enabled
Error: Failed to get client TLS config: Failed to read '/home/user/fabric-samples/test-network/organizations/fabric-ca/org2/tls-cert.pem': open /home/user/fabric-samples/test-network/organizations/fabric-ca/org2/tls-cert.pem: no such file or directory
+ set +x

Register user

+ fabric-ca-client register --caname ca-org2 --id.name user1 --id.secret user1pw --id.type client --tls.certfiles /home/user/fabric-samples/test-network/organizations/fabric-ca/org2/tls-cert.pem
2020/08/26 19:04:25 [INFO] Configuration file location: /home/user/fabric-samples/test-network/organizations/peerOrganizations/org2.example.com/fabric-ca-client-config.yaml
2020/08/26 19:04:25 [INFO] TLS Enabled
Error: Failed to get client TLS config: Failed to read '/home/user/fabric-samples/test-network/organizations/fabric-ca/org2/tls-cert.pem': open /home/user/fabric-samples/test-network/organizations/fabric-ca/org2/tls-cert.pem: no such file or directory
+ set +x

Register the org admin

+ fabric-ca-client register --caname ca-org2 --id.name org2admin --id.secret org2adminpw --id.type admin --tls.certfiles /home/user/fabric-samples/test-network/organizations/fabric-ca/org2/tls-cert.pem
2020/08/26 19:04:25 [INFO] Configuration file location: /home/user/fabric-samples/test-network/organizations/peerOrganizations/org2.example.com/fabric-ca-client-config.yaml
2020/08/26 19:04:25 [INFO] TLS Enabled
Error: Failed to get client TLS config: Failed to read '/home/user/fabric-samples/test-network/organizations/fabric-ca/org2/tls-cert.pem': open /home/user/fabric-samples/test-network/organizations/fabric-ca/org2/tls-cert.pem: no such file or directory
+ set +x

## Generate the peer0 msp

+ fabric-ca-client enroll -u
https://peer0:peer0pw@localhost:8054 --caname ca-org2 -M /home/user/fabric-samples/test-network/organizations/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/msp --csr.hosts peer0.org2.example.com --tls.certfiles /home/user/fabric-samples/test-network/organizations/fabric-ca/org2/tls-cert.pem
2020/08/26 19:04:25 [INFO] TLS Enabled
Error: Failed to get client TLS config: Failed to read '/home/user/fabric-samples/test-network/organizations/fabric-ca/org2/tls-cert.pem': open /home/user/fabric-samples/test-network/organizations/fabric-ca/org2/tls-cert.pem: no such file or directory
+ set +x

## Generate the peer0-tls certificates

+ fabric-ca-client enroll -u
https://peer0:peer0pw@localhost:8054 --caname ca-org2 -M /home/user/fabric-samples/test-network/organizations/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls --enrollment.profile tls --csr.hosts peer0.org2.example.com --csr.hosts localhost --tls.certfiles /home/user/fabric-samples/test-network/organizations/fabric-ca/org2/tls-cert.pem
2020/08/26 19:04:25 [INFO] TLS Enabled
Error: Failed to get client TLS config: Failed to read '/home/user/fabric-samples/test-network/organizations/fabric-ca/org2/tls-cert.pem': open /home/user/fabric-samples/test-network/organizations/fabric-ca/org2/tls-cert.pem: no such file or directory
+ set +x
cp: cannot stat '/home/user/fabric-samples/test-network/organizations/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls/tlscacerts/*': No such file or directory
cp: cannot stat '/home/user/fabric-samples/test-network/organizations/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls/signcerts/*': No such file or directory
cp: cannot stat '/home/user/fabric-samples/test-network/organizations/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls/keystore/*': No such file or directory
cp: cannot stat '/home/user/fabric-samples/test-network/organizations/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls/tlscacerts/*': No such file or directory
cp: cannot stat '/home/user/fabric-samples/test-network/organizations/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls/tlscacerts/*': No such file or directory
cp: cannot stat '/home/user/fabric-samples/test-network/organizations/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/msp/cacerts/*': No such file or directory

## Generate the user msp

+ fabric-ca-client enroll -u
https://user1:user1pw@localhost:8054 --caname ca-org2 -M /home/user/fabric-samples/test-network/organizations/peerOrganizations/org2.example.com/users/User1@.../msp --tls.certfiles /home/user/fabric-samples/test-network/organizations/fabric-ca/org2/tls-cert.pem
2020/08/26 19:04:25 [INFO] TLS Enabled
Error: Failed to get client TLS config: Failed to read '/home/user/fabric-samples/test-network/organizations/fabric-ca/org2/tls-cert.pem': open /home/user/fabric-samples/test-network/organizations/fabric-ca/org2/tls-cert.pem: no such file or directory
+ set +x

## Generate the org admin msp

+ fabric-ca-client enroll -u
https://org2admin:org2adminpw@localhost:8054 --caname ca-org2 -M /home/user/fabric-samples/test-network/organizations/peerOrganizations/org2.example.com/users/Admin@.../msp --tls.certfiles /home/user/fabric-samples/test-network/organizations/fabric-ca/org2/tls-cert.pem
2020/08/26 19:04:25 [INFO] TLS Enabled
Error: Failed to get client TLS config: Failed to read '/home/user/fabric-samples/test-network/organizations/fabric-ca/org2/tls-cert.pem': open /home/user/fabric-samples/test-network/organizations/fabric-ca/org2/tls-cert.pem: no such file or directory
+ set +x
##########################################################
############ Create Orderer Org Identities ###############
##########################################################

Enroll the CA admin

+ fabric-ca-client enroll -u
https://admin:adminpw@localhost:9054 --caname ca-orderer --tls.certfiles /home/user/fabric-samples/test-network/organizations/fabric-ca/ordererOrg/tls-cert.pem
2020/08/26 19:04:25 [INFO] Created a default configuration file at /home/user/fabric-samples/test-network/organizations/ordererOrganizations/example.com/fabric-ca-client-config.yaml
2020/08/26 19:04:25 [INFO] TLS Enabled
Error: Failed to get client TLS config: Failed to read '/home/user/fabric-samples/test-network/organizations/fabric-ca/ordererOrg/tls-cert.pem': open /home/user/fabric-samples/test-network/organizations/fabric-ca/ordererOrg/tls-cert.pem: no such file or directory
+ set +x

Register orderer

+ fabric-ca-client register --caname ca-orderer --id.name orderer --id.secret ordererpw --id.type orderer --tls.certfiles /home/user/fabric-samples/test-network/organizations/fabric-ca/ordererOrg/tls-cert.pem
2020/08/26 19:04:25 [INFO] Configuration file location: /home/user/fabric-samples/test-network/organizations/ordererOrganizations/example.com/fabric-ca-client-config.yaml
2020/08/26 19:04:25 [INFO] TLS Enabled
Error: Failed to get client TLS config: Failed to read '/home/user/fabric-samples/test-network/organizations/fabric-ca/ordererOrg/tls-cert.pem': open /home/user/fabric-samples/test-network/organizations/fabric-ca/ordererOrg/tls-cert.pem: no such file or directory
+ set +x

Register the orderer admin

+ fabric-ca-client register --caname ca-orderer --id.name ordererAdmin --id.secret ordererAdminpw --id.type admin --tls.certfiles /home/user/fabric-samples/test-network/organizations/fabric-ca/ordererOrg/tls-cert.pem
2020/08/26 19:04:25 [INFO] Configuration file location: /home/user/fabric-samples/test-network/organizations/ordererOrganizations/example.com/fabric-ca-client-config.yaml
2020/08/26 19:04:25 [INFO] TLS Enabled
Error: Failed to get client TLS config: Failed to read '/home/user/fabric-samples/test-network/organizations/fabric-ca/ordererOrg/tls-cert.pem': open /home/user/fabric-samples/test-network/organizations/fabric-ca/ordererOrg/tls-cert.pem: no such file or directory
+ set +x

## Generate the orderer msp

+ fabric-ca-client enroll -u
https://orderer:ordererpw@localhost:9054 --caname ca-orderer -M /home/user/fabric-samples/test-network/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/msp --csr.hosts orderer.example.com --csr.hosts localhost --tls.certfiles /home/user/fabric-samples/test-network/organizations/fabric-ca/ordererOrg/tls-cert.pem
2020/08/26 19:04:25 [INFO] TLS Enabled
Error: Failed to get client TLS config: Failed to read '/home/user/fabric-samples/test-network/organizations/fabric-ca/ordererOrg/tls-cert.pem': open /home/user/fabric-samples/test-network/organizations/fabric-ca/ordererOrg/tls-cert.pem: no such file or directory
+ set +x

## Generate the orderer-tls certificates

+ fabric-ca-client enroll -u
https://orderer:ordererpw@localhost:9054 --caname ca-orderer -M /home/user/fabric-samples/test-network/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/tls --enrollment.profile tls --csr.hosts orderer.example.com --csr.hosts localhost --tls.certfiles /home/user/fabric-samples/test-network/organizations/fabric-ca/ordererOrg/tls-cert.pem
2020/08/26 19:04:26 [INFO] TLS Enabled
Error: Failed to get client TLS config: Failed to read '/home/user/fabric-samples/test-network/organizations/fabric-ca/ordererOrg/tls-cert.pem': open /home/user/fabric-samples/test-network/organizations/fabric-ca/ordererOrg/tls-cert.pem: no such file or directory
+ set +x
cp: cannot stat '/home/user/fabric-samples/test-network/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/tls/tlscacerts/*': No such file or directory
cp: cannot stat '/home/user/fabric-samples/test-network/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/tls/signcerts/*': No such file or directory
cp: cannot stat '/home/user/fabric-samples/test-network/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/tls/keystore/*': No such file or directory
cp: cannot stat '/home/user/fabric-samples/test-network/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/tls/tlscacerts/*': No such file or directory
cp: cannot stat '/home/user/fabric-samples/test-network/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/tls/tlscacerts/*': No such file or directory

## Generate the admin msp

+ fabric-ca-client enroll -u
https://ordererAdmin:ordererAdminpw@localhost:9054 --caname ca-orderer -M /home/user/fabric-samples/test-network/organizations/ordererOrganizations/example.com/users/Admin@.../msp --tls.certfiles /home/user/fabric-samples/test-network/organizations/fabric-ca/ordererOrg/tls-cert.pem
2020/08/26 19:04:26 [INFO] TLS Enabled
Error: Failed to get client TLS config: Failed to read '/home/user/fabric-samples/test-network/organizations/fabric-ca/ordererOrg/tls-cert.pem': open /home/user/fabric-samples/test-network/organizations/fabric-ca/ordererOrg/tls-cert.pem: no such file or directory
+ set +x

Generate CCP files for Org1 and Org2
awk: fatal: cannot open file `organizations/peerOrganizations/org1.example.com/tlsca/tlsca.org1.example.com-cert.pem' for reading (No such file or directory)
awk: fatal: cannot open file `organizations/peerOrganizations/org1.example.com/ca/ca.org1.example.com-cert.pem' for reading (No such file or directory)
awk: fatal: cannot open file `organizations/peerOrganizations/org1.example.com/tlsca/tlsca.org1.example.com-cert.pem' for reading (No such file or directory)
awk: fatal: cannot open file `organizations/peerOrganizations/org1.example.com/ca/ca.org1.example.com-cert.pem' for reading (No such file or directory)
awk: fatal: cannot open file `organizations/peerOrganizations/org2.example.com/tlsca/tlsca.org2.example.com-cert.pem' for reading (No such file or directory)
awk: fatal: cannot open file `organizations/peerOrganizations/org2.example.com/ca/ca.org2.example.com-cert.pem' for reading (No such file or directory)
awk: fatal: cannot open file `organizations/peerOrganizations/org2.example.com/tlsca/tlsca.org2.example.com-cert.pem' for reading (No such file or directory)
awk: fatal: cannot open file `organizations/peerOrganizations/org2.example.com/ca/ca.org2.example.com-cert.pem' for reading (No such file or directory)
/home/user/fabric-samples/bin/configtxgen
#########  Generating Orderer Genesis block ##############
+ configtxgen -profile TwoOrgsOrdererGenesis -channelID system-channel -outputBlock ./system-genesis-block/genesis.block
2020-08-26 19:04:26.173 UTC [common.tools.configtxgen] main -> INFO 001 Loading configuration
2020-08-26 19:04:26.199 UTC [common.tools.configtxgen.localconfig] completeInitialization -> INFO 002 orderer type: etcdraft
2020-08-26 19:04:26.199 UTC [common.tools.configtxgen.localconfig] completeInitialization -> INFO 003 Orderer.EtcdRaft.Options unset, setting to tick_interval:"500ms" election_tick:10 heartbeat_tick:1 max_inflight_blocks:5 snapshot_interval_size:16777216
2020-08-26 19:04:26.199 UTC [common.tools.configtxgen.localconfig] Load -> INFO 004 Loaded configuration: /home/user/fabric-samples/test-network/configtx/configtx.yaml
2020-08-26 19:04:26.199 UTC [common.tools.configtxgen] main -> FATA 005 Error on outputBlock: could not create bootstrapper: could not create channel group: could not create orderer group: cannot marshal metadata for orderer type etcdraft: cannot load client cert for consenter orderer.example.com:7050: open /home/user/fabric-samples/test-network/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/tls/server.crt: no such file or directory
+ res=1
+ set +x
Failed to generate orderer genesis block...





mario.schwaiger@...
 

I thought so too at first as I'm aware Fedora has a more restrictive security guideline. I installed firewalld and did according to the provided manual. It's different now, but still nothing works:
(base) [user@f30 fabric-samples]$ cd test-network/
(base) [user@f30 test-network]$ ./network.sh up
Starting nodes with CLI timeout of '5' tries and CLI delay of '3' seconds and using database 'leveldb'

LOCAL_VERSION=2.2.0
DOCKER_IMAGE_VERSION=2.2.0
Creating network "net_test" with the default driver
Creating volume "net_orderer.example.com" with default driver
Creating volume "net_peer0.org1.example.com" with default driver
Creating volume "net_peer0.org2.example.com" with default driver
Creating peer0.org2.example.com ... done
Creating orderer.example.com ... done
Creating peer0.org1.example.com ... done
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
eff58b51de11 hyperledger/fabric-peer:latest "peer node start" 2 seconds ago Up Less than a second 0.0.0.0:7051->7051/tcp peer0.org1.example.com
f610d2bca29e hyperledger/fabric-peer:latest "peer node start" 2 seconds ago Up Less than a second 7051/tcp, 0.0.0.0:9051->9051/tcp peer0.org2.example.com
0eb3c219d317 hyperledger/fabric-orderer:latest "orderer" 2 seconds ago Up Less than a second 0.0.0.0:7050->7050/tcp orderer.example.com
0c4437009820 ubuntu "bash" 15 hours ago Exited (0) 15 hours ago elated_swirles
3d15519bcfab hello-world "/hello" 15 hours ago Exited (0) 15 hours ago naughty_borg
53a4e50a385d hello-world "/hello" 16 hours ago Exited (0) 16 hours ago blissful_shannon
15f638ad5f95 hyperledger/fabric-peer "peer node start" 16 hours ago Exited (0) 16 hours ago distracted_jones
(base) [user@f30 test-network]$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
(base) [user@f30 test-network]$ cd ..
(base) [user@f30 fabric-samples]$ cd fabcar/
(base) [user@f30 fabcar]$ ./startFabric.sh javascript
/home/user/fabric-samples/test-network /home/user/fabric-samples/fabcar
Stopping network

Removing peer0.org1.example.com ... done
Removing peer0.org2.example.com ... done
Removing orderer.example.com ... done
Removing network net_test
Removing volume net_orderer.example.com
Removing volume net_peer0.org1.example.com
Removing volume net_peer0.org2.example.com
Removing network net_test
WARNING: Network net_test not found.
Removing volume net_peer0.org3.example.com
WARNING: Volume net_peer0.org3.example.com not found.
---- No containers available for deletion ----
---- No images available for deletion ----
(base) [user@f30 fabcar]$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES


email4tong@gmail.com
 

Try minifabric, only takes 5 minutes to know if it works for you or not.




On Thursday, August 27, 2020, 5:33 AM, mario.schwaiger@... wrote:

I thought so too at first as I'm aware Fedora has a more restrictive security guideline. I installed firewalld and did according to the provided manual. It's different now, but still nothing works:
(base) [user@f30 fabric-samples]$ cd test-network/
(base) [user@f30 test-network]$ ./network.sh up
Starting nodes with CLI timeout of '5' tries and CLI delay of '3' seconds and using database 'leveldb'

LOCAL_VERSION=2.2.0
DOCKER_IMAGE_VERSION=2.2.0
Creating network "net_test" with the default driver
Creating volume "net_orderer.example.com" with default driver
Creating volume "net_peer0.org1.example.com" with default driver
Creating volume "net_peer0.org2.example.com" with default driver
Creating peer0.org2.example.com ... done
Creating orderer.example.com ... done
Creating peer0.org1.example.com ... done
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
eff58b51de11 hyperledger/fabric-peer:latest "peer node start" 2 seconds ago Up Less than a second 0.0.0.0:7051->7051/tcp peer0.org1.example.com
f610d2bca29e hyperledger/fabric-peer:latest "peer node start" 2 seconds ago Up Less than a second 7051/tcp, 0.0.0.0:9051->9051/tcp peer0.org2.example.com
0eb3c219d317 hyperledger/fabric-orderer:latest "orderer" 2 seconds ago Up Less than a second 0.0.0.0:7050->7050/tcp orderer.example.com
0c4437009820 ubuntu "bash" 15 hours ago Exited (0) 15 hours ago elated_swirles
3d15519bcfab hello-world "/hello" 15 hours ago Exited (0) 15 hours ago naughty_borg
53a4e50a385d hello-world "/hello" 16 hours ago Exited (0) 16 hours ago blissful_shannon
15f638ad5f95 hyperledger/fabric-peer "peer node start" 16 hours ago Exited (0) 16 hours ago distracted_jones
(base) [user@f30 test-network]$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
(base) [user@f30 test-network]$ cd ..
(base) [user@f30 fabric-samples]$ cd fabcar/
(base) [user@f30 fabcar]$ ./startFabric.sh javascript
/home/user/fabric-samples/test-network /home/user/fabric-samples/fabcar
Stopping network

Removing peer0.org1.example.com ... done
Removing peer0.org2.example.com ... done
Removing orderer.example.com ... done
Removing network net_test
Removing volume net_orderer.example.com
Removing volume net_peer0.org1.example.com
Removing volume net_peer0.org2.example.com
Removing network net_test
WARNING: Network net_test not found.
Removing volume net_peer0.org3.example.com
WARNING: Volume net_peer0.org3.example.com not found.
---- No containers available for deletion ----
---- No images available for deletion ----
(base) [user@f30 fabcar]$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES


mario.schwaiger@...
 

Tried. Doesn't work:
(base) [user@f30 mywork]$ ./minifab up
Unable to find image 'hfrd/minifab:latest' locally
latest: Pulling from hfrd/minifab
df20fa9351a1: Already exists
16d327ff9a88: Pull complete
4b00023a922a: Pull complete
5d2a491bd934: Pull complete
603d27addd1e: Pull complete
Digest: sha256:0167daac05b1a55d187a287d88a3b053609921e15a4c8bdd8e0e4efc0b8e165e
Status: Downloaded newer image for hfrd/minifab:latest
cp: can't create 'vars/envsettings': Permission denied
scripts/mainfuncs.sh: line 84: ./vars/envsettings: No such file or directory
scripts/mainfuncs.sh: line 91: ./vars/envsettings: Permission denied
scripts/mainfuncs.sh: line 93: ./vars/envsettings: Permission denied
scripts/mainfuncs.sh: line 93: ./vars/envsettings: Permission denied
scripts/mainfuncs.sh: line 93: ./vars/envsettings: Permission denied
scripts/mainfuncs.sh: line 93: ./vars/envsettings: Permission denied
scripts/mainfuncs.sh: line 93: ./vars/envsettings: Permission denied
scripts/mainfuncs.sh: line 93: ./vars/envsettings: Permission denied
scripts/mainfuncs.sh: line 93: ./vars/envsettings: Permission denied
scripts/mainfuncs.sh: line 93: ./vars/envsettings: Permission denied
scripts/mainfuncs.sh: line 93: ./vars/envsettings: Permission denied
scripts/mainfuncs.sh: line 93: ./vars/envsettings: Permission denied
scripts/mainfuncs.sh: line 93: ./vars/envsettings: Permission denied
scripts/mainfuncs.sh: line 93: ./vars/envsettings: Permission denied
scripts/mainfuncs.sh: line 93: ./vars/envsettings: Permission denied
scripts/mainfuncs.sh: line 93: ./vars/envsettings: Permission denied
Minifab Execution Context:
FABRIC_RELEASE=
CHANNEL_NAME=
PEER_DATABASE_TYPE=
CHAINCODE_LANGUAGE=
CHAINCODE_NAME=
CHAINCODE_VERSION=
CHAINCODE_INIT_REQUIRED=
CHAINCODE_PARAMETERS=
CHAINCODE_PRIVATE=
CHAINCODE_POLICY=
TRANSIENT_DATA=
BLOCK_NUMBER=
EXPOSE_ENDPOINTS=
CURRENT_ORG=
HOST_ADDRESSES=192.168.121.76,172.20.8.243
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.39/containers/minifab/json: dial unix /var/run/docker.sock: connect: permission denied
WORKING_DIRECTORY:
cp: can't create directory '/home/vars/chaincode': Permission denied
[WARNING]: log file at /home/vars/ansible.log is not writeable and we cannot create it, aborting

..
# Remove approve and commit from the operation list if release is less than 2.0
The conditional check 'IMAGETAG is version('2.0', '<')' failed. The error was: Version comparison: 'LooseVersion' object has no attribute 'version'

The error appears to be in '/home/fabops.yaml': line 21, column 7, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:


- name: Remove approve and commit from the operation list if release is less than 2.0
^ here


# STATS *******************************************************
minifab: ok=2 failed=1

real 0m1.435s
user 0m1.295s
sys 0m0.152s
(base) [user@f30 mywork]$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
(base) [user@f30 mywork]$ sudo ./minifab up
[sudo] password for user:
cp: can't create 'vars/envsettings': Permission denied
scripts/mainfuncs.sh: line 84: ./vars/envsettings: No such file or directory
scripts/mainfuncs.sh: line 91: ./vars/envsettings: Permission denied
scripts/mainfuncs.sh: line 93: ./vars/envsettings: Permission denied
scripts/mainfuncs.sh: line 93: ./vars/envsettings: Permission denied
scripts/mainfuncs.sh: line 93: ./vars/envsettings: Permission denied
scripts/mainfuncs.sh: line 93: ./vars/envsettings: Permission denied
scripts/mainfuncs.sh: line 93: ./vars/envsettings: Permission denied
scripts/mainfuncs.sh: line 93: ./vars/envsettings: Permission denied
scripts/mainfuncs.sh: line 93: ./vars/envsettings: Permission denied
scripts/mainfuncs.sh: line 93: ./vars/envsettings: Permission denied
scripts/mainfuncs.sh: line 93: ./vars/envsettings: Permission denied
scripts/mainfuncs.sh: line 93: ./vars/envsettings: Permission denied
scripts/mainfuncs.sh: line 93: ./vars/envsettings: Permission denied
scripts/mainfuncs.sh: line 93: ./vars/envsettings: Permission denied
scripts/mainfuncs.sh: line 93: ./vars/envsettings: Permission denied
scripts/mainfuncs.sh: line 93: ./vars/envsettings: Permission denied
Minifab Execution Context:
FABRIC_RELEASE=
CHANNEL_NAME=
PEER_DATABASE_TYPE=
CHAINCODE_LANGUAGE=
CHAINCODE_NAME=
CHAINCODE_VERSION=
CHAINCODE_INIT_REQUIRED=
CHAINCODE_PARAMETERS=
CHAINCODE_PRIVATE=
CHAINCODE_POLICY=
TRANSIENT_DATA=
BLOCK_NUMBER=
EXPOSE_ENDPOINTS=
CURRENT_ORG=
HOST_ADDRESSES=192.168.121.76,172.20.8.243
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.39/containers/minifab/json: dial unix /var/run/docker.sock: connect: permission denied
WORKING_DIRECTORY:
cp: can't create directory '/home/vars/chaincode': Permission denied
[WARNING]: log file at /home/vars/ansible.log is not writeable and we cannot create it, aborting

..
# Remove approve and commit from the operation list if release is less than 2.0
The conditional check 'IMAGETAG is version('2.0', '<')' failed. The error was: Version comparison: 'LooseVersion' object has no attribute 'version'

The error appears to be in '/home/fabops.yaml': line 21, column 7, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:


- name: Remove approve and commit from the operation list if release is less than 2.0
^ here


# STATS *******************************************************
minifab: ok=2 failed=1

real 0m1.391s
user 0m1.249s
sys 0m0.149s
(base) [user@f30 mywork]$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES


Tong Li
 

Looks like that the user can not access docker endpoint and also cannot even create a file when the current directory is mounted to the container, you need to fix these permission errors first. I suspect the problem might be the same cause your other attempt also had errors. I would manually mount a directory to a container and exec into it and see why there were permission errors. If you give me a bit more details about your system such as OS version, how your docker was installed and its version, and what user you are using, I probably can dig it bit further.

Tong Li
IBM Open Technology

mario.schwaiger---08/27/2020 08:20:50 AM---Tried. Doesn't work: (base) [user@f30 mywork]$ ./minifab up

From: mario.schwaiger@...
To: fabric@...
Date: 08/27/2020 08:20 AM
Subject: [EXTERNAL] Re: [Hyperledger Fabric] Issues with docker in Fedora 30? #docker
Sent by: fabric@...





Tried. Doesn't work:
(base) [user@f30 mywork]$ ./minifab up
Unable to find image 'hfrd/minifab:latest' locally
latest: Pulling from hfrd/minifab
df20fa9351a1: Already exists
16d327ff9a88: Pull complete
4b00023a922a: Pull complete
5d2a491bd934: Pull complete
603d27addd1e: Pull complete
Digest: sha256:0167daac05b1a55d187a287d88a3b053609921e15a4c8bdd8e0e4efc0b8e165e
Status: Downloaded newer image for hfrd/minifab:latest
cp: can't create 'vars/envsettings': Permission denied
scripts/mainfuncs.sh: line 84: ./vars/envsettings: No such file or directory
scripts/mainfuncs.sh: line 91: ./vars/envsettings: Permission denied
scripts/mainfuncs.sh: line 93: ./vars/envsettings: Permission denied
scripts/mainfuncs.sh: line 93: ./vars/envsettings: Permission denied
scripts/mainfuncs.sh: line 93: ./vars/envsettings: Permission denied
scripts/mainfuncs.sh: line 93: ./vars/envsettings: Permission denied
scripts/mainfuncs.sh: line 93: ./vars/envsettings: Permission denied
scripts/mainfuncs.sh: line 93: ./vars/envsettings: Permission denied
scripts/mainfuncs.sh: line 93: ./vars/envsettings: Permission denied
scripts/mainfuncs.sh: line 93: ./vars/envsettings: Permission denied
scripts/mainfuncs.sh: line 93: ./vars/envsettings: Permission denied
scripts/mainfuncs.sh: line 93: ./vars/envsettings: Permission denied
scripts/mainfuncs.sh: line 93: ./vars/envsettings: Permission denied
scripts/mainfuncs.sh: line 93: ./vars/envsettings: Permission denied
scripts/mainfuncs.sh: line 93: ./vars/envsettings: Permission denied
scripts/mainfuncs.sh: line 93: ./vars/envsettings: Permission denied
Minifab Execution Context:
   FABRIC_RELEASE=
   CHANNEL_NAME=
   PEER_DATABASE_TYPE=
   CHAINCODE_LANGUAGE=
   CHAINCODE_NAME=
   CHAINCODE_VERSION=
   CHAINCODE_INIT_REQUIRED=
   CHAINCODE_PARAMETERS=
   CHAINCODE_PRIVATE=
   CHAINCODE_POLICY=
   TRANSIENT_DATA=
   BLOCK_NUMBER=
   EXPOSE_ENDPOINTS=
   CURRENT_ORG=
   HOST_ADDRESSES=192.168.121.76,172.20.8.243
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get
http://%2Fvar%2Frun%2Fdocker.sock/v1.39/containers/minifab/json: dial unix /var/run/docker.sock: connect: permission denied
   WORKING_DIRECTORY:
cp: can't create directory '/home/vars/chaincode': Permission denied
[WARNING]: log file at /home/vars/ansible.log is not writeable and we cannot create it, aborting

..
# Remove approve and commit from the operation list if release is less than 2.0
 The conditional check 'IMAGETAG is version('2.0', '<')' failed. The error was: Version comparison: 'LooseVersion' object has no attribute 'version'
 
 The error appears to be in '/home/fabops.yaml': line 21, column 7, but may
 be elsewhere in the file depending on the exact syntax problem.
 
 The offending line appears to be:
 
 
     - name: Remove approve and commit from the operation list if release is less than 2.0
       ^ here
 

# STATS *******************************************************
minifab: ok=2 failed=1

real 0m1.435s
user 0m1.295s
sys 0m0.152s
(base) [user@f30 mywork]$ docker ps
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES
(base) [user@f30 mywork]$ sudo ./minifab up
[sudo] password for user:
cp: can't create 'vars/envsettings': Permission denied
scripts/mainfuncs.sh: line 84: ./vars/envsettings: No such file or directory
scripts/mainfuncs.sh: line 91: ./vars/envsettings: Permission denied
scripts/mainfuncs.sh: line 93: ./vars/envsettings: Permission denied
scripts/mainfuncs.sh: line 93: ./vars/envsettings: Permission denied
scripts/mainfuncs.sh: line 93: ./vars/envsettings: Permission denied
scripts/mainfuncs.sh: line 93: ./vars/envsettings: Permission denied
scripts/mainfuncs.sh: line 93: ./vars/envsettings: Permission denied
scripts/mainfuncs.sh: line 93: ./vars/envsettings: Permission denied
scripts/mainfuncs.sh: line 93: ./vars/envsettings: Permission denied
scripts/mainfuncs.sh: line 93: ./vars/envsettings: Permission denied
scripts/mainfuncs.sh: line 93: ./vars/envsettings: Permission denied
scripts/mainfuncs.sh: line 93: ./vars/envsettings: Permission denied
scripts/mainfuncs.sh: line 93: ./vars/envsettings: Permission denied
scripts/mainfuncs.sh: line 93: ./vars/envsettings: Permission denied
scripts/mainfuncs.sh: line 93: ./vars/envsettings: Permission denied
scripts/mainfuncs.sh: line 93: ./vars/envsettings: Permission denied
Minifab Execution Context:
   FABRIC_RELEASE=
   CHANNEL_NAME=
   PEER_DATABASE_TYPE=
   CHAINCODE_LANGUAGE=
   CHAINCODE_NAME=
   CHAINCODE_VERSION=
   CHAINCODE_INIT_REQUIRED=
   CHAINCODE_PARAMETERS=
   CHAINCODE_PRIVATE=
   CHAINCODE_POLICY=
   TRANSIENT_DATA=
   BLOCK_NUMBER=
   EXPOSE_ENDPOINTS=
   CURRENT_ORG=
   HOST_ADDRESSES=192.168.121.76,172.20.8.243
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get
http://%2Fvar%2Frun%2Fdocker.sock/v1.39/containers/minifab/json: dial unix /var/run/docker.sock: connect: permission denied
   WORKING_DIRECTORY:
cp: can't create directory '/home/vars/chaincode': Permission denied
[WARNING]: log file at /home/vars/ansible.log is not writeable and we cannot create it, aborting

..
# Remove approve and commit from the operation list if release is less than 2.0
 The conditional check 'IMAGETAG is version('2.0', '<')' failed. The error was: Version comparison: 'LooseVersion' object has no attribute 'version'
 
 The error appears to be in '/home/fabops.yaml': line 21, column 7, but may
 be elsewhere in the file depending on the exact syntax problem.
 
 The offending line appears to be:
 
 
     - name: Remove approve and commit from the operation list if release is less than 2.0
       ^ here
 

# STATS *******************************************************
minifab: ok=2 failed=1

real 0m1.391s
user 0m1.249s
sys 0m0.149s
(base) [user@f30 mywork]$ docker ps
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES





mario.schwaiger@...
 

But it's not that it won't work at all:

$ docker run --rm -it alpine:latest /bin/sh
Unable to find image 'alpine:latest' locally
latest: Pulling from library/alpine
df20fa9351a1: Already exists
Digest: sha256:185518070891758909c9f839cf4ca393ee977ac378609f700f60a771a2dfe321
Status: Downloaded newer image for alpine:latest
/ # ping www.google.com
PING www.google.com (172.217.23.228): 56 data bytes
64 bytes from 172.217.23.228: seq=0 ttl=116 time=12.889 ms
64 bytes from 172.217.23.228: seq=1 ttl=116 time=12.600 ms
^C
--- www.google.com ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max = 12.600/12.744/12.889 ms
/ #


mario.schwaiger@...
 

Looks like that the user can not access docker endpoint and also cannot even create a file when the current directory is mounted to the container, you need to fix these permission errors first.
I already assumed something like this, so I started it as root. It's weirdly causing very similar issues. In my opinion it's more a Fedora/Docker issue and not so much related to permissions. I have encountered other strange behaviours when you try to mount something into a Docker under Fedora. See the appendix to this reply. I'm getting different errors when I remove all Hyperledger-Images and try to start the test-network.
I suspect the problem might be the same cause your other attempt also had errors. I would manually mount a directory to a container and exec into it and see why there were permission errors. If you give me a bit more details about your system such as OS version, how your docker was installed and its version, and what user you are using, I probably can dig it bit further.
This is a Fedora VM (30). The Docker is installed according to the very basic tutorial: https://docs.docker.com/engine/install/fedora/
Firewall-related I'm not very skilled, so I tried to allow as much as possible. No change. Also, as alpine can ping Google I'm in the opinion it's not a firewall-issue

Appendix when running test-network up:
#########  Generating Orderer Genesis block ##############
+ configtxgen -profile TwoOrgsOrdererGenesis -channelID system-channel -outputBlock ./system-genesis-block/genesis.block
2020-08-27 12:59:35.059 UTC [common.tools.configtxgen] main -> INFO 001 Loading configuration
2020-08-27 12:59:35.085 UTC [common.tools.configtxgen.localconfig] completeInitialization -> INFO 002 orderer type: etcdraft
2020-08-27 12:59:35.085 UTC [common.tools.configtxgen.localconfig] completeInitialization -> INFO 003 Orderer.EtcdRaft.Options unset, setting to tick_interval:"500ms" election_tick:10 heartbeat_tick:1 max_inflight_blocks:5 snapshot_interval_size:16777216
2020-08-27 12:59:35.085 UTC [common.tools.configtxgen.localconfig] Load -> INFO 004 Loaded configuration: /home/user/fabric-samples/test-network/configtx/configtx.yaml
2020-08-27 12:59:35.087 UTC [common.tools.configtxgen] doOutputBlock -> INFO 005 Generating genesis block
2020-08-27 12:59:35.087 UTC [common.tools.configtxgen] doOutputBlock -> INFO 006 Writing genesis block
+ res=0
Recreating orderer.example.com ... error
Recreating peer0.org1.example.com ...
Recreating peer0.org2.example.com ...

ERROR: for orderer.example.com Cannot start service orderer.example.com: b'OCI runtime create failed: container_linux.go:349: starting container process caused "process_linux.go:449: container init caused \\"rootfs_linux.go:58: mounting \\\\\\"/home/user/fabric-samples/test-network/system-genesis-block/genesis.block\\\\\\" to rootfs \\\\\\"/var/lib/docker/overlay2/ccd7adec94c0fc9eb1b444e89b0ca1b5181135ad7f1b958277f8371d33168052/merged\\\\\\" at \\\\\\"/var/lib/docker/overlay2/ccd7adec94c0fc9eb1b444e89b0ca1b5181135ad7f1b958277f8371Recreating peer0.org1.example.com ... done
Recreating peer0.org2.example.com ... done

ERROR: for orderer.example.com Cannot start service orderer.example.com: b'OCI runtime create failed: container_linux.go:349: starting container process caused "process_linux.go:449: container init caused \\"rootfs_linux.go:58: mounting \\\\\\"/home/user/fabric-samples/test-network/system-genesis-block/genesis.block\\\\\\" to rootfs \\\\\\"/var/lib/docker/overlay2/ccd7adec94c0fc9eb1b444e89b0ca1b5181135ad7f1b958277f8371d33168052/merged\\\\\\" at \\\\\\"/var/lib/docker/overlay2/ccd7adec94c0fc9eb1b444e89b0ca1b5181135ad7f1b958277f8371d33168052/merged/var/hyperledger/orderer/orderer.genesis.block\\\\\\" caused \\\\\\"not a directory\\\\\\"\\"": unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type'
ERROR: Encountered errors while bringing up the project.


Tong Li
 

traffic can go out out does not mean that traffic can come in, so ping google does not really mean your necessary ports are open.
as I have indicated earlier in this doc, https://github.com/litong01/minifabric/blob/master/docs/RunningOnFedora.md, you can do first 2 steps to open up ports to solve firewall related issues.

Tong Li
IBM Open Technology

mario.schwaiger---08/27/2020 09:25:13 AM---> > Looks like that the user can not access docker endpoint and also cannot

From: mario.schwaiger@...
To: fabric@...
Date: 08/27/2020 09:25 AM
Subject: [EXTERNAL] Re: [Hyperledger Fabric] Issues with docker in Fedora 30? #docker
Sent by: fabric@...




      Looks like that the user can not access docker endpoint and also cannot even create a file when the current directory is mounted to the container, you need to fix these permission errors first.
I already assumed something like this, so I started it as root. It's weirdly causing very similar issues. In my opinion it's more a Fedora/Docker issue and not so much related to permissions. I have encountered other strange behaviours when you try to mount something into a Docker under Fedora. See the appendix to this reply. I'm getting different errors when I remove all Hyperledger-Images and try to start the test-network.
      I suspect the problem might be the same cause your other attempt also had errors. I would manually mount a directory to a container and exec into it and see why there were permission errors. If you give me a bit more details about your system such as OS version, how your docker was installed and its version, and what user you are using, I probably can dig it bit further.
This is a Fedora VM (30). The Docker is installed according to the very basic tutorial: https://docs.docker.com/engine/install/fedora/
Firewall-related I'm not very skilled, so I tried to allow as much as possible. No change. Also, as alpine can ping Google I'm in the opinion it's not a firewall-issue

Appendix when running test-network up:
#########  Generating Orderer Genesis block ##############
+ configtxgen -profile TwoOrgsOrdererGenesis -channelID system-channel -outputBlock ./system-genesis-block/genesis.block
2020-08-27 12:59:35.059 UTC [common.tools.configtxgen] main -> INFO 001 Loading configuration
2020-08-27 12:59:35.085 UTC [common.tools.configtxgen.localconfig] completeInitialization -> INFO 002 orderer type: etcdraft
2020-08-27 12:59:35.085 UTC [common.tools.configtxgen.localconfig] completeInitialization -> INFO 003 Orderer.EtcdRaft.Options unset, setting to tick_interval:"500ms" election_tick:10 heartbeat_tick:1 max_inflight_blocks:5 snapshot_interval_size:16777216
2020-08-27 12:59:35.085 UTC [common.tools.configtxgen.localconfig] Load -> INFO 004 Loaded configuration: /home/user/fabric-samples/test-network/configtx/configtx.yaml
2020-08-27 12:59:35.087 UTC [common.tools.configtxgen] doOutputBlock -> INFO 005 Generating genesis block
2020-08-27 12:59:35.087 UTC [common.tools.configtxgen] doOutputBlock -> INFO 006 Writing genesis block
+ res=0
Recreating orderer.example.com    ... error
Recreating peer0.org1.example.com ...
Recreating peer0.org2.example.com ...

ERROR: for orderer.example.com  Cannot start service orderer.example.com: b'OCI runtime create failed: container_linux.go:349: starting container process caused "process_linux.go:449: container init caused \\"rootfs_linux.go:58: mounting \\\\\\"/home/user/fabric-samples/test-network/system-genesis-block/genesis.block\\\\\\" to rootfs \\\\\\"/var/lib/docker/overlay2/ccd7adec94c0fc9eb1b444e89b0ca1b5181135ad7f1b958277f8371d33168052/merged\\\\\\" at \\\\\\"/var/lib/docker/overlay2/ccd7adec94c0fc9eb1b444e89b0ca1b5181135ad7f1b958277f8371Recreating peer0.org1.example.com ... done
Recreating peer0.org2.example.com ... done

ERROR: for orderer.example.com  Cannot start service orderer.example.com: b'OCI runtime create failed: container_linux.go:349: starting container process caused "process_linux.go:449: container init caused \\"rootfs_linux.go:58: mounting \\\\\\"/home/user/fabric-samples/test-network/system-genesis-block/genesis.block\\\\\\" to rootfs \\\\\\"/var/lib/docker/overlay2/ccd7adec94c0fc9eb1b444e89b0ca1b5181135ad7f1b958277f8371d33168052/merged\\\\\\" at \\\\\\"/var/lib/docker/overlay2/ccd7adec94c0fc9eb1b444e89b0ca1b5181135ad7f1b958277f8371d33168052/merged/var/hyperledger/orderer/orderer.genesis.block\\\\\\" caused \\\\\\"not a directory\\\\\\"\\"": unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type'
ERROR: Encountered errors while bringing up the project.