R
Railway•9mo ago
wilsonlewis

Urgent: Prisma cannot find the required `libssl`

My site just went down. I am having the same problem as this https://discord.com/channels/713503345364697088/1175401667978604575 I am having a hard time figuring out the solution based on the this thread Could someone please help?
Solution:
Went back to "1.20.0" and it worked!!
Jump to solution
66 Replies
Percy
Percy•9mo ago
Project ID: b5402dad-9099-401e-9018-f479371b2f41
wilsonlewis
wilsonlewisOP•9mo ago
b5402dad-9099-401e-9018-f479371b2f41
Brody
Brody•9mo ago
what is your current nixpacks.toml
wilsonlewis
wilsonlewisOP•9mo ago
I dont have one. I am working in a typescript turbo-repo monorepo and it is deploying one of the sub-packages I'm not sure how to setup a nixpacks.toml for this
Brody
Brody•9mo ago
are you using bun
wilsonlewis
wilsonlewisOP•9mo ago
I am not
Brody
Brody•9mo ago
please show the exact error you are getting
wilsonlewis
wilsonlewisOP•9mo ago
No description
wilsonlewis
wilsonlewisOP•9mo ago
I set my package.json to
"engines": {
"node": "20"
},
"engines": {
"node": "20"
},
And also tried 18 But neither worked
Brody
Brody•9mo ago
okay try adding a nixpacks.toml file to your project
[phases.setup]
nixLibs = ['openssl']
[phases.setup]
nixLibs = ['openssl']
wilsonlewis
wilsonlewisOP•9mo ago
Add to the root of the project?
Brody
Brody•9mo ago
is the service deploying from the root of the project?
wilsonlewis
wilsonlewisOP•9mo ago
The files for the deployment are in a sub-dir, but the commands to build/start come from the root
Brody
Brody•9mo ago
whatever directory the railway service is set to is where the nixpacks.toml file should go
wilsonlewis
wilsonlewisOP•9mo ago
Ok I will try Thanks for helping, Brody Building...
Brody
Brody•9mo ago
may i ask if you are pro/business
wilsonlewis
wilsonlewisOP•9mo ago
pro Same issue. Is there a way to make sure the config was applied?
wilsonlewis
wilsonlewisOP•9mo ago
No description
wilsonlewis
wilsonlewisOP•9mo ago
Nevermind, i see this Is there anything else I can try?
Medim
Medim•9mo ago
Can you share your building logs? after the nixpacks.toml file And do you have a railway.toml file?
wilsonlewis
wilsonlewisOP•9mo ago
Also, as a brief feedback, it would be nice if you pin the nixpacks version internally, so when you do a "rollback" it uses the same version Because I tried to rollback to the last know working version and it inherited the same problem
Medim
Medim•9mo ago
you can tho
nixpacksVersion = "1.13.0"
nixpacksVersion = "1.13.0"
wilsonlewis
wilsonlewisOP•9mo ago
Oh, I mean internally if you don't set it explicitly
Medim
Medim•9mo ago
oh
wilsonlewis
wilsonlewisOP•9mo ago
Is this what you are asking for?
No description
wilsonlewis
wilsonlewisOP•9mo ago
this is the railway.toml
[phases.setup]
nixLibs = ['openssl']
[phases.setup]
nixLibs = ['openssl']
Medim
Medim•9mo ago
It needs to be a nixpacks.toml not a railway.toml
wilsonlewis
wilsonlewisOP•9mo ago
Ok let me deploy that!
Medim
Medim•9mo ago
yep, it will show the openssl there if it detects the nixpacks.toml (it did)
wilsonlewis
wilsonlewisOP•9mo ago
No description
wilsonlewis
wilsonlewisOP•9mo ago
After I added the nixpacks.toml
Medim
Medim•9mo ago
hmm, never saw that is it related to private network @Brody?
Brody
Brody•9mo ago
full build logs please
wilsonlewis
wilsonlewisOP•9mo ago
wilsonlewis
wilsonlewisOP•9mo ago
Oh wait sorry... it deselects when I drag select the whole thing Is there a way to copy the whole thing?
wilsonlewis
wilsonlewisOP•9mo ago
Thanks! Sorry wrong one...
Brody
Brody•9mo ago
can you send build logs from a deployment that worked?
wilsonlewis
wilsonlewisOP•9mo ago
They wont load 😦 No build logs found for deployment
Brody
Brody•9mo ago
how long ago would that deployment have been made?
wilsonlewis
wilsonlewisOP•9mo ago
14 days ago
Brody
Brody•9mo ago
are you sure you're pro? hobby only has a log retention of 7 days
wilsonlewis
wilsonlewisOP•9mo ago
No description
wilsonlewis
wilsonlewisOP•9mo ago
Oh shoot! This is actually on my personal account for some reason... it is hobby
Brody
Brody•9mo ago
are you the owner of leaseUp
wilsonlewis
wilsonlewisOP•9mo ago
Yeah, but sorry I thought I had deployed this project on the LeaseUp account but accidentally added it to my personal account
Brody
Brody•9mo ago
have you tried pinning the nixpacks version?
wilsonlewis
wilsonlewisOP•9mo ago
Just started that actually Its deploying now
Brody
Brody•9mo ago
what version did you pin it to?
wilsonlewis
wilsonlewisOP•9mo ago
v1.21.1 from a month ago Same problem 😦
Brody
Brody•9mo ago
okay so then it seems its not something railway changed
wilsonlewis
wilsonlewisOP•9mo ago
That's interesting. I change 1 file that was just a typo in a string in another file that was outside of the watch pattern for this service, but it deployed anyway, and ever since I have had this issue
Brody
Brody•9mo ago
try reverting your github repo
wilsonlewis
wilsonlewisOP•9mo ago
I will try that, but why would it have this new issue when I "rollback" from the last know working version?
Brody
Brody•9mo ago
not too sure, it might even be worth going to a Dockerfile based build so you arent relying on nixpacks
wilsonlewis
wilsonlewisOP•9mo ago
I will try that in the future
Brody
Brody•9mo ago
i kinda meant it would be worth it to do right now
wilsonlewis
wilsonlewisOP•9mo ago
Ok
Solution
wilsonlewis
wilsonlewis•9mo ago
Went back to "1.20.0" and it worked!!
wilsonlewis
wilsonlewisOP•9mo ago
@Brody @Medim Thank you so much for your help!!
Brody
Brody•9mo ago
i would still go the dockerfile route
wilsonlewis
wilsonlewisOP•9mo ago
Haha will do asap
Medim
Medim•9mo ago
That was all brody lmao but thanks :salute:
Duchess
Duchess•8mo ago
New reply sent from Help Station thread:
are you using bun I am using bun and have the same problem
You're seeing this because this thread has been automatically linked to the Help Station thread. New reply sent from Help Station thread:
Can you try this nixpacks.toml file?
[phases.setup]
nixPkgs = ['...', 'openssl']
nixLibs = ['openssl']
[phases.setup]
nixPkgs = ['...', 'openssl']
nixLibs = ['openssl']
You're seeing this because this thread has been automatically linked to the Help Station thread.
Want results from more Discord servers?
Add your server