Deployment timing out when trying to install c++ libraries
kirill-vish
PROOP

7 months ago

Deployment times out (30+ minutes) when adding installation for C++ libstdc++.so.6 package.

I need this libstdc++.so.6, because I am installing a Python package lancedb, which depends on pyarrow, which requires the C++ library. If I don't install python lancedb the deployment works fine.

$10 Bounty

6 Replies

Railway
BOT

7 months ago

Hey there! We've found the following might help you get unblocked faster:

If you find the answer from one of these, please let us know by solving the thread!


chandrika
EMPLOYEE

7 months ago

Hi there, could you try using Railpack and see if the build succeeds?


Status changed to Awaiting User Response Railway 7 months ago


chandrika

Hi there, could you try using Railpack and see if the build succeeds?

kirill-vish
PROOP

7 months ago

Hey, thanks for the response. I've tried using railpack, but it seems I am hitting either of two issues, if my understanding correct:
(1) with a very simple railpack.json configuration, I have missing python virtual environment files because these files need to be created on the fly and I do not specify any steps in the build to do so.
(2) if I add these steps into the config, then the automatic file copying is disabled and I have missing project files.

Can you please help me resolve this?


Status changed to Awaiting Railway Response Railway 7 months ago


chandrika
EMPLOYEE

7 months ago

Hi there, could you try each of these for your start command and see if they help?

python -m uvicorn main:app --host 0.0.0.0 --port $PORT

/app/venv/bin/python -m uvicorn main:app --host 0.0.0.0 --port $PORT


Status changed to Awaiting User Response Railway 7 months ago


kirill-vish
PROOP

7 months ago

Hi, I'm confused by your suggestion about the startCommand, because my problem is that the build itself is failing, so the start command is never even reached.

To restate my issue:

  1. I have a complex project that uses both Node.js and Python. Python dependencies in turn require libstdc++.so.6 installation, which takes a long time to install and nixpack build times out, so as suggested I switched to railpack.

  2. I use venv to launch python services in my project. Perhaps there is a different better way to do this?

  3. But when I add custom steps to build config file for launching the python services via venv, Railpack no longer copies my project's source code, so the build fails because it can't find my requirements.txt and other files. Conversely, If I don't add steps to build config file, the build fails because of the missing Python dependencies and also cannot run the project.

    This has left me stuck. My question is: What is the recommended way on Railway to build a mixed Node.js/Python/C++ project with these requirements? Should I be using steps, and if so, how do I ensure my source code is available to them? Or is there a different approach I should be taking entirely?


Status changed to Awaiting Railway Response Railway 7 months ago


7 months ago

You may need to eject to a Dockerfile in this case. I think there's likely a way to configure this with Railpack (sounds like it's overriden a default phase) but you'd have to dig in

I'll make this thread public and add a bounty so someone can help you out potentially on that


Status changed to Awaiting User Response Railway 7 months ago


7 months ago

This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.

Status changed to Open jake 7 months ago


Loading...