Medusa build started failling since couple of days

kanaiyathacker1980TRIAL

a year ago

Build is failing with following error :

46.95 error https://registry.yarnpkg.com/typescript/-/typescript-4.9.5.tgz: Extracting tar content of undefined failed, the file appears to be corrupt: "ENOENT: no such file or directory, stat '/usr/local/share/.cache/yarn/v6/npm-typescript-4.9.5-095979f9bcc0d09da324d58d03ce8f8374cbe65a-integrity/node_modules/typescript/lib/typescriptServices.js'"

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

Dockerfile:20

18 | ENV NIXPACKSPATH /app/nodemodules/.bin:$NIXPACKS_PATH

19 | COPY . /app/.

20 | >>> RUN --mount=type=cache,id=s/03d04a2c-6a2a-4a74-8e0f-a13d913c0bf4-/usr/local/share/cache/yarn/v6,target=/usr/local/share/.cache/yarn/v6 yarn install --check-cache

21 |

22 | # build phase

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

Error: Docker build failed

View Deploy details

ⓘ Deployment information is only viewable by Project members and Railway admins.

5 Replies

a year ago

Try adding a service variable NIXPACKS_NO_CACHE=1


kanaiyathacker1980TRIAL

a year ago

Tried adding NIXPACKSNOCACHE but no luck. Same issue.



kanaiyathacker1980TRIAL

a year ago

build logs attached

Attachments


a year ago

I think medusa has docs on this error, you should ask in their discord server.