Skip to content
This repository has been archived by the owner on Jan 31, 2023. It is now read-only.

Failed to start 1 Org Local Fabric: Error: Environment failed to become available. Please check the Docker container logs for more details. #3037

Closed
charishnaidu opened this issue Jun 22, 2021 · 2 comments

Comments

@charishnaidu
Copy link

[6/22/2021 12:13:09 PM] [INFO] connecting to fabric environment
[6/22/2021 12:13:09 PM] [INFO] startFabricRuntime
[6/22/2021 12:13:09 PM] [INFO] CUSTOM_IMAGE=$@
[6/22/2021 12:13:09 PM] [INFO] if [ -z "$CUSTOM_IMAGE" ]
[6/22/2021 12:13:09 PM] [INFO] then
[6/22/2021 12:13:09 PM] [INFO] START_IMAGE="ibmcom/ibp-microfab:0.0.11"
[6/22/2021 12:13:09 PM] [INFO] else
[6/22/2021 12:13:09 PM] [INFO] START_IMAGE=$CUSTOM_IMAGE
[6/22/2021 12:13:09 PM] [INFO] fi
[6/22/2021 12:13:09 PM] [INFO] echo "Using image: $START_IMAGE"
[6/22/2021 12:13:09 PM] [INFO] CONTAINER=$(docker ps -f label=fabric-environment-name="1 Org Local Fabric Microfab" -q -a)
[6/22/2021 12:13:09 PM] [INFO] Using image: ibmcom/ibp-microfab:0.0.11
[6/22/2021 12:13:09 PM] [INFO] if [ -z "$CONTAINER" ]
[6/22/2021 12:13:09 PM] [INFO] then
[6/22/2021 12:13:09 PM] [INFO] export MICROFAB_CONFIG='{"port":8080, "endorsing_organizations": [{"name": "Org1"}],"channels": [{"name": "mychannel","endorsing_organizations": ["Org1"]}]}'
[6/22/2021 12:13:09 PM] [INFO] docker run -e MICROFAB_CONFIG --label fabric-environment-name="1 Org Local Fabric Microfab" -d -p 8080:8080 $START_IMAGE
[6/22/2021 12:13:09 PM] [INFO] else
[6/22/2021 12:13:09 PM] [INFO] docker start ${CONTAINER}
[6/22/2021 12:13:09 PM] [INFO] fi
[6/22/2021 12:13:09 PM] [INFO] 1a310bf158bf61fdb70d36582b3b737d33b5ca63e4c8f0fb1c39595e1d0e4756
[6/22/2021 12:13:10 PM] [INFO] sleep 2
[6/22/2021 12:13:12 PM] [INFO] exit 0
[6/22/2021 12:13:33 PM] [ERROR] Failed to start 1 Org Local Fabric: Error: Environment failed to become available. Please check the Docker container logs for more details.

This is what I am getting in the output when I tried connecting to 1 Org Local Fabric.. I also checked the issue #3006 but there s no fix for the issue.

Saw this comment on the issue page: Just noticed "docker is not recognized" in your terminal. Do you have Docker installed and available on your PATH?

Even I am newbie to this, can you please tell me what do you mean by available on your path?

@charishnaidu
Copy link
Author

Attaching the docker logs
docker_logs.txt

@davidkel
Copy link

@charishnaidu you are probably hitting this problem here
#2878
where you can't use the external service nip.io required for microfab within the vscode extension

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

No branches or pull requests

3 participants