• 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!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • 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.

Issue Backup warnings caused by webstat log files

joshuao

New Pleskian
Hi,

I am getting the following warnings during the server backup process (Server Management > Tools & Settings > Backup Manager):

Code:
Warning: Subscription "example-domain.com"
Not all the data from /var/www/vhosts/example-domain.com was backed up successfully:
  second-domain.com/logs/access_log.webstat: Cannot open: Permission denied
  second-domain.com/logs/access_ssl_log.webstat: Cannot open: Permission denied

The problem seems to affect all 'secondary' subscription domains. i.e.

Subscription: example-domain.com
  • Domain: example-domain.com ('primary'). Log path /var/www/vhosts/example-domain.com/logs/access_*log.webstat - no backup warnings
  • Domain: second-domain.com ('secondary'). Log path /var/www/vhosts/example-domain.com/second-domain.com/logs/access_*log.webstat - generates backup warnings
  • Domain: third-domain.com ('secondary'). Log path /var/www/vhosts/example-domain.com/second-domain.com/logs/access_*log.webstat - untested (all subscriptions currently only have one or two domains associated)
I have compared the ownership, permissions and attributes of the log directories and files and they are exactly the same. I have also run the plesk repair fs domain.com utility for both domains and no issues were found.

Any advice?
 
A single repair does not fix this. Everytime the files are generated or modified, the same permission issue re-appears, causing daily warnings in the backups.
 
As a workaround for the moment, does the "Exclude log files" option still cause these files to throw the permission issue in the backup log?
 
It does throw the error in the general full server backup, although we don't store log files in that backup.
 
Instead of using the repair service, have you tried running this command?

Code:
# find /var/www/vhosts/domaingeneratingtheerror.com/logs/ -type f -a -not -perm 644 -exec chmod 644 {} \;
 
Thank you. However, it's not so much about finding the accounts. The problem is that despite the "Exclude log files" being checked, Plesk attempts the back-up. We had set-up a cron job that restores other permissions, but it seems that shortly before the backup is attempted, permissions are set to 0400, so that this does not mitigate it.

I have now filed a bug report, because the issue appears randomly across servers and subscriptions. It neither affects all servers, nor all subscriptions. Just a very few from time to time.
 
After detailed analysis in our latest case we found that the customer has been interfering with the files. So third-party scripts have been causing the issue, not the Plesk backup. I have updated the bug report accordingly, no further action is needed.
 
Back
Top