Urgent: Prisma cannot find the required
libssl
wilsonlewis
HOBBYOP

3 years 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?

Solved

83 Replies

wilsonlewis
HOBBYOP

3 years ago

b5402dad-9099-401e-9018-f479371b2f41


3 years ago

what is your current nixpacks.toml


wilsonlewis
HOBBYOP

3 years ago

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


wilsonlewis
HOBBYOP

3 years ago

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


3 years ago

are you using bun


wilsonlewis
HOBBYOP

3 years ago

I am not


3 years ago

please show the exact error you are getting


wilsonlewis
HOBBYOP

3 years ago

1215387744306597998


wilsonlewis
HOBBYOP

3 years ago

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


wilsonlewis
HOBBYOP

3 years ago

And also tried 18


wilsonlewis
HOBBYOP

3 years ago

But neither worked


3 years ago

okay try adding a nixpacks.toml file to your project

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

wilsonlewis
HOBBYOP

3 years ago

Add to the root of the project?


3 years ago

is the service deploying from the root of the project?


wilsonlewis
HOBBYOP

3 years ago

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


3 years ago

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


wilsonlewis
HOBBYOP

3 years ago

Ok I will try


wilsonlewis
HOBBYOP

3 years ago

Thanks for helping, Brody


wilsonlewis
HOBBYOP

3 years ago

Building...


3 years ago

may i ask if you are pro/business


wilsonlewis
HOBBYOP

3 years ago

pro


wilsonlewis
HOBBYOP

3 years ago

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


wilsonlewis
HOBBYOP

3 years ago

1215391366826434651


wilsonlewis
HOBBYOP

3 years ago

Nevermind, i see this


wilsonlewis
HOBBYOP

3 years ago

Is there anything else I can try?


3 years ago

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


3 years ago

And do you have a railway.toml file?


wilsonlewis
HOBBYOP

3 years 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


wilsonlewis
HOBBYOP

3 years ago

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


3 years ago

you can tho

nixpacksVersion = "1.13.0"```


wilsonlewis
HOBBYOP

3 years ago

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


3 years ago

oh


wilsonlewis
HOBBYOP

3 years ago

Is this what you are asking for?

1215393317194301530


wilsonlewis
HOBBYOP

3 years ago

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


3 years ago

It needs to be a nixpacks.toml


3 years ago

not a railway.toml


wilsonlewis
HOBBYOP

3 years ago

Ok let me deploy that!


3 years ago

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


3 years ago

(it did)


wilsonlewis
HOBBYOP

3 years ago

1215394245561548830


wilsonlewis
HOBBYOP

3 years ago

After I added the nixpacks.toml


3 years ago

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


3 years ago

full build logs please


wilsonlewis
HOBBYOP

3 years ago


wilsonlewis
HOBBYOP

3 years ago

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


wilsonlewis
HOBBYOP

3 years ago

Is there a way to copy the whole thing?


3 years ago


wilsonlewis
HOBBYOP

3 years ago


wilsonlewis
HOBBYOP

3 years ago

Thanks!


wilsonlewis
HOBBYOP

3 years ago

Sorry wrong one...


wilsonlewis
HOBBYOP

3 years ago


3 years ago

can you send build logs from a deployment that worked?


wilsonlewis
HOBBYOP

3 years ago

They wont load 😦


wilsonlewis
HOBBYOP

3 years ago

No build logs found for deployment


3 years ago

how long ago would that deployment have been made?


wilsonlewis
HOBBYOP

3 years ago

14 days ago


3 years ago

are you sure you're pro?


3 years ago

hobby only has a log retention of 7 days


wilsonlewis
HOBBYOP

3 years ago

1215398475735371808


wilsonlewis
HOBBYOP

3 years ago

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


3 years ago

are you the owner of leaseUp


wilsonlewis
HOBBYOP

3 years ago

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


3 years ago

have you tried pinning the nixpacks version?


wilsonlewis
HOBBYOP

3 years ago

Just started that actually


wilsonlewis
HOBBYOP

3 years ago

Its deploying now


3 years ago

what version did you pin it to?


wilsonlewis
HOBBYOP

3 years ago

v1.21.1 from a month ago


wilsonlewis
HOBBYOP

3 years ago

Same problem 😦


3 years ago

okay so then it seems its not something railway changed


wilsonlewis
HOBBYOP

3 years 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


3 years ago

try reverting your github repo


wilsonlewis
HOBBYOP

3 years ago

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


3 years ago

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


wilsonlewis
HOBBYOP

3 years ago

I will try that in the future


3 years ago

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


wilsonlewis
HOBBYOP

3 years ago

Ok


wilsonlewis
HOBBYOP

3 years ago

Went back to "1.20.0" and it worked!!


wilsonlewis
HOBBYOP

3 years ago

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


3 years ago

i would still go the dockerfile route


wilsonlewis
HOBBYOP

3 years ago

Haha will do asap


3 years ago

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


lukevinicius
HOBBY

2 years ago

are you using bun

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

Attachments


2 years ago

Can you try this nixpacks.toml file?

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

Status changed to Solved medim • 6 months ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...