# Error unable tot add ... to contents: can't get mod time for file

**URL:** <https://kopia.discourse.group/t/error-unable-tot-add-to-contents-cant-get-mod-time-for-file/2055>\
**Category:** Support\
**Created:** [May 23, 2023, 6:12am UTC](https://kopia.discourse.group/t/error-unable-tot-add-to-contents-cant-get-mod-time-for-file/2055 "2023-05-23T06:12:18Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nico](https://avatars.discourse-cdn.com/v4/letter/n/b5a626/32.png) [@Nico](https://kopia.discourse.group/u/Nico)\
**Post date:** [May 23, 2023, 6:12am UTC](https://kopia.discourse.group/t/error-unable-tot-add-to-contents-cant-get-mod-time-for-file/2055/1 "2023-05-23T06:12:19Z")

</div>

I use Kopia to backup my data to a NAS drive on Windows with SMB share.  
When i use this command: ‘snapshot verify --verify-files-percent=100’, i get multiple errors:

Processed 50 objects.  
ERROR unable to add f60610d04a07757d3c44f4a1ff4ce3a7.1103.2.0 to contents: can’t get mod time for file “C:\Users\Admin  
istrator\AppData\Local\kopia\8b35017875c33a80\contents/f6/0610d04a07757d3c44f4a1ff4ce3a7.1103.2.0.f”: CreateFile C:  
\Users\Administrator\AppData\Local\kopia\8b35017875c33a80\contents/f6/0610d04a07757d3c44f4a1ff4ce3a7.1103.2.0.f: The sys  
tem cannot find the file specified.  
ERROR unable to add 133afb8ebf905037ee64b9830cd7ffe8.1103.2.0 to contents: can’t get mod time for file “C:\Users\Admin  
istrator\AppData\Local\kopia\8b35017875c33a80\contents/13/3afb8ebf905037ee64b9830cd7ffe8.1103.2.0.f”: CreateFile C:  
\Users\Administrator\AppData\Local\kopia\8b35017875c33a80\contents/13/3afb8ebf905037ee64b9830cd7ffe8.1103.2.0.f: The sys  
tem cannot find the file specified.  
ERROR unable to add 698eabfe0e430ca12162dbdf9e5c6391.1103.2.0 to …  
My system did not run out of disk space.

Any ideas?  
Thanks in advance.

---

<div class="post-metadata">

**Author:** ![upadsamay387](https://avatars.discourse-cdn.com/v4/letter/u/94ad74/32.png) [@upadsamay387](https://kopia.discourse.group/u/upadsamay387)\
**Post date:** [July 30, 2023, 11:59pm UTC](https://kopia.discourse.group/t/error-unable-tot-add-to-contents-cant-get-mod-time-for-file/2055/2 "2023-07-30T23:59:20Z")

</div>

Same issue when running “kopia maintenance run --full”

---

<div class="post-metadata">

**Author:** ![dsimmons](https://yyz2.discourse-cdn.com/free1/user_avatar/kopia.discourse.group/dsimmons/32/218_2.png) [@dsimmons](https://kopia.discourse.group/u/dsimmons)\
**Post date:** [August 13, 2023, 6:55pm UTC](https://kopia.discourse.group/t/error-unable-tot-add-to-contents-cant-get-mod-time-for-file/2055/3 "2023-08-13T18:55:13Z")

</div>

Also seeing this!

My `crontab` entry:

```auto
*/30 * * * * kopia snapshot create $HOME && kopia snapshot verify --verify-files-percent=100

```

For what it’s worth, the repository lives on a local NVMe drive mounted via the following:

```auto
UUID="<uuid-here>" /mnt/p41 ext4 defaults,noatime,nofail,x-systemd.device-timeout=500ms 0 2

```

If I delete the cache, this error goes away temporarily, but it appears again within the order of ~hours (e.g. day)!

---

<div class="post-metadata">

**Author:** ![ChrisA](https://avatars.discourse-cdn.com/v4/letter/c/b77776/32.png) [@ChrisA](https://kopia.discourse.group/u/ChrisA)\
**Post date:** [August 14, 2023, 6:19pm UTC](https://kopia.discourse.group/t/error-unable-tot-add-to-contents-cant-get-mod-time-for-file/2055/4 "2023-08-14T18:19:56Z")

</div>

I have also experienced this. However, i think that this a bug related to the caching mechanism. After i increased the cache size, the failure was gone.

However, i’ve only tested this preliminary.

Cheers,

---

<div class="post-metadata">

**Author:** ![saviodsouza](https://yyz2.discourse-cdn.com/free1/user_avatar/kopia.discourse.group/saviodsouza/32/50_2.png) [@saviodsouza](https://kopia.discourse.group/u/saviodsouza)\
**Post date:** [August 15, 2023, 4:54pm UTC](https://kopia.discourse.group/t/error-unable-tot-add-to-contents-cant-get-mod-time-for-file/2055/5 "2023-08-15T16:54:31Z")

</div>

Hi,

I too am getting this error when migrating or gc

```auto
 / 2 hashing, 15 hashed (4.8 GB), 6355 cached (287.1 GB), uploaded 67.6 MB, estimating...ERROR unable to add 94c76ec8548a4bcda3085af9da74ffc8.1203.2.0 to contents: can't get mod time for file "C:\\Users\\saviodsouza\\AppData\\Local\\kopia\\38d168f603684c0a\\contents/94/c76ec8548a4bcda3085af9da74ffc8.1203.2.0.f": CreateFile C:\Users\saviodsouza\AppData\Local\kopia\38d168f603684c0a\contents/94/c76ec8548a4bcda3085af9da74ffc8.1203.2.0.f: The system cannot find the file specified.
 \ 2 hashing, 15 hashed (11.5 GB), 6355 cached (287.1 GB), uploaded 438.2 MB, estimating...ERROR unable to add 5dc2cb3c0035de35d2acd779cd36a3fb.1203.2.0 to contents: can't get mod time for file "C:\\Users\\saviodsouza\\AppData\\Local\\kopia\\38d168f603684c0a\\contents/5d/c2cb3c0035de35d2acd779cd36a3fb.1203.2.0.f": CreateFile C:\Users\saviodsouza\AppData\Local\kopia\38d168f603684c0a\contents/5d/c2cb3c0035de35d2acd779cd36a3fb.1203.2.0.f: The system cannot find the file specified.
 / 2 hashing, 15 hashed (13.5 GB), 6355 cached (287.1 GB), uploaded 596.2 MB, estimating...ERROR unable to add 008d43ce56d935f8fdd760b51339dab5.1203.2.0 to contents: can't get mod time for file "C:\\Users\\saviodsouza\\AppData\\Local\\kopia\\38d168f603684c0a\\contents/00/8d43ce56d935f8fdd760b51339dab5.1203.2.0.f": CreateFile C:\Users\saviodsouza\AppData\Local\kopia\38d168f603684c0a\contents/00/8d43ce56d935f8fdd760b51339dab5.1203.2.0.f: The system cannot find the file specified.
 - 1 hashing, 1838 hashed (31.4 GB), 7256 cached (293.9 GB), uploaded 3.2 GB, estimating...ERROR unable to add 9500c9bbd10ea4ed0cbf56363c98e2de.1203.2.0 to contents: can't get mod time for file "C:\\Users\\saviodsouza\\AppData\\Local\\kopia\\38d168f603684c0a\\contents/95/00c9bbd10ea4ed0cbf56363c98e2de.1203.2.0.f": CreateFile C:\Users\saviodsouza\AppData\Local\kopia\38d168f603684c0a\contents/95/00c9bbd10ea4ed0cbf56363c98e2de.1203.2.0.f: The system cannot find the file specified.
 \ 1 hashing, 1838 hashed (32.6 GB), 7256 cached (293.9 GB), uploaded 3.3 GB, estimating...ERROR unable to add 88313b7d27d1b3be885ba042ccbc37ef.1203.2.0 to contents: can't get mod time for file "C:\\Users\\saviodsouza\\AppData\\Local\\kopia\\38d168f603684c0a\\contents/88/313b7d27d1b3be885ba042ccbc37ef.1203.2.0.f": CreateFile C:\Users\saviodsouza\AppData\Local\kopia\38d168f603684c0a\contents/88/313b7d27d1b3be885ba042ccbc37ef.1203.2.0.f: The system cannot find the file specified.
 - 1 hashing, 1838 hashed (48 GB), 7256 cached (293.9 GB), uploaded 4.7 GB, estimating...ERROR unable to add c8fe6c39cedcb25a8f4f81b0878277a2.1203.2.0 to contents: can't get mod time for file "C:\\Users\\saviodsouza\\AppData\\Local\\kopia\\38d168f603684c0a\\contents/c8/fe6c39cedcb25a8f4f81b0878277a2.1203.2.0.f": CreateFile C:\Users\saviodsouza\AppData\Local\kopia\38d168f603684c0a\contents/c8/fe6c39cedcb25a8f4f81b0878277a2.1203.2.0.f: The system cannot find the file specified.
 - 1 hashing, 1838 hashed (54 GB), 7256 cached (293.9 GB), uploaded 5.8 GB, estimating...ERROR unable to add 3474ea869f305f4dac123183ddbade01.1203.2.0 to contents: can't get mod time for file "C:\\Users\\saviodsouza\\AppData\\Local\\kopia\\38d168f603684c0a\\contents/34/74ea869f305f4dac123183ddbade01.1203.2.0.f": CreateFile C:\Users\saviodsouza\AppData\Local\kopia\38d168f603684c0a\contents/34/74ea869f305f4dac123183ddbade01.1203.2.0.f: The system cannot find the file specified.
 | 1 hashing, 1838 hashed (62.6 GB), 7256 cached (293.9 GB), uploaded 6.8 GB, estimating...ERROR unable to add f1e02804a2b43b9ddc491c92329fd5a9.1203.2.0 to contents: can't get mod time for file "C:\\Users\\saviodsouza\\AppData\\Local\\kopia\\38d168f603684c0a\\contents/f1/e02804a2b43b9ddc491c92329fd5a9.1203.2.0.f": CreateFile C:\Users\saviodsouza\AppData\Local\kopia\38d168f603684c0a\contents/f1/e02804a2b43b9ddc491c92329fd5a9.1203.2.0.f: The system cannot find the file specified.
 - 1 hashing, 1838 hashed (70.2 GB), 7256 cached (293.9 GB), uploaded 7.4 GB, estimating...ERROR unable to add bc0775f7ae62c88aa50f499c414b8337.1203.2.0 to contents: can't get mod time for file "C:\\Users\\saviodsouza\\AppData\\Local\\kopia\\38d168f603684c0a\\contents/bc/0775f7ae62c88aa50f499c414b8337.1203.2.0.f": CreateFile C:\Users\saviodsouza\AppData\Local\kopia\38d168f603684c0a\contents/bc/0775f7ae62c88aa50f499c414b8337.1203.2.0.f: The system cannot find the file specified.
 | 1 hashing, 1838 hashed (74.7 GB), 7256 cached (293.9 GB), uploaded 7.5 GB, estimating...ERROR unable to add 292cee2863a7eb718aa9c37e2a56939c.1203.2.0 to contents: can't get mod time for file "C:\\Users\\saviodsouza\\AppData\\Local\\kopia\\38d168f603684c0a\\contents/29/2cee2863a7eb718aa9c37e2a56939c.1203.2.0.f": CreateFile C:\Users\saviodsouza\AppData\Local\kopia\38d168f603684c0a\contents/29/2cee2863a7eb718aa9c37e2a56939c.1203.2.0.f: The system cannot find the file specified.
 \ 1 hashing, 1838 hashed (76 GB), 7256 cached (293.9 GB), uploaded 7.6 GB, estimating...ERROR unable to add 2b410658380326b8649a86b2145fe57a.1203.2.0 to contents: can't get mod time for file "C:\\Users\\saviodsouza\\AppData\\Local\\kopia\\38d168f603684c0a\\contents/2b/410658380326b8649a86b2145fe57a.1203.2.0.f": CreateFile C:\Users\saviodsouza\AppData\Local\kopia\38d168f603684c0a\contents/2b/410658380326b8649a86b2145fe57a.1203.2.0.f: The system cannot find the file specified.
 / 1 hashing, 1838 hashed (84.5 GB), 7256 cached (293.9 GB), uploaded 8.4 GB, estimating...

```

Not sure when it means however everything works doesn’t stop working  
Just wanted to know if this is a concern or a bug?

more info

```auto
kopia repo status
Config file: C:\Users\Admin\AppData\Roaming\kopia\repository.config

Description: Repository in Filesystem: D:\kopia
Hostname: dell-i3
Username: Admin
Read-only: false
Format blob cache: 15m0s

Storage type: filesystem
Storage capacity: 1 TB
Storage available: 215.4 GB
Storage config: {
                       "path": "D:\\kopia",
                       "fileMode": 384,
                       "dirMode": 448,
                       "dirShards": null
                     }

Unique ID: 1cd9866b4af698fffaebc47b09b206b47ad81744657f7fa8af9ca6eba12df8b5
Hash: BLAKE2B-256-128
Encryption: AES256-GCM-HMAC-SHA256
Splitter: DYNAMIC-4M-BUZHASH
Format version: 3
Content compression: true
Password changes: true
Max pack length: 21 MB
Index Format: v2

Epoch Manager: enabled
Current Epoch: 43

Epoch refresh frequency: 20m0s
Epoch advance on: 20 blobs or 10.5 MB, minimum 24h0m0s
Epoch cleanup margin: 4h0m0s
Epoch checkpoint every: 7 epochs

C:\Admin\kopia>kopia --version
0.13.0 build: 7f69502bddd6650e7cb7a132291bc54920e58988 from: kopia/kopia

```

Regards,  
Savio
