✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
⚡️ Concerned about the grid? Kyle Baranko teaches how to predicting peak loads using XGBoost. Register for the August webinar!

How to solve Heroku Error H13 - 'connection closed without response'

hi, i’ve been struggling to deploy my dash app to Heroku, getting the errors H13 and H10, has anyone seen these before? my directory is as per dash instructions -https://dash.plotly.com/deployment. just lost as to what the codes mean, from consulting forums, was guessing a bad Port or maybe need to run Heroku restart?

appreciate any help, cheers!

ps code runs fine locally, it’s a bit long but I can post if needed.

(venv) (base) PhilippsMacBook:project philippevo$ heroku logs --tail
2020-08-08T01:56:33.748377+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.7/site-packages/gunicorn/arbiter.py", line 583, in spawn_worker
2020-08-08T01:56:33.748377+00:00 app[web.1]: worker.init_process()
2020-08-08T01:56:33.748378+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.7/site-packages/gunicorn/workers/base.py", line 119, in init_process
2020-08-08T01:56:33.748378+00:00 app[web.1]: self.load_wsgi()
2020-08-08T01:56:33.748378+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.7/site-packages/gunicorn/workers/base.py", line 144, in load_wsgi
2020-08-08T01:56:33.748379+00:00 app[web.1]: self.wsgi = self.app.wsgi()
2020-08-08T01:56:33.748379+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.7/site-packages/gunicorn/app/base.py", line 67, in wsgi
2020-08-08T01:56:33.748380+00:00 app[web.1]: self.callable = self.load()
2020-08-08T01:56:33.748380+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.7/site-packages/gunicorn/app/wsgiapp.py", line 49, in load
2020-08-08T01:56:33.748381+00:00 app[web.1]: return self.load_wsgiapp()
2020-08-08T01:56:33.748381+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.7/site-packages/gunicorn/app/wsgiapp.py", line 39, in load_wsgiapp
2020-08-08T01:56:33.748381+00:00 app[web.1]: return util.import_app(self.app_uri)
2020-08-08T01:56:33.748382+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.7/site-packages/gunicorn/util.py", line 358, in import_app
2020-08-08T01:56:33.748382+00:00 app[web.1]: mod = importlib.import_module(module)
2020-08-08T01:56:33.748383+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.7/importlib/__init__.py", line 127, in import_module
2020-08-08T01:56:33.748383+00:00 app[web.1]: return _bootstrap._gcd_import(name[level:], package, level)
2020-08-08T01:56:33.748384+00:00 app[web.1]: File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
2020-08-08T01:56:33.748384+00:00 app[web.1]: File "<frozen importlib._bootstrap>", line 983, in _find_and_load
2020-08-08T01:56:33.748384+00:00 app[web.1]: File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
2020-08-08T01:56:33.748385+00:00 app[web.1]: File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
2020-08-08T01:56:33.748385+00:00 app[web.1]: File "<frozen importlib._bootstrap_external>", line 728, in exec_module
2020-08-08T01:56:33.748386+00:00 app[web.1]: File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
2020-08-08T01:56:33.748386+00:00 app[web.1]: File "/app/app.py", line 108, in <module>
2020-08-08T01:56:33.748387+00:00 app[web.1]: with open('../j3.json', 'w') as jsonFile:
2020-08-08T01:56:33.748387+00:00 app[web.1]: OSError: [Errno 30] Read-only file system: '../j3.json'
2020-08-08T01:56:33.748388+00:00 app[web.1]: [2020-08-08 01:56:33 +0000] [10] [INFO] Worker exiting (pid: 10)
2020-08-08T01:56:34.088120+00:00 app[web.1]: [2020-08-08 01:56:34 +0000] [4] [INFO] Shutting down: Master
2020-08-08T01:56:34.088197+00:00 app[web.1]: [2020-08-08 01:56:34 +0000] [4] [INFO] Reason: Worker failed to boot.
2020-08-08T01:56:34.180208+00:00 heroku[web.1]: Process exited with status 3
2020-08-08T01:56:34.219066+00:00 heroku[web.1]: State changed from up to crashed
2020-08-08T01:56:34.221665+00:00 heroku[web.1]: State changed from crashed to starting
2020-08-08T01:56:47.171855+00:00 heroku[web.1]: Starting process with command `gunicorn app:server`
2020-08-08T01:56:49.528287+00:00 app[web.1]: [2020-08-08 01:56:49 +0000] [4] [INFO] Starting gunicorn 20.0.4
2020-08-08T01:56:49.528948+00:00 app[web.1]: [2020-08-08 01:56:49 +0000] [4] [INFO] Listening at: http://0.0.0.0:50455 (4)
2020-08-08T01:56:49.529035+00:00 app[web.1]: [2020-08-08 01:56:49 +0000] [4] [INFO] Using worker: sync
2020-08-08T01:56:49.533375+00:00 app[web.1]: [2020-08-08 01:56:49 +0000] [10] [INFO] Booting worker with pid: 10
2020-08-08T01:56:49.617401+00:00 heroku[web.1]: State changed from starting to up
2020-08-08T01:56:49.634213+00:00 app[web.1]: [2020-08-08 01:56:49 +0000] [11] [INFO] Booting worker with pid: 11
2020-08-08T01:56:55.550330+00:00 app[web.1]: [2020-08-08 01:56:55 +0000] [11] [ERROR] Exception in worker process
2020-08-08T01:56:55.550352+00:00 app[web.1]: Traceback (most recent call last):
2020-08-08T01:56:55.550353+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.7/site-packages/gunicorn/arbiter.py", line 583, in spawn_worker
2020-08-08T01:56:55.550356+00:00 app[web.1]: worker.init_process()
2020-08-08T01:56:55.550356+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.7/site-packages/gunicorn/workers/base.py", line 119, in init_process
2020-08-08T01:56:55.550357+00:00 app[web.1]: self.load_wsgi()
2020-08-08T01:56:55.550357+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.7/site-packages/gunicorn/workers/base.py", line 144, in load_wsgi
2020-08-08T01:56:55.550358+00:00 app[web.1]: self.wsgi = self.app.wsgi()
2020-08-08T01:56:55.550359+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.7/site-packages/gunicorn/app/base.py", line 67, in wsgi
2020-08-08T01:56:55.550359+00:00 app[web.1]: self.callable = self.load()
2020-08-08T01:56:55.550360+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.7/site-packages/gunicorn/app/wsgiapp.py", line 49, in load
2020-08-08T01:56:55.550360+00:00 app[web.1]: return self.load_wsgiapp()
2020-08-08T01:56:55.550360+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.7/site-packages/gunicorn/app/wsgiapp.py", line 39, in load_wsgiapp
2020-08-08T01:56:55.550361+00:00 app[web.1]: return util.import_app(self.app_uri)
2020-08-08T01:56:55.550361+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.7/site-packages/gunicorn/util.py", line 358, in import_app
2020-08-08T01:56:55.550361+00:00 app[web.1]: mod = importlib.import_module(module)
2020-08-08T01:56:55.550362+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.7/importlib/__init__.py", line 127, in import_module
2020-08-08T01:56:55.550363+00:00 app[web.1]: return _bootstrap._gcd_import(name[level:], package, level)
2020-08-08T01:56:55.550364+00:00 app[web.1]: File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
2020-08-08T01:56:55.550364+00:00 app[web.1]: File "<frozen importlib._bootstrap>", line 983, in _find_and_load
2020-08-08T01:56:55.550364+00:00 app[web.1]: File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
2020-08-08T01:56:55.550365+00:00 app[web.1]: File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
2020-08-08T01:56:55.550365+00:00 app[web.1]: File "<frozen importlib._bootstrap_external>", line 728, in exec_module
2020-08-08T01:56:55.550365+00:00 app[web.1]: File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
2020-08-08T01:56:55.550366+00:00 app[web.1]: File "/app/app.py", line 108, in <module>
2020-08-08T01:56:55.550366+00:00 app[web.1]: with open('../j3.json', 'w') as jsonFile:
2020-08-08T01:56:55.550367+00:00 app[web.1]: OSError: [Errno 30] Read-only file system: '../j3.json'
2020-08-08T01:56:55.550807+00:00 app[web.1]: [2020-08-08 01:56:55 +0000] [11] [INFO] Worker exiting (pid: 11)
2020-08-08T01:56:55.586355+00:00 app[web.1]: [2020-08-08 01:56:55 +0000] [10] [ERROR] Exception in worker process
2020-08-08T01:56:55.586357+00:00 app[web.1]: Traceback (most recent call last):
2020-08-08T01:56:55.586358+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.7/site-packages/gunicorn/arbiter.py", line 583, in spawn_worker
2020-08-08T01:56:55.586359+00:00 app[web.1]: worker.init_process()
2020-08-08T01:56:55.586359+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.7/site-packages/gunicorn/workers/base.py", line 119, in init_process
2020-08-08T01:56:55.586359+00:00 app[web.1]: self.load_wsgi()
2020-08-08T01:56:55.586360+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.7/site-packages/gunicorn/workers/base.py", line 144, in load_wsgi
2020-08-08T01:56:55.586360+00:00 app[web.1]: self.wsgi = self.app.wsgi()
2020-08-08T01:56:55.586361+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.7/site-packages/gunicorn/app/base.py", line 67, in wsgi
2020-08-08T01:56:55.586361+00:00 app[web.1]: self.callable = self.load()
2020-08-08T01:56:55.586362+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.7/site-packages/gunicorn/app/wsgiapp.py", line 49, in load
2020-08-08T01:56:55.586362+00:00 app[web.1]: return self.load_wsgiapp()
2020-08-08T01:56:55.586362+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.7/site-packages/gunicorn/app/wsgiapp.py", line 39, in load_wsgiapp
2020-08-08T01:56:55.586363+00:00 app[web.1]: return util.import_app(self.app_uri)
2020-08-08T01:56:55.586363+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.7/site-packages/gunicorn/util.py", line 358, in import_app
2020-08-08T01:56:55.586364+00:00 app[web.1]: mod = importlib.import_module(module)
2020-08-08T01:56:55.586364+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.7/importlib/__init__.py", line 127, in import_module
2020-08-08T01:56:55.586365+00:00 app[web.1]: return _bootstrap._gcd_import(name[level:], package, level)
2020-08-08T01:56:55.586365+00:00 app[web.1]: File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
2020-08-08T01:56:55.586366+00:00 app[web.1]: File "<frozen importlib._bootstrap>", line 983, in _find_and_load
2020-08-08T01:56:55.586366+00:00 app[web.1]: File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
2020-08-08T01:56:55.586366+00:00 app[web.1]: File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
2020-08-08T01:56:55.586367+00:00 app[web.1]: File "<frozen importlib._bootstrap_external>", line 728, in exec_module
2020-08-08T01:56:55.586367+00:00 app[web.1]: File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
2020-08-08T01:56:55.586368+00:00 app[web.1]: File "/app/app.py", line 108, in <module>
2020-08-08T01:56:55.586368+00:00 app[web.1]: with open('../j3.json', 'w') as jsonFile:
2020-08-08T01:56:55.586368+00:00 app[web.1]: OSError: [Errno 30] Read-only file system: '../j3.json'
2020-08-08T01:56:55.586672+00:00 app[web.1]: [2020-08-08 01:56:55 +0000] [10] [INFO] Worker exiting (pid: 10)
2020-08-08T01:56:55.825800+00:00 heroku[router]: at=error code=H13 desc="Connection closed without response" method=GET path="/" host=dash-casual.herokuapp.com request_id=5b7cb7c7-5999-406e-94d8-f43422bbdef2 fwd="76.126.73.6" dyno=web.1 connect=8ms service=1718ms status=503 bytes=0 protocol=https
2020-08-08T01:56:55.927014+00:00 app[web.1]: [2020-08-08 01:56:55 +0000] [4] [INFO] Shutting down: Master
2020-08-08T01:56:55.927155+00:00 app[web.1]: [2020-08-08 01:56:55 +0000] [4] [INFO] Reason: Worker failed to boot.
2020-08-08T01:56:56.005161+00:00 heroku[web.1]: Process exited with status 3