Some containers are okay, some that I haven’t yet touched, give the same below error
Error: Instance snapshot record count doesn't match instance snapshot volume record count
When attempting a snapshot or restart. I looked at one in question, trying to guess at what it was complaining about.
In the sqlite db, I ran these queries for an affected one
SELECT COUNT(*) FROM storage_volumes AS v INNER JOIN storage_volumes_snapshots AS vs ON v.id = vs.storage_volume_id WHERE v.name = 'container-name';
SELECT COUNT(*) FROM instances AS v INNER JOIN instances_snapshots AS vs ON v.id = vs.instance_id WHERE v.name = 'container-name';
Both queries return a count of 31. Which is the number of snapshots I see. So not sure what it is complaining about.