ERROR collector unable to delete piece Access is denied

I check the log file and see there are many errors that cannot delete files like this.
How to fix it?

2022-07-07T02:22:16.869+0700 ERROR collector unable to delete piece {“Process”: “storagenode”, “Satellite ID”: “12L9ZFwhzVpuEKMUNUqkaTLGzwY9G24tbiigLiXpmZWKwmcNDDs”, “Piece ID”: “C2IZ3CVEA7ZYPHFVLWAPLZASLUC5X6HVPSAP4WS4LB6VNSFJIZPA”, “error”: “pieces error: filestore error: remove S:\Storj2\blobs\v4weeab67sbgvnbwd5z7tweqsqqun7qox2agpbxy44mqqaaaaaaa\c2\iz3cvea7zyphfvlwaplzasluc5x6hvpsap4ws4lb6vnsfjizpa.sj1: Access is denied.”, “errorVerbose”: “pieces error: filestore error: remove S:\Storj2\blobs\v4weeab67sbgvnbwd5z7tweqsqqun7qox2agpbxy44mqqaaaaaaa\c2\iz3cvea7zyphfvlwaplzasluc5x6hvpsap4ws4lb6vnsfjizpa.sj1: Access is denied.\n\tstorj.io/storj/storage/filestore.(*blobStore).Delete:120\n\tstorj.io/storj/storagenode/pieces.(*BlobsUsageCache).Delete:225\n\tstorj.io/storj/storagenode/pieces.(*Store).Delete:299\n\tstorj.io/storj/storagenode/collector.(*Service).Collect:97\n\tstorj.io/storj/storagenode/collector.(*Service).Run.func1:57\n\tstorj.io/common/sync2.(*Cycle).Run:152\n\tstorj.io/storj/storagenode/collector.(*Service).Run:53\n\tstorj.io/storj/private/lifecycle.(*Group).Run.func2.1:87\n\truntime/pprof.Do:40\n\tstorj.io/storj/private/lifecycle.
(*Group).Run.func2:86\n\tgolang.org/x/sync/errgroup.(*Group).Go.func1:57”}

looks like something bad with hdd, so check the disk.

1 Like

I checked. No error.

image

Seems a permission error.
Try to check if file is there or not in this location: S:\Storj2\blobs\v4weeab67sbgvnbwd5z7tweqsqqun7qox2agpbxy44mqqaaaaaaa\c2\iz3cvea7zyphfvlwaplzasluc5x6hvpsap4ws4lb6vnsfjizpa.sj1

1 Like

It here

All data in blobs should belong to the SYSTEM user and this user should have full rights in case of Windows GUI (binary version) or to your user in case of docker version.

1 Like

Thank you. It’s worked!

1 Like