Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-20652

RPM package: logrotate not working

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major Major
    • core
    • None

      The RPM package includes a logrotate configuration. Unfortunately, it is not working. The log file is 0 byte after logrotate runs and nothing is logged any more.
      I think Jenkins does not get the signal from logrotate or does not cleanly reopen the log file.

      We have to restart the Jenkins process to get log messages again.

      [root@server ~]# ls -l /var/log/jenkins/
      total 8252
      rw-rr-. 1 jenkins jenkins 0 Nov 5 03:22 jenkins.log
      rw-rr-. 1 jenkins jenkins 527996 Sep 21 03:27 jenkins.log-20130921.gz
      rw-rr-. 1 jenkins jenkins 207705 Oct 4 03:24 jenkins.log-20131004.gz
      rw-rr-. 1 jenkins jenkins 787057 Oct 10 03:34 jenkins.log-20131010.gz

            Unassigned Unassigned
            gruberrolandfiducia Roland Gruber
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: