hono & Prisma runtime crashes
irazvan2745
PROOP

4 months ago

Info:
Hono, orpc, prisma, turborepo and nixpacks

schema.prisma:

datasource db {

provider = "postgresql"

url = env("DATABASE_URL")

}

generator client {

provider = "prisma-client-js"

output = "../generated"

}

error:

Started server: http://localhost:8080

19 | `)}

20 |

21 | We suggest to move the contents of ${Y(l)} to ${Y(a)} to consolidate your env vars.

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

22 | ;throw new Error(u)}else if(t==="warn"){let u=Conflict for env var${s.length>1?"s":""} ${s.map(c=>W(c)).join(", ")} in ${Y(a)} and ${Y(l)}

23 | Env vars from ${Y(l)} overwrite the ones from ${Y(a)}

24 | ;console.warn(${Ie("warn(prisma)")} ${u}`)}}}}function s(e){if(xp(e)){$i(`Environment variables loaded from ${e}`);let r=qi.default.config({path:e,debug:process.env.DOTENVCONFIG_DEBUG?!0:void 0});return{dotenvResult:ks(r),message:Ce(`Environment variables loaded from ${wr.default.relative(process.cwd(),e)}`),path:e}}else $i(`Environment variables not found at ${e}`);return null}function Ns(e,r){return e&&r&&wr.default.resolve(e)===wr.default.resolve(r)}function xp(e){return!!(e&&ln.default.existsSync(e))}function Vi(e,r){return Object.prototype.hasOwnProperty.call(e,r)}function cn(e,r){let t={};for(let n of Object.keys(e))t[n]=r(e[n],n);return t}function ji(e,r){if(e.length===0)return;let t=e[0];for(let n=1;n<e.length;n++)r(t,e[n])<0&&(t=e[n]);return t}function x(e,r){Object.defineProperty(e,"name",{value:r,configurable:!0})}var Fs=new Set,st=(e,r,...t)=>{Fs.has(e)||(Fs.add(e),_i(r,...t))};var v=class e extends Error{clientVersion;errorCode;retryable;constructor(r,t,n){super(r),this.name="PrismaClie

PrismaClientInitializationError: Unable to require(`/nix/store/yss7dszbr0pz3zqym0kf167rh71l870m-openssl-3.4.1/lib/libssl.so.3`).

clientVersion: "6.14.0",

errorCode: undefined,

retryable: undefined,

at new PrismaClientInitializationError (prisma/generated/runtime/library.js:24:995)

at <anonymous> (prisma/generated/runtime/library.js:114:8125)

Bun v1.2.10 (Linux x64)

Started server: http://localhost:8080

19 | `)}

20 |

21 | We suggest to move the contents of ${Y(l)} to ${Y(a)} to consolidate your env vars.

22 | ;throw new Error(u)}else if(t==="warn"){let u=Conflict for env var${s.length>1?"s":""} ${s.map(c=>W(c)).join(", ")} in ${Y(a)} and ${Y(l)}

23 | Env vars from ${Y(l)} overwrite the ones from ${Y(a)}

24 | ;console.warn(${Ie("warn(prisma)")} ${u}`)}}}}function s(e){if(xp(e)){$i(`Environment variables loaded from ${e}`);let r=qi.default.config({path:e,debug:process.env.DOTENVCONFIG_DEBUG?!0:void 0});return{dotenvResult:ks(r),message:Ce(`Environment variables loaded from ${wr.default.relative(process.cwd(),e)}`),path:e}}else $i(`Environment variables not found at ${e}`);return null}function Ns(e,r){return e&&r&&wr.default.resolve(e)===wr.default.resolve(r)}function xp(e){return!!(e&&ln.default.existsSync(e))}function Vi(e,r){return Object.prototype.hasOwnProperty.call(e,r)}function cn(e,r){let t={};for(let n of Object.keys(e))t[n]=r(e[n],n);return t}function ji(e,r){if(e.length===0)return;let t=e[0];for(let n=1;n<e.length;n++)r(t,e[n])<0&&(t=e[n]);return t}function x(e,r){Object.defineProperty(e,"name",{value:r,configurable:!0})}var Fs=new Set,st=(e,r,...t)=>{Fs.has(e)||(Fs.add(e),_i(r,...t))};var v=class e extends Error{clientVersion;errorCode;retryable;constructor(r,t,n){super(r),this.name="PrismaClie

PrismaClientInitializationError: Unable to require(`/nix/store/yss7dszbr0pz3zqym0kf167rh71l870m-openssl-3.4.1/lib/libssl.so.3`).

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: symbol 'napi_register_module_v1' not found in native module. Is this a Node API (napi) module?

clientVersion: "6.14.0",

errorCode: undefined,

retryable: undefined,

at new PrismaClientInitializationError (prisma/generated/runtime/library.js:24:995)

at <anonymous> (prisma/generated/runtime/library.js:114:8125)

Bun v1.2.10 (Linux x64)

Solved$10 Bounty

6 Replies

Railway
BOT

4 months ago

Hey there! We've found the following might help you get unblocked faster:

If you find the answer from one of these, please let us know by solving the thread!


Hmmm, judging from the message that I am seeing here, I think it's a configuration issue with your application.


Status changed to Awaiting User Response Railway 4 months ago


angelo-railway

Hmmm, judging from the message that I am seeing here, I think it's a configuration issue with your application.

irazvan2745
PROOP

4 months ago

On my local machine it generates that binary file with no issues, but not im railway


Status changed to Awaiting Railway Response Railway 4 months ago


irazvan2745
PROOP

4 months ago

its a nixpacks and prisma issue, prisma cannot find the required lib


brody
EMPLOYEE

4 months ago

Going to open this thread up to our community, as we are only able to provide support for issues with the Railway platform or product. Application-level support is provided by the community.


Status changed to Awaiting User Response Railway 4 months ago


brody
EMPLOYEE

4 months ago

This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.

Status changed to Open brody 4 months ago


irazvan2745
PROOP

4 months ago

Fixed it by using railpack, its an issue with nixpacks


Status changed to Solved brody 4 months ago


Status changed to Solved angelo-railway 4 months ago


Loading...