Skip to content

AUGUR_DOCKER_DEPLOY environment variable not set and causing a crash on bare metal installs #3474

@sgoggins

Description

@sgoggins

Please help us help you by filling out the following sections as thoroughly as you can.

Description:
When running augur its looking for a docker environment variable. That variable is not set by default or anything bare metal users will set, so we need to include a check so it doesn't fail.

How to reproduce:

  1. Run Augur on bare metal
  2. Wait for this error:
2025-12-17 19:48:01 kate augur[223094] INFO Flushing all redis databases this instance was using
No messages purged from 1 queue.
2025-12-17 19:48:03 kate augur[223094] INFO Clearing all messages from celery queue in rabbitmq
2025-12-17 19:48:03 kate augur[223094] INFO awaiting Gunicorn start
Failed to read config file: /home/sean/github/ai.chaoss/augur/api/gunicorn_conf.py
Traceback (most recent call last):
  File "/home/sean/github/ai.chaoss/.venv/lib/python3.11/site-packages/gunicorn/app/base.py", line 111, in get_config_from_filename
    spec.loader.exec_module(mod)
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/home/sean/github/ai.chaoss/augur/api/gunicorn_conf.py", line 43, in <module>
    is_docker = os.getenv("AUGUR_DOCKER_DEPLOY").lower() in ('true', '1', 't', 'y', 'yes')
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'lower'
2025-12-17 19:48:04 kate augur[223094] CRITICAL Gunicorn was shut down abnormally. Exiting
(augur) Reseting log files

Metadata

Metadata

Assignees

Labels

bugDocuments unexpected/wrong/buggy behavior

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions