Heroku to railway, plotly-dash, deployment crash
I am following the migrating guide / blog to host my python plotly-dash interface on railway. This setup worked fine on heroku but deployment here is failing and it does not make a lot of sense to me.
Procfile: web: gunicorn app:server
Requirements.txt has all the necessary python modules and worked fine for heroku
Script is called app.py (Running at https://signs-of-2b2t.herokuapp.com/)
Build logs: look good
Deploy logs: posted below
Thanks in advance for any help
43 Replies
ProjectID please
63a98ccd-078d-491b-99ac-4f3b72535986
You using like pandas or numpy or something?
GitHub
ImportError: libstdc++.so.6: cannot open shared object file: No suc...
I'm new to nix,How to solve this problem,thanks!!! code : #!/usr/bin/python import sys from PyQt5.QtWidgets import QWidget, QApplication app = QApplication(sys.argv) widget = QWidget() widg...
yes im using both
Do you have an example repo we could go off of?
Brotli==1.0.9
certifi==2021.5.30
charset-normalizer==2.0.6
chart-studio==1.1.0
click==8.0.1
colorama==0.4.4
dash==2.6.1
dash-core-components==2.0.0
dash-html-components==2.0.0
dash-table==5.0.0
Flask==2.0.1
Flask-Compress==1.10.1
Flask-SeaSurf==0.3.1
gunicorn==20.1.0
idna==3.2
itsdangerous==2.0.1
Jinja2==3.0.1
MarkupSafe==2.0.1
pandas==1.3.3
plotly==5.3.1
python-dateutil==2.8.2
pytz==2021.1
requests==2.26.0
retrying==1.3.3
six==1.16.0
tenacity==8.0.1
ua-parser==0.10.0
urllib3==1.26.6
Werkzeug==2.0.1
.
i will make a tiny version to test
Need the whole repo sorry fam
GitHub
Support Pandas/Numpy · Issue #462 · railwayapp/nixpacks
Feature request Various errors seem to occur with Pandas/Numpy, related to the following error ImportError: libstdc++.so.6: cannot open shared object file: No such file or directory Related Threads...
GH issue to track this
do you still want me to provide a repo
Yea would love that
If you could link it on GitHub that would be great
okok will do
epic i managed to reproduce
GitHub
GitHub - Entropy5/plotly-test
Contribute to Entropy5/plotly-test development by creating an account on GitHub.
https://pandas-test-railway.herokuapp.com/
Railway id
c45c16f9-2821-4bd8-8322-f14a9f83b6b5
Bumping here: we are noticing Pandas are giving us an issue on Nixpacks. You can attempt to switch build solutions on the platform.
deprecated heroku build pack works...
https://signs-of-2b2t.up.railway.app/
Ye
You can use that, we're just phasing them out
pandas is quite an important package lol
i hope you get it figured out some time
Definitely. Checking to reproduce it now
But I mean this is why we've only deprecated it not fully removed it 🙂
Works for me on this repo
Just cloned it
yes i only ever ran it from the site
The site uses that exact same distribution
Nothing different
nix packs build ?
Yep
i tried it two hours ago lol
ok ill send you the logs
Very weird.....
lol i cant copy the whole thing
ProjectID would suffice
And it's this exact same repo? Verbatim?
19aa29d7-94bf-4813-b70f-b76fbf4299fd
.
File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 850, in exec_module
File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
File "/app/app.py", line 1, in <module>
import dash
File "/opt/venv/lib/python3.9/site-packages/dash/init.py", line 36, in <module>
from .dash import ( # noqa: F401,E402
File "/opt/venv/lib/python3.9/site-packages/dash/dash.py", line 21, in <module>
from flask_compress import Compress
File "/opt/venv/lib/python3.9/site-packages/flask_compress/init.py", line 1, in <module>
from .flask_compress import Compress
File "/opt/venv/lib/python3.9/site-packages/flask_compress/flask_compress.py", line 14, in <module>
import brotli
File "/opt/venv/lib/python3.9/site-packages/brotli.py", line 8, in <module>
import _brotli
ImportError: libstdc++.so.6: cannot open shared object file: No such file or directory
[2022-08-31 00:12:49 +0000] [7] [INFO] Worker exiting (pid: 7)
[2022-08-31 00:12:49 +0000] [1] [INFO] Shutting down: Master
[2022-08-31 00:12:49 +0000] [1] [INFO] Reason: Worker failed to boot.
wtf
yes im just doing a brand new deploy from that repo
Can you try redeploying again. I was just able to successfully deploy on Railway using the latest (0.3.12) version of Nixpacks
yea idk how this isnt working lol
I wonder if it's now cached a bunk version
Can you delete the project and recreate it?
Or just the service
i mean i just created a new project
o
wtf
b2aff5cf-87e0-4a27-9724-eed0a04d6cbc
I've just discovered what the issue is. Can you remove the start command on the service settings page. It slightly changes the behaviour (we will be fixing this on Railway)
well youre right it works now
on nix packs
thanks for the help guys
you can probably close this one