dott.bio/maus
OpenSSL error when using Bun + Prisma
Sure, started a new build here! https://railway.app/project/0d9ba7a2-2d72-4e02-a96b-e5726d664511/service/cca92c47-1cdc-4c74-a92e-fbf4f393b021?id=26890294-0c26-4750-8780-9a9846748fa7
65 replies
OpenSSL error when using Bun + Prisma
I got it up and running: 🎉 Both with
prisma generate
and starting the server. This is my nixpacks.toml
:
I'm not sure if this is a good idea, but it works. 👍
Explanation:
- Prisma will look in /lib
for libssl.so.3
and libcrypto.so.3
, so we symlink them there.
- It needs to be /lib
since prisma will use $LD_LIBRARY_PATH
when searching, and only /lib
is included by default
- You can run prisma generate
by including nodejs
in your container (you can remove it after running it)
- Also: OpenSSL is already included in the container by default (no need to add it!)65 replies
OpenSSL error when using Bun + Prisma
Hey gang! Having this very same issue. Prisma will look in
/usr/lib64
and /lib64
for libssl
. However, there is no libssl
there, even though you've installed it.
Running openssl version -e
in the container returns:
So I just think there's a missing symlink or $LD_LIBRARY_PATH
missing somewhere. I don't have any experience with NixOS or Nixpacks, so would love some help here. 🙏65 replies