• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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