• 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.

Forwarded to devs Rotation of files with multiple hard links is not allowed

Bitpalast

Plesk addicted!
Plesk Guru
Username:

TITLE

Rotation of files with multiple hard links is not allowed

PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE

CentOS 7.9 and CloudLinux 8.5, probably others, too
Obsidian 18.0.43_build1800220414.18 os_RedHat el8
Obsidian 18.0.43 #1 on CentOS 7.9

PROBLEM DESCRIPTION

as described in Issue - Rotation of files with multiple hard links is not allowed

Log rotation fails with
"log xxx has multiple (2) hard links. Rotating files with multiple hard links is not allowed"

STEPS TO REPRODUCE

Run
/usr/local/psa/logrotate/sbin/logrotate -v /usr/local/psa/etc/logrotate.d/<your_domain_name_here>

ACTUAL RESULT

No log rotation

EXPECTED RESULT

Correct rotation

ANY ADDITIONAL INFORMATION

Can only be resolved by adding "allowhardlink" to the log rotation configuration files.

YOUR EXPECTATIONS FROM PLESK SERVICE TEAM

Confirm bug
 
I have checked the servers here and found that on some servers the "allowhardlink" line was added to /usr/local/psa/etc/logrotate.conf, but on some others it was not added, although none are customized. It seems that for some reason the upgrades were unable to apply it to all logrotate.conf files on all servers.
 
on some servers the "allowhardlink" line was added to /usr/local/psa/etc/logrotate.conf.rpmnew !! but not to logrotate.conf
 
@Peter Debik there were found two issues:
  1. customized logrotate.conf isn't changed during the upgrade to 18.0.43 (fixed in 18.0.44, PPPM-13519)
  2. it isn't possible to perform rotation for a single domain using domain-related logrotate conf instead of a top-level one (filled PPPM-13562)
Thanks.
 
Is it possible that the daily log rotation is calling the individual logrotate.d/ files rather than the global logrotate.conf to effect each site's log rotation? Reason I ask is because we've been running into this issue across several servers and if I try to run the rotation at the site level via "/usr/local/psa/logrotate/sbin/logrotate -v -f /usr/local/psa/etc/logrotate.d/DOMAIN" it will fail with the hardlink error, and the allowhardlink statement is only in the global logrotate.conf file. If I run the same command against logrotate.conf, it will go through each domain successfully as it should.
 
This issue seems to be back since the latest update or the one before (45 or 46). At least for error_log we are experiencing this on some customer accounts. The logs are not rotated.
 
Peter, I think it will be better to submit a new report.
Thanks.
 
I don't have enough data to submit a new bug. I can see that it does not work despite "allowhardlink" in the general logrotate.conf file. All files are rotated, but error_log files are not. Same issue as before:
# /usr/local/psa/logrotate/sbin/logrotate -v /usr/local/psa/etc/logrotate.d/<your_domain_name_here>
(including nightly maintenance) does not rotate the error_log file, but
# logrotate -f /usr/local/psa/etc/logrotate.d/<your_domain_name_here>
does. I am not getting any error entries in the panel log or elsewhere (at least not where I'd know to look for them).
Neither
nor
fit. So not sure how to give developers a good start on it. At the moment I can only say that at least on some servers this is happening.
 
Back
Top