Discussions specific to the Microsoft Hyper-V hypervisor
Post Reply
mingji
Novice
Posts: 8
Liked: never
Joined: Jun 26, 2015 2:05 am
Full Name: Ming Ji
Contact:

Backup Copy to Cloud error:same key already been added

Post by mingji » May 20, 2018 11:32 pm

case number: 03017125

Hi there,
This issue has been bugging me for a while, I had to create a new job completely but it still happens somehow.
Basically, a Backup Copy to Cloud job was all right when first created, it will replicate backups without issue. However, when I started a new interval, it says:

Code: Select all

:: Failed to preprocess target Error: An item with the same key has already been added.  
:: Unable to create target storage, processing will be retried (retry 1 out of 6)  
Job will fail after 6 tries.
I renamed vbm, rescanned repository, named vbm back and remapped job, issue was fixed last week, but this week the same thing happened again, and renaming vbm will not fix it this time.
more logs:

Code: Select all

[21.05.2018 10:54:18] <01> Info     [CloudGateSvc 203.167.148.98:6180]Request: [Db.WriteSessionLog] 
[21.05.2018 10:54:18] <01> Info     [CloudGateSvc 203.167.148.98:6180]Response: 
[21.05.2018 10:54:18] <01> Error    An key [91a2bd01-62ce-4309-902f-95d48cb7904f] with the same value [84caa0e6-ea73-49e8-b849-89755953496e] has already been added. New key: [716480ab-cb2e-4b92-b751-61475986e2a8] (System.Exception)
[21.05.2018 10:54:18] <01> Error       at Veeam.Backup.Common.TwoWayDictionary`2.Add(TKey key, TValue value)
[21.05.2018 10:54:18] <01> Error       at Veeam.Backup.Core.CCloudDbBackupInterceptor.ToRemoteObjectId(Guid localObjectId, Guid backupId)
[21.05.2018 10:54:18] <01> Error       at Veeam.Backup.Core.CCloudDbAccessor.FindOibByBackupIdPointIdAndObjectId(Guid backupId, Guid pointId, Guid objectId)
[21.05.2018 10:54:18] <01> Error       at Veeam.Backup.Core.CPoint.FindOib(Guid objId)
[21.05.2018 10:54:18] <01> Error       at Veeam.Backup.Core.CBackupJobTarget.FindLastStorageInPointGroup(Guid objectId)
[21.05.2018 10:54:18] <01> Error       at Veeam.Backup.Core.CBackupJobTarget.GetLastStorage(Guid objectId, Boolean checkAvailability)
[21.05.2018 10:54:18] <01> Error       at Veeam.Backup.Core.CBackupJobTarget.CreateStorageAlg(Guid objId, CHost host)
[21.05.2018 10:54:18] <01> Error       at Veeam.Backup.Core.CBackupJobTarget.<>c__DisplayClass13.<CreateInContainer>b__12(Guid objId)
[21.05.2018 10:54:18] <01> Error       at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
[21.05.2018 10:54:18] <01> Error       at Veeam.Backup.Core.CStorageGroupSplitter`1.GetOrAdd(Guid objectId, Func`2 func)
[21.05.2018 10:54:18] <01> Error       at Veeam.Backup.Core.CBackupJobTarget.CreateInContainer(Guid objectId, CHost host)
[21.05.2018 10:54:18] <01> Error       at Veeam.Backup.Core.CBackupJobTarget.CreateStorageAlgs(IEnumerable`1 objectIds)
[21.05.2018 10:54:18] <01> Error       at Veeam.Backup.Core.CBackupJobTarget.CreateStorageAlgs(IEnumerable`1 taskObjects, Boolean createStoragesForPreviousTasks)
[21.05.2018 10:54:18] <01> Error       at Veeam.Backup.Core.CBackupJobTarget.PreProcess(ITasksScheduler tasksScheduler, IEnumerable`1 taskObjects, Boolean createStoragesForPreviousTasks)
[21.05.2018 10:54:18] <01> Error       at Veeam.Backup.Core.CBackupCopyJobTargetCreator.PreprocessBackupTarget(CBackupJobTarget jobTarget, ITaskBuilderEntry[] entries)
[21.05.2018 10:54:18] <01> Error    An item with the same key has already been added. (System.ArgumentException)
[21.05.2018 10:54:18] <01> Error       at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
[21.05.2018 10:54:18] <01> Error       at System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value)
[21.05.2018 10:54:18] <01> Error       at Veeam.Backup.Common.TwoWayDictionary`2.Add(TKey key, TValue value)
[21.05.2018 10:54:18] <01> Error    An key [91a2bd01-62ce-4309-902f-95d48cb7904f] with the same value [84caa0e6-ea73-49e8-b849-89755953496e] has already been added. New key: [716480ab-cb2e-4b92-b751-61475986e2a8] (System.Exception)
[21.05.2018 10:54:18] <01> Error       at Veeam.Backup.Common.TwoWayDictionary`2.Add(TKey key, TValue value)
[21.05.2018 10:54:18] <01> Error       at Veeam.Backup.Core.CCloudDbBackupInterceptor.ToRemoteObjectId(Guid localObjectId, Guid backupId)
[21.05.2018 10:54:18] <01> Error       at Veeam.Backup.Core.CCloudDbAccessor.FindOibByBackupIdPointIdAndObjectId(Guid backupId, Guid pointId, Guid objectId)
[21.05.2018 10:54:18] <01> Error       at Veeam.Backup.Core.CPoint.FindOib(Guid objId)
[21.05.2018 10:54:18] <01> Error       at Veeam.Backup.Core.CBackupJobTarget.FindLastStorageInPointGroup(Guid objectId)
[21.05.2018 10:54:18] <01> Error       at Veeam.Backup.Core.CBackupJobTarget.GetLastStorage(Guid objectId, Boolean checkAvailability)
[21.05.2018 10:54:18] <01> Error       at Veeam.Backup.Core.CBackupJobTarget.CreateStorageAlg(Guid objId, CHost host)
[21.05.2018 10:54:18] <01> Error       at Veeam.Backup.Core.CBackupJobTarget.<>c__DisplayClass13.<CreateInContainer>b__12(Guid objId)
[21.05.2018 10:54:18] <01> Error       at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
[21.05.2018 10:54:18] <01> Error       at Veeam.Backup.Core.CStorageGroupSplitter`1.GetOrAdd(Guid objectId, Func`2 func)
[21.05.2018 10:54:18] <01> Error       at Veeam.Backup.Core.CBackupJobTarget.CreateInContainer(Guid objectId, CHost host)
[21.05.2018 10:54:18] <01> Error       at Veeam.Backup.Core.CBackupJobTarget.CreateStorageAlgs(IEnumerable`1 objectIds)
[21.05.2018 10:54:18] <01> Error       at Veeam.Backup.Core.CBackupJobTarget.CreateStorageAlgs(IEnumerable`1 taskObjects, Boolean createStoragesForPreviousTasks)
[21.05.2018 10:54:18] <01> Error       at Veeam.Backup.Core.CBackupJobTarget.PreProcess(ITasksScheduler tasksScheduler, IEnumerable`1 taskObjects, Boolean createStoragesForPreviousTasks)
[21.05.2018 10:54:18] <01> Error       at Veeam.Backup.Core.CBackupCopyJobTargetCreator.PreprocessBackupTarget(CBackupJobTarget jobTarget, ITaskBuilderEntry[] entries)
[21.05.2018 10:54:18] <01> Error    An item with the same key has already been added. (System.ArgumentException)
[21.05.2018 10:54:18] <01> Error       at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
[21.05.2018 10:54:18] <01> Error       at System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value)
[21.05.2018 10:54:18] <01> Error       at Veeam.Backup.Common.TwoWayDictionary`2.Add(TKey key, TValue value)
[21.05.2018 10:54:18] <01> Info     [RemoteBackupJobPerformer] Failed to preprocess target. Sleeping for 5 minutes

jayscarff
Service Provider
Posts: 84
Liked: 4 times
Joined: Nov 15, 2016 6:56 pm
Location: Cayman Islands
Contact:

Re: Backup Copy to Cloud error:same key already been added

Post by jayscarff » Jul 03, 2018 9:51 pm

Did you get this resolved? Just started having this issue with a cloud copy job today,

Thanks
Jason
VMCE v9

v.eremin
Product Manager
Posts: 16130
Liked: 1314 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Backup Copy to Cloud error:same key already been added

Post by v.eremin » Jul 04, 2018 10:14 am

In original case the issue seems to have been caused by duplicated entities (same VMs were managed by two SCVMM servers and both were added to backup server).

Anyway, I recommend you opening your own ticket and letting our support team investigate it directly.

Thanks.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest