Sergii
Sergii
PPrisma
Created by Sergii on 1/14/2025 in #help-and-questions
Can't configure Prisma query engine on FreeBSD server
It was enough just to upgrade Prisma to the latest version 6.2.1 (I had 5.18). Resolved!
10 replies
PPrisma
Created by Sergii on 1/14/2025 in #help-and-questions
Can't configure Prisma query engine on FreeBSD server
if _app.js has only line const { PrismaClient } = require('@prisma/client'); I get only root@www2:/usr/local/www # DEBUG=prisma* node dist/server/routers/_app.js prisma:tryLoadEnv Environment variables not found at null +7ms prisma:tryLoadEnv Environment variables loaded from /usr/local/www/.env +2ms so the problem is with line const prisma = new PrismaClient();
10 replies
PPrisma
Created by Sergii on 1/14/2025 in #help-and-questions
Can't configure Prisma query engine on FreeBSD server
Sorry if my question is stupid, but what exactly should I do after the command export DEBUG="engine"?
10 replies
PPrisma
Created by Sergii on 1/10/2025 in #help-and-questions
Can't configure compiled Prisma query engine for FreeBSD
Unfortunately, it turned out that only the db push command worked. But when starting the tRPC server, I get an error I described here https://discord.com/channels/937751382725886062/1328723002061225985/1328723002061225985 Could you please help with the solution?
13 replies
PPrisma
Created by Sergii on 1/14/2025 in #help-and-questions
Can't configure Prisma query engine on FreeBSD server
the question is why Prisma still searches for engine in node_modules dir while I globally set in variables the path to engine as /root/prisma-engines/target/... ?
10 replies
PPrisma
Created by Sergii on 1/14/2025 in #help-and-questions
Can't configure Prisma query engine on FreeBSD server
engineType doesn't help
10 replies
PPrisma
Created by Sergii on 1/10/2025 in #help-and-questions
Can't configure compiled Prisma query engine for FreeBSD
Thank you so much! Now it works as expected
13 replies
PPrisma
Created by Sergii on 1/10/2025 in #help-and-questions
Can't configure compiled Prisma query engine for FreeBSD
thanks! now I get root@www2:/usr/local/www # npx prisma -v Warning Precompiled engine files are not available for freebsd14. Read more about building your own engines at https://pris.ly/d/build-engines Environment variables loaded from .env Error: Unable to require(/root/prisma-engines/target/release/deps/libquery_engine.so). The Prisma engines do not seem to be compatible with your system. Please refer to the documentation about Prisma's system requirements: https://pris.ly/d/system-requirements Details: Invalid or unexpected token at Jte (/usr/local/www/node_modules/prisma/build/index.js:284:116) at i7e (/usr/local/www/node_modules/prisma/build/index.js:284:269) prisma : 5.18.0 @prisma/client : 5.18.0 Computed binaryTarget : freebsd14 Operating System : freebsd Architecture : x64 Node.js : v22.8.0 Query Engine (Node-API) : E_CANNOT_RESOLVE_VERSION (at ../../../root/prisma-engines/target/release/deps/libquery_engine.so, resolved by PRISMA_QUERY_ENGINE_LIBRARY) Schema Engine : schema-engine-cli 66ff51574f705989a0e2c8bf6f1659bee5eb9517 (at ../../../root/prisma-engines/target/release/schema-engine, resolved by PRISMA_SCHEMA_ENGINE_BINARY) Schema Wasm : @prisma/prisma-schema-wasm 5.18.0-25.4c784e32044a8a016d99474bd02a3b6123742169 Default Engines Hash : 4c784e32044a8a016d99474bd02a3b6123742169 Studio : 0.502.0 Preview Features : fullTextIndex, fullTextSearch
13 replies
PPrisma
Created by Sergii on 1/10/2025 in #help-and-questions
Can't configure compiled Prisma query engine for FreeBSD
and PRISMA_ENGINES_CHECKSUM_IGNORE_MISSING=1 npx prisma -v returns the same result
13 replies
PPrisma
Created by Sergii on 1/10/2025 in #help-and-questions
Can't configure compiled Prisma query engine for FreeBSD
I've removed vars from env file and run export PRISMA_QUERY_ENGINE_LIBRARY=/usr/local/www/node_modules/@prisma/engines/libquery_engine.so.node export PRISMA_CLI_QUERY_ENGINE_TYPE="library" but npx prisma -v command still tries to download .../freebsd14/schema-engine.gz
13 replies