Fails to deploy #11

Open
opened 2025-12-28 01:55:06 +00:00 by jeppebundsgaard · 0 comments

When deploying, webmail and app continue to fail. I think this is the reason:

�2025-12-28T01:47:31.416167877Z nginx: [emerg] host not found in set_real_ip_from "mailu_xn--folkefderation-vqb_dk_app" in /etc/nginx/http.d/webmail.conf:29
�2025-12-28T01:46:40.999200042Z WARNING:root:Your CPU has Advanced Vector Extensions available, we recommend you enable hardened-malloc earlier in the boot process by adding LD_PRELOAD=/usr/lib/libhardened_malloc.so to your mailu.env
B2025-12-28T01:46:41.974895415Z Traceback (most recent call last):
N2025-12-28T01:46:41.974921906Z File "/certwatcher.py", line 72, in
42025-12-28T01:46:41.974925868Z observer.start()
}2025-12-28T01:46:41.974928949Z File "/app/venv/lib/python3.12/site-packages/watchdog/observers/api.py", line 280, in start
32025-12-28T01:46:41.974931951Z emitter.start()
}2025-12-28T01:46:41.974934758Z File "/app/venv/lib/python3.12/site-packages/watchdog/utils/init.py", line 92, in start
:2025-12-28T01:46:41.974937566Z self.on_thread_start()
�2025-12-28T01:46:41.974940264Z File "/app/venv/lib/python3.12/site-packages/watchdog/observers/polling.py", line 78, in on_thread_start
J2025-12-28T01:46:41.974943079Z self._snapshot = self._take_snapshot()
J2025-12-28T01:46:41.974945783Z ^^^^^^^^^^^^^^^^^^^^^
�2025-12-28T01:46:41.974948331Z File "/app/venv/lib/python3.12/site-packages/watchdog/observers/polling.py", line 73, in
T2025-12-28T01:46:41.974951258Z self._take_snapshot = lambda: DirectorySnapshot(
T2025-12-28T01:46:41.974953907Z ^^^^^^^^^^^^^^^^^^
�2025-12-28T01:46:41.974956637Z File "/app/venv/lib/python3.12/site-packages/watchdog/utils/dirsnapshot.py", line 328, in init
82025-12-28T01:46:41.974959352Z st = self.stat(path)
82025-12-28T01:46:41.974962220Z ^^^^^^^^^^^^^^^
�2025-12-28T01:46:41.974965005Z FileNotFoundError: [Errno 2] No such file or directory: '/certs/mailu.xn--folkefderation-vqb.dk'
G2025-12-28T01:46:43.398931609Z Missing cert or key file, disabling TLS
�2025-12-28T01:46:43.880775789Z doveconf: Fatal: Error in configuration file /etc/dovecot/proxy.conf line 38: ssl_cert: Can't open file /certs/mailu.xn--folkefderation-vqb.dk/certificate.crt: No such file or directory

This is the important part of the config (I think):

Main web domain, NOT main mail domain (if they are different)

DOMAIN=mailu.xn--folkefderation-vqb.dk

"This email domain is used for bounce emails, for generating the postmaster

email and other technical addresses."

MAIL_DOMAIN=mailu.xn--folkefderation-vqb.dk

Hostnames for this server, separated with commas

"The first declared hostname is the main hostname and will be exposed over

SMTP, IMAP, etc."

HOSTNAMES=$DOMAIN

Run DOCKER_CONTEXT=<yourserver> docker stack ls | grep traefik | cut -f 1 -d " " to get that one

TRAEFIK_STACK_NAME=traefik_xn--folkefderation-vqb_dk

Any ideas?

When deploying, webmail and app continue to fail. I think this is the reason: > �2025-12-28T01:47:31.416167877Z nginx: [emerg] host not found in set_real_ip_from "mailu_xn--folkefderation-vqb_dk_app" in /etc/nginx/http.d/webmail.conf:29 > �2025-12-28T01:46:40.999200042Z WARNING:root:Your CPU has Advanced Vector Extensions available, we recommend you enable hardened-malloc earlier in the boot process by adding LD_PRELOAD=/usr/lib/libhardened_malloc.so to your mailu.env > B2025-12-28T01:46:41.974895415Z Traceback (most recent call last): > N2025-12-28T01:46:41.974921906Z File "/certwatcher.py", line 72, in <module> > 42025-12-28T01:46:41.974925868Z observer.start() > }2025-12-28T01:46:41.974928949Z File "/app/venv/lib/python3.12/site-packages/watchdog/observers/api.py", line 280, in start > 32025-12-28T01:46:41.974931951Z emitter.start() > }2025-12-28T01:46:41.974934758Z File "/app/venv/lib/python3.12/site-packages/watchdog/utils/__init__.py", line 92, in start > :2025-12-28T01:46:41.974937566Z self.on_thread_start() > �2025-12-28T01:46:41.974940264Z File "/app/venv/lib/python3.12/site-packages/watchdog/observers/polling.py", line 78, in on_thread_start > J2025-12-28T01:46:41.974943079Z self._snapshot = self._take_snapshot() > J2025-12-28T01:46:41.974945783Z ^^^^^^^^^^^^^^^^^^^^^ > �2025-12-28T01:46:41.974948331Z File "/app/venv/lib/python3.12/site-packages/watchdog/observers/polling.py", line 73, in <lambda> > T2025-12-28T01:46:41.974951258Z self._take_snapshot = lambda: DirectorySnapshot( > T2025-12-28T01:46:41.974953907Z ^^^^^^^^^^^^^^^^^^ > �2025-12-28T01:46:41.974956637Z File "/app/venv/lib/python3.12/site-packages/watchdog/utils/dirsnapshot.py", line 328, in __init__ > 82025-12-28T01:46:41.974959352Z st = self.stat(path) > 82025-12-28T01:46:41.974962220Z ^^^^^^^^^^^^^^^ > �2025-12-28T01:46:41.974965005Z FileNotFoundError: [Errno 2] No such file or directory: '/certs/mailu.xn--folkefderation-vqb.dk' > G2025-12-28T01:46:43.398931609Z Missing cert or key file, disabling TLS > �2025-12-28T01:46:43.880775789Z doveconf: Fatal: Error in configuration file /etc/dovecot/proxy.conf line 38: ssl_cert: Can't open file /certs/mailu.xn--folkefderation-vqb.dk/certificate.crt: No such file or directory > This is the important part of the config (I think): > # Main web domain, NOT main mail domain (if they are different) > DOMAIN=mailu.xn--folkefderation-vqb.dk > > # "This email domain is used for bounce emails, for generating the postmaster > # email and other technical addresses." > MAIL_DOMAIN=mailu.xn--folkefderation-vqb.dk > > # Hostnames for this server, separated with commas > # "The first declared hostname is the main hostname and will be exposed over > # SMTP, IMAP, etc." > HOSTNAMES=$DOMAIN > > # Run `DOCKER_CONTEXT=<yourserver> docker stack ls | grep traefik | cut -f 1 -d " "` to get that one > TRAEFIK_STACK_NAME=traefik_xn--folkefderation-vqb_dk > Any ideas?
Sign in to join this conversation.
No description provided.