R
Railway•14mo ago
BigLung

Railway Rocket Template Won't Deploy OpenSSL?

Repo to reproduce: https://github.com/get-river/geoip-microservice The build fails with the following error. I have no idea how to debug or resolve this since its a docker container / railway Nix Packs build... Any suggestions gang?
GitHub
GitHub - get-river/geoip-microservice
Contribute to get-river/geoip-microservice development by creating an account on GitHub.
13 Replies
Percy
Percy•14mo ago
Project ID: N/A
BigLung
BigLungOP•14mo ago
Brody
Brody•14mo ago
BigLung
BigLungOP•14mo ago
getting now
BigLung
BigLungOP•14mo ago
this is from the most recent build where I tried to manually specify cargo build and cargo run let me get the one where I tried deploying with all the defaults from the template...
Brody
Brody•14mo ago
this would be something you added to the crates that needs openssl
BigLung
BigLungOP•14mo ago
?
[dependencies]
rocket = "0.5.0-rc.1"
ipgeolocate = "0.3.5"
[dependencies]
rocket = "0.5.0-rc.1"
ipgeolocate = "0.3.5"
so adding this depdency is somehow causing the build error? i guess I just don't understand why it runs fine locally, do I need to manually add openssl into my Cargo.toml?
BigLung
BigLungOP•14mo ago
also here is the build logs with all of the tempalte defaults instead of manually specifying a build and run command
Brody
Brody•14mo ago
I think there is a rust crate that does add openssl, so for sure look into that
BigLung
BigLungOP•14mo ago
@Brody so I'm pretty sure this is a nix pax issue / an issue with the docker file that railway is generating for my project. Is there any way to edit that docker file that is running in this build? I tested my project on all 3 operating systems and its working by default with no additional config It only fails to build on railway even when I use a blank railway project template and try to build / run through cargo build I can also just switch to golang or something haha might just work out of the box 😂 rust is dumb sometimes
Brody
Brody•14mo ago
well yes and no to it being a nixpacks issue, ideally nixpacks would automatically detect the specific crate you are using that needs openssl and add the system dependency automatically, but at this time it doesn't. I have seen people solve this by installing some openssl crate as I recommend you try above. and while you can't modify the dockerfile nixpacks generates directly, you can modify the build plan with a nixpacks.toml file, with this you can get nixpacks to install nix packages or apt packages https://nixpacks.com/docs/configuration/file
Want results from more Discord servers?
Add your server