Skip to content

Error in prod environment during loading & initializing the app #112

@tisnik

Description

@tisnik
[2019-04-01 11:55:07 +0000] [9] [INFO] Starting gunicorn 19.9.0
[2019-04-01 11:55:07 +0000] [9] [INFO] Listening at: http://0.0.0.0:6006  (9)
[2019-04-01 11:55:07 +0000] [9] [INFO] Using worker: sync
[2019-04-01 11:55:07 +0000] [12] [INFO] Booting worker with pid: 12
[2019-04-01 11:55:16 +0000] [12] [ERROR] Exception in worker process
Traceback (most recent call last):
  File "/usr/lib/python3.4/site-packages/gunicorn/arbiter.py", line 583, in spawn_worker
    worker.init_process()
  File "/usr/lib/python3.4/site-packages/gunicorn/workers/base.py", line 129, in init_process
    self.load_wsgi()
  File "/usr/lib/python3.4/site-packages/gunicorn/workers/base.py", line 138, in load_wsgi
    self.wsgi = self.app.wsgi()
  File "/usr/lib/python3.4/site-packages/gunicorn/app/base.py", line 67, in wsgi
    self.callable = self.load()
  File "/usr/lib/python3.4/site-packages/gunicorn/app/wsgiapp.py", line 52, in load
    return self.load_wsgiapp()
  File "/usr/lib/python3.4/site-packages/gunicorn/app/wsgiapp.py", line 41, in load_wsgiapp
    return util.import_app(self.app_uri)
  File "/usr/lib/python3.4/site-packages/gunicorn/util.py", line 350, in import_app
    __import__(module)
  File "/src/flask_endpoint.py", line 55, in <module>
    app.scoring_object = HPFScoring(datastore=s3_object)
  File "/src/scoring/hpf_scoring.py", line 43, in __init__
    self.loadObjects()
  File "/src/scoring/hpf_scoring.py", line 69, in loadObjects
    0].get("package_list", {}).items()})
KeyError: 0
[2019-04-01 11:55:16 +0000] [12] [INFO] Worker exiting (pid: 12)
[2019-04-01 11:55:16 +0000] [9] [INFO] Shutting down: Master
[2019-04-01 11:55:16 +0000] [9] [INFO] Reason: Worker failed to boot.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions