'<HaltServer 'Worker failed to boot.' 3> - Heroku Crash --- Worker failed to boot
Every now and then with my Django project launched on Heroku, it crashes. I know it is a change I am making somewhere but I cannot figure out what I am doing that is causing it. It's not completely random but I set DEBUG = True and turned off collectstatic and it crashed. I don't know if it is totally that or something else that I am doing but I just want to educate myself on it. I'm posting the Heroku log tails below. It is what I have been trying to decipher for a while now. Can anyone help me find out why my Heroku app keeps crashing?
2022-01-24T17:30:11.859242+00:00 app[web.1]: self.load_wsgi()
2022-01-24T17:30:11.859242+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/gunicorn/workers/base.py", line 144, in load_wsgi
2022-01-24T17:30:11.859243+00:00 app[web.1]: self.wsgi = self.app.wsgi()
2022-01-24T17:30:11.859243+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/gunicorn/app/base.py", line 67, in wsgi
2022-01-24T17:30:11.859244+00:00 app[web.1]: self.callable = self.load()
2022-01-24T17:30:11.859244+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/gunicorn/app/wsgiapp.py", line 49, in load
2022-01-24T17:30:11.859244+00:00 app[web.1]: return self.load_wsgiapp()
2022-01-24T17:30:11.859244+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/gunicorn/app/wsgiapp.py", line 39, in load_wsgiapp
2022-01-24T17:30:11.859245+00:00 app[web.1]: return util.import_app(self.app_uri)
2022-01-24T17:30:11.859245+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/gunicorn/util.py", line 358, in import_app
2022-01-24T17:30:11.859245+00:00 app[web.1]: mod = importlib.import_module(module)
2022-01-24T17:30:11.859246+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/importlib/__init__.py", line 127, in import_module
2022-01-24T17:30:11.859246+00:00 app[web.1]: return _bootstrap._gcd_import(name[level:], package, level)
2022-01-24T17:30:11.859246+00:00 app[web.1]: File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
2022-01-24T17:30:11.859247+00:00 app[web.1]: File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
2022-01-24T17:30:11.859247+00:00 app[web.1]: File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
2022-01-24T17:30:11.859247+00:00 app[web.1]: File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
2022-01-24T17:30:11.859248+00:00 app[web.1]: File "<frozen importlib._bootstrap_external>", line 850, in exec_module
2022-01-24T17:30:11.859248+00:00 app[web.1]: File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
2022-01-24T17:30:11.859249+00:00 app[web.1]: File "/app/inspect_list/wsgi.py", line 16, in <module>
2022-01-24T17:30:11.859249+00:00 app[web.1]: application = get_wsgi_application()
2022-01-24T17:30:11.859249+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/django/core/wsgi.py", line 12, in get_wsgi_application
2022-01-24T17:30:11.859249+00:00 app[web.1]: django.setup(set_prefix=False)
2022-01-24T17:30:11.859260+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/django/__init__.py", line 24, in setup
2022-01-24T17:30:11.859260+00:00 app[web.1]: apps.populate(settings.INSTALLED_APPS)
2022-01-24T17:30:11.859260+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/django/apps/registry.py", line 91, in populate
2022-01-24T17:30:11.859261+00:00 app[web.1]: app_config = AppConfig.create(entry)
2022-01-24T17:30:11.859261+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/django/apps/config.py", line 90, in create
2022-01-24T17:30:11.859261+00:00 app[web.1]: module = import_module(entry)
2022-01-24T17:30:11.859262+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/importlib/__init__.py", line 127, in import_module
2022-01-24T17:30:11.859262+00:00 app[web.1]: return _bootstrap._gcd_import(name[level:], package, level)
2022-01-24T17:30:11.859262+00:00 app[web.1]: File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
2022-01-24T17:30:11.859262+00:00 app[web.1]: File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
2022-01-24T17:30:11.859263+00:00 app[web.1]: File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
2022-01-24T17:30:11.859263+00:00 app[web.1]: File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
2022-01-24T17:30:11.859263+00:00 app[web.1]: File "<frozen importlib._bootstrap_external>", line 850, in exec_module
2022-01-24T17:30:11.859263+00:00 app[web.1]: File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
2022-01-24T17:30:11.859264+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/tinymce/__init__.py", line 14, in <module>
2022-01-24T17:30:11.859264+00:00 app[web.1]: from .models import HTMLField
2022-01-24T17:30:11.859264+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/tinymce/models.py", line 6, in <module>
2022-01-24T17:30:11.859265+00:00 app[web.1]: from .widgets import TinyMCE, AdminTinyMCE
2022-01-24T17:30:11.859265+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/tinymce/widgets.py", line 25, in <module>
2022-01-24T17:30:11.859265+00:00 app[web.1]: from . import settings as mce_settings
2022-01-24T17:30:11.859265+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/tinymce/settings.py", line 52, in <module>
2022-01-24T17:30:11.859266+00:00 app[web.1]: JS_URL = staticfiles_storage.url('tinymce/js/tinymce/tinymce.min.js')
2022-01-24T17:30:11.859266+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/django/contrib/staticfiles/storage.py", line 147, in url
2022-01-24T17:30:11.859266+00:00 app[web.1]: return self._url(self.stored_name, name, force)
2022-01-24T17:30:11.859267+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/django/contrib/staticfiles/storage.py", line 126, in _url
2022-01-24T17:30:11.859267+00:00 app[web.1]: hashed_name = hashed_name_func(*args)
2022-01-24T17:30:11.859267+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/django/contrib/staticfiles/storage.py", line 417, in stored_name
2022-01-24T17:30:11.859268+00:00 app[web.1]: raise ValueError("Missing staticfiles manifest entry for '%s'" % clean_name)
2022-01-24T17:30:11.859268+00:00 app[web.1]: ValueError: Missing staticfiles manifest entry for 'tinymce/js/tinymce/tinymce.min.js'
2022-01-24T17:30:11.859386+00:00 app[web.1]: [2022-01-24 12:30:11 -0500] [9] [INFO] Worker exiting (pid: 9)
2022-01-24T17:30:11.935451+00:00 app[web.1]: Traceback (most recent call last):
2022-01-24T17:30:11.935456+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/gunicorn/arbiter.py", line 209, in run
2022-01-24T17:30:11.935661+00:00 app[web.1]: self.sleep()
2022-01-24T17:30:11.935663+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/gunicorn/arbiter.py", line 357, in sleep
2022-01-24T17:30:11.935760+00:00 app[web.1]: ready = select.select([self.PIPE[0]], [], [], 1.0)
2022-01-24T17:30:11.935763+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/gunicorn/arbiter.py", line 242, in handle_chld
2022-01-24T17:30:11.935839+00:00 app[web.1]: self.reap_workers()
2022-01-24T17:30:11.935856+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/gunicorn/arbiter.py", line 525, in reap_workers
2022-01-24T17:30:11.935965+00:00 app[web.1]: raise HaltServer(reason, self.WORKER_BOOT_ERROR)
2022-01-24T17:30:11.936009+00:00 app[web.1]: gunicorn.errors.HaltServer: <HaltServer 'Worker failed to boot.' 3>
2022-01-24T17:30:11.936012+00:00 app[web.1]:
2022-01-24T17:30:11.936012+00:00 app[web.1]: During handling of the above exception, another exception occurred:
2022-01-24T17:30:11.936013+00:00 app[web.1]:
2022-01-24T17:30:11.936015+00:00 app[web.1]: Traceback (most recent call last):
2022-01-24T17:30:11.936023+00:00 app[web.1]: File "/app/.heroku/python/bin/gunicorn", line 8, in <module>
2022-01-24T17:30:11.936084+00:00 app[web.1]: sys.exit(run())
2022-01-24T17:30:11.936092+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/gunicorn/app/wsgiapp.py", line 58, in run
2022-01-24T17:30:11.936154+00:00 app[web.1]: WSGIApplication("%(prog)s [OPTIONS] [APP_MODULE]").run()
2022-01-24T17:30:11.936163+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/gunicorn/app/base.py", line 228, in run
2022-01-24T17:30:11.936243+00:00 app[web.1]: super().run()
2022-01-24T17:30:11.936250+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/gunicorn/app/base.py", line 72, in run
2022-01-24T17:30:11.936310+00:00 app[web.1]: Arbiter(self).run()
2022-01-24T17:30:11.936317+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/gunicorn/arbiter.py", line 229, in run
2022-01-24T17:30:11.936393+00:00 app[web.1]: self.halt(reason=inst.reason, exit_status=inst.exit_status)
2022-01-24T17:30:11.936401+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/gunicorn/arbiter.py", line 342, in halt
2022-01-24T17:30:11.936493+00:00 app[web.1]: self.stop()
2022-01-24T17:30:11.936495+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/gunicorn/arbiter.py", line 393, in stop
2022-01-24T17:30:11.936605+00:00 app[web.1]: time.sleep(0.1)
2022-01-24T17:30:11.936606+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/gunicorn/arbiter.py", line 242, in handle_chld
2022-01-24T17:30:11.936680+00:00 app[web.1]: self.reap_workers()
2022-01-24T17:30:11.936687+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/gunicorn/arbiter.py", line 525, in reap_workers
2022-01-24T17:30:11.936795+00:00 app[web.1]: raise HaltServer(reason, self.WORKER_BOOT_ERROR)
2022-01-24T17:30:11.936822+00:00 app[web.1]: gunicorn.errors.HaltServer: <HaltServer 'Worker failed to boot.' 3>
2022-01-24T17:30:12.104612+00:00 heroku[web.1]: Process exited with status 1
2022-01-24T17:30:12.208442+00:00 heroku[web.1]: State changed from up to crashed
2022-01-24T17:30:14.955002+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=www.scanspectt.com request_id=fe9e225d-6852-447b-bbaa-348bbdfa2657 fwd="71.232.82.43" dyno= co
nnect= service= status=503 bytes= protocol=https
2022-01-24T17:30:15.464742+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=www.scanspectt.com request_id=8f9384a4-0e5a-4267-890d-44d3065b2305 fwd="71.232.82.43" dyno= co
nnect= service= status=503 bytes= protocol=https
2022-01-24T17:30:15.774893+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=www.scanspectt.com request_id=03baa46b-19d3-45c2-b9c2-a9d72ec98561 fwd="71.232.82.4
3" dyno= connect= service= status=503 bytes= protocol=https
2022-01-24T17:30:17.942792+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/front_page/" host=www.scanspectt.com request_id=7b690ab1-285b-4411-838c-b0bbedef6626 fwd="71.232.82.4
3" dyno=web.1 connect=5000ms service= status=503 bytes= protocol=https
2022-01-24T17:30:18.545160+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=www.scanspectt.com request_id=4e21876e-a539-4b1b-81c4-0c00a6c66565 fwd="71.232.82.43" dyno= co
nnect= service= status=503 bytes= protocol=https
2022-01-24T17:30:18.807043+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=www.scanspectt.com request_id=e2cb9a91-dd9c-43e1-9179-2d1e852c3bc0 fwd="71.232.82.4
3" dyno= connect= service= status=503 bytes= protocol=https
2022-01-24T17:30:17.942792+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/front_page/"
host=www.scanspectt.com request_id=7b690ab1-285b-4411-838c-b0bbedef6626 fwd="71.232.82.43" dyno=web.1 connect=5000ms
service= status=503 bytes= protocol=https
2022-01-24T17:30:18.545160+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=www.sc
anspectt.com request_id=4e21876e-a539-4b1b-81c4-0c00a6c66565 fwd="71.232.82.43" dyno= connect= service= status=503 by
tes= protocol=https
2022-01-24T17:30:18.807043+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico"
host=www.scanspectt.com request_id=e2cb9a91-dd9c-43e1-9179-2d1e852c3bc0 fwd="71.232.82.43" dyno= connect= service= st
atus=503 bytes= protocol=https
2022-01-24T17:30:19.617245+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=www.scanspectt.com request_id=c1aa8dd4-cfb3-4112-bc50-3b3f29ed7482 fwd="71.232.82.43" dyno= co
nnect= service= status=503 bytes= protocol=https
2022-01-24T17:30:19.900516+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=www.scanspectt.com request_id=f46f273d-a0f5-464e-a2ec-9eb4800336b2 fwd="71.232.82.4
3" dyno= connect= service= status=503 bytes= protocol=https
2022-01-24T17:30:19.617245+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=www.sc
anspectt.com request_id=c1aa8dd4-cfb3-4112-bc50-3b3f29ed7482 fwd="71.232.82.43" dyno= connect= service= status=503 by
tes= protocol=https
2022-01-24T17:30:19.900516+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico"
host=www.scanspectt.com request_id=f46f273d-a0f5-464e-a2ec-9eb4800336b2 fwd="71.232.82.43" dyno= connect= service= st
atus=503 bytes= protocol=https
2022-01-24T17:30:20.218439+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=www.scanspectt.com request_id=51017d5c-422a-47d8-8562-4b52d5def029 fwd="71.232.82.43" dyno= co
nnect= service= status=503 bytes= protocol=https
2022-01-24T17:30:20.465180+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=www.scanspectt.com request_id=78a7a318-dcbe-42fd-b563-061a495f4460 fwd="71.232.82.4
3" dyno= connect= service= status=503 bytes= protocol=https
2022-01-24T17:30:20.929811+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=www.scanspectt.com request_id=c559d4c3-87cb-4744-ba97-ab5aaa8381e2 fwd="71.232.82.43" dyno= co
nnect= service= status=503 bytes= protocol=https
2022-01-24T17:30:21.225863+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=www.scanspectt.com request_id=b305e82d-b1f5-48b5-adc9-76abbc377e80
fwd="71.232.82.4
3" dyno= connect= service= status=503 bytes= protocol=https
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
