"item_name_in_use" error with box.com [2.0.3.7]

When I saw that the 2.0.3.7 release included a fix for box.com I went ahead and updated. This resolved the issue I had been having with actually being able to make a backup, but it has introduced a new error of:



Failed: One or more errors occurred.
Details: System.AggregateException: One or more errors occurred. ---> System.AggregateException: 409 - item_name_in_use: Item with the same name already exists ---> System.Exception: 409 - item_name_in_use: Item with the same name already exists
  at Duplicati.Library.Main.BackendManager.WaitForComplete (Duplicati.Library.Main.Database.LocalDatabase db, System.Data.IDbTransaction transation) [0x00067] in <c093ff03452d49f59d25577493ea2214>:0
  at Duplicati.Library.Main.Operation.FilelistProcessor.UploadVerificationFile (System.String backendurl, Duplicati.Library.Main.Options options, Duplicati.Library.Main.IBackendWriter result, Duplicati.Library.Main.Database.LocalDatabase db, System.Data.IDbTransaction transaction) [0x00094] in <c093ff03452d49f59d25577493ea2214>:0
  at Duplicati.Library.Main.Operation.BackupHandler+<RunAsync>d__19.MoveNext () [0x00e5c] in <c093ff03452d49f59d25577493ea2214>:0
   --- End of inner exception stack trace ---
  at Duplicati.Library.Main.Operation.BackupHandler+<RunAsync>d__19.MoveNext () [0x01018] in <c093ff03452d49f59d25577493ea2214>:0
   --- End of inner exception stack trace ---
  at CoCoL.ChannelExtensions.WaitForTaskOrThrow (System.Threading.Tasks.Task task) [0x0005d] in <6973ce2780de4b28aaa2c5ffc59993b1>:0
  at Duplicati.Library.Main.Operation.BackupHandler.Run (System.String[] sources, Duplicati.Library.Utility.IFilter filter) [0x00008] in <c093ff03452d49f59d25577493ea2214>:0
  at Duplicati.Library.Main.Controller+<>c__DisplayClass14_0.<Backup>b__0 (Duplicati.Library.Main.BackupResults result) [0x00035] in <c093ff03452d49f59d25577493ea2214>:0
  at Duplicati.Library.Main.Controller.RunAction[T] (T result, System.String[]& paths, Duplicati.Library.Utility.IFilter& filter, System.Action`1[T] method) [0x0011d] in <c093ff03452d49f59d25577493ea2214>:0
---> (Inner Exception #0) System.AggregateException: 409 - item_name_in_use: Item with the same name already exists ---> System.Exception: 409 - item_name_in_use: Item with the same name already exists
  at Duplicati.Library.Main.BackendManager.WaitForComplete (Duplicati.Library.Main.Database.LocalDatabase db, System.Data.IDbTransaction transation) [0x00067] in <c093ff03452d49f59d25577493ea2214>:0
  at Duplicati.Library.Main.Operation.FilelistProcessor.UploadVerificationFile (System.String backendurl, Duplicati.Library.Main.Options options, Duplicati.Library.Main.IBackendWriter result, Duplicati.Library.Main.Database.LocalDatabase db, System.Data.IDbTransaction transaction) [0x00094] in <c093ff03452d49f59d25577493ea2214>:0
  at Duplicati.Library.Main.Operation.BackupHandler+<RunAsync>d__19.MoveNext () [0x00e5c] in <c093ff03452d49f59d25577493ea2214>:0
   --- End of inner exception stack trace ---
  at Duplicati.Library.Main.Operation.BackupHandler+<RunAsync>d__19.MoveNext () [0x01018] in <c093ff03452d49f59d25577493ea2214>:0
---> (Inner Exception #0) System.Exception: 409 - item_name_in_use: Item with the same name already exists
  at Duplicati.Library.Main.BackendManager.WaitForComplete (Duplicati.Library.Main.Database.LocalDatabase db, System.Data.IDbTransaction transation) [0x00067] in <c093ff03452d49f59d25577493ea2214>:0
  at Duplicati.Library.Main.Operation.FilelistProcessor.UploadVerificationFile (System.String backendurl, Duplicati.Library.Main.Options options, Duplicati.Library.Main.IBackendWriter result, Duplicati.Library.Main.Database.LocalDatabase db, System.Data.IDbTransaction transaction) [0x00094] in <c093ff03452d49f59d25577493ea2214>:0
  at Duplicati.Library.Main.Operation.BackupHandler+<RunAsync>d__19.MoveNext () [0x00e5c] in <c093ff03452d49f59d25577493ea2214>:0 <---

---> (Inner Exception #1) System.AggregateException: One or more errors occurred. ---> System.Exception: Unable to find log in lookup table, this may be caused by attempting to transport call contexts between AppDomains (eg. with remoting calls)
  at Duplicati.Library.Logging.Log.get_CurrentScope () [0x0004d] in <e74474bd31bc48c3b31b195ac61abde2>:0
  at Duplicati.Library.Logging.Log.WriteMessage (Duplicati.Library.Logging.LogMessageType type, System.String tag, System.String id, System.Exception ex, System.String message, System.Object[] arguments) [0x0001e] in <e74474bd31bc48c3b31b195ac61abde2>:0
  at Duplicati.Library.Logging.Log.WriteWarningMessage (System.String tag, System.String id, System.Exception ex, System.String message, System.Object[] arguments) [0x00000] in <e74474bd31bc48c3b31b195ac61abde2>:0
  at Duplicati.Library.Main.Operation.Backup.FileEnumerationProcess+<>c.<Run>b__1_3 (System.String rootpath, System.String errorpath, System.Exception ex) [0x00000] in <c093ff03452d49f59d25577493ea2214>:0
  at Duplicati.Library.Utility.Utility+<EnumerateFileSystemEntries>d__23.MoveNext () [0x001d9] in <5c22135b7083459abdb8767ab6361c3a>:0
  at System.Linq.Enumerable+SelectManySingleSelectorIterator`2[TSource,TResult].MoveNext () [0x0006f] in <abeb153532fb46718501a600866a8d76>:0
  at Duplicati.Library.Main.Operation.Backup.FileEnumerationProcess+<ExpandWorkList>d__4.MoveNext () [0x000da] in <c093ff03452d49f59d25577493ea2214>:0
  at Duplicati.Library.Main.Operation.Backup.FileEnumerationProcess+<>c__DisplayClass1_0+<<Run>b__0>d.MoveNext () [0x00263] in <c093ff03452d49f59d25577493ea2214>:0
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <a6f810169ec746eeb2789b925e2858c0>:0
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <a6f810169ec746eeb2789b925e2858c0>:0
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <a6f810169ec746eeb2789b925e2858c0>:0
  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <a6f810169ec746eeb2789b925e2858c0>:0
  at System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] in <a6f810169ec746eeb2789b925e2858c0>:0
  at CoCoL.AutomationExtensions+<RunTask>d__10`1[T].MoveNext () [0x000cc] in <6973ce2780de4b28aaa2c5ffc59993b1>:0
   --- End of inner exception stack trace ---
---> (Inner Exception #0) System.Exception: Unable to find log in lookup table, this may be caused by attempting to transport call contexts between AppDomains (eg. with remoting calls)
  at Duplicati.Library.Logging.Log.get_CurrentScope () [0x0004d] in <e74474bd31bc48c3b31b195ac61abde2>:0
  at Duplicati.Library.Logging.Log.WriteMessage (Duplicati.Library.Logging.LogMessageType type, System.String tag, System.String id, System.Exception ex, System.String message, System.Object[] arguments) [0x0001e] in <e74474bd31bc48c3b31b195ac61abde2>:0
  at Duplicati.Library.Logging.Log.WriteWarningMessage (System.String tag, System.String id, System.Exception ex, System.String message, System.Object[] arguments) [0x00000] in <e74474bd31bc48c3b31b195ac61abde2>:0
  at Duplicati.Library.Main.Operation.Backup.FileEnumerationProcess+<>c.<Run>b__1_3 (System.String rootpath, System.String errorpath, System.Exception ex) [0x00000] in <c093ff03452d49f59d25577493ea2214>:0
  at Duplicati.Library.Utility.Utility+<EnumerateFileSystemEntries>d__23.MoveNext () [0x001d9] in <5c22135b7083459abdb8767ab6361c3a>:0
  at System.Linq.Enumerable+SelectManySingleSelectorIterator`2[TSource,TResult].MoveNext () [0x0006f] in <abeb153532fb46718501a600866a8d76>:0
  at Duplicati.Library.Main.Operation.Backup.FileEnumerationProcess+<ExpandWorkList>d__4.MoveNext () [0x000da] in <c093ff03452d49f59d25577493ea2214>:0
  at Duplicati.Library.Main.Operation.Backup.FileEnumerationProcess+<>c__DisplayClass1_0+<<Run>b__0>d.MoveNext () [0x00263] in <c093ff03452d49f59d25577493ea2214>:0
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <a6f810169ec746eeb2789b925e2858c0>:0
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <a6f810169ec746eeb2789b925e2858c0>:0
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <a6f810169ec746eeb2789b925e2858c0>:0
  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <a6f810169ec746eeb2789b925e2858c0>:0
  at System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] in <a6f810169ec746eeb2789b925e2858c0>:0
  at CoCoL.AutomationExtensions+<RunTask>d__10`1[T].MoveNext () [0x000cc] in <6973ce2780de4b28aaa2c5ffc59993b1>:0 <---
<---
<---


Log data:
2018-06-18 11:43:10 -05 - [Error-Duplicati.Library.Main.Operation.BackupHandler-FatalError]: Fatal error
System.Exception: 409 - item_name_in_use: Item with the same name already exists
  at Duplicati.Library.Main.BackendManager.WaitForComplete (Duplicati.Library.Main.Database.LocalDatabase db, System.Data.IDbTransaction transation) [0x00067] in <c093ff03452d49f59d25577493ea2214>:0
  at Duplicati.Library.Main.Operation.FilelistProcessor.UploadVerificationFile (System.String backendurl, Duplicati.Library.Main.Options options, Duplicati.Library.Main.IBackendWriter result, Duplicati.Library.Main.Database.LocalDatabase db, System.Data.IDbTransaction transaction) [0x00094] in <c093ff03452d49f59d25577493ea2214>:0
  at Duplicati.Library.Main.Operation.BackupHandler+<RunAsync>d__19.MoveNext () [0x00e5c] in <c093ff03452d49f59d25577493ea2214>:0

I was able to run two backup versions to box.com despite this error, but now the error seems to be stopping any additional backups from happening.

That’s strange. Here’s the Box.com documentation for the 409 error:

From the error logs, it looks like it fails in the call to FilelistProcessor.UploadVerificationFile. Would it be possible to test your backup without the upload-verification-file option to help debug this?

Sure!

Turning off --upload-verification-file (or more accurately, overriding the global ENABLE of the feature with a job specific DISABLE) seems to make the error go away.

Re-enabling the feature and running a subsequent backup (so likely no actual data changes to upload) spends about 54 seconds on the “Uploading verification file …” step before displaying the error block.

Oh - I should probably mention the error is in the global Stored log, not the job specific log that is displayed when clicking on the “Show” button.

It’s not pretty, but here’s the profiling log, if it helps:


Jun 19, 2018 12:16 PM: Running Backup took 0:00:01:12.932
Jun 19, 2018 12:16 PM: Fatal error
{"ClassName":"System.Exception","Message":"409 - item_name_in_use: Item with the same name already exists","Data":null,"InnerException":null,"HelpURL":null,"StackTraceString":"  at Duplicati.Library.Main.BackendManager.WaitForComplete (Duplicati.Library.Main.Database.LocalDatabase db, System.Data.IDbTransaction transation) [0x00067] in <c093ff03452d49f59d25577493ea2214>:0 \n  at Duplicati.Library.Main.Operation.FilelistProcessor.UploadVerificationFile (System.String backendurl, Duplicati.Library.Main.Options options, Duplicati.Library.Main.IBackendWriter result, Duplicati.Library.Main.Database.LocalDatabase db, System.Data.IDbTransaction transaction) [0x00094] in <c093ff03452d49f59d25577493ea2214>:0 \n  at Duplicati.Library.Main.Operation.BackupHandler+<RunAsync>d__19.MoveNext () [0x00e5c] in <c093ff03452d49f59d25577493ea2214>:0 ","RemoteStackTraceString":null,"RemoteStackIndex":0,"ExceptionMethod":null,"HResult":-2146233088,"Source":"Duplicati.Library.Main"}
Jun 19, 2018 12:16 PM: Backend event: Put - Failed: duplicati-verification.json (21.33 KB)
Jun 19, 2018 12:16 PM: Operation Put with file duplicati-verification.json attempt 5 of 5 failed with message: 409 - item_name_in_use: Item with the same name already exists
{"ClassName":"System.Exception","Message":"409 - item_name_in_use: Item with the same name already exists","Data":null,"InnerException":null,"HelpURL":null,"StackTraceString":"  at Duplicati.Library.Main.BackendManager.WaitForComplete (Duplicati.Library.Main.Database.LocalDatabase db, System.Data.IDbTransaction transation) [0x00067] in <c093ff03452d49f59d25577493ea2214>:0 \n  at Duplicati.Library.Main.Operation.FilelistProcessor.UploadVerificationFile (System.String backendurl, Duplicati.Library.Main.Options options, Duplicati.Library.Main.IBackendWriter result, Duplicati.Library.Main.Database.LocalDatabase db, System.Data.IDbTransaction transaction) [0x00094] in <c093ff03452d49f59d25577493ea2214>:0 \n  at Duplicati.Library.Main.Operation.BackupHandler+<RunAsync>d__19.MoveNext () [0x00e5c] in <c093ff03452d49f59d25577493ea2214>:0 ","RemoteStackTraceString":null,"RemoteStackIndex":0,"ExceptionMethod":null,"HResult":-2146233088,"Source":"Duplicati.Library.Main"}
Jun 19, 2018 12:16 PM: RemoteOperationPut took 0:00:00:01.949
Jun 19, 2018 12:16 PM: Backend event: Put - Started: duplicati-verification.json (21.33 KB)
Jun 19, 2018 12:16 PM: Starting - RemoteOperationPut
Jun 19, 2018 12:16 PM: Backend event: Put - Retrying: duplicati-verification.json (21.33 KB)
Jun 19, 2018 12:16 PM: Operation Put with file duplicati-verification.json attempt 4 of 5 failed with message: 409 - item_name_in_use: Item with the same name already exists
{"ClassName":"System.Exception","Message":"409 - item_name_in_use: Item with the same name already exists","Data":null,"InnerException":null,"HelpURL":null,"StackTraceString":"  at Duplicati.Library.Backend.Box.BoxBackend+BoxHelper.ParseException (System.Exception ex) [0x000dc] in <b29afb5c6ce147959ffc840ced5c0fbc>:0 \n  at Duplicati.Library.JSONWebHelper.GetResponse (Duplicati.Library.Utility.AsyncHttpRequest req, System.Object requestdata) [0x000c6] in <a8221c1a4cb349b29527efbf356c5ec2>:0 \n  at Duplicati.Library.JSONWebHelper.PostMultipart (System.String url, System.Action`1[T] setup, Duplicati.Library.MultipartItem[] parts) [0x00185] in <a8221c1a4cb349b29527efbf356c5ec2>:0 \n  at Duplicati.Library.JSONWebHelper.PostMultipartAndGetJSONData[T] (System.String url, Duplicati.Library.MultipartItem[] parts) [0x00000] in <a8221c1a4cb349b29527efbf356c5ec2>:0 \n  at Duplicati.Library.Backend.Box.BoxBackend.Put (System.String remotename, System.IO.Stream stream) [0x0010f] in <b29afb5c6ce147959ffc840ced5c0fbc>:0 \n  at Duplicati.Library.Main.BackendManager.DoPut (Duplicati.Library.Main.BackendManager+FileEntryItem item) [0x001fa] in <c093ff03452d49f59d25577493ea2214>:0 \n  at Duplicati.Library.Main.BackendManager.ThreadRun () [0x000f4] in <c093ff03452d49f59d25577493ea2214>:0 ","RemoteStackTraceString":null,"RemoteStackIndex":0,"ExceptionMethod":null,"HResult":-2146233088,"Source":"Duplicati.Library.Backend.Box"}
Jun 19, 2018 12:16 PM: RemoteOperationPut took 0:00:00:02.100
Jun 19, 2018 12:16 PM: Backend event: Put - Started: duplicati-verification.json (21.33 KB)
Jun 19, 2018 12:16 PM: Starting - RemoteOperationPut
Jun 19, 2018 12:15 PM: Backend event: Put - Retrying: duplicati-verification.json (21.33 KB)
Jun 19, 2018 12:15 PM: Operation Put with file duplicati-verification.json attempt 3 of 5 failed with message: 409 - item_name_in_use: Item with the same name already exists
{"ClassName":"System.Exception","Message":"409 - item_name_in_use: Item with the same name already exists","Data":null,"InnerException":null,"HelpURL":null,"StackTraceString":"  at Duplicati.Library.Backend.Box.BoxBackend+BoxHelper.ParseException (System.Exception ex) [0x000dc] in <b29afb5c6ce147959ffc840ced5c0fbc>:0 \n  at Duplicati.Library.JSONWebHelper.GetResponse (Duplicati.Library.Utility.AsyncHttpRequest req, System.Object requestdata) [0x000c6] in <a8221c1a4cb349b29527efbf356c5ec2>:0 \n  at Duplicati.Library.JSONWebHelper.PostMultipart (System.String url, System.Action`1[T] setup, Duplicati.Library.MultipartItem[] parts) [0x00185] in <a8221c1a4cb349b29527efbf356c5ec2>:0 \n  at Duplicati.Library.JSONWebHelper.PostMultipartAndGetJSONData[T] (System.String url, Duplicati.Library.MultipartItem[] parts) [0x00000] in <a8221c1a4cb349b29527efbf356c5ec2>:0 \n  at Duplicati.Library.Backend.Box.BoxBackend.Put (System.String remotename, System.IO.Stream stream) [0x0010f] in <b29afb5c6ce147959ffc840ced5c0fbc>:0 \n  at Duplicati.Library.Main.BackendManager.DoPut (Duplicati.Library.Main.BackendManager+FileEntryItem item) [0x001fa] in <c093ff03452d49f59d25577493ea2214>:0 \n  at Duplicati.Library.Main.BackendManager.ThreadRun () [0x000f4] in <c093ff03452d49f59d25577493ea2214>:0 ","RemoteStackTraceString":null,"RemoteStackIndex":0,"ExceptionMethod":null,"HResult":-2146233088,"Source":"Duplicati.Library.Backend.Box"}
Jun 19, 2018 12:15 PM: RemoteOperationPut took 0:00:00:03.922
Jun 19, 2018 12:15 PM: Backend event: Put - Started: duplicati-verification.json (21.33 KB)
Jun 19, 2018 12:15 PM: Starting - RemoteOperationPut
Jun 19, 2018 12:15 PM: Backend event: Put - Retrying: duplicati-verification.json (21.33 KB)
Jun 19, 2018 12:15 PM: Operation Put with file duplicati-verification.json attempt 2 of 5 failed with message: 409 - item_name_in_use: Item with the same name already exists
{"ClassName":"System.Exception","Message":"409 - item_name_in_use: Item with the same name already exists","Data":null,"InnerException":null,"HelpURL":null,"StackTraceString":"  at Duplicati.Library.Backend.Box.BoxBackend+BoxHelper.ParseException (System.Exception ex) [0x000dc] in <b29afb5c6ce147959ffc840ced5c0fbc>:0 \n  at Duplicati.Library.JSONWebHelper.GetResponse (Duplicati.Library.Utility.AsyncHttpRequest req, System.Object requestdata) [0x000c6] in <a8221c1a4cb349b29527efbf356c5ec2>:0 \n  at Duplicati.Library.JSONWebHelper.PostMultipart (System.String url, System.Action`1[T] setup, Duplicati.Library.MultipartItem[] parts) [0x00185] in <a8221c1a4cb349b29527efbf356c5ec2>:0 \n  at Duplicati.Library.JSONWebHelper.PostMultipartAndGetJSONData[T] (System.String url, Duplicati.Library.MultipartItem[] parts) [0x00000] in <a8221c1a4cb349b29527efbf356c5ec2>:0 \n  at Duplicati.Library.Backend.Box.BoxBackend.Put (System.String remotename, System.IO.Stream stream) [0x0010f] in <b29afb5c6ce147959ffc840ced5c0fbc>:0 \n  at Duplicati.Library.Main.BackendManager.DoPut (Duplicati.Library.Main.BackendManager+FileEntryItem item) [0x001fa] in <c093ff03452d49f59d25577493ea2214>:0 \n  at Duplicati.Library.Main.BackendManager.ThreadRun () [0x000f4] in <c093ff03452d49f59d25577493ea2214>:0 ","RemoteStackTraceString":null,"RemoteStackIndex":0,"ExceptionMethod":null,"HResult":-2146233088,"Source":"Duplicati.Library.Backend.Box"}
Jun 19, 2018 12:15 PM: RemoteOperationPut took 0:00:00:02.090
Jun 19, 2018 12:15 PM: Backend event: Put - Started: duplicati-verification.json (21.33 KB)
Jun 19, 2018 12:15 PM: Starting - RemoteOperationPut
Jun 19, 2018 12:15 PM: Backend event: Put - Retrying: duplicati-verification.json (21.33 KB)
Jun 19, 2018 12:15 PM: Operation Put with file duplicati-verification.json attempt 1 of 5 failed with message: 409 - item_name_in_use: Item with the same name already exists
{"ClassName":"System.Exception","Message":"409 - item_name_in_use: Item with the same name already exists","Data":null,"InnerException":null,"HelpURL":null,"StackTraceString":"  at Duplicati.Library.Backend.Box.BoxBackend+BoxHelper.ParseException (System.Exception ex) [0x000dc] in <b29afb5c6ce147959ffc840ced5c0fbc>:0 \n  at Duplicati.Library.JSONWebHelper.GetResponse (Duplicati.Library.Utility.AsyncHttpRequest req, System.Object requestdata) [0x000c6] in <a8221c1a4cb349b29527efbf356c5ec2>:0 \n  at Duplicati.Library.JSONWebHelper.PostMultipart (System.String url, System.Action`1[T] setup, Duplicati.Library.MultipartItem[] parts) [0x00185] in <a8221c1a4cb349b29527efbf356c5ec2>:0 \n  at Duplicati.Library.JSONWebHelper.PostMultipartAndGetJSONData[T] (System.String url, Duplicati.Library.MultipartItem[] parts) [0x00000] in <a8221c1a4cb349b29527efbf356c5ec2>:0 \n  at Duplicati.Library.Backend.Box.BoxBackend.Put (System.String remotename, System.IO.Stream stream) [0x0010f] in <b29afb5c6ce147959ffc840ced5c0fbc>:0 \n  at Duplicati.Library.Main.BackendManager.DoPut (Duplicati.Library.Main.BackendManager+FileEntryItem item) [0x001fa] in <c093ff03452d49f59d25577493ea2214>:0 \n  at Duplicati.Library.Main.BackendManager.ThreadRun () [0x000f4] in <c093ff03452d49f59d25577493ea2214>:0 ","RemoteStackTraceString":null,"RemoteStackIndex":0,"ExceptionMethod":null,"HResult":-2146233088,"Source":"Duplicati.Library.Backend.Box"}
Jun 19, 2018 12:15 PM: RemoteOperationPut took 0:00:00:02.632
Jun 19, 2018 12:15 PM: Backend event: Put - Started: duplicati-verification.json (21.33 KB)
Jun 19, 2018 12:15 PM: Starting - RemoteOperationPut

Ok, I am able to replicate this with a simple example. Unfortunately, I am also able to replicate this with version 2.0.3.5 (patched to avoid the null reference exception).

Did using upload-verification-file ever work with the Box.com backend for you? I don’t have much experience with Box, but it appears that Box has always prevented overwriting existing files, unless you use a different method of the API that creates a new version, or you use their content uploader widget and enable overwriting in the folder settings?

This user claims that the free/personal Box accounts do not support versioning, which may be a source of the problem:

Here, someone claims that v1 of the API supported a way to specify an overwrite in the REST call, but v2 of the API removed that feature:

It must have worked at some point 'cause there’s a duplicati-verification.json file in the destination folder Box.com.

Running again (with the upload verification file failure) does NOT changed the timestamp of the file.

Manually deleting the file from the Box.com destination and running the job again DOES upload a new verification file and lets the job finish without errors. So I guess a workaround could be to delete-then-upload (or upload-timestamped-then-delete-then-rename).

My impression is that it successfully uploaded duplicati-verification.json the first time, since it didn’t already exist. Every time after that, we encounter the “item_name_in_use” failure. In 2.0.3.5, I think (through my limited testing) that this error was hidden behind a null reference exception. The backup would complete, but I think the verification upload would fail.

Do you happen to recall the original timestamp of the verification file before deleting it?

I remember the date (not time) - it was June 17th, which was the first day that I ran 2.0.3.7 and got a successful backup to box.com. According to my job logs, there was only 1 (successful) run on that day.

Sorry - I usually am smart enough to move / rename stuff rather than delete but I’m extra tired right now and itching to get some sleep so got lazy. :slight_smile:

For the record, this still happens with 2.0.4.12. :weary:

409 - item_name_in_use: Item with the same name already exists

System.Exception: 409 - item_name_in_use: Item with the same name already exists
 at Duplicati.Library.Main.BackendManager.WaitForComplete (Duplicati.Library.Main.Database.LocalDatabase db, System.Data.IDbTransaction transation) [0x00067] in &lt;db65b3c26950472bbb17359c9b89f17a&gt;:0 
  at Duplicati.Library.Main.Operation.FilelistProcessor.UploadVerificationFile (System.String backendurl, Duplicati.Library.Main.Options options, Duplicati.Library.Main.IBackendWriter result, Duplicati.Library.Main.Database.LocalDatabase db, System.Data.IDbTransaction transaction) [0x00094] in &lt;db65b3c26950472bbb17359c9b89f17a&gt;:0 
 at Duplicati.Library.Main.Operation.BackupHandler+&lt;RunAsync&gt;d__19.MoveNext () [0x01017] in &lt;db65b3c26950472bbb17359c9b89f17a&gt;:0 
 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in &lt;a6f810169ec746eeb2789b925e2858c0&gt;:0 
 at CoCoL.ChannelExtensions.WaitForTaskOrThrow (System.Threading.Tasks.Task task) [0x00050] in &lt;6973ce2780de4b28aaa2c5ffc59993b1&gt;:0 
 at Duplicati.Library.Main.Operation.BackupHandler.Run (System.String[] sources, Duplicati.Library.Utility.IFilter filter) [0x00008] in &lt;db65b3c26950472bbb17359c9b89f17a&gt;:0 
 at Duplicati.Library.Main.Controller+&lt;&gt;c__DisplayClass13_0.&lt;Backup&gt;b__0 (Duplicati.Library.Main.BackupResults result) [0x00035] in &lt;db65b3c26950472bbb17359c9b89f17a&gt;:0 
 at Duplicati.Library.Main.Controller.RunAction[T] (T result, System.String[]&amp; paths, Duplicati.Library.Utility.IFilter&amp; filter, System.Action`1[T] method) [0x00271] in &lt;db65b3c26950472bbb17359c9b89f17a&gt;:0 
 at Duplicati.Library.Main.Controller.Backup (System.String[] inputsources, Duplicati.Library.Utility.IFilter filter) [0x00068] in &lt;db65b3c26950472bbb17359c9b89f17a&gt;:0 
 at Duplicati.Server.Runner.Run (Duplicati.Server.Runner+IRunnerData data, System.Boolean fromQueue) [0x002f7] in &lt;8fa9658507384774bd0c8cbcaa7c1b7b&gt;:0