• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

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