alitheg commented on issue #948: URL: https://github.com/apache/tooling-trusted-releases/issues/948#issuecomment-4266620601
Reproduction steps: ``` docker run -ti --rm --init --user "$(id -u):$(id -g)" -p 8080:8080 -p 2222:2222 -v "$PWD/state:/opt/atr/state" -v "$PWD/state/hypercorn/secrets/localhost.apache.org+2-key.pem:/opt/atr/state/hypercorn/secrets/key.pem" -v "$PWD/state/hypercorn/secrets/localhost.apache.org+2.pem:/opt/atr/state/hypercorn/secrets/cert.pem" -e APP_HOST=localhost.apache.org:8080 -e TESTS=1 -e SSH_HOST=0.0.0.0 -e BIND=0.0.0.0:8080 -e PUBSUB_URL=http://pubsub.apache.org tooling-trusted-release ``` (command copied from the Makefile, but extra env added) Then review state/hypercorn/logs/hypercorn.log: ``` Traceback (most recent call last): File "/usr/local/lib/python3.13/multiprocessing/process.py", line 313, in _bootstrap self.run() ~~~~~~~~^^ File "/usr/local/lib/python3.13/multiprocessing/process.py", line 108, in run self._target(*self._args, **self._kwargs) ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/atr/.venv/lib/python3.13/site-packages/hypercorn/asyncio/run.py", line 210, in uvloop_worker app = load_application(config.application_path, config.wsgi_max_body_size) File "/opt/atr/.venv/lib/python3.13/site-packages/hypercorn/utils.py", line 99, in load_application module = import_module(import_name) File "/usr/local/lib/python3.13/importlib/__init__.py", line 88, in import_module return _bootstrap._gcd_import(name[level:], package, level) ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "<frozen importlib._bootstrap>", line 1387, in _gcd_import File "<frozen importlib._bootstrap>", line 1360, in _find_and_load File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 935, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 1026, in exec_module File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed File "/opt/atr/atr/server.py", line 49, in <module> import atr.attestable as attestable File "/opt/atr/atr/attestable.py", line 30, in <module> import atr.util as util File "/opt/atr/atr/util.py", line 51, in <module> import atr.config as config File "/opt/atr/atr/config.py", line 70, in <module> class AppConfig: ...<56 lines>... ADMIN_USERS_ADDITIONAL = decouple.config("ADMIN_USERS_ADDITIONAL", default="", cast=str) File "/opt/atr/atr/config.py", line 84, in AppConfig PUBSUB_URL = _config_secrets("PUBSUB_URL", STATE_DIR, default=None, cast=str) File "/opt/atr/atr/config.py", line 41, in _config_secrets return _config_secrets_get(secrets_path, key, default, cast) File "/opt/atr/atr/config.py", line 54, in _config_secrets_get value = repo_ini[key] ~~~~~~~~^^^^^ File "/opt/atr/.venv/lib/python3.13/site-packages/decouple.py", line 140, in __getitem__ raise KeyError(key) KeyError: 'PUBSUB_URL' ``` I *think* it's trying to use the env var to override an existing setting, and if there's no existing setting it fails. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
