Hi, I am trying to deploy a dash app on Heroku (my first time) and I obtained an Application Error (Dash App runs fine locally). When I checked the log. I obtained this below, aside installing fsspec package, what other errors is creating the Application Errors.
2022-01-26T23:42:54.565160+00:00 app[web.1]: worker.init_process()
2022-01-26T23:42:54.565160+00:00 app[web.1]: File “/app/.heroku/python/lib/python3.9/site-packages/gunicorn/workers/base.py”, line 134, in init_process
2022-01-26T23:42:54.565161+00:00 app[web.1]: self.load_wsgi()
2022-01-26T23:42:54.565161+00:00 app[web.1]: File “/app/.heroku/python/lib/python3.9/site-packages/gunicorn/workers/base.py”, line 146, in load_wsgi
2022-01-26T23:42:54.565161+00:00 app[web.1]: self.wsgi = self.app.wsgi()
2022-01-26T23:42:54.565161+00:00 app[web.1]: File “/app/.heroku/python/lib/python3.9/site-packages/gunicorn/app/base.py”, line 67, in wsgi
2022-01-26T23:42:54.565162+00:00 app[web.1]: self.callable = self.load()
2022-01-26T23:42:54.565162+00:00 app[web.1]: File “/app/.heroku/python/lib/python3.9/site-packages/gunicorn/app/wsgiapp.py”, line 58, in load
2022-01-26T23:42:54.565162+00:00 app[web.1]: return self.load_wsgiapp()
2022-01-26T23:42:54.565162+00:00 app[web.1]: File “/app/.heroku/python/lib/python3.9/site-packages/gunicorn/app/wsgiapp.py”, line 48, in load_wsgiapp
2022-01-26T23:42:54.565163+00:00 app[web.1]: return util.import_app(self.app_uri)
2022-01-26T23:42:54.565163+00:00 app[web.1]: File “/app/.heroku/python/lib/python3.9/site-packages/gunicorn/util.py”, line 359, in import_app
2022-01-26T23:42:54.565163+00:00 app[web.1]: mod = importlib.import_module(module)
2022-01-26T23:42:54.565163+00:00 app[web.1]: File “/app/.heroku/python/lib/python3.9/importlib/init.py”, line 127, in import_module
2022-01-26T23:42:54.565163+00:00 app[web.1]: return _bootstrap._gcd_import(name[level:], package, level)
2022-01-26T23:42:54.565164+00:00 app[web.1]: File “”, line 1030, in _gcd_import
2022-01-26T23:42:54.565164+00:00 app[web.1]: File “”, line 1007, in _find_and_load
2022-01-26T23:42:54.565164+00:00 app[web.1]: File “”, line 986, in _find_and_load_unlocked
2022-01-26T23:42:54.565164+00:00 app[web.1]: File “”, line 680, in _load_unlocked
2022-01-26T23:42:54.565164+00:00 app[web.1]: File “”, line 850, in exec_module
2022-01-26T23:42:54.565164+00:00 app[web.1]: File “”, line 228, in _call_with_frames_removed
2022-01-26T23:42:54.565165+00:00 app[web.1]: File “/app/main.py”, line 20, in
2022-01-26T23:42:54.565165+00:00 app[web.1]: production_df=pd.read_excel(‘gs://production-data-storage-bucket/production-data.xlsx’)
2022-01-26T23:42:54.565165+00:00 app[web.1]: File “/app/.heroku/python/lib/python3.9/site-packages/pandas/util/_decorators.py”, line 311, in wrapper
2022-01-26T23:42:54.565165+00:00 app[web.1]: return func(*args, **kwargs)
2022-01-26T23:42:54.565165+00:00 app[web.1]: File “/app/.heroku/python/lib/python3.9/site-packages/pandas/io/excel/_base.py”, line 457, in read_excel
2022-01-26T23:42:54.565165+00:00 app[web.1]: io = ExcelFile(io, storage_options=storage_options, engine=engine)
2022-01-26T23:42:54.565166+00:00 app[web.1]: File “/app/.heroku/python/lib/python3.9/site-packages/pandas/io/excel/_base.py”, line 1376, in init
2022-01-26T23:42:54.565166+00:00 app[web.1]: ext = inspect_excel_format(
2022-01-26T23:42:54.565166+00:00 app[web.1]: File “/app/.heroku/python/lib/python3.9/site-packages/pandas/io/excel/_base.py”, line 1250, in inspect_excel_format
2022-01-26T23:42:54.565166+00:00 app[web.1]: with get_handle(
2022-01-26T23:42:54.565166+00:00 app[web.1]: File “/app/.heroku/python/lib/python3.9/site-packages/pandas/io/common.py”, line 670, in get_handle
2022-01-26T23:42:54.565166+00:00 app[web.1]: ioargs = _get_filepath_or_buffer(
2022-01-26T23:42:54.565167+00:00 app[web.1]: File “/app/.heroku/python/lib/python3.9/site-packages/pandas/io/common.py”, line 364, in _get_filepath_or_buffer
2022-01-26T23:42:54.565167+00:00 app[web.1]: fsspec = import_optional_dependency(“fsspec”)
2022-01-26T23:42:54.565167+00:00 app[web.1]: File “/app/.heroku/python/lib/python3.9/site-packages/pandas/compat/_optional.py”, line 129, in import_optional_dependency
2022-01-26T23:42:54.565167+00:00 app[web.1]: raise ImportError(msg)
2022-01-26T23:42:54.565168+00:00 app[web.1]: ImportError: Missing optional dependency ‘fsspec’. Use pip or conda to install fsspec.
2022-01-26T23:42:54.565310+00:00 app[web.1]: [2022-01-26 23:42:54 +0000] [9] [INFO] Worker exiting (pid: 9)
2022-01-26T23:42:55.089570+00:00 app[web.1]: [2022-01-26 23:42:54 +0000] [17] [ERROR] Exception in worker process
2022-01-26T23:42:55.089583+00:00 app[web.1]: Traceback (most recent call last):
2022-01-26T23:42:55.089584+00:00 app[web.1]: File “/app/.heroku/python/lib/python3.9/site-packages/pandas/compat/_optional.py”, line 126, in import_optional_dependency
2022-01-26T23:42:55.089585+00:00 app[web.1]: module = importlib.import_module(name)
2022-01-26T23:42:55.089585+00:00 app[web.1]: File “/app/.heroku/python/lib/python3.9/importlib/init.py”, line 127, in import_module
2022-01-26T23:42:55.089587+00:00 app[web.1]: return _bootstrap._gcd_import(name[level:], package, level)
2022-01-26T23:42:55.089587+00:00 app[web.1]: File “”, line 1030, in _gcd_import
2022-01-26T23:42:55.089588+00:00 app[web.1]: File “”, line 1007, in _find_and_load
2022-01-26T23:42:55.089588+00:00 app[web.1]: File “”, line 984, in _find_and_load_unlocked
2022-01-26T23:42:55.089588+00:00 app[web.1]: ModuleNotFoundError: No module named ‘fsspec’
2022-01-26T23:42:55.089590+00:00 app[web.1]:
2022-01-26T23:42:55.089590+00:00 app[web.1]: During handling of the above exception, another exception occurred:
2022-01-26T23:42:55.089590+00:00 app[web.1]:
2022-01-26T23:42:55.089591+00:00 app[web.1]: Traceback (most recent call last):
2022-01-26T23:42:55.089592+00:00 app[web.1]: File “/app/.heroku/python/lib/python3.9/site-packages/gunicorn/arbiter.py”, line 589, in spawn_worker
2022-01-26T23:42:55.089593+00:00 app[web.1]: worker.init_process()
2022-01-26T23:42:55.089593+00:00 app[web.1]: File “/app/.heroku/python/lib/python3.9/site-packages/gunicorn/workers/base.py”, line 134, in init_process
2022-01-26T23:42:55.089594+00:00 app[web.1]: self.load_wsgi()
2022-01-26T23:42:55.089594+00:00 app[web.1]: File “/app/.heroku/python/lib/python3.9/site-packages/gunicorn/workers/base.py”, line 146, in load_wsgi
2022-01-26T23:42:55.089594+00:00 app[web.1]: self.wsgi = self.app.wsgi()
2022-01-26T23:42:55.089594+00:00 app[web.1]: File “/app/.heroku/python/lib/python3.9/site-packages/gunicorn/app/base.py”, line 67, in wsgi
2022-01-26T23:42:55.089595+00:00 app[web.1]: self.callable = self.load()
2022-01-26T23:42:55.089595+00:00 app[web.1]: File “/app/.heroku/python/lib/python3.9/site-packages/gunicorn/app/wsgiapp.py”, line 58, in load
2022-01-26T23:42:55.089595+00:00 app[web.1]: return self.load_wsgiapp()
2022-01-26T23:42:55.089595+00:00 app[web.1]: File “/app/.heroku/python/lib/python3.9/site-packages/gunicorn/app/wsgiapp.py”, line 48, in load_wsgiapp
2022-01-26T23:42:55.089596+00:00 app[web.1]: return util.import_app(self.app_uri)
2022-01-26T23:42:55.089604+00:00 app[web.1]: File “/app/.heroku/python/lib/python3.9/site-packages/gunicorn/util.py”, line 359, in import_app
2022-01-26T23:42:55.089604+00:00 app[web.1]: mod = importlib.import_module(module)
2022-01-26T23:42:55.089605+00:00 app[web.1]: File “/app/.heroku/python/lib/python3.9/importlib/init.py”, line 127, in import_module
2022-01-26T23:42:55.089605+00:00 app[web.1]: return _bootstrap._gcd_import(name[level:], package, level)
2022-01-26T23:42:55.089605+00:00 app[web.1]: File “”, line 1030, in _gcd_import
2022-01-26T23:42:55.089605+00:00 app[web.1]: File “”, line 1007, in _find_and_load
2022-01-26T23:42:55.089606+00:00 app[web.1]: File “”, line 986, in _find_and_load_unlocked
2022-01-26T23:42:55.089606+00:00 app[web.1]: File “”, line 680, in _load_unlocked
2022-01-26T23:42:55.089606+00:00 app[web.1]: File “”, line 850, in exec_module
2022-01-26T23:42:55.089606+00:00 app[web.1]: File “”, line 228, in _call_with_frames_removed
2022-01-26T23:42:55.089607+00:00 app[web.1]: File “/app/main.py”, line 20, in
2022-01-26T23:42:55.089607+00:00 app[web.1]: production_df=pd.read_excel(‘gs://production-data-storage-bucket/production-data.xlsx’)
2022-01-26T23:42:55.089608+00:00 app[web.1]: File “/app/.heroku/python/lib/python3.9/site-packages/pandas/util/_decorators.py”, line 311, in wrapper
2022-01-26T23:42:55.089608+00:00 app[web.1]: return func(*args, **kwargs)
2022-01-26T23:42:55.089608+00:00 app[web.1]: File “/app/.heroku/python/lib/python3.9/site-packages/pandas/io/excel/_base.py”, line 457, in read_excel
2022-01-26T23:42:55.089609+00:00 app[web.1]: io = ExcelFile(io, storage_options=storage_options, engine=engine)
2022-01-26T23:42:55.089609+00:00 app[web.1]: File “/app/.heroku/python/lib/python3.9/site-packages/pandas/io/excel/_base.py”, line 1376, in init
2022-01-26T23:42:55.089609+00:00 app[web.1]: ext = inspect_excel_format(
2022-01-26T23:42:55.089609+00:00 app[web.1]: File “/app/.heroku/python/lib/python3.9/site-packages/pandas/io/excel/_base.py”, line 1250, in inspect_excel_format
2022-01-26T23:42:55.089610+00:00 app[web.1]: with get_handle(
2022-01-26T23:42:55.089611+00:00 app[web.1]: File “/app/.heroku/python/lib/python3.9/site-packages/pandas/io/common.py”, line 670, in get_handle
2022-01-26T23:42:55.089611+00:00 app[web.1]: ioargs = _get_filepath_or_buffer(
2022-01-26T23:42:55.089611+00:00 app[web.1]: File “/app/.heroku/python/lib/python3.9/site-packages/pandas/io/common.py”, line 364, in _get_filepath_or_buffer
2022-01-26T23:42:55.089611+00:00 app[web.1]: fsspec = import_optional_dependency(“fsspec”)
2022-01-26T23:42:55.089612+00:00 app[web.1]: File “/app/.heroku/python/lib/python3.9/site-packages/pandas/compat/_optional.py”, line 129, in import_optional_dependency
2022-01-26T23:42:55.089612+00:00 app[web.1]: raise ImportError(msg)
2022-01-26T23:42:55.089612+00:00 app[web.1]: ImportError: Missing optional dependency ‘fsspec’. Use pip or conda to install fsspec.
2022-01-26T23:42:55.089767+00:00 app[web.1]: [2022-01-26 23:42:55 +0000] [17] [INFO] Worker exiting (pid: 17)
2022-01-26T23:42:55.237741+00:00 app[web.1]: [2022-01-26 23:42:55 +0000] [4] [WARNING] Worker with pid 17 was terminated due to signal 15
2022-01-26T23:42:55.332491+00:00 app[web.1]: [2022-01-26 23:42:55 +0000] [4] [INFO] Shutting down: Master
2022-01-26T23:42:55.332525+00:00 app[web.1]: [2022-01-26 23:42:55 +0000] [4] [INFO] Reason: Worker failed to boot.
2022-01-26T23:42:55.476531+00:00 heroku[web.1]: Process exited with status 3
2022-01-26T23:42:55.545480+00:00 heroku[web.1]: State changed from up to crashed
2022-01-26T23:44:05.434062+00:00 heroku[router]: at=error code=H10 desc=“App crashed” method=GET path="/" host=production-dashboard.herokuapp.com request_id=3413c598-a59d-4308-b292-296e6f45892c fwd=“41.190.3.35” dyno= connect= service= status=503 bytes= protocol=https
2022-01-26T23:44:06.997324+00:00 heroku[router]: at=error code=H10 desc=“App crashed” method=GET path="/favicon.ico" host=production-dashboard.herokuapp.com request_id=34afa681-7044-4d32-99cb-8ded76dc579f fwd=“41.190.3.35” dyno= connect= service= status=503 bytes= protocol=https
Thank you