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

Failed to pass "Fabric Test Network" tutorial #1533

Open
yizhihuaqi opened this issue Jun 22, 2024 · 5 comments
Open

Failed to pass "Fabric Test Network" tutorial #1533

yizhihuaqi opened this issue Jun 22, 2024 · 5 comments

Comments

@yizhihuaqi
Copy link

yizhihuaqi commented Jun 22, 2024

When I executed

ff init fabric test1 \
  --ccp "${HOME}/org1_ccp.yml" \
  --msp "organizations" \
  --ccp "${HOME}/org2_ccp.yml" \
  --msp "organizations" \
  --channel mychannel \
  --chaincode firefly

, it reported error.

Error: no version for docker-compose has been detected

so the following operation are not successful.
After I modified the "~/.firefly/stacks/test1/docker-compose.override.yml" file, I executed

ff start test1 -b -v

and the error was as follows:

ERROR: for firefly_core_0  Container "64dc5b6558c7" is unhealthy.
ERROR: for firefly_core_1  Container "de81c4e47781" is unhealthy.
Encountered errors while bringing up the project.

Then I executed

docker logs 64dc5b6558c7

,it prints:

Copyright (C) 2021 Kaleido
Licensed under the Apache License, Version 2.0
Version:  (Build Date: 2024-01-25T22:47:36Z)

time="2024-06-22T09:29:21Z" level=info msg="Can't read config: read /fabconnect/fabconnect.yaml: is a directory, will rely on environment variables and command line arguments for required configurations\n"
Error: Must provide REST Gateway client configuration path

and I find "~/.firefly/stacks/test1/runtime/blockchain/fabconnect.yaml" is a empty directory rather than a file.
I haven't solved this problem yet.
Below is my docker and docker compose version.

Docker version 26.1.4, build 5650f9b
Docker Compose version v2.28.0
@EnriqueL8
Copy link
Contributor

Thanks for raising this - I have seen someone on Discord call out the same problem that the fabconnect.yaml becomes a directory instead of a file!

A few things that would help me:

@yizhihuaqi
Copy link
Author

@EnriqueL8 Thank you for your reply.
There are details you mentioned:

  1. The OS version is:
    Ubuntu 20.04.6 LTS, Linux 6.1.84
  2. The Cli permissions are:
    -rwxrwxr-x 1 daqi daqi 30042818 Jun 23 09:04 ff
  3. I saw the PR you mentioned, then manually compiled the latest version of cli, and installed a docker-compose, but still encountered this problem. I wonder if there's something else wrong or I did some wrong operations.
    Thanks again.

@EnriqueL8
Copy link
Contributor

@yizhihuaqi Can you clear the stack and recreate it now that you fixed the docker part? It might have created the file originally and then a second init might have a caused other problems with the filesystem

@yizhihuaqi
Copy link
Author

@EnriqueL8 I deleted all stacks and the .firefly directory, then init ff again and still got the error.
Error: no version for docker-compose has been detected

@EnriqueL8
Copy link
Contributor

Interesting - I just fixed a bug that was swallowing errors through that docker-compose error! Do you mind trying again with a latest build?

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

2 participants