Sergii
Sergii
PPrisma
Created by Sergii on 1/14/2025 in #help-and-questions
Can't configure Prisma query engine on FreeBSD server
I successfully compiled the engine including /root/prisma-engines/target/release/libquery_engine.so and other files, renamed release/deps/libquery_engine.so to release/deps/libqueryengine.so.node and set variables in the shell like export PRISMA... Now I run npx prisma db push and it successfully creates tables in the database. But when I run my tRPC server file as DEBUG=prisma* node dist/server/routers/_app.js which tries to use Prisma client, I get result root@www2:/usr/local/www # DEBUG=prisma* node dist/server/routers/_app.js prisma:tryLoadEnv Environment variables not found at null +5ms prisma:tryLoadEnv Environment variables loaded from /usr/local/www/.env +1ms prisma:client checkPlatformCaching:postinstall undefined +1ms prisma:client checkPlatformCaching:ciName undefined +1ms prisma:tryLoadEnv Environment variables not found at null +0ms prisma:tryLoadEnv Environment variables loaded from /usr/local/www/.env +0ms prisma:client dirname /usr/local/www/node_modules/.prisma/client +0ms prisma:client relativePath ../../../prisma +0ms prisma:client cwd /usr/local/www/prisma +0ms prisma:client clientVersion 5.18.0 +1ms prisma:client:libraryEngine internalSetup +0ms prisma:get-platform Command "freebsd-version" successfully returned "14.2-RELEASE " +12ms thread '<unnamed>' panicked at query-engine/query-engine-node-api/src/engine.rs:76:45: ...
10 replies
PPrisma
Created by Sergii on 1/10/2025 in #help-and-questions
Can't configure compiled Prisma query engine for FreeBSD
Could you help me to resolve the following issue? I compiled libquery_engine.so on FreeBSD v14, copied it to node_modules/@prisma/engines/libquery_engine.so.node, set variables in my .env file as PRISMA_QUERY_ENGINE_LIBRARY=/usr/local/www/node_modules/@prisma/engines/libquery_engine.so.node PRISMA_QUERY_ENGINE_BINARY=/usr/local/www/node_modules/@prisma/engines/libquery_engine.so.node [ I also tried to rename the file to libquery_engine-freebsd14.so.node ] and added to the schema the line binaryTargets = ["native", "freebsd14"] but when I run npx prisma -v it still tries to download engine from binaries.prisma.sh with failing of course as there is no pre-compiled engine for freebsd14 How to make Prisma commands to use my compiled engine for FreeBSD instead of trying to download it?
12 replies