• Debian 11 is approaching its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.80 will be the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

sw-engine.log file massive and not rotating

websavers

Regular Pleskian
Hey everyone,

We've got a number of servers with Plesk panel, making use of php-fpm and nginx processing. All (or very close to all) of them are running 11.5.30 Update #48.

Just before migrating a few of these servers, I've discovered that the file /var/log/sw-cp-server/sw-engine.log is typically massive (20-50GB) causing IO performance issues and, of course, creating longer than necessary migrations.

We've taken to simply nulling the log file with cat /dev/null > /var/log/sw-cp-server/sw-engine.log, however I don't want to be constantly having to do this on a regular basis. Shouldn't this file be automatically rotating?

Is this a bug in Plesk that the devs forgot to add this file to logrotate?
 
Log rotation parameters for Plesk services are defined in the /usr/local/psa/etc/logrotate.conf configuration file. As you can see file /var/log/sw-cp-server/sw-engine.log is not specified there. Only /var/log/sw-cp-server/error_log. You can try to add rotation for /var/log/sw-cp-server/sw-engine.log there and run daily maintenance script with

# /usr/local/psa/bin/sw-engine-pleskrun /usr/local/psa/admin/plib/DailyMaintainance/script.php

for checking results.
 
Igor,

That fixed it! I added it to the logrotate.conf file for Plesk and now it's rotating properly. Shouldn't this be there already though? After all, that's a Plesk log file (isn't it?)
 
Back
Top