Unable to create TXT record due to “An identical record already exists” while there’s no matching record (since it was already deleted)
What steps have you taken to resolve the issue?
I’m creating some TXT records for certificate renewal validation, and I’m stuck with the creation. I have created a TXT DNS record with content XXXX via Terraform, and I forgot to include the quotes inside it. When I opened Cloudflare’s UI, I realized about it and even if it says Cloudflare would take care of it and add the quotes on their side, I tried to change it via Terraform, which I couldn’t (I think due to missing allow_overwrite when creating, not really sure), so I deleted the record from Cloudflare’s UI, to re-create it afterwards. Problem is that now, I can’t re-create the record with the content \"XXXX\", since I get the error “An identical record already exists”, even if it doesn’t. I can’t do it via Cloudflare nor Terraform, so I’m completely stuck.
What feature, service or problem is this related to?
Seems to me you’re trying to generate or renew your origin SSL certificate by using Acme, Let’s Encrypt or Certbot metod using DNS TXT challenge?
Since Cloudflare’s Universal SSL certificate is also using CA of Let’s Encrypt to generate such, which might results of you experiencing such error, and we don’t see those TXT records in the UI.
May I ask if you’ve tried using Cloudflare API to fix this?
Hi fritex! Thanks for your reply. I’m adding those TXT records as you said for SSL certificate renewal, since we received some emails from Cloudflare to add those specific records and then validate the renewal, so it might be a bit strange that those are already generated.
I could try with the API, but I don’t have the corresponding dns_record_id to delete the existing one (which is not in the UI as you said). From what I inspected, that API is the same used from the UI too, so I don’t feel it will have too much difference neither. In fact, using a DNS checker, the TXT records are not found neither, so as I said, I’m quite stuck!
I would also ask you to please give a more detailed description of how exactly this happened. Did you all create the records via Terraform and then deleted them in the UI? Were quotes related to the problems?
What error exactly do you see? Can you post a screenshot that shows your existing records, so we can confirm it doesn’t actually exist already?
I received MULTIPLE emails saying “Domain Control Verification (DCV) failed…” and asking me to add two “_acme-challenge” TXT records to DNS. I added the first one with no problem, but the second one gave me the error “An identical record already exists”.
I posted a message in this thread, but a few minutes after your reply the problem was resolved and I got the “Certificate renewal has succeeded…” email. I don’t know if this happened on its own or if you helped somehow.