Unable to build FastAPI
mariomeissner
HOBBYOP

2 years ago

I'm facing an error when building a simple FastAPI project:
Text file busy: '/opt/venv/bin/python'

This error happens during the poetry install stage of the nix docker build. I'd appreciate any pointers or troubleshooting steps I could take!

View Deploy details

ⓘ Deployment information is only viewable by project members and Railway employees.

Solved

8 Replies


mariomeissner
HOBBYOP

2 years ago

Build logs

Attachments


2 years ago

Looks like you have incorrectly configured the service, it would be best for you to delete that service and deploy into a new service.


mariomeissner
HOBBYOP

2 years ago

I tried creating a new service, followed these steps:

  • Choose root directory (I have a monorepo in github and this project is in a subfolder)

  • Change the nixpack environment is set to python

  • Rely on the pre-defined build command, which seems to be correct because I am using poetry

  • Click deploy

But the same error happened again. If my service is misconfigured, I'd love to know what's wrong with it!

Attachments


2 years ago

You are setting duplicate providers, please do not touch anything to do with the providers.


mariomeissner
HOBBYOP

2 years ago

Interesting, yeah, when I close and open the config again, I see double Python provider. That seems to be a bug, because I clearly only saw one when I prepared my initial config. Maybe it tried adding one automatically at the same time as I configured one manually.


mariomeissner
HOBBYOP

2 years ago

The build was successful now, thank you for identifying my issue!


2 years ago

No problem!


Status changed to Solved brody over 1 year ago


Loading...