Create Clone failed
Hi,
I'm receiving the error when I create the clone, but the clone not exist in the target SQL Server instance:
I'm receiving the error when I create the clone, but the clone not exist in the target SQL Server instance:
022-05-12 16:44:23.604 +02:00 [ERR] CreateCloneRequestEvent (clone name: "Rete") Operation 25417 failed with exception (CloneDatabaseNameAlreadyExists)
RedGate.SqlClone.Agent.Api.CloneDatabaseNameAlreadyExistsException: The name 'Rete' cannot be used to create a clone as a database with this name already exists in the target SQL Server instance. (CloneDatabaseNameAlreadyExistsException)
at RedGate.SqlClone.Agent.Core.Sql.SqlCloneAttacher.AttachDb(String mountPath)
at RedGate.SqlClone.Agent.Core.Sql.SqlCloner.CreateClone(String imageFile, CloneDirectoryPath cloneDirectoryPath, IProgress`1 cloneProgressReporter, CancellationToken cancellationToken)
at RedGate.SqlClone.Agent.Core.Sql.SqlCloner.CreateClone(String imageFile, CloneDirectoryPath cloneDirectoryPath, IProgress`1 cloneProgressReporter, CancellationToken cancellationToken)
at RedGate.SqlClone.Agent.Drivers.Vhd.SqlServerCloneFromVhdImageCreationDriver.CreateClone(String cloneName, IImageStorageDriver imageStorageDriver, Storage imageStorage, SqlServerInstanceLocationExpanded destinationLocation, IStorageDriver cloneStorageDriver, String cloneStorageResourceName, ModificationScriptCollectionWithVariables modificationScriptsWithVariables, IProgress`1 cloneProgressReporter, CancellationToken ct)
at RedGate.SqlClone.Agent.AgentCloneService.CreateClone(CloneExpanded clone, CreateCloneContext context, CancellationToken ct)
at RedGate.SqlClone.Agent.AgentCloneService.CreateClone(CloneExpanded clone, CreateCloneContext context, CancellationToken ct)
at RedGate.SqlClone.Agent.OperationContext.OperationLifetimeManager.Run(Id`1 operationId, UsageInfo usageInfo, Func`2 action, AgentEvent agentEvent)
Is there a way to solve the error ?
Thanks a lot
Is there a way to solve the error ?
Thanks a lot
Tagged:
Answers
Thanks!
No, nothing like that.
There are only five clones:
Marketing
I also checked querying sys.sysdatabases
Does it show the Clone DB with that name having been deleted from the Clones table in the config db?
I would say you've got a couple of options - 1) you can raise a ticket with red gate support and see if they can help, or 2) you and I can take a look if you're happy to screen share - if you ping me a message on twitter @plantbasedsql or with your email and you're happy to speak at 12pm BST or 5pm BST then I can ping you a google meet invite
Noting, of course, that 2) could invariably lead to 1) as I don't work for Redgate, but am a "Friend of RG"
Entirely up to you!
Many thanks for your help