Invalid status: <domain>, Verify error detail, Invalid response from http

I got error while building my docker compose container.
I did it on April this year for the first time and got the certificate, my app was working fine with my domain but last week i need to update my app so i create new image on my aws and pushed it but i got an error from letsencrypt abount invalid verification.
I don't know what is going on cause i didn't change the docker-compse.yml so it shoukd work cuse it worked on April. Maybe someone can help me with it. Thanks
Whole error:

2024/06/17 06:27:02 Contents of /app/letsencrypt_service_data did not change. Skipping notification '/app/signal_le_service'
Creating/renewal refunds.goni.to certificates... (refunds.goni.to)
[Mon Jun 17 06:27:03 UTC 2024] Using CA: https://acme-v02.api.letsencrypt.org/directory
[Mon Jun 17 06:27:03 UTC 2024] Using pre generated key: /etc/acme.sh/test@mail.com/refunds.goni.to/refunds.goni.to.key.next
[Mon Jun 17 06:27:03 UTC 2024] Generate next pre-generate key.
[Mon Jun 17 06:27:05 UTC 2024] Single domain='refunds.goni.to'
[Mon Jun 17 06:27:05 UTC 2024] Getting domain auth token for each domain
[Mon Jun 17 06:27:07 UTC 2024] Getting webroot for domain='refunds.goni.to'
[Mon Jun 17 06:27:07 UTC 2024] Verifying: refunds.goni.to
[Mon Jun 17 06:27:08 UTC 2024] Pending, The CA is processing your order, please just wait. (1/30)
[Mon Jun 17 06:27:11 UTC 2024] Invalid status, refunds.goni.to:Verify error detail:35.157.54.184: Invalid response from http://refunds.goni.to/.well-known/acme-challenge: 404
[Mon Jun 17 06:27:11 UTC 2024] Please check log file for more details:

do you have any geoblocking firewall?

1 Like

No, I have not, I think there is something wrong with authorization because first time i ordered cert it was more than 90 days ago do maybe i need to renewal it but i'm not sure if this is an sillution and don't know how to do it thru docker

why you did 90 days ago?

1 Like

I did my deploy of my app on April this year, my app was working fine on my domain with cert. Whole deploy was fine. Last week i did an update to add some new features so i needed to make new image and deploy it again but this time cert has eroor that i paste above.

Lets see the docker compose file

1 Like

sure, here it is

services:
web:
image: myimage
command: gunicorn --bind 0.0.0.0:5000 --timeout 100000 app:app
restart: unless-stopped
env_file:
- ./.env
expose:
- 5000
environment:
- VIRTUAL_HOST=refunds.goni.to
- LETSENCRYPT_HOST=refunds.goni.to
depends_on :
- redis
volumes:
- /home/ubuntu/hubert/Ledger_App:/home/ubuntu/hubert/Ledger_App

nginx:
container_name: nginx
image: nginxproxy/nginx-proxy
restart: unless-stopped
ports:
- 8080:443
- 443:443
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- /var/docker/nginx/html:/usr/share/nginx/html
- /var/docker/nginx/certs:/etc/nginx/certs
- /var/docker/nginx/vhost:/etc/nginx/vhost.d
logging:
options:
max-size: "10m"
max-file: "3"

letsencrypt-companion:
container_name: letsencrypt-companion
image: jrcs/letsencrypt-nginx-proxy-companion
restart: unless-stopped
volumes_from:
- nginx
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /var/docker/nginx/acme:/etc/acme.sh
environment:
DEFAULT_EMAIL: test@mail.com

redis:
image: redis:7-alpine
restart: unless-stopped

celery_worker:
container_name: celery_worker
image: myimage
command: celery -A app.celery worker --loglevel=info
restart: unless-stopped
env_file:
- ./.env
depends_on:
- redis
- web

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