[Pkg-giraffe-discuss] Getting autopkgtest for kopanocore working (finally)

Carsten Schoenert c.schoenert at t-online.de
Wed Dec 19 14:19:25 GMT 2018


Am 18.12.18 um 13:09 schrieb Carsten Schoenert:
...
> But piuparts is also not happy as the logrotate configuration for
> kopano-server did not have a 'missingok' and so logrotate is stopping
> with an error because there is simply no log file existing at this state.
> 
> https://piuparts.debian.org/sid/fail/kopano-server_8.6.90-1.log
> 
>> cat /etc/logrotate.d/kopano-server
>> /var/log/kopano/server.log {
>>   rotate 5
>>   weekly
>>   postrotate
>>     /usr/bin/killall -HUP kopano-server
>>   endscript
>> }
> 
> I'm wondering if this extra file is really needed as there is also the
> file /etc/logrotate.d/kopano (which comes from kopano-common) also holds
> a configuration for the server log. If I remove the dedicated file for
> kopano-server logrotate is working normally. If I add the missingok
> entry logrotate is complaining about double entries for
> /var/log/kopano/server.log of course.
> 
>> Dez 18 12:58:01 debian systemd[1]: Starting Rotate log files...
>> Dez 18 12:58:01 debian logrotate[5548]: error: kopano-server:1 duplicate log entry for /var/log/kopano/server.log
>> Dez 18 12:58:01 debian logrotate[5548]: error: found error in file kopano-server, skipping
>> Dez 18 12:58:01 debian systemd[1]: logrotate.service: Main process exited, code=exited, status=1/FAILURE
>> Dez 18 12:58:01 debian systemd[1]: logrotate.service: Failed with result 'exit-code'.
>> Dez 18 12:58:01 debian systemd[1]: Failed to start Rotate log files.
> 
> I vote for dropping the additional logrotate config file. To me it makes
> not really sense to have an extra file for kopano-server which also
> looks to me as written a bit on a rush compared to /etc/logrotate.d/kopano.
> 
> The log rotation for server.log and also audit.log from/e/l.d/kopano
> have a bit more options.
> 
>> /var/log/kopano/server.log /var/log/kopano/audit.log {
>>         weekly
>>         missingok
>>         rotate 52
>>         compress
>>         delaycompress
>>         notifempty
>>         postrotate
>> 			killall -HUP kopano-server 2> /dev/null || true
>>         endscript
>> }

Found the origin of this extra config, this was done by our self long
ago by adding a dedicated sequencer file kopano-server.logrotate.

I moved this file now.

-- 
Regards
Carsten Schoenert



More information about the Pkg-giraffe-discuss mailing list