Error while accessing file

Hi!

I’ve recently started brand new backup jobs for a user. Two of them (both backing up the same location, just one goes to an external drive, and the other one goes to OneDrive) come up with errors which I’ll put in below.

System is Microsoft Windows 10 Pro x64. Currently running Duplicati - 2.0.4.30_canary_2019-09-20

2019-10-09 11:32:43 +01 - [Warning-Duplicati.Library.Main.Operation.Backup.FileEnumerationProcess-FileAccessError]: Error reported while accessing file: E:\PERSONAL FILES\EXTERNAL HARD DISC\External Hard Disc\02 Visit to Russia - JAN 13\AA - STUDENTS - 2011\GLEB IZMAYLOV - PG - B - 10 in March 09 - Summer\TWINS - GLEB & NIKITA IZMAILOV - 9 - PG - clayesmore…tbc\02 Ack from Deborah re docs & plan - 30 Apr.eml
2019-10-09 11:32:43 +01 - [Warning-Duplicati.Library.Main.Operation.Backup.FileEnumerationProcess-FileAccessError]: Error reported while accessing file: E:\PERSONAL FILES\EXTERNAL HARD DISC\External Hard Disc\02 Visit to Russia - JAN 13\AA - STUDENTS - 2011\GLEB IZMAYLOV - PG - B - 10 in March 09 - Summer\TWINS - GLEB & NIKITA IZMAILOV - 9 - PG - clayesmore…tbc\02 Ack from Deborah re docs & plan - 30 Apr.eml
2019-10-09 11:32:49 +01 - [Warning-Duplicati.Library.Main.Operation.Backup.FileEnumerationProcess-FileAccessError]: Error reported while accessing file: E:\PERSONAL FILES\EXTERNAL HARD DISC\External Hard Disc\02 Visit to Russia - JAN 13\AA - STUDENTS - 2011\AA - SUMMER STUDENTS 2011\JULIANA MAKARCHOUK - PG - 14 - Jun\JULIANA MAKARCHUK - PG - 2010 folder\YIEP English 13+\Page 1 (front cover) - 13+ Makarchuk.jpg
2019-10-09 11:32:49 +01 - [Warning-Duplicati.Library.Main.Operation.Backup.FileEnumerationProcess-FileAccessError]: Error reported while accessing file: E:\PERSONAL FILES\EXTERNAL HARD DISC\External Hard Disc\02 Visit to Russia - JAN 13\AA - STUDENTS - 2011\AA - SUMMER STUDENTS 2011\JULIANA MAKARCHOUK - PG - 14 - Jun\JULIANA MAKARCHUK - PG - 2010 folder\YIEP English 13+\Page 1 (front cover) - 13+ Makarchuk.jpg
2019-10-09 11:32:50 +01 - [Warning-Duplicati.Library.Main.Operation.Backup.FileEnumerationProcess-FileAccessError]: Error reported while accessing file: E:\PERSONAL FILES\EXTERNAL HARD DISC\External Hard Disc\02 Visit to Russia - JAN 13\AA - STUDENTS - 2011\AA - SUMMER STUDENTS 2011\AP GROUP - BCS - June\STUDENTS\ALEXANDER IVANKO - 14 - SEE OWN FILE IN STUDENTS 2011\Pro forma invoice gross Alexander Ivanko.doc
2019-10-09 11:32:50 +01 - [Warning-Duplicati.Library.Main.Operation.Backup.FileEnumerationProcess-FileAccessError]: Error reported while accessing file: E:\PERSONAL FILES\EXTERNAL HARD DISC\External Hard Disc\02 Visit to Russia - JAN 13\AA - STUDENTS - 2011\AA - SUMMER STUDENTS 2011\AP GROUP - BCS - June\STUDENTS\ALEXANDER IVANKO - 14 - SEE OWN FILE IN STUDENTS 2011\Pro forma invoice gross Alexander Ivanko.doc
2019-10-09 11:33:05 +01 - [Warning-Duplicati.Library.Main.Operation.Backup.FileEnumerationProcess-FileAccessError]: Error reported while accessing file: E:\PERSONAL FILES\EXTERNAL HARD DISC\External Hard Disc\01 VISIT to RUSSIA - NOV 15\AA - STUDENTS - 2015 - CURRENT\aa LEAVERS 2015\ANASTASIA MUKHTAROVA - OXB - 13yrs - BSG - June & Sept\103 from OXB will update med info and flight details for SOT - 11 Sept.msg
2019-10-09 11:33:05 +01 - [Warning-Duplicati.Library.Main.Operation.Backup.FileEnumerationProcess-FileAccessError]: Error reported while accessing file: E:\PERSONAL FILES\EXTERNAL HARD DISC\External Hard Disc\01 VISIT to RUSSIA - NOV 15\AA - STUDENTS - 2015 - CURRENT\aa LEAVERS 2015\ANASTASIA MUKHTAROVA - OXB - 13yrs - BSG - June & Sept\1059 from ESK checking OK for boy to board request AM results - 19 Aug.msg
2019-10-09 11:33:05 +01 - [Warning-Duplicati.Library.Main.Operation.Backup.FileEnumerationProcess-FileAccessError]: Error reported while accessing file: E:\PERSONAL FILES\EXTERNAL HARD DISC\External Hard Disc\01 VISIT to RUSSIA - NOV 15\AA - STUDENTS - 2015 - CURRENT\aa LEAVERS 2015\ANASTASIA MUKHTAROVA - OXB - 13yrs - BSG - June & Sept\583 from OXB with medical insurance first half of spring term - 17 Jan.msg
2019-10-09 11:33:05 +01 - [Warning-Duplicati.Library.Main.Operation.Backup.FileEnumerationProcess-FileAccessError]: Error reported while accessing file: E:\PERSONAL FILES\EXTERNAL HARD DISC\External Hard Disc\01 VISIT to RUSSIA - NOV 15\AA - STUDENTS - 2015 - CURRENT\aa LEAVERS 2015\ANASTASIA MUKHTAROVA - OXB - 13yrs - BSG - June & Sept\730 from OXB ask to beg to leave early morning and no to host - 22 May.msg
2019-10-09 11:33:05 +01 - [Warning-Duplicati.Library.Main.Operation.Backup.FileEnumerationProcess-FileAccessError]: Error reported while accessing file: E:\PERSONAL FILES\EXTERNAL HARD DISC\External Hard Disc\01 VISIT to RUSSIA - NOV 15\AA - STUDENTS - 2015 - CURRENT\aa LEAVERS 2015\ANASTASIA MUKHTAROVA - OXB - 13yrs - BSG - June & Sept\74 Ian read receipt - to BISH re outstanding payment for fees - 30 Jul.msg
2019-10-09 11:33:05 +01 - [Warning-Duplicati.Library.Main.Operation.Backup.FileEnumerationProcess-FileAccessError]: Error reported while accessing file: E:\PERSONAL FILES\EXTERNAL HARD DISC\External Hard Disc\01 VISIT to RUSSIA - NOV 15\AA - STUDENTS - 2015 - CURRENT\aa LEAVERS 2015\ANASTASIA MUKHTAROVA - OXB - 13yrs - BSG - June & Sept\108b to OXB other russians at BISH same age - 11 Sept_files\themedata.thmx
2019-10-09 11:33:05 +01 - [Warning-Duplicati.Library.Main.Operation.Backup.FileEnumerationProcess-FileAccessError]: Error reported while accessing file: E:\PERSONAL FILES\EXTERNAL HARD DISC\External Hard Disc\01 VISIT to RUSSIA - NOV 15\AA - STUDENTS - 2015 - CURRENT\aa LEAVERS 2015\ANASTASIA MUKHTAROVA - OXB - 13yrs - BSG - June & Sept\103 from OXB will update med info and flight details for SOT - 11 Sept.msg
2019-10-09 11:33:05 +01 - [Warning-Duplicati.Library.Main.Operation.Backup.FileEnumerationProcess-FileAccessError]: Error reported while accessing file: E:\PERSONAL FILES\EXTERNAL HARD DISC\External Hard Disc\01 VISIT to RUSSIA - NOV 15\AA - STUDENTS - 2015 - CURRENT\aa LEAVERS 2015\ANASTASIA MUKHTAROVA - OXB - 13yrs - BSG - June & Sept\1059 from ESK checking OK for boy to board request AM results - 19 Aug.msg
2019-10-09 11:33:05 +01 - [Warning-Duplicati.Library.Main.Operation.Backup.FileEnumerationProcess-FileAccessError]: Error reported while accessing file: E:\PERSONAL FILES\EXTERNAL HARD DISC\External Hard Disc\01 VISIT to RUSSIA - NOV 15\AA - STUDENTS - 2015 - CURRENT\aa LEAVERS 2015\ANASTASIA MUKHTAROVA - OXB - 13yrs - BSG - June & Sept\583 from OXB with medical insurance first half of spring term - 17 Jan.msg
2019-10-09 11:33:05 +01 - [Warning-Duplicati.Library.Main.Operation.Backup.FileEnumerationProcess-FileAccessError]: Error reported while accessing file: E:\PERSONAL FILES\EXTERNAL HARD DISC\External Hard Disc\01 VISIT to RUSSIA - NOV 15\AA - STUDENTS - 2015 - CURRENT\aa LEAVERS 2015\ANASTASIA MUKHTAROVA - OXB - 13yrs - BSG - June & Sept\730 from OXB ask to beg to leave early morning and no to host - 22 May.msg
2019-10-09 11:33:05 +01 - [Warning-Duplicati.Library.Main.Operation.Backup.FileEnumerationProcess-FileAccessError]: Error reported while accessing file: E:\PERSONAL FILES\EXTERNAL HARD DISC\External Hard Disc\01 VISIT to RUSSIA - NOV 15\AA - STUDENTS - 2015 - CURRENT\aa LEAVERS 2015\ANASTASIA MUKHTAROVA - OXB - 13yrs - BSG - June & Sept\74 Ian read receipt - to BISH re outstanding payment for fees - 30 Jul.msg
2019-10-09 11:33:06 +01 - [Warning-Duplicati.Library.Main.Operation.Backup.FileEnumerationProcess-FileAccessError]: Error reported while accessing file: E:\PERSONAL FILES\EXTERNAL HARD DISC\External Hard Disc\01 VISIT to RUSSIA - NOV 15\AA - STUDENTS - 2015 - CURRENT\aa LEAVERS 2015\ANASTASIA MUKHTAROVA - OXB - 13yrs - BSG - June & Sept\108b to OXB other russians at BISH same age - 11 Sept_files\themedata.thmx

Please advise?

I’m no expert on Windows, but this looks like a permission issue. Make sure the owner of the Duplicati process has permission to read the files and directories.

Hi!

Thanks for the suggestion. The user is a local admin on the computer and I’ve opened one of those documents as a test, and it opened with no problems.

Thanks

Duplicati.Library.Main.Operation.Backup.FileEnumerationProcess is just trying to enumerate files, so this error seems kind of odd. It’s typically on a folder that presumably can’t be accessed by Duplicati.

Is E:\PERSONAL FILES\EXTERNAL HARD DISC\External Hard Disc actually an external hard disc? These probably get mapped on a per-user basis. During your tests, you mentioned the user account (Administrator, although even Administrator isn’t really Administrator until a user does something like answer UAC prompt), your own access of a file using some account, and Duplicati using an account. How are accounts related? Are any Standard User? If all Administrator, did any answer UAC prompt?

Some situations (e.g. if you want VSS snapshots or more access) need Duplicati run as Administrator e.g. by starting it as Run as Administrator and answering UAC. Even more access is a service install.
But it’s not clear yet that this is a permission problem. I don’t think it’s locking. That would fail later on.

Another path might be to try to catch reasons behind errors. These one-line summaries discard them. Live log at About --> Show log --> Live --> Warning would probably catch the entire warning message, but there are other ways, including –log-file. I think reporting options (e.g. email) also give some detail.

Some of those paths look long enough where it might be an issue with the maximum path length in Windows?

Hi!

Thanks both of you. I can confirm that issue was caused by the file path length. After shortening the file path, the backups had gone through without further issues.

I appreciate your assistance and have a great day!
Chris

Doesn’t Duplicati use the AlphaFS library to avoid this issue (among other benefits)?

I don’t rule out a possibility that there was another issue that got sorted in the process of me restructuring the folder to shorten the file paths.

The fact is, all the above file paths were 258-260 characters long, which is either right where at the maximum path length, or incredibly close to it. (I actually did check, and they really ARE around this length).

This may or may not be coincidence, but since we’re referencing almost 20 file paths, it seems like too much a coincidence for me.

Perhaps there is another issue that this file path size triggers? No clue!

Yes, and the last long-path fix that I know of went in v2.0.4.3-2.0.4.3_canary_2018-11-13.

I hope there are some automated unit tests that would catch a regression, if there is one.

I’m still not clear where the files live and how their full path was arranged, but glad it’s OK.