# FileAccessError while processing files

**URL:** <https://forum.duplicati.com/t/fileaccesserror-while-processing-files/8262>\
**Category:** Uncategorized\
**Created:** [October 16, 2019, 10:55pm UTC](https://forum.duplicati.com/t/fileaccesserror-while-processing-files/8262 "2019-10-16T22:55:39Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![sdbarker](https://forum.duplicati.com/user_avatar/forum.duplicati.com/sdbarker/32/3601_2.png) [@sdbarker](https://forum.duplicati.com/u/sdbarker)\
**Post date:** [October 16, 2019, 10:55pm UTC](https://forum.duplicati.com/t/fileaccesserror-while-processing-files/8262/1 "2019-10-16T22:55:39Z")

</div>

I’m seeing a _lot_ of `FileAccessError` errors with Duplicati 2.0.4.30 when running backup jobs. There are hundreds to thousands of them depending on the size of the job. They are not always consistent with regards to the files that trigger the issue, however the error itself _is_ consistent. The error as reported in the verbose file log is:

```
2019-10-16 15:44:29 -07 - [Warning-Duplicati.Library.Main.Operation.Backup.FileEnumerationProcess-FileAccessError]: Error reported while accessing file: /mnt/SomeShare/SomePath/redacted/
System.IO.IOException: Interrupted system call
  at System.IO.Enumeration.FileSystemEnumerator`1[TResult].FindNextEntry (System.Byte* entryBufferPtr, System.Int32 bufferLength) [0x0004c] in <d59a6ed4e2f34efbabec0525e05bcea7>:0
  at System.IO.Enumeration.FileSystemEnumerator`1[TResult].MoveNext () [0x00054] in <d59a6ed4e2f34efbabec0525e05bcea7>:0
  at System.Collections.Generic.LargeArrayBuilder`1[T].AddRange (System.Collections.Generic.IEnumerable`1[T] items) [0x0003d] in <d59a6ed4e2f34efbabec0525e05bcea7>:0
  at System.Collections.Generic.EnumerableHelpers.ToArray[T] (System.Collections.Generic.IEnumerable`1[T] source) [0x00033] in <d59a6ed4e2f34efbabec0525e05bcea7>:0
  at System.IO.MonoLinqHelper.ToArray[T] (System.Collections.Generic.IEnumerable`1[T] source) [0x00000] in <d59a6ed4e2f34efbabec0525e05bcea7>:0
  at System.IO.Directory.GetFiles (System.String path, System.String searchPattern, System.IO.EnumerationOptions enumerationOptions) [0x00009] in <d59a6ed4e2f34efbabec0525e05bcea7>:0
  at System.IO.Directory.GetFiles (System.String path) [0x0000b] in <d59a6ed4e2f34efbabec0525e05bcea7>:0
  at Duplicati.Library.Snapshots.SnapshotBase.ListFiles (System.String localFolderPath) [0x00000] in <c26289f99970440d9746601b6632143c>:0
  at Duplicati.Library.Utility.Utility+<EnumerateFileSystemEntries>d__20.MoveNext () [0x00213] in <c1e0f814ef8949ae801eb07cd4d43d3d>:0

```

Duplicati is running on an Archlinux system with mono 6.0.0.327, the data source path is a samba share from a Synology NAS. Other files and directories from the same backup job from the same source are fine. This issue started within the last couple of releases (though I unfortunately can’t pinpoint it).

---

<div class="post-metadata">

**Author:** ![sdbarker](https://forum.duplicati.com/user_avatar/forum.duplicati.com/sdbarker/32/3601_2.png) [@sdbarker](https://forum.duplicati.com/u/sdbarker)\
**Post date:** [October 22, 2019, 5:01pm UTC](https://forum.duplicati.com/t/fileaccesserror-while-processing-files/8262/2 "2019-10-22T17:01:31Z")

</div>

Has anybody else seen this issue? This is very concerning from a backup integrity standpoint.

---

<div class="post-metadata">

**Author:** ![drwtsn32](https://forum.duplicati.com/user_avatar/forum.duplicati.com/drwtsn32/32/2591_2.png) [@drwtsn32](https://forum.duplicati.com/u/drwtsn32)\
**Post date:** [October 22, 2019, 7:39pm UTC](https://forum.duplicati.com/t/fileaccesserror-while-processing-files/8262/3 "2019-10-22T19:39:46Z")

</div>

> [@sdbarker](#):
>
> This is very concerning from a backup integrity standpoint.

Yes, it is… the most obvious cause is lack of permissions to the source data. Is the Duplicati process running under a UID/GID that has at least read access to all the files in your mount point?

For what it’s worth, it’s usually more efficient to back up data AT the source. Running Duplicati on your NAS (either native Synology package, or a docker container) may give you better results. Or maybe not if you have a really low-powered NAS. Just something to consider.

---

<div class="post-metadata">

**Author:** ![sdbarker](https://forum.duplicati.com/user_avatar/forum.duplicati.com/sdbarker/32/3601_2.png) [@sdbarker](https://forum.duplicati.com/u/sdbarker)\
**Post date:** [October 22, 2019, 9:04pm UTC](https://forum.duplicati.com/t/fileaccesserror-while-processing-files/8262/4 "2019-10-22T21:04:20Z")

</div>

Thanks for the reply!

The permissions are definitely correct, and the files are largely processed correctly. When there are errors, it’s not all of the files, and the files that are affected are not consistent.

Running Duplicati at the source, on the NAS, won’t solve the issue – the issue would still be present, just potentially masked. It also removes the Duplicati VM itself from the rest of my lab infrastructure, making it an outlier for the rest of the automation processes that I have.

I’m wondering if this is OS specific, and if it’s perhaps a Mono version issue.

---

<div class="post-metadata">

**Author:** ![drwtsn32](https://forum.duplicati.com/user_avatar/forum.duplicati.com/drwtsn32/32/2591_2.png) [@drwtsn32](https://forum.duplicati.com/u/drwtsn32)\
**Post date:** [October 22, 2019, 10:13pm UTC](https://forum.duplicati.com/t/fileaccesserror-while-processing-files/8262/5 "2019-10-22T22:13:37Z")

</div>

> [@sdbarker](#):
>
> Running Duplicati at the source, on the NAS, won’t solve the issue – the issue would still be present, just potentially masked.

I don’t think that’s necessarily true since you wouldn’t be accessing the data through the Samba share. But I understand your other point and how you want to keep Duplicati where it is.

Have you tried looking at the Synology Log Center to view events related to file access? Curious if you see any problems there that might help shed light on this.

---

<div class="post-metadata">

**Author:** ![sdbarker](https://forum.duplicati.com/user_avatar/forum.duplicati.com/sdbarker/32/3601_2.png) [@sdbarker](https://forum.duplicati.com/u/sdbarker)\
**Post date:** [October 22, 2019, 10:38pm UTC](https://forum.duplicati.com/t/fileaccesserror-while-processing-files/8262/6 "2019-10-22T22:38:20Z")

</div>

That’s a _great_ suggestion to look at the Syno logs, however there’s nothing untoward there. I also don’t have any trouble accessing those files from the box that has the share mounted, as the duplicati user.

---

<div class="post-metadata">

**Author:** ![sdbarker](https://forum.duplicati.com/user_avatar/forum.duplicati.com/sdbarker/32/3601_2.png) [@sdbarker](https://forum.duplicati.com/u/sdbarker)\
**Post date:** [November 8, 2019, 9:36pm UTC](https://forum.duplicati.com/t/fileaccesserror-while-processing-files/8262/7 "2019-11-08T21:36:04Z")

</div>

Does anybody else have any insight in to this issue? It’s persisting even after the latest Canary release.

---

<div class="post-metadata">

**Author:** ![warwickmm](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/w/5e9695/32.png) [@warwickmm](https://forum.duplicati.com/u/warwickmm)\
**Post date:** [November 8, 2019, 9:53pm UTC](https://forum.duplicati.com/t/fileaccesserror-while-processing-files/8262/8 "2019-11-08T21:53:06Z")

</div>

There have been several reported issues with SMB/CIFS shares with Duplicati, as well as other applications. Can you try adding `cache=none` to the mount options for your share in your `fstab`? See the below for example:

> <https://github.com/duplicati/duplicati/issues/3544>
>
> I have searched open and closed issues for duplicates.
> 
> Environment info
> 
> Duplicati version: 2.0.4.5\_beta\_2018-11-28
> Operating system: Ubuntu 18.04
> Backend: S3 Compatible (Minio)
> Description
> I did a backup...

---

<div class="post-metadata">

**Author:** ![ts678](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/t/8491ac/32.png) [@ts678](https://forum.duplicati.com/u/ts678)\
**Post date:** [November 8, 2019, 10:35pm UTC](https://forum.duplicati.com/t/fileaccesserror-while-processing-files/8262/9 "2019-11-08T22:35:45Z")

</div>

> [@sdbarker](#):
>
> Does anybody else have any insight in to this issue?

It might take you to take a look. `Interrupted system call` is a specific thing that you could chase with [strace](https://linux.die.net/man/1/strace) (I think) to see if you can see what sort of interrupt is happening, and what system call is suffering. I think there are few system calls that aren’t done by mono, so this might be a mono bug…

You could also possibly confirm that the issue is purely in FileEnumerationProcess by trying to avoid actual backup in various ways. An easy one is to do a test backup on a small file set without change. Similar testing on non-Samba area would confirm whether or not the problem only occurs on Samba.

---

<div class="post-metadata">

**Author:** ![sdbarker](https://forum.duplicati.com/user_avatar/forum.duplicati.com/sdbarker/32/3601_2.png) [@sdbarker](https://forum.duplicati.com/u/sdbarker)\
**Post date:** [November 8, 2019, 10:41pm UTC](https://forum.duplicati.com/t/fileaccesserror-while-processing-files/8262/10 "2019-11-08T22:41:52Z")

</div>

@warwickmm

Thanks for the link. I gave that a shot, to no avail – the issue persists.

---

<div class="post-metadata">

**Author:** ![sdbarker](https://forum.duplicati.com/user_avatar/forum.duplicati.com/sdbarker/32/3601_2.png) [@sdbarker](https://forum.duplicati.com/u/sdbarker)\
**Post date:** [November 8, 2019, 10:43pm UTC](https://forum.duplicati.com/t/fileaccesserror-while-processing-files/8262/11 "2019-11-08T22:43:27Z")

</div>

@ts678

I may have to delve in to strace’ing this, as you mentioned. I have run the backup on a set with no changes, and the problem still occurred. It’s definitely occurring in `FileEnumerationProcess`. I may also need to duplicate the data to a non-samba location and try that as well.

---

<div class="post-metadata">

**Author:** ![chillr](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/c/b5e925/32.png) [@chillr](https://forum.duplicati.com/u/chillr)\
**Post date:** [November 20, 2019, 4:51am UTC](https://forum.duplicati.com/t/fileaccesserror-while-processing-files/8262/12 "2019-11-20T04:51:30Z")

</div>

Same/similar issue for me with the Ubuntu / 2.0.4.23 & 2.0.4.34 versions. Different files each time I run the backup. Source files on the local HDD are fine, only source files on the Synology NAS SMB share exhibit this issue.

Warning-Duplicati.Library.Main.Operation.Backup.FileEnumerationProcess-FileAccessError

N.B. same job run from Windows 10 / 2.0.4.23 has no issues

---

<div class="post-metadata">

**Author:** ![diver-down](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/d/94ad74/32.png) [@diver-down](https://forum.duplicati.com/u/diver-down)\
**Post date:** [June 27, 2020, 2:00pm UTC](https://forum.duplicati.com/t/fileaccesserror-while-processing-files/8262/13 "2020-06-27T14:00:21Z")

</div>

Hey all! Just wanted to confirm/++ from my end that this issue is (severely, sadly) affecting backups on my end.

## System Info:

- Client HW: Standard Intel + NVIDIA affair, updated drivers, etc.
- Client OS: Manjaro, bone-stock install, latest updates as of today (via Syyu), fresh boot
- Client SW: Duplicati v. 2.0.5.107-1
- NAS: FreeNAS 11.3u2 with SMB, permissions seem fine

* * *

## Method:

Attempting to back up with the command:

`duplicati-cli backup "onedrivev2://<path>" "/mnt/<path>" --passphrase="<pass>" --authid="<O365-token>`

* * *

## Symptoms:

When backing up, hundreds of the following error messages are seen:

`Error reported while accessing file: /mnt/Media/<file_path>.mp4 => Interrupted system call`

The files seem to be inconsistent as to which trigger the error.

## Verification of error:

At the end of the backup, the final success message (“350 files backed up”) is far less than the actual files in the folder (~600).

* * *

Hope this report helps! I’m seriously worried about the validity of all of my backups, and am more than willing to help out with troubleshooting this in any way needed.

---

<div class="post-metadata">

**Author:** ![ts678](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/t/8491ac/32.png) [@ts678](https://forum.duplicati.com/u/ts678)\
**Post date:** [June 27, 2020, 8:02pm UTC](https://forum.duplicati.com/t/fileaccesserror-while-processing-files/8262/14 "2020-06-27T20:02:56Z")

</div>

Welcome to the forum @diver-down

> [@diver-down](#):
>
> am more than willing to help out with troubleshooting this in any way needed.

What technical skill level should this target? Truly tracking it down may get deep.

As an easier first test, do you have enough destination space for a test backup?  
If so, I’m curious for a test if Advanced option [skip-metadata](https://duplicati.readthedocs.io/en/latest/06-advanced-options/#skip-metadata)=true changes this.

I’m not sure if this needs all 600 of your files, but I’m also not sure that it doesn’t.  
Getting an error in a simpler test case makes for smaller logs and easier debug.

Can you post more error info, e.g. from About → Show log → Live → Warning  
Possibly you’ll have to click on the entry in order to get the stack trace out of it…  
If that doesn’t work, [–log-file](https://duplicati.readthedocs.io/en/latest/06-advanced-options/#log-file) and [–log-file-log-level](https://duplicati.readthedocs.io/en/latest/06-advanced-options/#log-file-log-level)=warning should catch details.

Do you know if issue only happens when the source files are on an SMB share?

---

<div class="post-metadata">

**Author:** ![automatyck](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/a/7bcc69/32.png) [@automatyck](https://forum.duplicati.com/u/automatyck)\
**Post date:** [August 22, 2020, 8:48pm UTC](https://forum.duplicati.com/t/fileaccesserror-while-processing-files/8262/15 "2020-08-22T20:48:36Z")

</div>

I experienced this same issue running Duplicati - 2.0.5.1 in a CentOS 8 virtual machine that was trying to backup files shared to the machine via Samba. The backups would generate “Error reported while accessing file” warnings, and the live logs would show it was related to an Interrupted system call. I verified that the Duplicati user did indeed have read-write access to the files. Every time I ran the backup, the file access warning would be generated for different files, seemingly randomly.

This error first occured after I ran updates on the CentOS VM. I rolled back to a previous VM snapshot to undo the updates and the errors went away, so they were related to some package that was updated from the CentOS repos, not Duplicati itself. I tried downgrading my Samba client and mono-devel packages, but it didn’t solve the issue. Either I didn’t downgrade them far enough or the problem was caused by a different package.

In the end I worked around the issue by sharing the files to my Duplicati server via NFS instead of Samba.

---

<div class="post-metadata">

**Author:** ![ts678](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/t/8491ac/32.png) [@ts678](https://forum.duplicati.com/u/ts678)\
**Post date:** [August 22, 2020, 10:20pm UTC](https://forum.duplicati.com/t/fileaccesserror-while-processing-files/8262/16 "2020-08-22T22:20:57Z")

</div>

Welcome to the forum @automatyck and thanks for sharing the workaround (sorry it came to that).

> [@automatyck](#):
>
> In the end I worked around the issue by sharing the files to my Duplicati server via NFS instead of Samba.

however it’d be useful to do some experiments on a system with the issue. For example, the one with  
skip-metadata=true was (to get in technical details) a guess that Duplicati’s use of system calls to get information might subject it to the usual system call worry that “slow” ones may be interrupted midway.

From what I read, mono internally uses some signals for its own use. Possibly these must be avoided.  
Another advanced study mentioned [earlier](https://forum.duplicati.com/t/fileaccesserror-while-processing-files/8262/9) was use of `strace` to see if it can name the interrupted call.

If the issue is entirely within mono interpreting code, then that’s likely beyond anything Duplicati can fix.

Not actually suggesting that you need to do this (unless you’re willing), but it’d be nice if someone does.  
Interestingly, I don’t see an [Issue](https://github.com/duplicati/duplicati/issues) open on this. That sometimes will get the technical experts involved…

What is always nice is a very rock-solid reproducible case that’s easy for a dev to do with a small setup. Flaky issues (which this one seems to be from the accounts) are a pain to track down (good step to fix).

---

<div class="post-metadata">

**Author:** ![sfatula](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/s/898d66/32.png) [@sfatula](https://forum.duplicati.com/u/sfatula)\
**Post date:** [October 23, 2020, 5:24am UTC](https://forum.duplicati.com/t/fileaccesserror-while-processing-files/8262/17 "2020-10-23T05:24:11Z")

</div>

I’m on Ubuntu 20.04.1 and have the same issue here. Cifs mount point, get seemingly random (different every day) list of files or directories that have a file access error. Browsing them using file manager, bringing them into an editor, browsing via terminal, all works. Just the backup fails, nothing else has any issue at all. The next day, the list of files and directories changes. Or, some could be the same, it’s just seemingly random.

So, I went with the workaround, I changed to NFS and no errors.

---

<div class="post-metadata">

**Author:** ![cyr0nk0r](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/c/65b543/32.png) [@cyr0nk0r](https://forum.duplicati.com/u/cyr0nk0r)\
**Post date:** [January 9, 2021, 2:29am UTC](https://forum.duplicati.com/t/fileaccesserror-while-processing-files/8262/18 "2021-01-09T02:29:27Z")

</div>

I am also having this same issue.  
Ubuntu 20.04 accessing windows file shares. Exact same behavior. Every backup job I run the files and directories that get the warning change. Sometimes its 18 files out of 9000. Other times its 30 files out of 9000.  
I have given the duplicati user full control permissions on the share so its not a permissions issue.  
I’ll mention I’ve already tried the above suggestion of skip-metadata with no change. Problem persists.

---

<div class="post-metadata">

**Author:** ![drwtsn32](https://forum.duplicati.com/user_avatar/forum.duplicati.com/drwtsn32/32/2591_2.png) [@drwtsn32](https://forum.duplicati.com/u/drwtsn32)\
**Post date:** [January 9, 2021, 3:09am UTC](https://forum.duplicati.com/t/fileaccesserror-while-processing-files/8262/19 "2021-01-09T03:09:33Z")

</div>

Same as the problem we are discussing in this thread?

> [@\[Warning-Duplicati.Library.Main.Operation.Backup.FileEnumerationProcess-FileAccessError\]](https://forum.duplicati.com/t/warning-duplicati-library-main-operation-backup-fileenumerationprocess-fileaccesserror/11502):
>
> Just started with Duplicati on Ubuntu and unfortunately having lots of problems. The biggest problem is that Duplicati is not stable with a cifs mount. Getting errors like these during backups: [Warning-Duplicati.Library.Main.Operation.Backup.FileEnumerationProcess-FileAccessError]: Error reported while accessing file: /xxx/xxx/xxx/xxx/ Saw a topic which suggested to use " cache=none" as a mount option but that does not solve the problem. Also saw a suggestion to use NFS. Because of UID differ…

Do you see the same type of CIFS errors logged by the kernel?

```plaintext
CIFS VFS: Send error in read = -4
CIFS VFS: Close unmatched open

```

---

<div class="post-metadata">

**Author:** ![cyr0nk0r](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/c/65b543/32.png) [@cyr0nk0r](https://forum.duplicati.com/u/cyr0nk0r)\
**Post date:** [January 9, 2021, 3:19am UTC](https://forum.duplicati.com/t/fileaccesserror-while-processing-files/8262/20 "2021-01-09T03:19:43Z")

</div>

yes and yes.  
adding fluff because of posting char limit.

[Next page](https://forum.duplicati.com/t/fileaccesserror-while-processing-files/8262.md?page=2)
