Error loading index blob

Hi

I am unable to load this repo in Windows UI client. There is a maintenance task on that PC. Would that be the case? Can I stop the operation and try it agaiN? I just do not want to make it worse.

Error: error opening repository: error connecting: unable to create shared content manager: error loading indexes: error downloading indexes: error loading index blob xn290_169c2e0fd5fcaf668a61eb84502aee4a-s87545702b0a1db56122-c1: getContent: unable to complete GetBlobFromPath:\\192.168.1.2\KOPIA/xn2/90_/169c2e0fd5fcaf668a61eb84502aee4a-s87545702b0a1db56122-c1.f despite 10 retries: open \\192.168.1.2\KOPIA/xn2/90_/169c2e0fd5fcaf668a61eb84502aee4a-s87545702b0a1db56122-c1.f: Access is denied..

Is it possible that this is a bug with Kopia?

I can connect, list and run maintenance on this repo on that PC that stores the actual repository. I cant access it anymore from a remote PC over Samba share. I do not know why it is complaining baout access denied.

23:45:08.678 got error open \\192.168.1.2.\KOPIA/xs2/89_: Access is denied. when ReadDir:\\192.168.1.2.\KOPIA/xs2/89_ (#9), sleeping for 3.844335937s before retrying
23:45:12.536 [STORAGE] ListBlobs {"prefix":"xs","resultCount":91,"error":"error processing directory shards: error reading directory: unable to complete ReadDir:\\\\192.168.1.2\\KOPIA/xs2/89_ despite 10 retries: open \\\\192.168.1.2\\KOPIA/xs2/89_: Access is denied.","errorVerbose":"open \\\\192.168.1.2\\KOPIA/xs2/89_: Access is denied.\nunable to complete ReadDir:\\\\192.168.1.2\\KOPIA/xs2/89_ despite 10 retries\ngithub.com/kopia/kopia/internal/retry.internalRetry[...]\n\tD:/a/kopia/kopia/internal/retry/retry.go:94\ngithub.com/kopia/kopia/internal/retry.WithExponentialBackoff[...]\n\tD:/a/kopia/kopia/internal/retry/retry.go:31\ngithub.com/kopia/kopia/repo/blob/filesystem.(*fsImpl).ReadDir\n\tD:/a/kopia/kopia/repo/blob/filesystem/filesystem_storage.go:260\ngithub.com/kopia/kopia/repo/blob/sharded.(*Storage).ListBlobs.func1\n\tD:/a/kopia/kopia/repo/blob/sharded/sharded.go:89\ngithub.com/kopia/kopia/repo/blob/sharded.(*Storage).ListBlobs.func1.1\n\tD:/a/kopia/kopia/repo/blob/sharded/sharded.go:110\ngithub.com/kopia/kopia/internal/parallelwork.(*Queue).Process.func1\n\tD:/a/kopia/kopia/internal/parallelwork/parallel_work_queue.go:82\ngolang.org/x/sync/errgroup.(*Group).Go.func1\n\tC:/Users/runneradmin/go/pkg/mod/golang.org/x/sync@v0.4.0/errgroup/errgroup.go:75\nruntime.goexit\n\tC:/hostedtoolcache/windows/go/1.21.3/x64/src/runtime/asm_amd64.s:1650\nerror reading directory\ngithub.com/kopia/kopia/repo/blob/sharded.(*Storage).ListBlobs.func1\n\tD:/a/kopia/kopia/repo/blob/sharded/sharded.go:91\ngithub.com/kopia/kopia/repo/blob/sharded.(*Storage).ListBlobs.func1.1\n\tD:/a/kopia/kopia/repo/blob/sharded/sharded.go:110\ngithub.com/kopia/kopia/internal/parallelwork.(*Queue).Process.func1\n\tD:/a/kopia/kopia/internal/parallelwork/parallel_work_queue.go:82\ngolang.org/x/sync/errgroup.(*Group).Go.func1\n\tC:/Users/runneradmin/go/pkg/mod/golang.org/x/sync@v0.4.0/errgroup/errgroup.go:75\nruntime.goexit\n\tC:/hostedtoolcache/windows/go/1.21.3/x64/src/runtime/asm_amd64.s:1650\nerror processing directory shards\ngithub.com/kopia/kopia/repo/blob/sharded.(*Storage).ListBlobs.func3\n\tD:/a/kopia/kopia/repo/blob/sharded/sharded.go:154\ngolang.org/x/sync/errgroup.(*Group).Go.func1\n\tC:/Users/runneradmin/go/pkg/mod/golang.org/x/sync@v0.4.0/errgroup/errgroup.go:75\nruntime.goexit\n\tC:/hostedtoolcache/windows/go/1.21.3/x64/src/runtime/asm_amd64.s:1650","duration":"1m54.4308068s"}
23:45:12.537 refresh attempt failed: error refreshing: error loading single-epoch compactions: error listing all blobs: error listing all blobs: error processing directory shards: error reading directory: unable to complete ReadDir:\\192.168.1.2.\KOPIA/xs2/89_ despite 10 retries: open \\192.168.1.2.\KOPIA/xs2/89_: Access is denied., sleeping 15s before next retry
23:45:27.542 refreshAttemptLocked
23:45:27.775 [STORAGE] GetBlob {"blobID":"kopia.repository","offset":0,"length":-1,"outputLength":1101,"error":null,"duration":"232.6646ms"}
23:45:28.027 [STORAGE] GetBlob {"blobID":"kopia.blobcfg","offset":0,"length":-1,"outputLength":30,"error":null,"duration":"244.3982ms"}
23:45:53.262 [STORAGE] ListBlobs {"prefix":"xe","resultCount":2,"error":null,"duration":"25.219462s"}
23:45:53.297 [STORAGE] ListBlobs {"prefix":"xw","resultCount":1,"error":null,"duration":"25.2547724s"}
23:46:29.522 [STORAGE] ListBlobs {"prefix":"xr","resultCount":42,"error":null,"duration":"1m1.4794889s"}


There must be a reason why kopia is complaining about access errors. Did you check the ownership of some of the files/directories which kopia lists in the log?

1 Like

I did a chown on the folders and I can now open it. Interesting that the ownership of some of those files changed.