P
Prisma2w ago
Moray

Amazon Linux 2023 support

I'm trying (and failing) to run Prisma on Node 16 on AL2023 (x86_64. Am I right in thinking that it's not compatible as it's not downstream of Alpine, Debian or RHEL?
6 Replies
RaphaelEtim
RaphaelEtim2w ago
Hi @Moray Can you please share the error message you're getting? We have had users who confirmed they were able to run Prisma with Amazon Linux 2023 in this closed issue
GitHub
Amazon Linux 2023 ARM64 incompatibility · Issue #19906 · prisma/pri...
Problem While using Sveltekit for a project with Prisma it builds without any issue however on running node build/index.js the application crashes with this message: (..)build/server/chunks/prisma-...
Moray
MorayOP5d ago
Hi @RaphaelEtim , thanks for getting back to me. I'm running on x86_64, not ARM64
[5/5] Building fresh packages...
error /var/app/redacted/node_modules/@prisma/sdk: Command failed.
Exit code: 1
Command: node scripts/download.js
Arguments:
Directory: /var/app/redacted/node_modules/@prisma/sdk
Output:
version: e11114fa1ea826f9e7b4fa1ced34e78892fe8e0e
node:internal/process/promises:279
triggerUncaughtException(err, true /* fromPromise */);
^

Error: Not Found https://binaries.prisma.sh/all_commits/e11114fa1ea826f9e7b4fa1ced34e78892fe8e0e/rhel-openssl-3.0.x/introspection-engine.gz
at p_retry_1.default.retries (/var/app/redacted/node_modules/@prisma/fetch-engine/dist/downloadZip.js:45:23)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async RetryOperation._fn (/var/app/redacted/node_modules/p-retry/index.js:50:12) {
attemptNumber: 3,
retriesLeft: 0
}
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
[5/5] Building fresh packages...
error /var/app/redacted/node_modules/@prisma/sdk: Command failed.
Exit code: 1
Command: node scripts/download.js
Arguments:
Directory: /var/app/redacted/node_modules/@prisma/sdk
Output:
version: e11114fa1ea826f9e7b4fa1ced34e78892fe8e0e
node:internal/process/promises:279
triggerUncaughtException(err, true /* fromPromise */);
^

Error: Not Found https://binaries.prisma.sh/all_commits/e11114fa1ea826f9e7b4fa1ced34e78892fe8e0e/rhel-openssl-3.0.x/introspection-engine.gz
at p_retry_1.default.retries (/var/app/redacted/node_modules/@prisma/fetch-engine/dist/downloadZip.js:45:23)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async RetryOperation._fn (/var/app/redacted/node_modules/p-retry/index.js:50:12) {
attemptNumber: 3,
retriesLeft: 0
}
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
It seems to only be showing the error for @prisma/sdk as queries from my application using Prisma are working fine! @RaphaelEtim any news on this? Something very weird is going on with this, I've just tried setting up a fresh AL2023 server. I'm getting the same error but unlike my other servers now the install completely fails and nothing prisma-related works Obviously the file its trying to download doesn't exist What is this file for? Can I build it myself instead of relying on someone else to provide it? @RaphaelEtim at the suggestion of your AI assistant I upgraded to Prisma 5, but that still won't install on AL2023
RaphaelEtim
RaphaelEtim5d ago
Hi @Moray I'll check in with the team with regards this and get back to you. The file Prisma is trying to download is an engine binary, which is essential for Prisma to function correctly. These binaries are platform-specific and are usually automatically downloaded during the installation or generation process. Can you try using a different internet connection, mobile hotspot, or VPN to see if this resolves the download issue
Moray
MorayOP5d ago
The server is running in AWS eu-west-2a, so I would be VERY surprised if it's a connection issue. I've tried downloading the file at on several browsers and it definitely doesn't exist. https://binaries.prisma.sh/all_commits/e11114fa1ea826f9e7b4fa1ced34e78892fe8e0e/rhel-openssl-3.0.x/introspection-engine.gz Because it's baked into the package install process, I'm not really sure what I can do about it at my end It seems odd that it's an issue in Prisma 3 and Prisma 5.
RaphaelEtim
RaphaelEtim5d ago
it seems odd that it’s an issue in Prisma 3 and 5
Does it work with Prisma 4?
Moray
MorayOP4d ago
No, I get the same error message OK I think I've figured it out. If I remove prisma-upgrade from my devDependencies then it works. Not sure why it was interfering with installing the main packages but at least that unblocks me!
Want results from more Discord servers?
Add your server