#Heroku to railway, plotly-dash, deployment crash

60 messages · Page 1 of 1 (latest)

white cliff
#

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

dapper aspen
#

ProjectID please

white cliff
#

63a98ccd-078d-491b-99ac-4f3b72535986

dapper aspen
#

You using like pandas or numpy or something?

white cliff
#

yes im using both

dapper aspen
#

Do you have an example repo we could go off of?

white cliff
#

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

dapper aspen
#

Need the whole repo sorry fam

#

GH issue to track this

white cliff
#

do you still want me to provide a repo

dapper aspen
#

Yea would love that

#

If you could link it on GitHub that would be great

white cliff
#

okok will do

white cliff
#

epic i managed to reproduce

#

Railway id
c45c16f9-2821-4bd8-8322-f14a9f83b6b5

covert marsh
#

Bumping here: we are noticing Pandas are giving us an issue on Nixpacks. You can attempt to switch build solutions on the platform.

white cliff
#

deprecated heroku build pack works...

dapper aspen
#

Ye

#

You can use that, we're just phasing them out

white cliff
#

pandas is quite an important package lol
i hope you get it figured out some time

dapper aspen
#

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

dapper aspen
white cliff
#

yes i only ever ran it from the site

dapper aspen
#

The site uses that exact same distribution

#

Nothing different

white cliff
#

nix packs build ?

dapper aspen
#

Yep

white cliff
#

i tried it two hours ago lol

#

ok ill send you the logs

dapper aspen
#

Very weird.....

white cliff
#

lol i cant copy the whole thing

dapper aspen
#

ProjectID would suffice

dapper aspen
white cliff
#

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.

dapper aspen
#

wtf

white cliff
#

yes im just doing a brand new deploy from that repo

neon gate
#

Can you try redeploying again. I was just able to successfully deploy on Railway using the latest (0.3.12) version of Nixpacks

white cliff
#

yea idk how this isnt working lol

#
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 06:41:49 +0000] [7] [INFO] Worker exiting (pid: 7)
[2022-08-31 06:41:49 +0000] [1] [INFO] Shutting down: Master
[2022-08-31 06:41:49 +0000] [1] [INFO] Reason: Worker failed to boot.```
dapper aspen
#

I wonder if it's now cached a bunk version

#

Can you delete the project and recreate it?

white cliff
dapper aspen
#

Or just the service

white cliff
#

i mean i just created a new project

dapper aspen
#

o

#

wtf

white cliff
#

b2aff5cf-87e0-4a27-9724-eed0a04d6cbc

neon gate
#

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)

white cliff
#

well youre right it works now

#

on nix packs