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 README steps for running in Docker do not work #10219

Closed
TristenHarr opened this issue Apr 29, 2024 · 1 comment
Closed

V3 README steps for running in Docker do not work #10219

TristenHarr opened this issue Apr 29, 2024 · 1 comment
Labels
k/v3-bug Bug affecting Hasura v3 (DDN)

Comments

@TristenHarr
Copy link
Contributor

The V3 repo has a section on running with Docker that states to run with Docker you can use this command:

METADATA_PATH=crates/open-dds/examples/reference.json AUTHN_CONFIG_PATH=auth_config.json docker compose up

However, when running this command the container fails to start because of missing volume mounts.

Editting the docker-compose.yaml to properly mount the volumes like this:

  engine:
    build:
      dockerfile: debug.Dockerfile
    entrypoint:
      - ./bin/engine
    environment:
      - METADATA_PATH
      - AUTHN_CONFIG_PATH
      - OTLP_ENDPOINT=http://jaeger:4317
    ports:
      # Binding to localhost:3001 avoids conflict with dev_setup
      - 3001:3000
    depends_on:
      reference_agent:
        condition: service_started
      jaeger:
        condition: service_started
      auth_hook:
        condition: service_started
    volumes:
      - ./auth_config.json:/app/auth_config.json
      - ./crates/open-dds/examples/reference.json:/app/crates/open-dds/examples/reference.json

The above fixes the volume mount issue, however there seems to be an issue with the reference schema, as the engine still fails to start.

2024-04-29 14:42:19 Error while starting up the engine: could not read the schema - unable to build schema: metadata is not consistent: the collection authors in the data connector db (in subgraph default) for model Authors (in subgraph default) has not been defined

This was originally surfaced on Discord in our forum in this thread.

To reproduce this, clone the graphql-engine and attempt to start the V3-engine using the reference command from the README in the section about Docker. (The command referenced at the top of the issue!)

@TristenHarr TristenHarr added the k/v3-bug Bug affecting Hasura v3 (DDN) label Apr 29, 2024
@soupi
Copy link
Contributor

soupi commented May 6, 2024

Hi, thanks for the report.

The v3 readme has been updated to use PostgreSQL instead in this commit, and the command in the readme should work now:

METADATA_PATH=crates/engine/tests/schema.json AUTHN_CONFIG_PATH=auth_config.json docker compose up

See the up-to-date Run v3-engine (with Postgres).

Feel free to reopen the ticket if the issue has not been fixed.

@soupi soupi closed this as completed May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
k/v3-bug Bug affecting Hasura v3 (DDN)
Projects
None yet
Development

No branches or pull requests

2 participants