XxGunnery
Unexpected crash - Rust crashes after building with libgssapi-krb5 reference
Hey, first time posting an error - my Railway deployment is crashing with the following error:
error while loading shared libraries: libgssapi_krb5.so.2: cannot open shared object file: No such file or directory
The deployment for this code was working fine until I added the diesel dependency in my Cargo.toml. I first needed to add libpq-dev as an apt dependency (expected this one) to fix build errors, and then I got it to build and deploy, and ran into the crash error mentioned earlier.
Here is my Cargo.toml for the project:
[dependencies]
actix-web = "4"
actix-cors = "0.6.4"
actix = "0.13.0"
actix-web-actors = "4.2.0"
reqwest = { version = "0.11.14", features = ["json"] }
dotenv = "0.15.0"
serde_json = "1.0.94"
serde = { version = "1.0.155", features = ["derive"] }
diesel = { version = "2.0.4", features = [
"postgres",
"chrono",
"uuid",
"r2d2",
"serde_json",
] }
env_logger = "0.10.0"
rand = "0.8.4"
Here is my nixpacks.toml (need libpq-dev for Diesel's postgres feature):
[phases.setup]
aptPkgs = ["...", "libpq-dev"]
Thank you, any help would be appreciated!
460 replies