Python dependencies installed but not copied due to `Text file busy: '/opt/venv/bin/python'`
I just created a new Python service to test so it is very light weight.
In the service's
Settings > Custom Build Command
I have pip install -r requirements.txt
which I think is pretty standard.
However I am seeing the following in the build log and failing.
Installation of the dependencies all complete properly, it's just the step after that is failing.Solution:Jump to solution
It looks like you are using nixpacks? Why do you have custom build command? NIxpacks should find the requirements file and instal for you. Can you send the top of the logs? So I can see what the different build steps are?
15 Replies
Project ID:
9e3c9670-2007-40d3-b956-558ed96af87a
9e3c9670-2007-40d3-b956-558ed96af87a
Solution
It looks like you are using nixpacks? Why do you have custom build command? NIxpacks should find the requirements file and instal for you. Can you send the top of the logs? So I can see what the different build steps are?
I don't know what NIXPACKS is. I just removed my own
pip install
custom build command. Now re-running it and the log shows this so far
Ok, the build is succsesfully finishedYea. The pip install is part of
install
and not really "build". But see the top of the log? Where it says Nixpacks v1.24.0
. Railway uses that as the default builder.Nixpacks is Railway’s automatic builder, it handles most builds for you. You should only be using custom commands or a dockerfile if it’s not working or you need more customization
However, the build is working fine but the deployment isn't. I want to access the webserver using HTTPS so I configured the web server to use
443
port and I can see that it was started with 0.0.0.0:443
. However with the public domain
, I can't access the server. Am I doing something wrong?
Seeing as Railway dockerizes my code and deploys it, I am not sure what port I need to bind to from my server to get exposed to 443
correctly.See https://github.com/brody192/reverse-proxy. See the end about ports
There is also https://docs.railway.app/guides/fixing-common-errors#solution
Ok, I just added my own
PORT
env variable in Railway with specific port my webserver binds to and it worked!Yay :party_cat:
Auto magic. Thanks for all the help
why link the reverse proxy? 😆
Idk his setup. And the part about ports with something like gunicorn, is useful. Just trying to account for any edge cases in setup.
best to stick to the fixing common errors page
Yea. I grabbed it after. Should have just linked it and if it didn’t work, link the other stuff. Well,,, ask more qualifying questions