Symptoms
An error like the following is reported for the WP Toolkit logrotate task.
logrotate -dv /etc/logrotate.conf \n error: wp-toolkit-action-logs-wpt-tmp-S6mGyGJycgfjj57M.:1 duplicate log entry for /home/cpuser/logs/wpt_action_logs/action_log__domain.com__13a99dg1-b8r1-55ok-b1r6-k97pq8l32aa.log
error: found error in file wp-toolkit-action-logs-wpt-tmp-S6mGyGJycgfjj57M., skipping
Description
This error is caused by a temporary logrotate configuration file that was not removed as expected by the Toolkit file transporter. This is an unexpected condition that can rarely occur during transport.
The WP Toolkit developers have filed the case ID EXTWPTOOLK-7675 to resolve this issue. Follow this article to receive an email notification when any updates or solutions are added to this article.
Workaround
The transport failure is not expected to be a repeat issue, so the temporary file can be removed manually to resolve this error. The file will be located within the directory '/etc/logrotate.d/'. The name of the file that needs to be removed will be reported in the error.
Using the example in this ticket, the following command would address it.
rm "/etc/logrotate.d/wp-toolkit-action-logs-wpt-tmp-S6mGyGJycgfjj57M."
Comments
0 comments
Article is closed for comments.