Deployment Failed during build process

Good afternoon! I'm trying to publish my project in Vue.js, but I'm getting errors. The error log is attached. I'm using a Main_test branch. When it's working, I'll use main
8 Replies
Percy
Percy10mo ago
Project ID: 837cac68-68b7-45c9-8b81-2b1d97c38823
MantisInABox
MantisInABox10mo ago
There was just an incident related to the builder being over utilized. It was just resolved, so you should be good to try a deploy again
Uélinton
Uélinton10mo ago
I just performed a redeploy, but the problem persists.
[stage-0 11/16] RUN --mount=type=cache,id=s/837cac68-68b7-45c9-8b81-2b1d97c38823-/usr/local/share/cache/yarn/v6,target=/usr/local/share/.cache/yarn/v6 yarn install --frozen-lockfile:
1.056 yarn install v1.22.18 1.142 warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json. 1.156 [1/4] Resolving packages... 2.504 error Your lockfile needs to be updated, but yarn was run with --frozen-lockfile. 2.505 info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command. ----- Dockerfile:27 ------------------- 25 | COPY . /app/. 26 | RUN --mount=type=cache,id=s/837cac68-68b7-45c9-8b81-2b1d97c38823-/usr/local/share/cache/yarn/v6,target=/usr/local/share/.cache/yarn/v6 npm install -g corepack && corepack enable 27 | >>> RUN --mount=type=cache,id=s/837cac68-68b7-45c9-8b81-2b1d97c38823-/usr/local/share/cache/yarn/v6,target=/usr/local/share/.cache/yarn/v6 yarn install --frozen-lockfile 28 | 29 | # build phase ------------------- ERROR: failed to solve: process "/bin/bash -ol pipefail -c yarn install --frozen-lockfile" did not complete successfully: exit code: 1 Error: Docker build failed
Yarn
Yarn
Fast, reliable, and secure dependency management.
MantisInABox
MantisInABox10mo ago
Looks like you are using yarn, but have a package-lock.json file. Remove that file
Uélinton
Uélinton10mo ago
ok, I removed package-lock.json. However, still failed
[stage-0 11/16] RUN --mount=type=cache,id=s/837cac68-68b7-45c9-8b81-2b1d97c38823-/usr/local/share/cache/yarn/v6,target=/usr/local/share/.cache/yarn/v6 yarn install --frozen-lockfile:
1.734 yarn install v1.22.18 1.868 [1/4] Resolving packages... 3.498 error Your lockfile needs to be updated, but yarn was run with --frozen-lockfile. 3.498 info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command. ----- Dockerfile:27 ------------------- 25 | COPY . /app/. 26 | RUN --mount=type=cache,id=s/837cac68-68b7-45c9-8b81-2b1d97c38823-/usr/local/share/cache/yarn/v6,target=/usr/local/share/.cache/yarn/v6 npm install -g corepack && corepack enable 27 | >>> RUN --mount=type=cache,id=s/837cac68-68b7-45c9-8b81-2b1d97c38823-/usr/local/share/cache/yarn/v6,target=/usr/local/share/.cache/yarn/v6 yarn install --frozen-lockfile 28 | 29 | # build phase ------------------- ERROR: failed to solve: process "/bin/bash -ol pipefail -c yarn install --frozen-lockfile" did not complete successfully: exit code: 1 Error: Docker build failed
Yarn
Yarn
Fast, reliable, and secure dependency management.
MantisInABox
MantisInABox10mo ago
The error tells you that the yarn.lock file is out dated. On your local system run yarn to install any dependencies and update the lock file, then redeploy
Uélinton
Uélinton10mo ago
Thank you my friend. these tips helped me
MantisInABox
MantisInABox10mo ago
You’re very welcome