Hello all, I’ve had several Dash apps running on Amazon’s Elastic Beanstalk for a while now, however I recently had to rebuild an environment and now one of them refuses to run. The app still runs fine locally, it is only when I try to get it running on EB that it fails.
Visually, the app just starts at the ‘Loading…’ screen and spins it’s wheel for a second before giving up. I’ve even attempted to remove all functions/callbacks/and elements from the app other than a header to see if that would fix the issue.
In the logs, I’ve found two sources of potential error:
-
A MIME type warning that I’m not too concerned about but maybe it’s worth posting
[warn] 12304#0: duplicate MIME type “text/html” in /etc/nginx/sites-enabled/elasticbeanstalk-nginx-docker-proxy.conf:11 -
A KeyError in /_dash-component-suites/dash_renderer/dash_renderer.min.js.map that is an actual error
[2019-03-07 00:57:24,301] ERROR in app: Exception on /_dash-component-suites/dash_renderer/dash_renderer.min.js.map [GET]
Traceback (most recent call last):
File “/miniconda/lib/python3.6/site-packages/flask/app.py”, line 2292, in wsgi_app
response = self.full_dispatch_request()
File “/miniconda/lib/python3.6/site-packages/flask/app.py”, line 1815, in full_dispatch_request
rv = self.handle_user_exception(e)
File “/miniconda/lib/python3.6/site-packages/flask/app.py”, line 1718, in handle_user_exception
reraise(exc_type, exc_value, tb)
File “/miniconda/lib/python3.6/site-packages/flask/_compat.py”, line 35, in reraise
raise value
File “/miniconda/lib/python3.6/site-packages/flask/app.py”, line 1813, in full_dispatch_request
rv = self.dispatch_request()
File “/miniconda/lib/python3.6/site-packages/flask/app.py”, line 1799, in dispatch_request
return self.view_functionsrule.endpoint
File “/miniconda/lib/python3.6/site-packages/dash/dash.py”, line 452, in serve_component_suites
})[path_in_package_dist.split(’.’)[-1]]
KeyError: ‘map’
My problem here is that this whole stack trace is in the back end so I don’t think it’s related to my code at all but rather the environment. Any thoughts? My Dockerfile has the following versions specified with the PIP installs and I’m running on Python 3.6:
RUN pip install dash==0.28.4
RUN pip install dash-html-components==0.13.2
RUN pip install dash-core-components==0.34.0
RUN pip install dash-table-experiments