Print

Print


I have some new input concerning this : it can be reproduced without xrootd being even restarted, as is proven on this machine (lxbre43a05) :
# ls -alrt /var/log/xrootd/ | grep log
prw-------.  1 root   root       0 Mar 10  2015 .xrootd.log
-rw-r--r--.  1 root   root    1325 Mar 12  2015 xrootd.log.1
-rw-r--r--.  1 root   root       5 Jan 22 03:37 .*.log
# ps auxf | grep xroo[t]
stage    198202  0.0  0.0 579880 15956 ?        Sl    2015   0:16 /usr/bin/xrootd -l /var/log/xrootd/xrootd.log -c /etc/xrd.cf.server -k fifo -b -s /var/run/xrootd/xrootd-server.pid -n server

After some digging with Michal, we've found out 3 issues : 
  - a bug in logrotate by which the given regexp is considered for log rotation if no expansion of it is existing, this explains why *.log is considered when no .log file exists. Not fixed to my knowledge
  - a bug in logrotate (https://fedorahosted.org/logrotate/ticket/8) by which the postrotate script is called for files not rotated. So now we call the postrotate for *.log. This has been fixed (https://fedorahosted.org/logrotate/changeset/403) and is available in logrotate 3.8.4. So CC7 is immune and slc6 should probably upgrade from 3.7.8, that is 7 years old !?!?!
  - a bug in the postrotate of xrootd by which the file name is expanded in the -p check while it should not be. So double quotes need to be added.

Last one can be easily done and fixes all issues.



---
Reply to this email directly or view it on GitHub:
https://github.com/xrootd/xrootd/issues/302#issuecomment-174455409

########################################################################
Use REPLY-ALL to reply to list

To unsubscribe from the XROOTD-DEV list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-DEV&A=1