Server does not crash.
[2022-04-13 23:52:38 +0000] [1] [INFO] Starting gunicorn 20.1.0
[2022-04-13 23:52:38 +0000] [1] [INFO] Listening at: http://0.0.0.0:5000 (1)
[2022-04-13 23:52:38 +0000] [1] [INFO] Using worker: sync
[2022-04-13 23:52:38 +0000] [9] [INFO] Booting worker with pid: 9
INFO:apscheduler.scheduler:Scheduler started
DEBUG:apscheduler.scheduler:Looking for jobs to run
DEBUG:apscheduler.scheduler:Next wakeup is due at 2022-04-14 00:48:00.229931+00:00 (in 3321.534835 seconds)
[2022-04-13 23:52:38 +0000] [9] [ERROR] Exception in worker process
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 1802, in _execute_context
self.dialect.do_execute(
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/engine/default.py", line 719, in do_execute
cursor.execute(statement, parameters)
psycopg2.errors.UndefinedColumn: column msi_users.anonymize_usage_data does not exist
LINE 1: SELECT msi_users.anonymize_usage_data AS msi_users_anonymize...
^
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/gunicorn/arbiter.py", line 589, in spawn_worker
worker.init_process()
File "/usr/local/lib/python3.9/site-packages/gunicorn/workers/base.py", line 134, in init_process
self.load_wsgi()
File "/usr/local/lib/python3.9/site-packages/gunicorn/workers/base.py", line 146, in load_wsgi
self.wsgi = self.app.wsgi()
File "/usr/local/lib/python3.9/site-packages/gunicorn/app/base.py", line 67, in wsgi
self.callable = self.load()
File "/usr/local/lib/python3.9/site-packages/gunicorn/app/wsgiapp.py", line 58, in load
return self.load_wsgiapp()
File "/usr/local/lib/python3.9/site-packages/gunicorn/app/wsgiapp.py", line 48, in load_wsgiapp
return util.import_app(self.app_uri)
File "/usr/local/lib/python3.9/site-packages/gunicorn/util.py", line 359, in import_app
mod = importlib.import_module(module)
File "/usr/local/lib/python3.9/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 850, in exec_module
File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
File "/app/server/wsgi.py", line 9, in <module>
app = create_app()
File "/app/server/__init__.py", line 28, in create_app
user = User.create_or_load()
File "/app/server/models.py", line 164, in create_or_load
return db.session.query(cls).one()
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/orm/query.py", line 2856, in one
return self._iter().one()
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/orm/query.py", line 2894, in _iter
result = self.session.execute(
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/orm/session.py", line 1689, in execute
result = conn._execute_20(statement, params or {}, execution_options)
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 1614, in _execute_20
return meth(self, args_10style, kwargs_10style, execution_options)
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/sql/elements.py", line 325, in _execute_on_connection
return connection._execute_clauseelement(
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 1481, in _execute_clauseelement
ret = self._execute_context(
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 1845, in _execute_context
self._handle_dbapi_exception(
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 2026, in _handle_dbapi_exception
util.raise_(
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/util/compat.py", line 207, in raise_
raise exception
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 1802, in _execute_context
self.dialect.do_execute(
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/engine/default.py", line 719, in do_execute
cursor.execute(statement, parameters)
sqlalchemy.exc.ProgrammingError: (psycopg2.errors.UndefinedColumn) column msi_users.anonymize_usage_data does not exist
LINE 1: SELECT msi_users.anonymize_usage_data AS msi_users_anonymize...
^
[SQL: SELECT msi_users.anonymize_usage_data AS msi_users_anonymize_usage_data, msi_users.receive_updates AS msi_users_receive_updates, msi_users.setup_completed AS msi_users_setup_completed, msi_users.email AS msi_users_email, msi_users.id AS msi_users_id
FROM msi_users]
(Background on this error at: https://sqlalche.me/e/14/f405)
[2022-04-13 23:52:38 +0000] [9] [INFO] Worker exiting (pid: 9)
[2022-04-13 23:52:38 +0000] [1] [INFO] Shutting down: Master
[2022-04-13 23:52:38 +0000] [1] [INFO] Reason: Worker failed to boot.