Missing snapshots after deleting cache folder

I was testing if it is safe to delete cache folder manually (or through cli command). While doing that I noticed that snapshots command is giving me an empty list. Do I need to re-connect or sync to repository after I delete cache folder? Am I missing something?

Steps:

  1. Create snapshot kopia snapshot create /opt/path-to-folder/
Created snapshot with root k96819dd5be59d015154491b134c38615 and ID 4b1aa9e3462b33b83a22fe833b70da19 in 1m12s
  1. verify snapshot is there: kopia snapshot ls
2021-06-14 20:01:02 UTC k96819dd5be59d015154491b134c38615 80.3 MB drwxr-xr-x files:8387 dirs:682 (latest-1,annual-1,monthly-1,weekly-1,daily-1,hourly-1)
  1. Remove cache folder: kopia cache clear
Clearing cache directory: /root/.cache/kopia/c9efdae5eaa57db8.
  1. Observe no more snapshots: kopia snapshot ls

I am using following version on ubuntu 20.04:
0.8.4 build: 940d10dfa29e771467b5d9d45412b889053c2ed1 from: kopia/kopia

Repository is pointing to s3 compatible service (similar to minio) and I can see snapshot creating files in the s3 repo.

That’s completely unexpected. Cache should be deletable at any moment. Can you file a bug and provide repro steps?

:white_check_mark: BUG: Missing snapshots after deleting cache folder · Issue #1140 · kopia/kopia · GitHub