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

v3 engine-1 fails with 400 / Unexpected / OCI runtime #10539

Open
ggadwa opened this issue Sep 12, 2024 · 2 comments
Open

v3 engine-1 fails with 400 / Unexpected / OCI runtime #10539

ggadwa opened this issue Sep 12, 2024 · 2 comments
Labels
c/v3-engine V3 Metadata and Engine k/v3-bug Bug affecting Hasura v3 (DDN)

Comments

@ggadwa
Copy link

ggadwa commented Sep 12, 2024

Component

engine-1

What is the current behaviour?

With the docker compose, all the components compile and install and are running except:

dev-setup-1 : exited -- you can run this and it exits without error, so if it was meant to run once then it worked right
engine-1: error -- "(HTTP code 400) unexpected - failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "./bin/engine": stat ./bin/engine: no such file or directory: unknown"

What is the expected behaviour?

That I have a functioning h3 environment in docker.

How to reproduce the issue?

Setup:

Windows, docker desktop / WSL 2.
Pull the hasura / graphql-engine (this is the complete repository, with v3 as a sub directory)
Rust already installed (1.81)

Run:

Go to the repository /v3 directory
set the required variables (as described in the v3 readme)
note I am following the postgresql setup docs
docker compose up

Note:

For some reason the high external port set for postgres (64001:5432) flakes on my box; as I don't need to reach it externally I just removed the 64001. As it's external I doubt this is the cause but need to note the single change I made to the compose yaml.

Screenshots or Screencast

n/a

Please provide any traces or logs that could help here.

Docker desktop and the console returns this notification:

(HTTP code 400) unexpected - failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "./bin/engine": stat ./bin/engine: no such file or directory: unknown

There seems to be no other logs of any use; running it in a console just shows everything is ok and started messages until this ultimately fails. More than willing to help out with a debug version!

Any possible solutions/workarounds you're aware of?

None that I know of.

Keywords

v3 OCI engine-1

@ggadwa ggadwa added the k/v3-bug Bug affecting Hasura v3 (DDN) label Sep 12, 2024
@rakeshkky rakeshkky added the c/v3-engine V3 Metadata and Engine label Sep 18, 2024
@Odex64
Copy link

Odex64 commented Sep 23, 2024

Same error here.

@ggadwa
Copy link
Author

ggadwa commented Oct 21, 2024

Tried this again with the newest code; I see you have updated and fixed the bad port (on windows) in the docker compose so thank you. Still same error, though, so this is an outstanding ticket for any of us trying to run v3 locally.

Want to note there's a problem with pulling the newest code, it's in test folders so it's not a big deal but I suspect there's errant spaces in your paths, these files fail to pull:

error: invalid path 'v3/crates/metadata-resolve/tests/failing/aggregate_boolean_expressions/object/count_distinct_bool_exp_missing /metadata.json'
error: invalid path 'v3/crates/metadata-resolve/tests/failing/aggregate_boolean_expressions/object/count_distinct_bool_exp_missing /resolve_error.snap'
error: invalid path 'v3/crates/metadata-resolve/tests/failing/aggregate_boolean_expressions/scalar/count_distinct_bool_exp_missing /metadata.json'
error: invalid path 'v3/crates/metadata-resolve/tests/failing/aggregate_boolean_expressions/scalar/count_distinct_bool_exp_missing /resolve_error.snap'

Notice the spaces after "count_distinct_bool_exp_missing".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c/v3-engine V3 Metadata and Engine k/v3-bug Bug affecting Hasura v3 (DDN)
Projects
None yet
Development

No branches or pull requests

3 participants