Backup Issues

Issue: Backup script fails with "ht_token not found"

Symptoms:
[2025-12-09 10:00:05] ERROR: ht_token value not found or is default in /opt/amd/tts/conf/configuration.yaml

Cause: The TTS configuration file doesn't have a valid ht_token configured.

Resolution:
  1. Check if the file exists:
    ls -la /opt/amd/tts/conf/configuration.yaml
  2. Check token value:
    grep "ht_token:" /opt/amd/tts/conf/configuration.yaml
  3. If missing or default value, that indicates an incomplete installation or corrupted configuration.yaml file. In this case, a re-install will be required.

Issue: PostgreSQL dump fails

Symptoms:
[2025-12-09 10:15:00] ERROR: Failed to create PostgreSQL dump

Cause: Database connection issues or insufficient permissions.

Resolution:
  1. Verify PostgreSQL is running:
    systemctl status postgresql
  2. Check database exists:
    sudo -u postgres psql -l | grep triage-www
  3. Test database connection:
    sudo -u postgres psql -d triage-www -c "SELECT version();"
  4. If triage-www database does not exist, a re-install will be required.