404 page not found error (Unable to obtain ACME certificate for domains)

Install N8N on Ubuntu 20.4 and get this error when try to login to my n8n website

image

My error log traefik container

root@ubuntu-2vcpu-2gb-1-0w2ib:/home# docker logs c0729c92ebf9
time="2023-09-27T16:06:50Z" level=info msg="Configuration loaded from flags."
time="2023-09-27T16:07:12Z" level=error msg="Unable to obtain ACME certificate for domains \"n8n.ghn.vn\": unable to generate a certificate for the domains [n8n.ghn.vn]: error: one or more domains had a problem:\n[n8n.ghn.vn] acme: error: 400 :: urn:ietf:params:acme:error:dns :: no valid A records found for n8n.ghn.vn; no valid AAAA records found for n8n.ghn.vn\n" rule="Host(`n8n.ghn.vn`)" providerName=mytlschallenge.acme ACME CA="https://acme-v02.api.letsencrypt.org/directory" routerName=n8n@docker
time="2023-09-27T16:07:16Z" level=error msg="Unable to obtain ACME certificate for domains \"n8n.ghn.vn\": unable to generate a certificate for the domains [n8n.ghn.vn]: error: one or more domains had a problem:\n[n8n.ghn.vn] acme: error: 400 :: urn:ietf:params:acme:error:dns :: no valid A records found for n8n.ghn.vn; no valid AAAA records found for n8n.ghn.vn\n" ACME CA="https://acme-v02.api.letsencrypt.org/directory" routerName=n8n@docker rule="Host(`n8n.ghn.vn`)" providerName=mytlschallenge.acme
time="2023-09-27T16:07:23Z" level=error msg="Unable to obtain ACME certificate for domains \"n8n.ghn.vn\": unable to generate a certificate for the domains [n8n.ghn.vn]: error: one or more domains had a problem:\n[n8n.ghn.vn] acme: error: 400 :: urn:ietf:params:acme:error:dns :: no valid A records found for n8n.ghn.vn; no valid AAAA records found for n8n.ghn.vn\n" providerName=mytlschallenge.acme ACME CA="https://acme-v02.api.letsencrypt.org/directory" routerName=n8n@docker rule="Host(`n8n.ghn.vn`)"
time="2023-09-27T17:08:03Z" level=error msg="accept tcp [::]:443: use of closed network connection" entryPointName=websecure
time="2023-09-27T17:08:03Z" level=error msg="Error while starting server: accept tcp [::]:443: use of closed network connection" entryPointName=websecure
time="2023-09-27T17:08:03Z" level=error msg="accept tcp [::]:80: use of closed network connection" entryPointName=web
time="2023-09-27T17:08:03Z" level=error msg="close tcp [::]:80: use of closed network connection" entryPointName=web
time="2023-09-27T17:08:03Z" level=error msg="accept tcp [::]:8080: use of closed network connection" entryPointName=traefik
time="2023-09-27T17:08:03Z" level=error msg="Error while starting server: accept tcp [::]:8080: use of closed network connection" entryPointName=traefik
time="2023-09-27T17:08:06Z" level=info msg="Configuration loaded from flags."
time="2023-09-27T17:08:18Z" level=error msg="Unable to obtain ACME certificate for domains \"n8n.ghn.vn\": unable to generate a certificate for the domains [n8n.ghn.vn]: error: one or more domains had a problem:\n[n8n.ghn.vn] acme: error: 400 :: urn:ietf:params:acme:error:dns :: no valid A records found for n8n.ghn.vn; no valid AAAA records found for n8n.ghn.vn\n" ACME CA="https://acme-v02.api.letsencrypt.org/directory" routerName=n8n@docker rule="Host(`n8n.ghn.vn`)" providerName=mytlschallenge.acme
time="2023-09-27T17:08:24Z" level=error msg="Unable to obtain ACME certificate for domains \"n8n.ghn.vn\": unable to generate a certificate for the domains [n8n.ghn.vn]: error: one or more domains had a problem:\n[n8n.ghn.vn] acme: error: 400 :: urn:ietf:params:acme:error:dns :: no valid A records found for n8n.ghn.vn; no valid AAAA records found for n8n.ghn.vn\n" providerName=mytlschallenge.acme ACME CA="https://acme-v02.api.letsencrypt.org/directory" routerName=n8n@docker rule="Host(`n8n.ghn.vn`)"
time="2023-09-27T17:08:27Z" level=error msg="Unable to obtain ACME certificate for domains \"n8n.ghn.vn\": unable to generate a certificate for the domains [n8n.ghn.vn]: error: one or more domains had a problem:\n[n8n.ghn.vn] acme: error: 400 :: urn:ietf:params:acme:error:dns :: no valid A records found for n8n.ghn.vn; no valid AAAA records found for n8n.ghn.vn\n" providerName=mytlschallenge.acme ACME CA="https://acme-v02.api.letsencrypt.org/directory" routerName=n8n@docker rule="Host(`n8n.ghn.vn`)"
time="2023-09-27T17:08:30Z" level=error msg="Unable to obtain ACME certificate for domains \"n8n.ghn.vn\": unable to generate a certificate for the domains [n8n.ghn.vn]: error: one or more domains had a problem:\n[n8n.ghn.vn] acme: error: 400 :: urn:ietf:params:acme:error:dns :: no valid A records found for n8n.ghn.vn; no valid AAAA records found for n8n.ghn.vn\n" rule="Host(`n8n.ghn.vn`)" routerName=n8n@docker providerName=mytlschallenge.acme ACME CA="https://acme-v02.api.letsencrypt.org/directory"

I have already create A record point to my VPS sever DNS on Cloudflare
My docker-compose.yml is the same with the installation guide

Thank you !

here is my log

root@ubuntu-2vcpu-2gb-1-0w2ib:~# sudo docker compose up
[+] Running 2/2
 ✔ Container root-traefik-1  Running                                                           0.0s
 ✔ Container root-n8n-1      Recreated                                                         3.1s
Attaching to root-n8n-1, root-traefik-1
root-traefik-1  | time="2023-09-28T07:52:12Z" level=error msg="Unable to obtain ACME certificate for domains \"n8n.ghn.vn\": unable to generate a certificate for the domains [n8n.ghn.vn]: error: one or more domains had a problem:\n[n8n.ghn.vn] acme: error: 400 :: urn:ietf:params:acme:error:dns :: no valid A records found for n8n.ghn.vn; no valid AAAA records found for n8n.ghn.vn\n" rule="Host(`n8n.ghn.vn`)" routerName=n8n@docker ACME CA="https://acme-v02.api.letsencrypt.org/directory" providerName=mytlschallenge.acme
root-n8n-1      | n8n ready on 0.0.0.0, port 5678
root-n8n-1      | Initializing n8n process
root-n8n-1      | Version: 1.8.2
root-n8n-1      |
root-n8n-1      | Editor is now accessible via:
root-n8n-1      | https://n8n.ghn.vn:5678/
root-traefik-1  | time="2023-09-28T07:52:23Z" level=error msg="Unable to obtain ACME certificate for domains \"n8n.ghn.vn\": unable to generate a certificate for the domains [n8n.ghn.vn]: error: one or more domains had a problem:\n[n8n.ghn.vn] acme: error: 400 :: urn:ietf:params:acme:error:dns :: no valid A records found for n8n.ghn.vn; no valid AAAA records found for n8n.ghn.vn\n" rule="Host(`n8n.ghn.vn`)" ACME CA="https://acme-v02.api.letsencrypt.org/directory" providerName=mytlschallenge.acme routerName=n8n@docker
root-traefik-1  | time="2023-09-28T07:52:27Z" level=error msg="Unable to obtain ACME certificate for domains \"n8n.ghn.vn\": unable to generate a certificate for the domains [n8n.ghn.vn]: error: one or more domains had a problem:\n[n8n.ghn.vn] acme: error: 400 :: urn:ietf:params:acme:error:dns :: no valid A records found for n8n.ghn.vn; no valid AAAA records found for n8n.ghn.vn\n" rule="Host(`n8n.ghn.vn`)" ACME CA="https://acme-v02.api.letsencrypt.org/directory" providerName=mytlschallenge.acme routerName=n8n@docker
root-traefik-1  | time="2023-09-28T07:52:28Z" level=error msg="Unable to obtain ACME certificate for domains \"n8n.ghn.vn\": unable to generate a certificate for the domains [n8n.ghn.vn]: acme: error: 429 :: POST :: https://acme-v02.api.letsencrypt.org/acme/new-order :: urn:ietf:params:acme:error:rateLimited :: Error creating new order :: too many failed authorizations recently: see https://letsencrypt.org/docs/failed-validation-limit/" ACME CA="https://acme-v02.api.letsencrypt.org/directory" providerName=mytlschallenge.acme routerName=n8n@docker rule="Host(`n8n.ghn.vn`)"

if i go to the https://n8n.mydomain:5678/ it will show

This site can’t be reached

Check if there is a typo in n8n.ghn.vn.

  • If spelling is correct, [try running Windows Network Diagnostics](javascript:diagnoseErrors()).

DNS_PROBE_FINISHED_NXDOMAIN

Hi @Phuc_Nguy_n_H_ng, welcome to the community!

From looking into the logs it appears Let’s Encrypt can’t find the DNS records for your domain:

error: 400 :: urn:ietf:params:acme:error:dns :: no valid A records found for n8n.ghn.vn; no valid AAAA records found for n8n.ghn.vn

Quickly querying popular nameservers such as 1.1.1.1 (Cloudflare) or 8.8.8.8 (Google) on my end suggests there are indeed no A records:

image

Did you perhaps simply forget to create an A record for n8n.ghn.vn pointing to your server?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.