• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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