Skip to content
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

Cannot find matching keyid: #254

Closed
enter286 opened this issue Feb 14, 2025 · 6 comments · Fixed by #255
Closed

Cannot find matching keyid: #254

enter286 opened this issue Feb 14, 2025 · 6 comments · Fixed by #255

Comments

@enter286
Copy link

Getting this error when running the docker compose:

txtdot-1  |     throw new Error(`Cannot find matching keyid: ${JSON.stringify({ signatures, keys })}`);
txtdot-1  |           ^
txtdot-1  |
txtdot-1  | Error: Cannot find matching keyid: {"signatures":[{"sig":"MEUCICK4bLF6Ywa/faC/4PIt094EbceYRe19bBHQW0rAS/dGAiEA8/ofAy07ETUbu+ca1PM4HDYqcHOjBlvgvdWvG0hy3as=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"keys":[{"expires":null,"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","keytype":"ecdsa-sha2-nistp256","scheme":"ecdsa-sha2-nistp256","key":"MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE1Olb3zMAFFxXKHiIkQO5cJ3Yhl5i6UPp+IhuteBJbuHcA5UogKo0EWtlWwW6KSaKoTNEYL7JlCQiVnkhBktUgg=="}]}
txtdot-1  |     at verifySignature (/usr/local/lib/node_modules/corepack/dist/lib/corepack.cjs:22460:11)
txtdot-1  |     at fetchLatestStableVersion (/usr/local/lib/node_modules/corepack/dist/lib/corepack.cjs:22478:5)
txtdot-1  |     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
txtdot-1  |     at async fetchLatestStableVersion2 (/usr/local/lib/node_modules/corepack/dist/lib/corepack.cjs:22598:14)
txtdot-1  |     at async Engine.getDefaultVersion (/usr/local/lib/node_modules/corepack/dist/lib/corepack.cjs:23208:23)
txtdot-1  |     at async Engine.executePackageManagerRequest (/usr/local/lib/node_modules/corepack/dist/lib/corepack.cjs:23300:47)
txtdot-1  |     at async Object.runMain (/usr/local/lib/node_modules/corepack/dist/lib/corepack.cjs:24007:5)
txtdot-1  |
txtdot-1  | Node.js v20.16.0
txtdot-1 exited with code 1```
@DarkCat09
Copy link
Member

Corepack bug

It downloads the latest pnpm, but verifies it with the bundled checksum for older version

@DarkCat09
Copy link
Member

We either need to update it regularly, or get rid of it (@artegoser, why did we set up corepack instead of simply downloading pnpm at docker compile-time?), or ask users to disable checksum verification

@DarkCat09
Copy link
Member

npm/cli#8075 (comment)

@DarkCat09
Copy link
Member

...or ask users to disable checksum verification
(#254 (comment))

@enter286

services:
  txtdot:
    image: ghcr.io/txtdot/txtdot:latest
    ports:
      - '8080:8080'
    restart: unless-stopped
    environment:
      COREPACK_INTEGRITY_KEYS: 0 # <-- disables verification
    volumes:
      - '.env:/app/packages/server/dist/.env'

@enter286
Copy link
Author

enter286 commented Feb 14, 2025

At least the docker container does start when disabling the integrity checks. But I'm now getting a "Parse error: (/). [Readability]" or all other parser. Not sure if this is related to this problem?

@artegoser
Copy link
Member

artegoser commented Feb 15, 2025

On which site does this error occur?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants