sogis / docker-qgis

MIT License
2 stars 1 forks source link

Apache log file rotation not working #3

Open schmandr opened 3 years ago

schmandr commented 3 years ago

The Apache log files are not rotated cleanly.

In the current production oereb-wms container the Apache service is running since February 17. The Apache log dir contains the following files:

ls -lh /var/log/apache2/
total 101M
-rw-r-----. 1 root adm    0 Feb 19 06:43 access.log
-rw-r-----. 1 root adm 101M Mar 15 15:01 access.log.1
-rw-r-----. 1 root adm    0 Feb 19 06:43 error.log
-rw-r-----. 1 root adm 7.1K Mar 12 15:37 error.log.1

So I assume there was one log rotation try on Feb. 19, but Apache continues writing into access.log.1 and error.log.1. Reason could be that Apache was not restarted after rotating the logs.

Check /etc/logrotate.d/apache2. I guess the invoke-rc.d apache2 status command does not execute successfully, and therefore the Apache restart is not performed.

edigonzales commented 3 years ago

Muss sich bitte jemand anderes drum kümmern. Ich bin da sicher der Falscheste.

schmandr commented 3 years ago

OK.

Startpunkt für denjenigen, der sich darum kümmert: https://github.com/phusion/baseimage-docker/issues/216. Das ist also auch schon anderen Usern aufgefallen. Im ersten und im letzten Kommentar sind Lösungsansätze beschrieben.