Urgent: Prisma cannot find the required
libssl

AnonymousTRIAL

a year ago

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?

2 Replies

AnonymousTRIAL

a year ago

b5402dad-9099-401e-9018-f479371b2f41


a year ago

what is your current nixpacks.toml


AnonymousTRIAL

a year ago

I dont have one. I am working in a typescript turbo-repo monorepo and it is deploying one of the sub-packages


AnonymousTRIAL

a year ago

I'm not sure how to setup a nixpacks.toml for this


a year ago

are you using bun


AnonymousTRIAL

a year ago

I am not


a year ago

please show the exact error you are getting


AnonymousTRIAL

a year ago

1215387744306598000


AnonymousTRIAL

a year ago

I set my package.json to "engines": { "node": "20" },


AnonymousTRIAL

a year ago

And also tried 18


AnonymousTRIAL

a year ago

But neither worked


a year ago

okay try adding a nixpacks.toml file to your project

[phases.setup]
    nixLibs = ['openssl']

AnonymousTRIAL

a year ago

Add to the root of the project?


a year ago

is the service deploying from the root of the project?


AnonymousTRIAL

a year ago

The files for the deployment are in a sub-dir, but the commands to build/start come from the root


a year ago

whatever directory the railway service is set to is where the nixpacks.toml file should go


AnonymousTRIAL

a year ago

Ok I will try


AnonymousTRIAL

a year ago

Thanks for helping, Brody


AnonymousTRIAL

a year ago

Building…


a year ago

may i ask if you are pro/business


AnonymousTRIAL

a year ago

pro


AnonymousTRIAL

a year ago

Same issue. Is there a way to make sure the config was applied?


AnonymousTRIAL

a year ago

1215391366826434600


AnonymousTRIAL

a year ago

Nevermind, i see this


AnonymousTRIAL

a year ago

Is there anything else I can try?


a year ago

Can you share your building logs? after the nixpacks.toml file


a year ago

And do you have a railway.toml file?


AnonymousTRIAL

a year 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


AnonymousTRIAL

a year ago

Because I tried to rollback to the last know working version and it inherited the same problem


a year ago

you can tho
[build] nixpacksVersion = "1.13.0"


AnonymousTRIAL

a year ago

Oh, I mean internally if you don't set it explicitly


a year ago

oh


AnonymousTRIAL

a year ago

Is this what you are asking for?

1215393317194301400


AnonymousTRIAL

a year ago

this is the railway.toml [phases.setup] nixLibs = ['openssl']


a year ago

It needs to be a nixpacks.toml


a year ago

not a railway.toml


AnonymousTRIAL

a year ago

Ok let me deploy that!


a year ago

yep, it will show the openssl there if it detects the nixpacks.toml


a year ago

(it did)


AnonymousTRIAL

a year ago

1215394245561548800


AnonymousTRIAL

a year ago

After I added the nixpacks.toml


a year ago

hmm, never saw that is it related to private network @Brody?


a year ago

full build logs please


AnonymousTRIAL

a year ago


AnonymousTRIAL

a year ago

Oh wait sorry… it deselects when I drag select the whole thing


AnonymousTRIAL

a year ago

Is there a way to copy the whole thing?


a year ago


AnonymousTRIAL

a year ago


AnonymousTRIAL

a year ago

Thanks!


AnonymousTRIAL

a year ago

Sorry wrong one…


AnonymousTRIAL

a year ago


a year ago

can you send build logs from a deployment that worked?


AnonymousTRIAL

a year ago

They wont load 😦


AnonymousTRIAL

a year ago

No build logs found for deployment


a year ago

how long ago would that deployment have been made?


AnonymousTRIAL

a year ago

14 days ago


a year ago

are you sure you're pro?


a year ago

hobby only has a log retention of 7 days


AnonymousTRIAL

a year ago

1215398475735371800


AnonymousTRIAL

a year ago

Oh shoot! This is actually on my personal account for some reason… it is hobby


a year ago

are you the owner of leaseUp


AnonymousTRIAL

a year ago

Yeah, but sorry I thought I had deployed this project on the LeaseUp account but accidentally added it to my personal account


a year ago

have you tried pinning the nixpacks version?


AnonymousTRIAL

a year ago

Just started that actually


AnonymousTRIAL

a year ago

Its deploying now


a year ago

what version did you pin it to?


AnonymousTRIAL

a year ago

v1.21.1 from a month ago


AnonymousTRIAL

a year ago

Same problem 😦


a year ago

okay so then it seems its not something railway changed


AnonymousTRIAL

a year 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


a year ago

try reverting your github repo


AnonymousTRIAL

a year ago

I will try that, but why would it have this new issue when I "rollback" from the last know working version?


a year ago

not too sure, it might even be worth going to a Dockerfile based build so you arent relying on nixpacks


AnonymousTRIAL

a year ago

I will try that in the future


a year ago

i kinda meant it would be worth it to do right now


AnonymousTRIAL

a year ago

Ok


AnonymousTRIAL

a year ago

Went back to "1.20.0" and it worked!!


AnonymousTRIAL

a year ago

@Brody @Medim Thank you so much for your help!!


a year ago

i would still go the dockerfile route


AnonymousTRIAL

a year ago

Haha will do asap


a year ago

That was all brody lmao but thanks <:salute:1137099685417451530>


lukeviniciusHOBBY

a year ago

are you using bun

I am using bun with Elysia framework and have the same problem

Attachments


a year ago

Can you try this nixpacks.toml file?

[phases.setup]
  nixPkgs = ['...', 'openssl']
  nixLibs = ['openssl']

Urgent: Prisma cannot find the required `libssl` - Railway Help Station