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

27 messages · Page 1 of 1 (latest)

patent linden
#

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```

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.

crimson forgeBOT
#

Project ID: b08731c2-2a20-4ba4-b7b2-a97b42af589f,91e262ef-85b0-4b77-b60c-089a327c9b02,91e262ef-85b0-4b77-b60c-089a327c9b02

zinc parrotBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

lavish glade
#

add a railway.toml file to your project with this in it

[build]
nixpacksVersion = "1.15.0"
patent linden
#

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

lavish glade
#

nixpacks was updated and brought unintentional breaking changes, that file with that config reverts you back to a version that likely worked for you

patent linden
#

I see, but that config still failed, is the recommendation to just keep downgrading the nixpacksVersion

lavish glade
#

what version of nixpacks has worked in the past

patent linden
#

╔════════════════════ 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
lavish glade
#

then try that version please

patent linden
#

-----

> [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
lavish glade
#

full logs please

autumn kindle
autumn kindle
lavish glade
#

it says its using 1.17.0 still

#

can you show me how you have done the railway.toml file?

autumn kindle
#
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

lavish glade
#

what directory is the service set to?

autumn kindle
#

yup it is set to the root

#

trying it now

lavish glade
#

yeah needs to be in the root, or whatever the root is set to in the service settings