LoadError on build
ProjectId: 1e4b0651-0174-42a1-aac8-4081f16bb807
Related to an earlier issue (https://discord.com/channels/713503345364697088/1178533909047291914)
It was suggested I add
postgres
to the nix packages. Now my project is crashing on build, not after publish 😆 .
Full error message is:
I have done a bunch of googling and looking in the nixpacks docs - but can't seem to find the answer..
I added glibc
to the nixPkgs - but it throws the same error. The specific step this is happening on is building my assets:precompile
rake task. This completes successfully if I remove the postgresql
nix package.
Googling the constant GLIBC_ABI_DT_RELR
didn't reveal much - but did bring up the following github issue... which seems tangentally related - though I can't find the nixpkgs-ruby
mentioned in the NixOS search - nor nixpkgs-unstable
(which sounds lke a bad idea - anyway).
So now I'm at a loss again!
Full dump in comments.21 Replies
Project ID:
1e4b0651-0174-42a1-aac8-4081f16bb807
bump 👆
don't know why I didn't see this, but please use this https://bookmarklets.up.railway.app/log-downloader/
Probably because I posted last night (Aussie time) 🙃
Will do!
I experienced this today too. I had to add a few libraries "manually" rather than through nixpacks:
you couldnt just do
aptPkgs = ['...', 'libpq-dev', 'postgresql-client-16']
?Nope, had to add the PostgreSQL repo first
and couldn't find a way to do that before the build phase
note that i'm adding PostgreSQL v16
did you get
/lib/x86_64-linux-gnu/libc.so.6: version GLIBC_ABI_DT_RELR not found
too?Yes
ruby too?
Yes
Solution
Opening the kimono here, go easy! Here's my nixpacks.toml which works
Actually maybe, I really tried to do this but couldn't find a way to go the repo added first. My nixpacks.toml leaves the postgres apt-get as late as possible for optimal caching (which with Ruby builds isn't all that optimal)
Sorry for posting so late. My web browser was blockign the script, and luch was finishing up.
Thanks @nickmacavoy for your experience. How did you 'manually' add this? I'm still unsure how to get into whaever is being spun up.
it's a nixpacks.toml file
add their nixpacks.toml file to your project and redeploy
Oops, that'll teach me for skim reading. Sorry, long day.
So it's been up for ~20 minutes and hasn't crashed yet. Thanks for your help guys!
dont think they mentioned it being a nixpacks.toml file, so all good!
happy its fixed now!!
Great stuff. Though it's worth noting the above is a workaround, it'd be nice to properly implement PostgreSQL using a Nix package for speed and caching. If you're reading this from the future and manage to get it working, please post your findings here!
railway maintains nixpacks, though nix packages is not affiliated with railway
Hi, sorry to resurrect this old discussion! I'm looking to modify my build to spin up a rake task for resque... and I see you have comments about 'custom build.sh' and 'custom start.sh... but I can't find any reference to the actual files... are these the default Railway ones? Part of an apt-pkg being installed? For me to implement myself? I'm not sure how it's even building or starting without these? Sorry for the newbie questions!