R
Railway

✋|help

OpenSSL error when using Bun + Prisma

Sspacemandev9/18/2023
Getting an error when using Bun and prisma together. Prisma requires node to work, so start command is
npx prisma generate && bun run src/server.ts

Also my nixpacks.toml has nodejs_18 in it via

[phases.setup]
nixPkgs = ['...', 'nodejs_18']
aptPkgs = ['...', 'libssl-dev']
Sspacemandev9/18/2023
66d1dae6-5074-4f50-8a3b-03d95403b988
https://discord.com/channels/713503345364697088/1150374587658403961/1153088907349606460

looks like this might be a problem with node / bun having conflicts on libssl
Iimlunahey9/18/2023
does prisma not work with bun yet? bunx prisma generate
Sspacemandev9/18/2023
it does not (atleast on railway)
Iimlunahey9/18/2023
does that work locally?
Sspacemandev9/18/2023
yes works locally
Iimlunahey9/18/2023
then ditch the npm lock file and npm command and just use bun for the lot of it. you'll have less issues
Sspacemandev9/18/2023
i removed the node requirements and instead generated the client locally and pushed it (generating debian binary target for railway as required)

still getting libssl not found.
Vvergeilt9/18/2023
i have the same problem
Rrayofbytes9/19/2023
This is odd, I don't think that's running an ARM image...
Does it work if you remove binaryTargets?
Sspacemandev9/19/2023
no it specifically tells me to add debian as a binary target if i remove it
when you build prisma, it compiles, i got around building it in the cloud by not needing node and then just building it locally and then pushing
but doing that required me to build both for native (my macbook so i can use it locally) and debian for the railway image
then i pushed the compiled build into my repo hoping i could just use bun instead of "npx prisma generate && bun run..." because that comamnd was giving an libssl error
which previously in the other thread had been mentioned as potentially coming from a mix of node/bun
Rrayofbytes9/19/2023
If you're open to trying this out:

nixpacks.toml:
[phases.setup]
nixPkgs = ['...', 'nodejs_18']


+ change start script to bunx prisma generate && bun run src/server.ts
Sspacemandev9/19/2023
i had that before (see other thread), and it gave the SSL error
https://discord.com/channels/713503345364697088/1150374587658403961/1152804112153444392
Rrayofbytes9/19/2023
yikes
what's your Prisma version?
Sspacemandev9/19/2023
5.3 i believe
5.3.1* to be exact
Rrayofbytes9/19/2023
I'll try to poke into this when time permits, sounds like an upstream issue though the jury's out on whether it's Bun/Prisma - but will keep you posted!
Sspacemandev9/19/2023
thank you!

Looking for more? Join the community!

Recommended Posts
Server isnt workingThe server suddenly stopped working. Could anyone explain what is going on?...How to deploy a project with multiple dockerfiles?Have project that has one `Dockerfile` for the backend service and another one `Dockerfile.celery` fWildcard DNS let user custom there domainI would like to know how to let's my users custom domain with CNAME to my domain DNS my DOMAIN CNABun with turborepo supportHey guys, Just switched over to bun from fastify but having some trouble setting it up properly to How does pro plan upgrade works for application? particularly Spring boot app...Hi all, I find it difficult to understand how pro plan upgrade works. I upgraded my Spring boot app Deploying Rust tries to copy binaries that don't exist.I'm not using my own nixpacks.toml, and railway is attempting to copy binaries that it doesn't need Cron skipingSo my Cron Schedule keeps skipping every time?Request to free up custom domainMy project id : 5df73bd5-7d04-40dd-9e57-97f1cdd89a60 Can u pls delete the given custom domain, it sPR PreviewsHi everyone. Is it possible to setup PR previews with it's own set of environment variables?Looking for way to run LibreTranslate as a service on railwayI'm looking for a way to run https://libretranslate.com on my railway instance. Ideally it would beRTT to nearby datacenter has gone way up in the past few daysRegions have been amazing and are super helpful for our use case. We host our database in AWS us-easPublishing .net 7 app - project file not foundHi, I'm new in railway and i'm faced with file structure problem. I heared that way to publish is sIssue with staging: The value needs to be expressed as a valid JSON string.i'm trying to make a dev and product env's, but now i created a service on the dev env and trying toIssue with staging: The value needs to be expressed as a valid JSON string.i'm trying to make a dev and product env's, but now i created a service on the dev env and trying toUse Volume with grafana will permission deniedI was configed volume and data path, but when i start my grafana, it will crash. This is log: Error:if i disconect an account of github ?whats going on with the repository are linking with this account ? fb928ae2-62f0-4f8f-be68-9f7902efCommunication between projects without requestsHey everyone, a question. Is it possible to establish communication between projects? For example, Ihow to setup webhooks?Hey guys I'm looking for how to setup a deploy webhook similar to vercel for my website with sanity.Template services in forked environment not deployingHi! When I create a new environment from the base one the two services, that I created from a templaHow can I update the file permissions inside a railway development instance?I receive this error: "PermissionError: [Errno 13] Permission denied: './src/engines/komodo-14/Linu