• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Resolved Logs Rotation Not Working & unmatched single quote

Bobbbb

Regular Pleskian
Hello,

We're using Plesk 11 with a planned migration before the end of the year. A customer complained his log files are not rotating, causing his disk usage to increase. After checking, we noticed that there is one large log file going back many months. Setting the logs to rotate by size or time doesn't make a difference.

While trying the steps found at https://kb.plesk.com/en/124610 we get the following output...

Code:
# mv /usr/local/psa/var/logrotate.status /usr/local/psa/var/logrotate.status_old
# /usr/local/psa/bin/sw-engine-pleskrun /usr/local/psa/admin/plib/DailyMaintainance/script.php
xargs: unmatched single quote; by default quotes are special to xargs unless you use the -0 option

The /usr/local/psa/var/logrotate.status file appears to be recreated and we will wait several days to see if the logs start rotating.

My current question is, should we be concerned by the xargs error message that is displayed when manually running the daily maintenance script? Could that be the cause of the log rotation issue? If so, how might we fix it?
 
Hi Bobbbb,

xargs: unmatched single quote; by default quotes are special to xargs unless you use the -0 option
This might be a bug, according to => #7 <=

... but he provides as well the steps how he managed to get rid of the error message there. ( I hope that helps ^^ )
 
Hi Bobbbb,

did you try the solution from => #7 ? If not, pls. post the content of "/usr/local/psa/etc/awstats/awstats.xn-DOMAIN.TLD-http.conf" for further investigations.
 
Hi Bobbbb,

did you try the solution from => #7 ? If not, pls. post the content of "/usr/local/psa/etc/awstats/awstats.xn-DOMAIN.TLD-http.conf" for further investigations.

No, I didn't. The SiteDomain="domain.tld" line was there, and I wasn't having trouble with awstats, only log rotation, so I considered that post to not be relevant.
 
Hi Bobbbb,

somewhere between, either inside "/usr/local/psa/bin/sw-engine-pleskrun /usr/local/psa/admin/plib/DailyMaintainance/script.php", or in the depending configuration files that are called by "script.php" is an error, that results in the error message "xargs: ... ". You should investigate your domain - specific configuration files now, to find out, where the misconfiguration exists... I just started with the above mentioned one. ^^ ( hint: keep an eye on for example "" or '' - using "find" or "grep" - commands might help you to find the misconfiguration and will save you a lot of time. :) )
 
Back
Top