Skip to content

bug(ansible): AI Stack systemd services reference wrong EnvironmentFile path #4088

@mrveiss

Description

@mrveiss

The ai-stack role deploys the environment file to /etc/autobot/autobot-ai-stack.env but the systemd service templates reference {{ ai_install_dir }}/.env which resolves to /opt/autobot/autobot-ai-stack/.env.

This causes both the chromadb and ai-stack services to fail to start because they cannot find the environment file.

Files affected:

  • autobot-slm-backend/ansible/roles/ai-stack/templates/autobot-chromadb.service.j2 (Line 15)
  • autobot-slm-backend/ansible/roles/ai-stack/templates/autobot-ai-stack.service.j2 (Line 16)

Fix: Changed both to reference /etc/autobot/autobot-ai-stack.env which matches where the template is deployed (main.yml Line 51).

Impact: Reprovisioning will now start both chromadb and ai-stack services successfully.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions