montgomery-auber / postfix-containerized

Postfix Server with Letsencrypt Certs and Roundcube
GNU General Public License v3.0
2 stars 1 forks source link

certbot sending logs to /var/log/letsencrypt instead of stdout #25

Closed montgomery-auber closed 1 year ago

montgomery-auber commented 1 year ago

the link to stderr is to the rotated file letsencrypt.log letsencrypt.log.1 /var/log/letsencrypt # ls -alt total 12 drwxr-xr-x 1 root root 54 Jan 25 18:23 . -rw-r--r-- 1 root root 12284 Jan 25 18:23 letsencrypt.log lrwxrwxrwx 1 root root 11 Jan 25 18:21 letsencrypt.log.1 -> /dev/stderr drwxr-xr-x 1 root root 25 Jan 25 18:21 .. /var/log/letsencrypt #

https://github.com/linuxserver/docker-letsencrypt/issues/488

montgomery-auber commented 1 year ago

The issue was logrotate, now set to 0 , all got fixed. the logrotate was rotating the logfile that had nothing and leaving the link to the renamed file, created ne file inside the container. https://github.com/montgomery-auber/postfix-containerized/commit/f0aaf469f5d6db718c9c67642b635589f417d27a