-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Signatures changed in the latest version of pnpm
#15386
Comments
It also happens when I pulled Docker pre-built image from Docker Hub and start up. |
People also reported this over on our side at Sharkey I also checked the issue linked here and it seems corepack has a env which disables fetching the latest version of a package manager EDIT: example can be found here for any misskey members https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/883 our Dockerfile does differ but essentially it would be applied the same way before any corepack commands. |
|
I feel this is a bug of corepack since actual version we use is specified by packageManager field, and corepack downloads latest just for situations when packageManager field is absent, which should not affect when packageManager is specified. Of course it's better to workaround issue in this project. |
@atsu1125 Thanks! Can confirm this works for docker-compose. |
It can help you to solve the problems |
@Mar0xy Thanks! |
also can try install again RUN npm install -g corepack@latest |
How did you fix this for docker-compose? |
You can set One full example would be like this. (click
|
Make sure if you do fix your pnpm version to 9.15.4 to fix your packageManager version in package.json "packageManager": "[email protected]", Do this in all of your workspaces |
@CGsama Thank you very much it worked perfectly, I added these two lines to the dockerFile and it solved the problem |
can you help me? |
You just have to add or run RUN npm install -g corepack@latest |
you can also use FROM node:23.7-alpine
RUN corepack enable this fixed it for me |
add |
I restarted my Sharkey Docker and now it doesn't start again (Cannot find matching keyid:). Unfortunately I don't know how to fix it with the suggestions made here. Adding
to my docker-compose.yml is running into Suggestion of @CGsama: Where to run the npnm reinstall? Edit:
stopping the Sharkey docker, then |
This backports node update of corepack to 0.31.0, updating npmjs.org keys pinned by corepack. This should fix the following error: corepack install -g [email protected] Installing [email protected]... Internal Error: Cannot find matching keyid: {"signatures":[{"sig":"MEYCIQDkZyZZmBzkRcQowEEFiEcGp4/xV8GBLXxTEzz9QstrsAIhAPx6tvZixjTub6GPqJa82vcWFhUU39JCtoJvcoRK/K39","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"keys":[{"expires":null,"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","keytype":"ecdsa-sha2-nistp256","scheme":"ecdsa-sha2-nistp256","key":"MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE1Olb3zMAFFxXKHiIkQO5cJ3Yhl5i6UPp+IhuteBJbuHcA5UogKo0EWtlWwW6KSaKoTNEYL7JlCQiVnkhBktUgg=="}]} Link: pnpm/pnpm#9014 Link: nodejs/corepack#612 Link: misskey-dev/misskey#15386 Link: https://github.com/nodejs/corepack/releases/tag/v0.31.0 Link: nodejs/node@63c1859 Link: nodejs/node#56795 Backport-of: 63c1859e019465cbb0b6b46ba0d481fb41d94a22 Reviewed-by: xtex <[email protected]> Signed-off-by: xtex <[email protected]>
This backports node update of corepack to 0.31.0, updating npmjs.org keys pinned by corepack. The patch should be removed after nodejs 22.14.0 proposal gets released. This should fix the following error: corepack install -g [email protected] Installing [email protected]... Internal Error: Cannot find matching keyid: {"signatures":[{"sig":"MEYCIQDkZyZZmBzkRcQowEEFiEcGp4/xV8GBLXxTEzz9QstrsAIhAPx6tvZixjTub6GPqJa82vcWFhUU39JCtoJvcoRK/K39","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"keys":[{"expires":null,"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","keytype":"ecdsa-sha2-nistp256","scheme":"ecdsa-sha2-nistp256","key":"MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE1Olb3zMAFFxXKHiIkQO5cJ3Yhl5i6UPp+IhuteBJbuHcA5UogKo0EWtlWwW6KSaKoTNEYL7JlCQiVnkhBktUgg=="}]} Link: nodejs/node#56910 Link: pnpm/pnpm#9014 Link: nodejs/corepack#612 Link: misskey-dev/misskey#15386 Link: https://github.com/nodejs/corepack/releases/tag/v0.31.0 Link: nodejs/node@63c1859 Link: nodejs/node#56795 Backport-of: 63c1859e019465cbb0b6b46ba0d481fb41d94a22 Reviewed-by: xtex <[email protected]> Signed-off-by: xtex <[email protected]>
This backports node update of corepack to 0.31.0, updating npmjs.org keys pinned by corepack. The patch should be removed after nodejs 22.14.0 proposal gets released. This should fix the following error: corepack install -g [email protected] Installing [email protected]... Internal Error: Cannot find matching keyid: {"signatures":[{"sig":"MEYCIQDkZyZZmBzkRcQowEEFiEcGp4/xV8GBLXxTEzz9QstrsAIhAPx6tvZixjTub6GPqJa82vcWFhUU39JCtoJvcoRK/K39","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"keys":[{"expires":null,"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","keytype":"ecdsa-sha2-nistp256","scheme":"ecdsa-sha2-nistp256","key":"MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE1Olb3zMAFFxXKHiIkQO5cJ3Yhl5i6UPp+IhuteBJbuHcA5UogKo0EWtlWwW6KSaKoTNEYL7JlCQiVnkhBktUgg=="}]} Link: nodejs/node#56910 Link: pnpm/pnpm#9014 Link: nodejs/corepack#612 Link: misskey-dev/misskey#15386 Link: https://github.com/nodejs/corepack/releases/tag/v0.31.0 Link: nodejs/node@63c1859 Link: nodejs/node#56795 Backport-of: 63c1859e019465cbb0b6b46ba0d481fb41d94a22 Reviewed-by: xtex <[email protected]> Signed-off-by: xtex <[email protected]>
💡 Summary
When building through Docker compose without modifying any commands in
Dockerfile
, the following error occurs.The same error occurs and does not run even if the existing misskey-web container is restarted by docker compose.
Signatures of
pnpm
has been changed since 10.1.0, and the issue seems to have occurred when the 9.15.5 version was released a few hours ago.So
corepack
has deployed a new version of this change, but it has not been applied to Node.js 22.x, currently used by Misskey.(nodejs/corepack#612)I modified
Dockerfile
in this way and ran it again successfully. I think you may have a better way.🥰 Expected Behavior
Docker image is successfully built, and containers run successfully.
🤬 Actual Behavior
Docker image fails to build, or containers execution failed.
📝 Steps to Reproduce
Occurred in the following situations
💻 Frontend Environment
🛰 Backend Environment (for server admin)
Do you want to address this bug yourself?
The text was updated successfully, but these errors were encountered: