Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hi..Getting issue when instantiating the chaincode.... #1

Open
will-hu-0 opened this issue Apr 12, 2020 · 1 comment
Open

Hi..Getting issue when instantiating the chaincode.... #1

will-hu-0 opened this issue Apr 12, 2020 · 1 comment

Comments

@will-hu-0
Copy link

Hi mate,

Thanks for the nice doco for running fabric onto k8s..However I am getting issue during instantiating the chaincode (all the steps before were running well)

Error: could not assemble transaction, err proposal response was not successful, error code 500, 
msg error starting container: error starting container: cannot connect to Docker endpoint

Here is what on my Ubuntu 19.

Pods info under fabrick8s

NAMESPACE              NAME                                         READY   STATUS    RESTARTS   AGE
fabrick8s              cli-78c4cd586d-29flc                         1/1     Running   0          5m21s
fabrick8s              docker-dind-79dbdfb6d5-g6vwc                 1/1     Running   0          5m21s
fabrick8s              orderer0-orgorderer1-56779fc598-gxn84        1/1     Running   0          5m21s
fabrick8s              peer0-org1-bfb86d789-gnvg8                   1/1     Running   0          5m21s

Deployments info under fabrick8s

NAMESPACE              NAME                        READY   UP-TO-DATE   AVAILABLE   AGE
fabrick8s              cli                         1/1     1            1           7m22s
fabrick8s              docker-dind                 1/1     1            1           7m22s
fabrick8s              orderer0-orgorderer1        1/1     1            1           7m22s
fabrick8s              peer0-org1                  1/1     1            1           7m22s

NO idea how to handle this...Thanks.

@will-hu-0
Copy link
Author

will-hu-0 commented Apr 12, 2020

From the docker log for docker-dind conatiner, some interesting logs:

2020-04-12 01:08:37.483 CDT [dockercontroller] createContainer -> DEBU 41b create container imageID=nid1-peer0-org1-rtrcc-1.0-55e34d22fcce37e8f412e43c176278b87d55eca6b79774f54d0a7cdfa8ff22ec containerID=nid1-peer0-org1-rtrcc-1.0
2020-04-12 01:08:37.484 CDT [dockercontroller] getDockerHostConfig -> DEBU 41c docker container hostconfig NetworkMode: host
2020-04-12 01:08:37.486 CDT [dockercontroller] Start -> ERRO 41d create container failed: cannot connect to Docker endpoint imageName=nid1-peer0-org1-rtrcc-1.0-55e34d22fcce37e8f412e43c176278b87d55eca6b79774f54d0a7cdfa8ff22ec containerName=nid1-peer0-org1-rtrcc-1.0
2020-04-12 01:08:37.486 CDT [container] unlockContainer -> DEBU 41e container lock deleted(rtrcc-1.0)
2020-04-12 01:08:37.486 CDT [chaincode] Launch -> DEBU 41f stopping due to error while launching: cannot connect to Docker endpoint
error starting container
error starting container
2020-04-12 01:08:37.486 CDT [container] lockContainer -> DEBU 420 waiting for container(rtrcc-1.0) lock
2020-04-12 01:08:37.486 CDT [container] lockContainer -> DEBU 421 got container (rtrcc-1.0) lock
2020-04-12 01:08:37.486 CDT [dockercontroller] stopInternal -> DEBU 422 stopping container id=nid1-peer0-org1-rtrcc-1.0
2020-04-12 01:08:37.487 CDT [dockercontroller] stopInternal -> DEBU 423 stop container result error="cannot connect to Docker endpoint"
2020-04-12 01:08:37.487 CDT [dockercontroller] stopInternal -> DEBU 424 killing container id=nid1-peer0-org1-rtrcc-1.0
2020-04-12 01:08:37.487 CDT [dockercontroller] stopInternal -> DEBU 425 kill container result id=nid1-peer0-org1-rtrcc-1.0 error="cannot connect to Docker endpoint"
2020-04-12 01:08:37.487 CDT [dockercontroller] stopInternal -> DEBU 426 removing container id=nid1-peer0-org1-rtrcc-1.0
2020-04-12 01:08:37.488 CDT [dockercontroller] stopInternal -> DEBU 427 remove container result id=nid1-peer0-org1-rtrcc-1.0 error="cannot connect to Docker endpoint"
2020-04-12 01:08:37.488 CDT [container] unlockContainer -> DEBU 428 container lock deleted(rtrcc-1.0)
2020-04-12 01:08:37.488 CDT [chaincode] Launch -> DEBU 429 stop failed: cannot connect to Docker endpoint
error stopping container
2020-04-12 01:08:37.488 CDT [chaincode] Launch -> DEBU 42a launch complete
2020-04-12 01:08:37.488 CDT [chaincode] Deregister -> DEBU 42b deregister handler: rtrcc:1.0
2020-04-12 01:08:37.488 CDT [endorser] callChaincode -> INFO 42c [rtrchannel01][05c3dd34] Exit chaincode: name:"lscc"  (9ms)
2020-04-12 01:08:37.488 CDT [endorser] SimulateProposal -> ERRO 42d [rtrchannel01][05c3dd34] failed to invoke chaincode name:"lscc" , error: cannot connect to Docker endpoint
error starting container
error starting container
2020-04-12 01:08:37.488 CDT [endorser] SimulateProposal -> DEBU 42e [rtrchannel01][05c3dd34] Exit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant