R
Railway14mo ago
JC

Seeing a bunch of build error even when rolling back to commits where builds used to works

Project ID: b08731c2-2a20-4ba4-b7b2-a97b42af589f In our build logs for the backend for both our staging and prod we're facing this error even though we've rolled back to commits which used to build out well.
#11 62.25 /usr/lib/git-core/git-remote-https: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_ABI_DT_RELR' not found (required by /nix/store/aw2fw9ag10wr9pf0qk4nk5sxi0q0bn56-glibc-2.37-8/lib/libdl.so.2)

#11 62.25 /usr/lib/git-core/git-remote-https: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_ABI_DT_RELR' not found (required by /nix/store/aw2fw9ag10wr9pf0qk4nk5sxi0q0bn56-glibc-2.37-8/lib/libpthread.so.0)

#11 62.25 info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.



#11 ERROR: process "/bin/bash -ol pipefail -c yarn install --check-cache" did not complete successfully: exit code: 128
#11 62.25 /usr/lib/git-core/git-remote-https: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_ABI_DT_RELR' not found (required by /nix/store/aw2fw9ag10wr9pf0qk4nk5sxi0q0bn56-glibc-2.37-8/lib/libdl.so.2)

#11 62.25 /usr/lib/git-core/git-remote-https: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_ABI_DT_RELR' not found (required by /nix/store/aw2fw9ag10wr9pf0qk4nk5sxi0q0bn56-glibc-2.37-8/lib/libpthread.so.0)

#11 62.25 info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.



#11 ERROR: process "/bin/bash -ol pipefail -c yarn install --check-cache" did not complete successfully: exit code: 128
19 | COPY . /app/.

20 | RUN --mount=type=cache,id=s/91e262ef-85b0-4b77-b60c-089a327c9b02-/usr/local/share/cache/yarn/v6,target=/usr/local/share/.cache/yarn/v6 npm install -g corepack && corepack enable

21 | >>> RUN --mount=type=cache,id=s/91e262ef-85b0-4b77-b60c-089a327c9b02-/usr/local/share/cache/yarn/v6,target=/usr/local/share/.cache/yarn/v6 yarn install --check-cache

22 |

23 | # build phase

-------------------

ERROR: failed to solve: process "/bin/bash -ol pipefail -c yarn install --check-cache" did not complete successfully: exit code: 128



Error: Docker build failed
19 | COPY . /app/.

20 | RUN --mount=type=cache,id=s/91e262ef-85b0-4b77-b60c-089a327c9b02-/usr/local/share/cache/yarn/v6,target=/usr/local/share/.cache/yarn/v6 npm install -g corepack && corepack enable

21 | >>> RUN --mount=type=cache,id=s/91e262ef-85b0-4b77-b60c-089a327c9b02-/usr/local/share/cache/yarn/v6,target=/usr/local/share/.cache/yarn/v6 yarn install --check-cache

22 |

23 | # build phase

-------------------

ERROR: failed to solve: process "/bin/bash -ol pipefail -c yarn install --check-cache" did not complete successfully: exit code: 128



Error: Docker build failed
To be more precise here are the logs. Would appreciate some guidance as to how to resolve this.
18 Replies
Percy
Percy14mo ago
Project ID: b08731c2-2a20-4ba4-b7b2-a97b42af589f,91e262ef-85b0-4b77-b60c-089a327c9b02,91e262ef-85b0-4b77-b60c-089a327c9b02
Brody
Brody14mo ago
add a railway.toml file to your project with this in it
[build]
nixpacksVersion = "1.15.0"
[build]
nixpacksVersion = "1.15.0"
JC
JCOP14mo ago
may I ask why this is needed? I don't think this was needed before and things were ok prior to this also it still failed
Brody
Brody14mo ago
nixpacks was updated and brought unintentional breaking changes, that file with that config reverts you back to a version that likely worked for you
JC
JCOP14mo ago
I see, but that config still failed, is the recommendation to just keep downgrading the nixpacksVersion
Brody
Brody14mo ago
what version of nixpacks has worked in the past
JC
JCOP14mo ago
Using Nixpacks

╔════════════════════ Nixpacks v1.16.0 ═══════════════════╗

#3 [internal] load metadata for ghcr.io/railwayapp/nixpacks:ubuntu-1695081795

#4 [stage-0 1/11] FROM ghcr.io/railwayapp/nixpacks:ubuntu-1695081795@sha256:861b494e331a1102d04519741af1e4d8960da8314c21c39b8ad8b7c161ee4c98

#6 [stage-0 3/11] COPY .nixpacks/nixpkgs-5148520bfab61f99fd25fb9ff7bfbb50dad3c9db.nix .nixpacks/nixpkgs-5148520bfab61f99fd25fb9ff7bfbb50dad3c9db.nix

#8 [stage-0 4/11] RUN nix-env -if .nixpacks/nixpkgs-5148520bfab61f99fd25fb9ff7bfbb50dad3c9db.nix && nix-collect-garbage -d
Using Nixpacks

╔════════════════════ Nixpacks v1.16.0 ═══════════════════╗

#3 [internal] load metadata for ghcr.io/railwayapp/nixpacks:ubuntu-1695081795

#4 [stage-0 1/11] FROM ghcr.io/railwayapp/nixpacks:ubuntu-1695081795@sha256:861b494e331a1102d04519741af1e4d8960da8314c21c39b8ad8b7c161ee4c98

#6 [stage-0 3/11] COPY .nixpacks/nixpkgs-5148520bfab61f99fd25fb9ff7bfbb50dad3c9db.nix .nixpacks/nixpkgs-5148520bfab61f99fd25fb9ff7bfbb50dad3c9db.nix

#8 [stage-0 4/11] RUN nix-env -if .nixpacks/nixpkgs-5148520bfab61f99fd25fb9ff7bfbb50dad3c9db.nix && nix-collect-garbage -d
the latest one that worked was this
Brody
Brody14mo ago
then try that version please
JC
JCOP14mo ago
#11 ERROR: process "/bin/bash -ol pipefail -c yarn install --check-cache" did not complete successfully: exit code: 128

-----

> [stage-0 7/11] RUN --mount=type=cache,id=s/91e262ef-85b0-4b77-b60c-089a327c9b02-/usr/local/share/cache/yarn/v6,target=/usr/local/share/.cache/yarn/v6 yarn install --check-cache:

47.59 warning [email protected]: Invalid bin field for "mini-css-extract-plugin".

62.90 error Command failed.

62.90 Exit code: 128

62.90 Command: git

62.90 Arguments: ls-remote --tags --heads https://github.com/ethereumjs/ethereumjs-abi.git

62.90 Directory: /app

62.90 Output:

62.90 /usr/lib/git-core/git-remote-https: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_ABI_DT_RELR' not found (required by /nix/store/aw2fw9ag10wr9pf0qk4nk5sxi0q0bn56-glibc-2.37-8/lib/libdl.so.2)

62.90 /usr/lib/git-core/git-remote-https: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_ABI_DT_RELR' not found (required by /nix/store/aw2fw9ag10wr9pf0qk4nk5sxi0q0bn56-glibc-2.37-8/lib/libpthread.so.0)

62.90 info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

-----



Dockerfile:21

-------------------

19 | COPY . /app/.

20 | RUN --mount=type=cache,id=s/91e262ef-85b0-4b77-b60c-089a327c9b02-/usr/local/share/cache/yarn/v6,target=/usr/local/share/.cache/yarn/v6 npm install -g corepack && corepack enable

21 | >>> RUN --mount=type=cache,id=s/91e262ef-85b0-4b77-b60c-089a327c9b02-/usr/local/share/cache/yarn/v6,target=/usr/local/share/.cache/yarn/v6 yarn install --check-cache

22 |

23 | # build phase

-------------------

ERROR: failed to solve: process "/bin/bash -ol pipefail -c yarn install --check-cache" did not complete successfully: exit code: 128



Error: Docker build failed
#11 ERROR: process "/bin/bash -ol pipefail -c yarn install --check-cache" did not complete successfully: exit code: 128

-----

> [stage-0 7/11] RUN --mount=type=cache,id=s/91e262ef-85b0-4b77-b60c-089a327c9b02-/usr/local/share/cache/yarn/v6,target=/usr/local/share/.cache/yarn/v6 yarn install --check-cache:

47.59 warning [email protected]: Invalid bin field for "mini-css-extract-plugin".

62.90 error Command failed.

62.90 Exit code: 128

62.90 Command: git

62.90 Arguments: ls-remote --tags --heads https://github.com/ethereumjs/ethereumjs-abi.git

62.90 Directory: /app

62.90 Output:

62.90 /usr/lib/git-core/git-remote-https: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_ABI_DT_RELR' not found (required by /nix/store/aw2fw9ag10wr9pf0qk4nk5sxi0q0bn56-glibc-2.37-8/lib/libdl.so.2)

62.90 /usr/lib/git-core/git-remote-https: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_ABI_DT_RELR' not found (required by /nix/store/aw2fw9ag10wr9pf0qk4nk5sxi0q0bn56-glibc-2.37-8/lib/libpthread.so.0)

62.90 info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

-----



Dockerfile:21

-------------------

19 | COPY . /app/.

20 | RUN --mount=type=cache,id=s/91e262ef-85b0-4b77-b60c-089a327c9b02-/usr/local/share/cache/yarn/v6,target=/usr/local/share/.cache/yarn/v6 npm install -g corepack && corepack enable

21 | >>> RUN --mount=type=cache,id=s/91e262ef-85b0-4b77-b60c-089a327c9b02-/usr/local/share/cache/yarn/v6,target=/usr/local/share/.cache/yarn/v6 yarn install --check-cache

22 |

23 | # build phase

-------------------

ERROR: failed to solve: process "/bin/bash -ol pipefail -c yarn install --check-cache" did not complete successfully: exit code: 128



Error: Docker build failed
unfortunately it still did not work
cstoneham
cstoneham14mo ago
cool tool! thanks for sharing and helping us take a look
Brody
Brody14mo ago
it says its using 1.17.0 still can you show me how you have done the railway.toml file?
cstoneham
cstoneham14mo ago
nixpacksVersion = "1.16.0"
nixpacksVersion = "1.16.0"
just that one thing i realized though is that we have this file in the backend directory of our monorepo I wonder if it has to be at the root let me give that a shot
Brody
Brody14mo ago
what directory is the service set to?
cstoneham
cstoneham14mo ago
yup it is set to the root trying it now
Brody
Brody14mo ago
yeah needs to be in the root, or whatever the root is set to in the service settings
cstoneham
cstoneham14mo ago
that fixed it, thanks so much for your help!
Want results from more Discord servers?
Add your server