Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. crt.sh | example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.
My domain is: see below
I ran this command: docker-compose up -d
swag: # Docker Hub
image: Package swag · GitHub #swag, formerly known as letsencrypt (see: Introducing SWAG - Secure Web Application Gateway | LinuxServer.io)
#image: certbot:1.32.0-ls163 (bug in certbot 2.0)
container_name: swag # Secure Web Application Gateway (SWAG)
cap_add: # add container capability: NET_ADMIN
- NET_ADMIN # for Fail2Ban
environment:
- PUID=1001 #change PUID if needed: xxxx
- PGID=100 #change PGID if needed: users
- TZ=America/Chicago # change Time Zone if needed
- URL=duckdns.org #insert your domain name - yourdomain.url
- SUBDOMAINS=x7qzbj0fq9, # will try to get cert with subdomain & without
- VALIDATION=http
- EMAIL=???@gmail.com # define email; required to renew certificate
- ONLY_SUBDOMAINS=true #optional
network_mode: appuser_remote
volumes:
- /srv/dev-disk-by-uuid-xxx/appdata/swag:/config #/srv/dev-disk-... needs to be adjusted
ports:
- 444:443
- 81:80
restart: unless-stopped
It produced this output:
Account registered.
Requesting a certificate for x7qzbj0fq9.duckdns.org
Certbot failed to authenticate some domains (authenticator: standalone). The Certificate Authority reported these problems:
Domain: x7qzbj0fq9.duckdns.org
Type: connection
Detail: 107.133.117.222: Fetching http://x7qzbj0fq9.duckdns.org/.well-known/acme-challenge/lk8yJROx6CJTgdy8paYreIJy1i0wT1F_rOOZ09KITQs: Timeout during connect (likely firewall problem)
My web server is (include version):
The operating system my web server runs on is (include version):
My hosting provider, if applicable, is:
I can login to a root shell on my machine (yes or no, or I don't know): yes
I'm using a control panel to manage my site (no, or provide the name and version of the control panel): docker
The version of my client is (e.g. output of certbot --version
or certbot-auto --version
if you're using Certbot): 1.32.0
This is not a firewall problem. If I stop swag and start nginx on the same port 81:80, I get a response from nginx. It doesn't matter if I access it locally, using the IP, or through duckdns. With nginx running, port 80 is open (nmap). With swag running, port 80 is closed. I believe, when I tried one time, soon after swag start, port 80 did respond. A little later it closed. Some configuration is causing this to fail.
authenticator: standalone >> does something need to be set in a file?
Any suggestions will be greatly appreciated.
Thanks.