Build error: "Unable to build profile"
Anonymous
TRIALOP

2 years ago

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

17 Replies

2 years ago

You will likely want to move to a custom Dockerfile for your build


Anonymous
TRIALOP

2 years 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 😅


2 years ago

why does the Dockerfile have to be messy?


Anonymous
TRIALOP

2 years ago

Because I'm terrible at maintaining them 😂


2 years ago

what is the main language in use in this app?


Anonymous
TRIALOP

2 years ago

Rust. But that rust will slowly move over to TypeScript as the primary as I add more APIs to pull from.


2 years ago

typescript? what happened to python?


Anonymous
TRIALOP

2 years 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.


2 years ago

at this time does your deployment need node too?


Anonymous
TRIALOP

2 years ago

not yet.


2 years ago

okay so just rust as the provider and python as a dependency?


Anonymous
TRIALOP

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


2 years ago

interesting


2 years ago

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


Anonymous
TRIALOP

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


2 years ago

sounds about right!


Anonymous
TRIALOP

2 years ago

thanks for the help! I appreciate it


Loading...