Skip to main content

clobbering stale lock file

Comments

5 comments

  • cPanelMichael
    Hello, Can you let us know more information about the affected systems? EX: cat /etc/redhat-release cat /var/cpanel/envtype cat /usr/local/cpanel/version
    Thank you.
    0
  • keat63
    CentOs Release 6.9 (final) Standardroot@ 11.68.0.28 The error wasn't there this morning, but i'd still be interested to try and understand what it means.
    0
  • cPanelMichael
    Hello, Could you open a support ticket using the link in my signature so we can take a closer look? Thank you.
    0
  • keat63
    Request ID is: 9368553
    0
  • keat63
    Answer from Cpanel staff. The "UID 0 clobbering" warning means that when tailwatchd restarted a service, during the service restart it detected the service in question had lock files for a file or files the service or another process was writing to that referenced a non-existent process ID number. eg: [2018-02-12 09:53:35 +0000] warn [queueprocd] [2971] UID 0 clobbering stale lock file "??/etc/apache2/conf/httpd.conf.lock"?" (NAME "??/usr/local/cpanel/bin/safeapacherestart - safeaprestart - locking config"?", UID 0) written by PID 5833 at 1518428758 at /usr/local/cpanel/Cpanel/SafeFile.pm line 868. This would indicate the last time a change was made to the Apache configuration cPanel or another service placed a lock on that file to ensure nothing else would write to the file while the file was being changed. When the changes were complete the lock was never released for one reason or another but it's generally due to the process that created the lock ending prematurely. When the "safeaprestart" function was executed to restart Apache it detected the stale lock file on the httpd.conf file and logged a warning and then removed the lock file (clobbering) in order to allow Apache to start properly since it locks the file during service initialization to ensure no changes can be made to the config while it's loading: Basically, little to worry about
    0

Please sign in to leave a comment.