I am encountering an issue when trying to restore from a backup that has already been read by the weaviate instance once before.
This issue can be created via the following steps;
-
Save a backup with id
latest
which contains one class ExampleClass with gcs backend. Backup completes successfully. -
Delete ExampleClass within the weaviate instance.
-
Restore backup with id
latest
-
Verify restore was sucesfull.
-
Delete ExampleClass Again within the weaviate instance.
-
After attempting to restore the backup again I encounter the following error
Backup restore failed: {‘backend’: ‘gcs’, ‘classes’: [‘ExampleClass’], ‘id’: ‘latest’, ‘path’: ‘gs://weaviate/latest’, ‘status’: ‘FAILED’, ‘error’: ‘restore class ExampleClass: write files: move files to destination: move /var/lib/weaviate/.backup.tmp/ExampleClass/exampleclass_QHtt1NlFVFlW.hnsw.commitlog.d /var/lib/weaviate/ExampleClass_QHtt1NlFVFlW.hnsw.commitlog.d: rename /var/lib/weaviate/.backup.tmp/ExampleClass/exampleclass_QHtt1NlFVFlW.hnsw.commitlog.d /var/lib/weaviate/exampleclass_QHtt1NlFVFlW.hnsw.commitlog.d: file exists’}
It seems like it fails because it is trying to use the same log name each time.
Would appreciate any insights people can offer. In particular has anyone been able to preform multiple restores in the same weaviate instance using the same backup id?