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

Accio Project Initialization Fails on x86 MacOS Environment #371

Closed
douenergy opened this issue Aug 16, 2023 · 6 comments
Closed

Accio Project Initialization Fails on x86 MacOS Environment #371

douenergy opened this issue Aug 16, 2023 · 6 comments

Comments

@douenergy
Copy link

douenergy commented Aug 16, 2023

I follow the quick-start page
but stuck on can't find a suitable configuration file in this directory or any parent: not found

I have successfully run accio hello ?

image

the following command accio cli keep failing.

can't find a suitable configuration file in this directory or any parent: not found

Error  Command failed: docker compose --project-name accio exec engine bash launch-cli.sh

BTW i download the binary from accio.osx.intel.tar.gz

@goldmedal
Copy link
Collaborator

Hi @douenergy
After executed accio hello, did you find the generated MDL file and json file in your working path?

jax@jax-canner:~/workspace/accio-test  $ ls
quick-start.json quick-start.mdl

@douenergy
Copy link
Author

Yeh, Both quick-start.json and quick-start.mdl are generated.

@goldmedal
Copy link
Collaborator

It's the full stdout log if you run accio hello successfully.

jax@jax-canner:~/workspace/accio-binary-test  $ ls    
accio                  accio.osx.intel.tar.gz
jax@jax-canner:~/workspace/accio-binary-test  $ ./accio hello
✔ Initialized Accio
✔ Built quick-start.mdl
⠋ Starting Demo Databaseff5d5895435a3e994a40847d2db8b76d4587976f3e459af0de10f01053b1c099
✔ Started Demo Database
Please set the following configs
config {
  project: "example"
  engine: "postgres"
  schema: "public"
  host: "accio-demo-db"
  username: "accio"
  password: "accio"
}
✔ Environment is ready
✔ Docker network is ready
✔ Serve files are generated
✔ The Accio Path to mount is set
✔ The Config Path to mount is set
✔ The Launch CLI Path to mount is set
[+] Running 4/4o Serve
 ✔ Network accio_default                                                                                                                                      Created                                                                                                                 0.1s 
 ✔ Container accio-admin-ui-1                                                                                                                                 Started                                                                                                                 0.7s 
 ✔ Container accio-engine-1                                                                                                                                   Started                                                                                                                 0.7s 
 ! admin-ui The requested image's platform (linux/arm64/v8) does not match the detected host platform (linux/amd64/v2) and no specific platform was requested                                                                                                                         0.0s 
✔ Accio Serve is started
2023-08-16 03:06:44.193	INFO		CLI	Admin UI is available at http://localhost:3000

Could you check if all of steps work fine?

✔ Environment is ready
✔ Docker network is ready
✔ Serve files are generated
✔ The Accio Path to mount is set
✔ The Config Path to mount is set
✔ The Launch CLI Path to mount is set

The error messages your provided mentions the configuration isn't found. Accio CLI will mount the config path to the accio container. I guess that there're some problems of mounting config path.

截圖 2023-08-16 上午11 18 12

@douenergy
Copy link
Author

Thanks @goldmedal for the help !
But the accio cli is still not working.

image image

@goldmedal
Copy link
Collaborator

Hi @douenergy
Could you provide the version of your docker-compose? Because accio cli executes docker-compose implicitly, we found docker-compose needs extra yml configuration in some version. I want to reproduce this issue in my laptop.
BTW, the version of docker-compose installed in my mac is v2.19.1. Maybe you can try this or other version in your laptop. Thanks. :)

@douenergy
Copy link
Author

When i switch to orbstack , everything works ! (I'll keep my Docker environment as it is now. 🤭)

It is very cool to query TPCH like this 👍

image

Thanks @goldmedal

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