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: Contributing.md recommends setup that doesn't work due to auth error #10105

Closed
silky opened this issue Jan 19, 2024 · 5 comments
Closed

v3: Contributing.md recommends setup that doesn't work due to auth error #10105

silky opened this issue Jan 19, 2024 · 5 comments
Labels
c/v3-engine V3 Metadata and Engine k/v3-bug Bug affecting Hasura v3 (DDN)

Comments

@silky
Copy link
Contributor

silky commented Jan 19, 2024

If I follow the contributing advice and run the docker-compose command:

docker compose run --build --rm dev_setup bash

I get an immediate failure:

> docker compose run --build --rm dev_setup bash
WARN[0000] The "METADATA_PATH" variable is not set. Defaulting to a blank string. 
WARN[0000] The "AUTHN_CONFIG_PATH" variable is not set. Defaulting to a blank string. 
[+] Running 3/3
 ✘ jaeger Error
 ✘ postgres_connector Error
 ✘ postgres Error
Error response from daemon: Head "https://ghcr.io/v2/hasura/ndc-postgres/manifests/dev-main-5aec135c1": unauthorized
@silky silky added the k/v3-bug Bug affecting Hasura v3 (DDN) label Jan 19, 2024
@silky silky changed the title Contributing.md recommends setup that doesn't work due to auth error v3: Contributing.md recommends setup that doesn't work due to auth error Jan 19, 2024
@manasag manasag added the c/v3-engine V3 Metadata and Engine label Jan 24, 2024
@manasag
Copy link
Contributor

manasag commented Jan 24, 2024

Hi @silky , we realised that one of the components is not yet accessible from public (ndc-postgres docker image). Will update as soon we fix this.

@soupi
Copy link
Contributor

soupi commented Jan 25, 2024

Hi @silky, we've made the ndc-postgres docker images public and the command should work now. Thanks for reporting!

@silky
Copy link
Contributor Author

silky commented Jan 25, 2024

Nice, thanks.

Certainly it gets further and is now able to download the images.

I do note that it now fails, ultimately, with a message like:

stat /run/user/1000/gnupg/S.gpg-agent.ssh: no such file or directory

full output:

07:41 pm noon φ v3 (master) docker compose run --build --rm dev_setup bash 

WARN[0000] The "METADATA_PATH" variable is not set. Defaulting to a blank string. 
WARN[0000] The "AUTHN_CONFIG_PATH" variable is not set. Defaulting to a blank string. 
[+] Building 2.4s (32/32) FINISHED                                                                     docker:default
 => [auth_hook internal] load .dockerignore                                                                      0.0s
 => => transferring context: 52B                                                                                 0.0s
 => [auth_hook internal] load build definition from Dockerfile                                                   0.0s
 => => transferring dockerfile: 243B                                                                             0.0s
 => [custom_connector internal] load build definition from Dockerfile                                            0.1s
 => => transferring dockerfile: 1.88kB                                                                           0.0s
 => [custom_connector internal] load .dockerignore                                                               0.0s
 => => transferring context: 47B                                                                                 0.0s
 => [auth_hook] resolve image config for docker.io/docker/dockerfile:1                                           1.3s
 => [custom_connector internal] load metadata for docker.io/library/rust:1.72.0                                  1.2s
 => [custom_connector internal] load build context                                                               0.1s
 => => transferring context: 66.20kB                                                                             0.1s
 => [custom_connector chef 1/8] FROM docker.io/library/rust:1.72.0@sha256:8a4ca3ca75afbc97bcf5362e9a694fe049d15  0.0s
 => CACHED [auth_hook] docker-image://docker.io/docker/dockerfile:1@sha256:ac85f380a63b13dfcefa89046420e1781752  0.0s
 => CACHED [custom_connector chef 2/8] WORKDIR app                                                               0.0s
 => CACHED [custom_connector chef 3/8] RUN apt-get update  && DEBIAN_FRONTEND=noninteractive     apt-get instal  0.0s
 => CACHED [custom_connector chef 4/8] RUN cargo install cargo-chef just grcov critcmp cargo-nextest             0.0s
 => CACHED [custom_connector chef 5/8] RUN rustup component add clippy                                           0.0s
 => CACHED [custom_connector chef 6/8] RUN rustup component add rustfmt                                          0.0s
 => CACHED [custom_connector chef 7/8] RUN rustup component add llvm-tools-preview                               0.0s
 => CACHED [custom_connector chef 8/8] RUN mkdir -p -m 0700 ~/.ssh && ssh-keyscan github.com >> ~/.ssh/known_ho  0.0s
 => CACHED [custom_connector planner 1/2] COPY . .                                                               0.0s
 => CACHED [custom_connector planner 2/2] RUN --mount=type=ssh cargo chef prepare --recipe-path recipe.json      0.0s
 => CACHED [custom_connector builder 1/5] COPY --from=planner /app/recipe.json recipe.json                       0.0s
 => CACHED [custom_connector builder 2/5] COPY --from=planner /app/.cargo/config.toml /app/.cargo/config.toml    0.0s
 => CACHED [custom_connector builder 3/5] RUN --mount=type=ssh cargo chef cook --release --all-targets --recipe  0.0s
 => CACHED [custom_connector builder 4/5] RUN --mount=type=ssh cargo chef cook --all-targets --recipe-path reci  0.0s
 => CACHED [custom_connector builder 5/5] COPY . .                                                               0.0s
 => [custom_connector] exporting to image                                                                        0.0s
 => => exporting layers                                                                                          0.0s
 => => writing image sha256:16866f0003a3d27311f21b5b8b7630e40226f7519550d10130ddfedbce328424                     0.0s
 => => naming to docker.io/library/v3-custom_connector                                                           0.0s
 => [auth_hook internal] load metadata for docker.io/library/node:18-alpine                                      0.7s
 => [auth_hook 1/5] FROM docker.io/library/node:18-alpine@sha256:b1a0356f7d6b86c958a06949d3db3f7fb27f95f627aa61  0.0s
 => [auth_hook internal] load build context                                                                      0.0s
 => => transferring context: 191B                                                                                0.0s
 => CACHED [auth_hook 2/5] WORKDIR /app                                                                          0.0s
 => CACHED [auth_hook 3/5] COPY [package.json, package-lock.json*, ./]                                           0.0s
 => CACHED [auth_hook 4/5] RUN npm install                                                                       0.0s
 => CACHED [auth_hook 5/5] COPY . .                                                                              0.0s
 => [auth_hook] exporting to image                                                                               0.0s
 => => exporting layers                                                                                          0.0s
 => => writing image sha256:564c95c895be7729eb7f2bb846f97fccdd7c132b3a161ba73c7f2586d7151ae5                     0.0s
 => => naming to docker.io/library/v3-auth_hook                                                                  0.0s
[+] Creating 6/5
 ✔ Network v3_default                 Created                                                                    0.1s 
 ✔ Container v3-custom_connector-1    Created                                                                    0.1s 
 ✔ Container v3-auth_hook-1           Created                                                                    0.1s 
 ✔ Container v3-jaeger-1              Created                                                                    0.1s 
 ✔ Container v3-postgres-1            Created                                                                    0.1s 
 ✔ Container v3-postgres_connector-1  Created                                                                    0.0s 
[+] Running 5/5
 ✔ Container v3-custom_connector-1    Started                                                                    0.6s 
 ✔ Container v3-auth_hook-1           Started                                                                    0.6s 
 ✔ Container v3-postgres-1            Healthy                                                                    0.7s 
 ✔ Container v3-jaeger-1              Started                                                                    0.9s 
 ✔ Container v3-postgres_connector-1  Started                                                                    0.4s 
[+] Building 0.0s (0/0)                                                                                docker:default
stat /run/user/1000/gnupg/S.gpg-agent.ssh: no such file or directory

I'm going to say this is just close enough to an auth error to leave this ticket open 😀

@soupi
Copy link
Contributor

soupi commented Feb 1, 2024

@silky I'm hoping that 82df77c should solve this issue. Could you try it now please?

@silky
Copy link
Contributor Author

silky commented Feb 1, 2024

Success! :)

Thanks @soupi .

@silky silky closed this as completed Feb 1, 2024
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

4 participants
@silky @manasag @soupi and others