environs.EnvError: Environment variable "DATABASE_TEST_URL" not set
Starting the backend container on rdm-test.intranet.ufz.de failed with the following error message:
app_1 | [2021-07-21 05:28:04 +0000] [11] [ERROR] Exception in worker process
app_1 | Traceback (most recent call last):
app_1 | File "/usr/local/lib/python3.9/site-packages/gunicorn/arbiter.py", line 589, in spawn_worker
app_1 | worker.init_process()
app_1 | File "/usr/local/lib/python3.9/site-packages/gunicorn/workers/base.py", line 134, in init_process
app_1 | self.load_wsgi()
app_1 | File "/usr/local/lib/python3.9/site-packages/gunicorn/workers/base.py", line 146, in load_wsgi
app_1 | self.wsgi = self.app.wsgi()
app_1 | File "/usr/local/lib/python3.9/site-packages/gunicorn/app/base.py", line 67, in wsgi
app_1 | self.callable = self.load()
app_1 | File "/usr/local/lib/python3.9/site-packages/gunicorn/app/wsgiapp.py", line 58, in load
app_1 | return self.load_wsgiapp()
app_1 | File "/usr/local/lib/python3.9/site-packages/gunicorn/app/wsgiapp.py", line 48, in load_wsgiapp
app_1 | return util.import_app(self.app_uri)
app_1 | File "/usr/local/lib/python3.9/site-packages/gunicorn/util.py", line 359, in import_app
app_1 | mod = importlib.import_module(module)
app_1 | File "/usr/local/lib/python3.9/importlib/__init__.py", line 127, in import_module
app_1 | return _bootstrap._gcd_import(name[level:], package, level)
app_1 | File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
app_1 | File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
app_1 | File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
app_1 | File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
app_1 | File "<frozen importlib._bootstrap_external>", line 850, in exec_module
app_1 | File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
app_1 | File "/usr/src/app/manage.py", line 8, in <module>
app_1 | from project import create_app
app_1 | File "/usr/src/app/project/__init__.py", line 9, in <module>
app_1 | from .api.upload_files import upload_routes
app_1 | File "/usr/src/app/project/api/upload_files.py", line 8, in <module>
app_1 | from ..config import env
app_1 | File "/usr/src/app/project/config.py", line 103, in <module>
app_1 | class TestingConfig(BaseConfig):
app_1 | File "/usr/src/app/project/config.py", line 107, in TestingConfig
app_1 | SQLALCHEMY_DATABASE_URI = env("DATABASE_TEST_URL")
app_1 | File "/usr/local/lib/python3.9/site-packages/environs/__init__.py", line 80, in method
app_1 | raise EnvError('Environment variable "{}" not set'.format(proxied_key or parsed_key))
app_1 | environs.EnvError: Environment variable "DATABASE_TEST_URL" not set