So I have recently taken a new job and when I started, one of our subdomains was down. I have been trying to figure out what is wrong with it. For some context, the application is running on a VM hosted by DigitalOcean, we are using Cloudflare for DNS, and reverse proxying through Caddy. This is my first time managing a website, so this has been a learning experience for me. From my understanding, the two main issues I am facing currently are:
1: Caddy isn't listening on ports 80 or 443.
2: When I try and run the application, it appears that my site's DNS isn't resolving correctly and therefore I can't get my certificate. I have existing A and AAAA DNS records on Cloudflare for this subdomain, but I don't know if they may be misconfigured.
My domain is: food.maconchd.org
I ran this command:
docker-compose -f production.yml up
in order to get my application running in a container.
It produced quite a bit of output to set up the application, but at the end it threw the error code:
Activating privacy features... 2024/02/26 20:21:53 [INFO][www.food.maconchd.org] acme: Obtaining bundled SAN certificate
caddy_1 | 2024/02/26 20:21:53 [INFO][www.food.maconchd.org] AuthURL: https://acme-v02.api.letsencrypt.org/acme/authz-v3/319810223277
caddy_1 | 2024/02/26 20:21:53 [INFO][www.food.maconchd.org] acme: Trying to solve HTTP-01
caddy_1 | 2024/02/26 20:21:58 [www.food.maconchd.org] failed to get certificate: acme: Error 400 - urn:ietf:params:acme:error:dns - DNS problem: NXDOMAIN looking up A for www.food.maconchd.org - check that a DNS record exists for this domain; DNS problem: NXDOMAIN looking up AAAA for www.food.maconchd.org - check that a DNS record exists for this domain
My web server is (include version):Caddy 0.11.0
The operating system my web server runs on is (include version): Ubuntu 18.04.1 LTS
My hosting provider, if applicable, is: Cloudflare
I can login to a root shell on my machine (yes or no, or I don't know): Yes, I am able to SSH in via port 22.
I'm using a control panel to manage my site (no, or provide the name and version of the control panel):I don't believe that I am using a control panel to manage the site. Not 100% sure though.
The version of my client is (e.g. output of certbot --version
or certbot-auto --version
if you're using Certbot): Not sure what this refers to. I don't have certbot installed and don't know what my system equivalent would be, I will look into this.
There is a good chance that I haven't provided enough context, so if there is anything else I can add that would be useful, let me know.
Thank you.