Repo corupted - failed to open repository

Hi,

Been runing Kopia UI on my desktop (Windows 10) PC for a year of two. No issues so far.

But yesterday I noticed that my Kopia is not connecting to repo. It might have happened there was an unplaned hard restart of the computer in prior days…

Anyway any ideas how to fix?

Here is part of log (it repeats so I think it should be enough):

16:49:31.966 unable to check for updates: unable to open update state file: open E:\BackupMain\repositories\repository.config.update-info.json: The system cannot find the file specified.
16:49:31.966 password for E:\BackupMain\repositories\repository.config retrieved from OS keyring
16:49:32.103 throttling limits from connection info {"limits":{}}
16:49:32.114 finished initial cache scan {"cache":"contents","duration":"11.2334ms","totalRetainedSize":5241443231,"tooRecentBytes":0,"tooRecentCount":0,"maxSizeBytes":5242880000,"limitBytes":0,"inUsePercent":99}
16:49:32.127 finished initial cache scan {"cache":"metadata","duration":"12.4382ms","totalRetainedSize":801424595,"tooRecentBytes":0,"tooRecentCount":0,"maxSizeBytes":5242880000,"limitBytes":0,"inUsePercent":15}
16:49:32.129 finished initial cache scan {"cache":"index-blobs","duration":"1.5768ms","totalRetainedSize":54703016,"tooRecentBytes":31082,"tooRecentCount":15,"maxSizeBytes":5242880000,"limitBytes":0,"inUsePercent":1}
16:49:32.129 refreshing committed state because it's no longer valid (now 2025-10-09 16:49:32.1291579 +0200 CEST, valid until 0001-01-01T00:00:00Z)
16:49:32.129 refreshAttemptLocked
16:49:32.129 [STORAGE] concurrency level reached {"maxConcurrency":1}
16:49:32.129 [STORAGE] concurrency level reached {"maxConcurrency":2}
16:49:32.129 [STORAGE] ListBlobs {"prefix":"xw","resultCount":1,"error":null,"duration":"523.4µs"}
16:49:32.130 [STORAGE] ListBlobs {"prefix":"xe","resultCount":2,"error":null,"duration":"531µs"}
16:49:32.130 [STORAGE] ListBlobs {"prefix":"xr","resultCount":10,"error":null,"duration":"1.0438ms"}
16:49:32.130 ranges: [{xr8_15_72c51c68b4dd4193578c4a2f937ca387-s69e938c4f55459c5-c1 762834 2024-05-26 19:34:13.5938456 +0200 CEST} {xr72_79_cda7c37e2aababcb3c78990044a737fe-s87096521e54e52cd-c1 502455 2024-11-10 18:18:28.4720208 +0100 CET} {xr64_71_57887a957df6465e0dd07368f3509ef6-sffe315ec7d38c925-c1 529339 2024-10-20 07:16:09.1066901 +0200 CEST} {xr56_63_46b932bc1948d5e1f00d639154a07ee8-sa2f7cc1fe8684b7c-c1 434237 2024-09-30 16:00:29.7755328 +0200 CEST} {xr48_55_43b347ef660bc1e98e92cd699c3d43df-s76a8a385d96d4d2a-c1 521002 2024-09-12 12:56:43.9419606 +0200 CEST} {xr40_47_e71ea9154dae3fc82c27fecefd391d87-s207e7286733fd4ba-c1 193236 2024-08-24 20:06:04.2486429 +0200 CEST} {xr32_39_08bbbe147bf45492d3145cc8fc153b1d-sf25ec6eacce1768d-c1 412384 2024-08-04 19:24:16.2957181 +0200 CEST} {xr24_31_ed32a5d123060803435f9c727bb03740-s1a731810ceb39a77-c1 436687 2024-07-16 20:27:47.2826516 +0200 CEST} {xr16_23_16ec0549b7b38fd003480ae3581d3fd9-s3a881ef4fdae018b-c1 497249 2024-06-23 08:47:19.5989292 +0200 CEST} {xr0_7_d02f9ed7c245c98a831237ca7ece9b51-sfe6ace1de7d2b64a-c1 9139344 2024-05-03 06:55:11.0286813 +0200 CEST}]
16:49:32.141 [STORAGE] ListBlobs {"prefix":"xs","resultCount":83,"error":null,"duration":"2.5839ms"}
16:49:32.142 [STORAGE] concurrency level reached {"maxConcurrency":3}
16:49:32.142 [STORAGE] ListBlobs {"prefix":"xn84_","resultCount":0,"error":null,"duration":"0s"}
16:49:32.142 [STORAGE] ListBlobs {"prefix":"xn82_","resultCount":25,"error":null,"duration":"0s"}
16:49:32.144 [STORAGE] ListBlobs {"prefix":"xn83_","resultCount":2856,"error":null,"duration":"1.9999ms"}
16:49:32.144 current epoch 83, uncompacted epoch sets 25 2856 0, valid until 2025-10-09T17:09:32.1291579+02:00
16:49:32.144 adding incremental state for epochs 80..84 on top of [{xr0_7_d02f9ed7c245c98a831237ca7ece9b51-sfe6ace1de7d2b64a-c1 9139344 2024-05-03 06:55:11.0286813 +0200 CEST} {xr8_15_72c51c68b4dd4193578c4a2f937ca387-s69e938c4f55459c5-c1 762834 2024-05-26 19:34:13.5938456 +0200 CEST} {xr16_23_16ec0549b7b38fd003480ae3581d3fd9-s3a881ef4fdae018b-c1 497249 2024-06-23 08:47:19.5989292 +0200 CEST} {xr24_31_ed32a5d123060803435f9c727bb03740-s1a731810ceb39a77-c1 436687 2024-07-16 20:27:47.2826516 +0200 CEST} {xr32_39_08bbbe147bf45492d3145cc8fc153b1d-sf25ec6eacce1768d-c1 412384 2024-08-04 19:24:16.2957181 +0200 CEST} {xr40_47_e71ea9154dae3fc82c27fecefd391d87-s207e7286733fd4ba-c1 193236 2024-08-24 20:06:04.2486429 +0200 CEST} {xr48_55_43b347ef660bc1e98e92cd699c3d43df-s76a8a385d96d4d2a-c1 521002 2024-09-12 12:56:43.9419606 +0200 CEST} {xr56_63_46b932bc1948d5e1f00d639154a07ee8-sa2f7cc1fe8684b7c-c1 434237 2024-09-30 16:00:29.7755328 +0200 CEST} {xr64_71_57887a957df6465e0dd07368f3509ef6-sffe315ec7d38c925-c1 529339 2024-10-20 07:16:09.1066901 +0200 CEST} {xr72_79_cda7c37e2aababcb3c78990044a737fe-s87096521e54e52cd-c1 502455 2024-11-10 18:18:28.4720208 +0100 CET}]
16:49:32.144 Complete Index Set for [0..84]: [xr0_7_d02f9ed7c245c98a831237ca7ece9b51-sfe6ace1de7d2b64a-c1 xr8_15_72c51c68b4dd4193578c4a2f937ca387-s69e938c4f55459c5-c1 xr16_23_16ec0549b7b38fd003480ae3581d3fd9-s3a881ef4fdae018b-c1 xr24_31_ed32a5d123060803435f9c727bb03740-s1a731810ceb39a77-c1 
...
xn83_0f2ce1913df2bd09f673a8efae1d96e2-s5b59f32fb9d279f5139-c1 xn83_0f4096fd9b1533817092b929812cb05a-s05198f2309fa4d22130-c1 xn83_0f44275f0bc1303a7b1bdf76612b017c-s12960ee38d52a01b131-c1 xn83_0f6b7dd76134cdb6fc58140402195975-scdd0699669b167e8135-c1 xn83_0f9feefb002db627440e1cf59f25e284-s5a401cb3ec90ece412e-c1 xn83_0fafb28f1ac1711804679c7e10e08712-s5ced1fea7ce37f5512f-c1 xn83_0fb2cb751ffb40d13fc8dbb53923cb78-s5551ff96432d8065137-c1 xn83_0fbc34daa43c954e264804f233250b0e-s9ceedbfeed0ffc64136-c1 xn83_0fbeba38628391dd874570536edf54d2-se6e80161ddb548de138-c1 xn83_0fddc7a1ee5bd465d65cd1314b2a9dcf-sb4d262e900c87747131-c1 xn83_0fea299fb00dfc1689c9ee93ef364e73-s20e22097bb8ea3d9138-c1], deletion watermark 2024-11-15 17:18:25 +0100 CET
16:49:32.148 total active indexes 2893, deletion watermark 2024-11-15 17:18:25 +0100 CET
16:49:32.163 Downloading 2893 new index blobs...
16:49:32.163 [STORAGE] concurrency level reached {"maxConcurrency":4}
16:49:32.169 [STORAGE] GetBlob {"blobID":"xn83_a9c46c97c985ec8da0e607c2070db7ed-s8e83d8a21c85087d139-c1","offset":0,"length":-1,"outputLength":784,"error":null,"duration":"5.9267ms"}
16:49:32.169 [STORAGE] GetBlob {"blobID":"xn83_a4996a3b4bf93a0d1fcbf3434be75213-s349a928c0d419b32139-c1","offset":0,"length":-1,"outputLength":456,"error":null,"duration":"5.9267ms"}
16:49:32.169 unable to add xn83_a9c46c97c985ec8da0e607c2070db7ed-s8e83d8a21c85087d139-c1 to index-blobs: context canceled
16:49:32.169 unable to add xn83_a4996a3b4bf93a0d1fcbf3434be75213-s349a928c0d419b32139-c1 to index-blobs: context canceled
16:49:32.169 [STORAGE] GetBlob {"blobID":"xn83_9312d484338a4d6e25c2bb20a43ebc0f-se3053e56f6e4155d139-c1","offset":0,"length":-1,"outputLength":1688,"error":null,"duration":"5.9267ms"}
16:49:32.169 unable to add xn83_9312d484338a4d6e25c2bb20a43ebc0f-se3053e56f6e4155d139-c1 to index-blobs: context canceled
16:49:32.170 [STORAGE] GetBlob {"blobID":"xn83_857cd1ae679b2787a5d3a70c88e09b2b-s609d809f2cd1c5cc139-c1","offset":0,"length":-1,"outputLength":0,"error":"context canceled","duration":"0s"}
16:49:32.170 [STORAGE] GetBlob {"blobID":"xn83_895cacbbe9a8e13b7fd6682e1833f1e9-s0ee9fc3768e2f51a139-c1","offset":0,"length":-1,"outputLength":0,"error":"context canceled","duration":"0s"}
16:49:32.170 [STORAGE] GetBlob {"blobID":"xn83_8f0dc6731943d70d8ebcd3f0f830c745-s1244d03228341722139-c1","offset":0,"length":-1,"outputLength":0,"error":"context canceled","duration":"0s"}
16:49:32.171 [STORAGE] GetBlob {"blobID":"xn83_adea6b8d506a7bef73c52cedeb2d89f7-s6b59f52e7c459c99139-c1","offset":0,"length":-1,"outputLength":232,"error":null,"duration":"7.9273ms"}
16:49:32.171 unable to add xn83_adea6b8d506a7bef73c52cedeb2d89f7-s6b59f52e7c459c99139-c1 to index-blobs: context canceled
16:49:32.171 [STORAGE] GetBlob {"blobID":"xn83_74791f434576f2e969beda2bee7ea9ea-s65298c20de8f131a139-c1","offset":0,"length":-1,"outputLength":0,"error":"context canceled","duration":"0s"}
16:49:32.171 [STORAGE] Close {"error":null,"duration":"0s"}
16:49:32.171 failed to open repository: unable to create shared content manager: error loading indexes: error downloading indexes: error loading index blob xn83_a104cb99c18f25217fe9804f246b952b-s98a6af042a972038139-c1: decrypt blob: error decrypting BLOB xn83_a104cb99c18f25217fe9804f246b952b-s98a6af042a972038139-c1: Error computing ECC: no shard data
16:49:32.171 unable to open repository: unable to open repository: unable to create shared content manager: error loading indexes: error downloading indexes: error loading index blob xn83_a104cb99c18f25217fe9804f246b952b-s98a6af042a972038139-c1: decrypt blob: error decrypting BLOB xn83_a104cb99c18f25217fe9804f246b952b-s98a6af042a972038139-c1: Error computing ECC: no shard data, will keep trying until canceled. Sleeping for 4m16s
  1. I have tried removing the index file
    **error decrypting BLOB xn83_a104cb99c18f25217fe9804f246b952b-s98a6af042a972038139-c1: Error computing ECC: no shard data
    **
    That did not resolve the issue.

  2. I have tried removing a week of indexes files from “..cache\repository\indexes” but that did not change anything.

Any ideas how to recover?

I must have somehow lost the entire indexes subfolder. Windows Explorer operation when I tried selecting and or drag and droping… I only have a dozen of latest *.sndx files that moved to temp folder.

Anyway i think this probably means that repo is lost and I would need to setup a new repo from scratch?

I might have fixed it….

In the mean time I noticed some of the .repositories\cache\ subfolders went missing.

Anyway…I actually went and found the offending BLOB file which I found in: E:\BackupMain\repositories\BackupMain\xn8\3_a\104a…139-c1.f

It was the newest timestamp and empty (no contents). After I deleted the 104a..139-c1.f file I could reconnect to my repo.

And on first look it looks like data and history is there.

Should I verify?

Only if you don’t believe that you are always lucky:)

1 Like