R
Railwayβ€’3mo ago
Draak

Build error: "Unable to build profile"

Not sure what this build error means or what to do about it. project id = 2090e121-cc62-4fbe-9114-5349121f7893 This project pulls data from APIs in sequence. It was just Rust, but after adding a Python data loader and using custom build/start commands, this error comes up. I specified both the Rust and Python Providers as well as my custom build and start commands. From what I can find from searching myself, this looks like a nix problem with merging, but I'm not sure how to handle or prevent that in Railway. relevant log output:
#10 50.66 building '/nix/store/wps1agix0hhaz5gfawfq92dwqz2sxlk7-bf446f08bff6814b569265bef8374cfdd3d8f0e0-env.drv'...

#10 50.72 created 52 symlinks in user environment

#10 50.76 building '/nix/store/2x4nswyixk163hbzxwlmgfvi3xk62rgs-user-environment.drv'...



#10 50.77 error: Unable to build profile. There is a conflict for the following files:

#10 50.77

#10 50.77 /nix/store/icwr3ihx5n1pvgdl88y53kx3im1k70hv-gcc-13.2.0-man/share/man/man7/fsf-funding.7.gz

#10 50.77 /nix/store/mvi91frx6krjfpjzjickgivx8zq6h8mc-5148520bfab61f99fd25fb9ff7bfbb50dad3c9db-env/share/man/man7/fsf-funding.7.gz

#10 50.83 error: builder for '/nix/store/2x4nswyixk163hbzxwlmgfvi3xk62rgs-user-environment.drv' failed with exit code 1



#10 ERROR: process "/bin/bash -ol pipefail -c nix-env -if .nixpacks/nixpkgs-bf446f08bff6814b569265bef8374cfdd3d8f0e0.nix && nix-collect-garbage -d" did not complete successfully: exit code: 100
#10 50.66 building '/nix/store/wps1agix0hhaz5gfawfq92dwqz2sxlk7-bf446f08bff6814b569265bef8374cfdd3d8f0e0-env.drv'...

#10 50.72 created 52 symlinks in user environment

#10 50.76 building '/nix/store/2x4nswyixk163hbzxwlmgfvi3xk62rgs-user-environment.drv'...



#10 50.77 error: Unable to build profile. There is a conflict for the following files:

#10 50.77

#10 50.77 /nix/store/icwr3ihx5n1pvgdl88y53kx3im1k70hv-gcc-13.2.0-man/share/man/man7/fsf-funding.7.gz

#10 50.77 /nix/store/mvi91frx6krjfpjzjickgivx8zq6h8mc-5148520bfab61f99fd25fb9ff7bfbb50dad3c9db-env/share/man/man7/fsf-funding.7.gz

#10 50.83 error: builder for '/nix/store/2x4nswyixk163hbzxwlmgfvi3xk62rgs-user-environment.drv' failed with exit code 1



#10 ERROR: process "/bin/bash -ol pipefail -c nix-env -if .nixpacks/nixpkgs-bf446f08bff6814b569265bef8374cfdd3d8f0e0.nix && nix-collect-garbage -d" did not complete successfully: exit code: 100
17 Replies
Percy
Percyβ€’3mo ago
Project ID: 2090e121-cc62-4fbe-9114-5349121f7893
Brody
Brodyβ€’3mo ago
You will likely want to move to a custom Dockerfile for your build
Draak
Draakβ€’3mo ago
@Brody thanks for the quick reply. Do you think it could work with a custom nixpacks? To avoid a potentially messy dockerfile I would probably opt to make several mono-lingual services in railway instead πŸ˜…
Brody
Brodyβ€’3mo ago
why does the Dockerfile have to be messy?
Draak
Draakβ€’3mo ago
Because I'm terrible at maintaining them πŸ˜‚
Brody
Brodyβ€’3mo ago
what is the main language in use in this app?
Draak
Draakβ€’3mo ago
Rust. But that rust will slowly move over to TypeScript as the primary as I add more APIs to pull from.
Brody
Brodyβ€’3mo ago
typescript? what happened to python?
Draak
Draakβ€’3mo ago
It's not one "app." I'm using whatever SDK is best supported to pull stuff from Stripe, Discord, Instagram etc. I just run them each one at a time.
Brody
Brodyβ€’3mo ago
at this time does your deployment need node too?
Draak
Draakβ€’3mo ago
not yet.
Brody
Brodyβ€’3mo ago
okay so just rust as the provider and python as a dependency?
Draak
Draakβ€’3mo ago
hmmm the rust doesn't call the python. It's kind of backwards right now since my build and start scripts are just proc calls in python. so I guess it's python provider and a rust dependency? Not sure how to apply those words to this configuration
Brody
Brodyβ€’3mo ago
interesting I still believe this would be best done with a Dockerfile, it's going to give you by far the most control over the build process
Draak
Draakβ€’3mo ago
yeah it's definitely doable in a Docker file. I'll play around a bit and see what I can do. In the end it sounds like this particular error is a sign something too complicated is going on in the build?
Brody
Brodyβ€’3mo ago
sounds about right!
Draak
Draakβ€’3mo ago
thanks for the help! I appreciate it
Want results from more Discord servers?
Add your server