-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[Self-Host] Docker Build Fails with "Cannot find matching keyid" Error During PNPM Install #1126
Comments
Hi @piotrstarzynski, Thank you for reaching out! I’ll be assisting you with your questions or issues. I will take a look at it and provide you with an update once I have one 😉 |
Hello @piotrstarzynski, After trying some things, I made this change and worked as expected for me, do you mind trying too? ![]() These are the first lines of the Dockerfile FROM node:20-slim AS base
ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
LABEL fly_launch_runtime="Node.js"
RUN npm install -g pnpm@8.15.5
COPY . /app
WORKDIR /app After changing it, these were the steps:
|
Hello @ftonato, Yeah, of course. I am not sure if I did it right. When trying:
Tried this:
When building after got this:
And I gave up. Btw. it was working like a charm, but after docker compose down it stopped and threw errors. Thanks for help. |
Ran into the same, apparently this is because of signing keys embedded into corepack and those are no longer valid because of a rotation (nodejs/corepack#616). The I updated Line 1 in 5894076
to use |
there is still the sentry auth token error during build mentioned by @piotrstarzynski
but it does correctly run After running the image, there was a sentry import error. I solved this by simply commenting out the contents of The service is listening on 3002 at least. |
I stumbled onto this while debugging the same error for an unrelated project, and came across this on the |
This is simple and quickest way to fix |
I tried all the suggestions but ran into another issue:
Do you have like step by step what to do to fix it or should I wait for an update? |
I changed Dockerfile in apps/api/ like this, then build normally, don't delete pnpm-lock.yaml file. And no need to install or delete anything else. |
I submitted a pull request (#1131) that fixes this issue and fixes some other issues with the current repo in getting a self-hosted firecrawl "stack" running using portainer where I just point to the repo and modify env variables. I didn't receive the lockfile issue, but I did encounter an issue with the docker entryfile trying to set ulimit, which isn't supported in my environment. I moved this to the docker compose run configuration. |
Thank you for helping us with this problem. Thanks for your contributions 🎉 |
When attempting to build a Docker image, the build process fails during the pnpm install --frozen-lockfile (or pnpm install --prod --frozen-lockfile) step with an error indicating a missing key ID. The error message is:
The error prevents the Docker build from completing successfully.
To Reproduce
Clone the repository or obtain the Docker configuration files.
Run docker compose build --no-cache (or a similar build command).
Observe that the build halts with the "Cannot find matching keyid" error while installing packages with PNPM.
Expected Behavior
The Docker image should build without throwing a key-matching error, completing the pnpm install step successfully.
The text was updated successfully, but these errors were encountered: