wren-engine icon indicating copy to clipboard operation
wren-engine copied to clipboard

Accio Project Initialization Fails on x86 MacOS Environment

Open douenergy opened this issue 2 years ago β€’ 6 comments

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

douenergy avatar Aug 16 '23 02:08 douenergy

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

goldmedal avatar Aug 16 '23 02:08 goldmedal

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

douenergy avatar Aug 16 '23 02:08 douenergy

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

goldmedal avatar Aug 16 '23 03:08 goldmedal

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

image image

douenergy avatar Aug 18 '23 03:08 douenergy

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. :)

goldmedal avatar Aug 18 '23 06:08 goldmedal

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

douenergy avatar Aug 22 '23 09:08 douenergy