Introduction
Problem
The Terraform Enterprise Dashboard has the ability to configure snapshots as documented here,but they are failing and this could show an error like below
Cause
There are multiple scenario's when this error could occur. Please verify the following
- There is not enough storage space on disk
Please verify you have enough space left on disk.
# Free space
df -Ph
# Free Inodes
df -i
- There is not enough space on docker volumes itself. Clear docker space using the KB article here
- Clear the temporary directory that replicated uses as some files may block the creation of new snapshots
rm /var/lib/replicated/tmp/*
- By default the snapshot is allowed to take 2 minutes to create. Increase this value to 10 minutes
replicatedctl params set SnapshotsTimeout --value 10m
Outcome
If snapshots are still failing then please create a ticket with HashiCorp Support and add the support bundle to the ticket as described here
Additional Information
Please be aware that these snapshots only store data needed by replicated. This is no backup of your TFE application data. For best practices on how to backup your TFE environment please take a look at our documentation here