Problem
After a Terraform Enterprise (TFE) upgrade or redeployment, the application services fail to start.
Cause
The Replicated component logs indicate an error related to the backup schedule configuration. The error occurs when Replicated attempts to process an unknown schedule type for snapshots, as shown in the following log entry from docker logs -f replicated.
failed to start daemon run post license installation task queue tasks queue snapshot task get backup schedule spec unknown schedule type ""
Solution
This procedure involves disabling scheduled snapshots in the Replicated configuration file and restarting the associated services.
Modify the Replicated configuration file,
/etc/replicated.conf, to disable scheduled snapshots by setting theDisableScheduledSnapshotskey totrue."DisableScheduledSnapshots": true
Stop the Replicated services to apply the configuration change.
# systemctl stop replicated replicated-ui replicated-operator
Verify that the services have stopped successfully.
# systemctl status replicated replicated-operator replicated-ui
Start the Replicated services.
# systemctl start replicated replicated-operator replicated-ui
Outcome
After you apply the configuration change and restart the services, Terraform Enterprise should start normally.
Additional Information
For more details on managing Terraform Enterprise, refer to the official documentation regarding Replicated configuration and snapshot management.