Help in Deployment from Github
besttopcareer
HOBBYOP

a month ago

Hi, The issue in short:

  • Railway seems to be unable to build the container of the service in which I have, Logs are posted below
  • Regarding the GitHub project, it is a fork of a different project with a few adjustments
  • This github project is not my own.

Logs:

2026-09-15T04:39:10.648216446Z [inf] Starting Container

2026-09-15T04:39:10.944673462Z [err] /mise/installs/poetry/2.4.2/venv/bin/python: error while loading shared libraries: libexpat.so.1: cannot open shared object file: No such file or directory

2026-09-15T04:39:11.582334833Z [err] /mise/installs/poetry/2.4.2/venv/bin/python: error while loading shared libraries: libexpat.so.1: cannot open shared object file: No such file or directory

2026-09-15T04:39:13.030810515Z [err] /mise/installs/poetry/2.4.2/venv/bin/python: error while loading shared libraries: libexpat.so.1: cannot open shared object file: No such file or directory

2026-09-15T04:39:14.013134971Z [err] /mise/installs/poetry/2.4.2/venv/bin/python: error while loading shared libraries: libexpat.so.1: cannot open shared object file: No such file or directory

2026-09-15T04:39:14.979998744Z [err] /mise/installs/poetry/2.4.2/venv/bin/python: error while loading shared libraries: libexpat.so.1: cannot open shared object file: No such file or directory

2026-09-15T04:39:15.996898211Z [err] /mise/installs/poetry/2.4.2/venv/bin/python: error while loading shared libraries: libexpat.so.1: cannot open shared object file: No such file or directory

2026-09-15T04:39:17.074703924Z [err] /mise/installs/poetry/2.4.2/venv/bin/python: error while loading shared libraries: libexpat.so.1: cannot open shared object file: No such file or directory

2026-09-15T04:39:18.078751233Z [err] /mise/installs/poetry/2.4.2/venv/bin/python: error while loading shared libraries: libexpat.so.1: cannot open shared object file: No such file or directory

2026-09-15T04:39:19.084550584Z [err] /mise/installs/poetry/2.4.2/venv/bin/python: error while loading shared libraries: libexpat.so.1: cannot open shared object file: No such file or directory

2026-09-15T04:39:20.103624415Z [err] /mise/installs/poetry/2.4.2/venv/bin/python: error while loading shared libraries: libexpat.so.1: cannot open shared object file: No such file or directory

2026-09-15T04:39:21.127483314Z [err] /mise/installs/poetry/2.4.2/venv/bin/python: error while loading shared libraries: libexpat.so.1: cannot open shared object file: No such file or directory

Github: https://github.com/BestTopEduCationTechLC/JobSpy if you need to review it (please be inform that most of this is AI generated)

Solved$10 Bounty

Pinned Solution

The repo's railway.json sets the start command to poetry run gunicorn ..., which is the command that's causing the crash most likely. Try to replace it with: gunicorn --chdir scraper --bind 0.0.0.0:$PORT --workers 2 --timeout 120 server:app which avoids using poetry in the start command.

4 Replies

Railway
BOT

a month ago

This thread has been opened as a bounty so the community can help solve it.

Status changed to Open Railway • 30 days ago


If you are using Railpack to deploy this repo, try to add RAILPACK_DEPLOY_APT_PACKAGES=libexpat1 in your service variables, it adds extra apt packages to the image, which should resolve the missing library. If this doesn't work, linking the github repo here is useful in finding a fix.


darseen

If you are using Railpack to deploy this repo, try to add `RAILPACK_DEPLOY_APT_PACKAGES=libexpat1` in your service variables, it adds extra apt packages to the image, which should resolve the missing library. If this doesn't work, linking the github repo here is useful in finding a fix.

besttopcareer
HOBBYOP

a month ago

Thank you for your response Darseen, I had forgotten to even link the package

Github: https://github.com/BestTopEduCationTechLC/JobSpy (it has the railway library, also please remember that this is mostly AI-generated and my expertise in coding is still limited; I try to do my work by hand but my environment doesn't allow me)


besttopcareer

Thank you for your response Darseen, I had forgotten to even link the package Github: https://github.com/BestTopEduCationTechLC/JobSpy (it has the railway library, also please remember that this is mostly AI-generated and my expertise in coding is still limited; I try to do my work by hand but my environment doesn't allow me)

The repo's railway.json sets the start command to poetry run gunicorn ..., which is the command that's causing the crash most likely. Try to replace it with: gunicorn --chdir scraper --bind 0.0.0.0:$PORT --workers 2 --timeout 120 server:app which avoids using poetry in the start command.


darseen

The repo's `railway.json` sets the **start command** to `poetry run gunicorn ...`, which is the command that's causing the crash most likely. Try to replace it with: `gunicorn --chdir scraper --bind 0.0.0.0:$PORT --workers 2 --timeout 120 server:app` which avoids using poetry in the start command.

besttopcareer
HOBBYOP

a month ago

THANK YOU SO MUCH, I really am trying to get better at this and I would love to use Railway, I would love to hear your experience using it.


Status changed to Solved mayori • 30 days ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...