hyperledger / fabric-samples

Samples for Hyperledger Fabric
https://wiki.hyperledger.org/display/fabric
Apache License 2.0
2.81k stars 3.4k forks source link

test-network-k8s - tcp [::1]:443: connect: connection refused #1160

Closed marishlucas closed 7 months ago

marishlucas commented 11 months ago

Trying to run the scripts from the docs, i get the following error after starting the network:

Using the Rancher configuration

./network up
Launching network "test-network":
✅ - Creating namespace "test-network" ...
✅ - Provisioning volume storage ...
✅ - Creating fabric config maps ...
✅ - Initializing TLS certificate Issuers ...
✅ - Launching Fabric CAs ...
⚠️  - Enrolling bootstrap ECert CA users ...

Error: POST failure of request: POST https://org0-ca.localho.st:443/enroll {"hosts":["myhost"],"certificate_request":"-----BEGIN CERTIFICATE REQUEST----- xxx -----END CERTIFICATE REQUEST-----\n","profile":"","crl_override":"","label":"","NotBefore":"0001-01-01T00:00:00Z","NotAfter":"0001-01-01T00:00:00Z","ReturnPrecert":false,"CAName":""}: Post "https://org0-ca.localho.st:443/enroll": dial tcp [::1]:443: connect: connection refused

gmisiakoulis commented 9 months ago

Probably, you need to disable IPv6, by issuing these commands:

    sudo sysctl -w net.ipv6.conf.all.disable_ipv6=1
    sudo sysctl -w net.ipv6.conf.default.disable_ipv6=1
lonelymj commented 7 months ago

image k8s must be "Disable Traefik" and "Select the dockerd (moby) container runtime"