• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • core
    • Any
      Observed in LTS 1.509.2, LTS 1.509.3, 1.528, 1.532-SNAPSHOT (private-09/12/2013 13:02 GMT-jenkins)

      Builds disappear from Jenkins some time after a project has been renamed.

      We upgraded from 1.492 on July 4th and then renamed one build. Four days later we realized the renamed build had lost some or all of its builds. We recovered the builds by reloading from disk this morning. Later in the afternoon, another project was renamed, and some of its builds went missing too.

      Here are the builds of the renamed job on disk:

      $ ls -l
      total 25
      lrwxrwxrwx 1 jenkins jenkins  19 Mar  1 13:29 1 -> 2013-03-01_13-29-26
      lrwxrwxrwx 1 jenkins jenkins  19 Mar  1 13:31 2 -> 2013-03-01_13-31-20
      drwxrwxr-x 3 jenkins jenkins 141 Jul  9 08:24 2013-03-01_13-29-26
      drwxrwxr-x 3 jenkins jenkins 141 Jul  9 08:24 2013-03-01_13-31-20
      drwxrwxr-x 3 jenkins jenkins 141 Jul  9 08:24 2013-03-01_13-32-42
      drwxrwxr-x 3 jenkins jenkins 141 Jul  9 08:24 2013-03-28_09-56-31
      drwxrwxr-x 3 jenkins jenkins 141 Jul  9 08:24 2013-03-28_10-02-11
      lrwxrwxrwx 1 jenkins jenkins  19 Mar  1 13:32 3 -> 2013-03-01_13-32-42
      lrwxrwxrwx 1 jenkins jenkins  19 Mar 28 09:56 4 -> 2013-03-28_09-56-31
      lrwxrwxrwx 1 jenkins jenkins  19 Mar 28 10:02 5 -> 2013-03-28_10-02-11
      lrwxrwxrwx 1 jenkins jenkins   1 Jul  9 14:23 lastFailedBuild -> 4
      lrwxrwxrwx 1 jenkins jenkins   1 Jul  9 14:23 lastStableBuild -> 5
      lrwxrwxrwx 1 jenkins jenkins   1 Jul  4 11:18 lastSuccessfulBuild -> 5
      lrwxrwxrwx 1 jenkins jenkins   2 Jul  9 14:23 lastUnstableBuild -> -1
      lrwxrwxrwx 1 jenkins jenkins   1 Jul  9 14:23 lastUnsuccessfulBuild -> 4
      

      The disk shows 5 builds, 1 through 5, but the GUI only shows 4 and 5, it is missing 1, 2, and 3.

      JENKINS-19650 contains steps to reliably reproduce the problem.

      How do I debug this? One thing looks odd: the dates on the symbolic links differ from the dates in the build history, and differ from the directories they actually link.

          [JENKINS-18678] Builds disappear some time after renaming job

          Martin d'Anjou created issue -
          Martin d'Anjou made changes -
          Description Original: Builds disappear from build history in Jenkins LTS 1.509.2.

          We upgraded from 1.492 on Thursday before a long weekend, so not much happened over the weekend. Four days later, that is today, we lost some builds. We recovered them by reloading from disk this morning. Later in the afternoon of the same day, a project was renamed, and some of its builds went missing.

          Here are the builds of the renamed job on disk:
          {noformat}
          $ ls -l
          total 25
          lrwxrwxrwx 1 jenkins jenkins 19 Mar 1 13:29 1 -> 2013-03-01_13-29-26
          lrwxrwxrwx 1 jenkins jenkins 19 Mar 1 13:31 2 -> 2013-03-01_13-31-20
          drwxrwxr-x 3 jenkins jenkins 141 Jul 9 08:24 2013-03-01_13-29-26
          drwxrwxr-x 3 jenkins jenkins 141 Jul 9 08:24 2013-03-01_13-31-20
          drwxrwxr-x 3 jenkins jenkins 141 Jul 9 08:24 2013-03-01_13-32-42
          drwxrwxr-x 3 jenkins jenkins 141 Jul 9 08:24 2013-03-28_09-56-31
          drwxrwxr-x 3 jenkins jenkins 141 Jul 9 08:24 2013-03-28_10-02-11
          lrwxrwxrwx 1 jenkins jenkins 19 Mar 1 13:32 3 -> 2013-03-01_13-32-42
          lrwxrwxrwx 1 jenkins jenkins 19 Mar 28 09:56 4 -> 2013-03-28_09-56-31
          lrwxrwxrwx 1 jenkins jenkins 19 Mar 28 10:02 5 -> 2013-03-28_10-02-11
          lrwxrwxrwx 1 jenkins jenkins 1 Jul 9 14:23 lastFailedBuild -> 4
          lrwxrwxrwx 1 jenkins jenkins 1 Jul 9 14:23 lastStableBuild -> 5
          lrwxrwxrwx 1 jenkins jenkins 1 Jul 4 11:18 lastSuccessfulBuild -> 5
          lrwxrwxrwx 1 jenkins jenkins 2 Jul 9 14:23 lastUnstableBuild -> -1
          lrwxrwxrwx 1 jenkins jenkins 1 Jul 9 14:23 lastUnsuccessfulBuild -> 4
          {noformat}

          How do I debug this? One thing looks odd: the dates on the symbolic links differ from the dates in the build history, and differ from the directories they actually link.
          New: Builds disappear from build history in Jenkins LTS 1.509.2.

          We upgraded from 1.492 on Thursday before a long weekend, so not much happened over the weekend. Four days later, that is today, we lost some builds. We recovered them by reloading from disk this morning. Later in the afternoon of the same day, a project was renamed, and some of its builds went missing.

          Here are the builds of the renamed job on disk:
          {noformat}
          $ ls -l
          total 25
          lrwxrwxrwx 1 jenkins jenkins 19 Mar 1 13:29 1 -> 2013-03-01_13-29-26
          lrwxrwxrwx 1 jenkins jenkins 19 Mar 1 13:31 2 -> 2013-03-01_13-31-20
          drwxrwxr-x 3 jenkins jenkins 141 Jul 9 08:24 2013-03-01_13-29-26
          drwxrwxr-x 3 jenkins jenkins 141 Jul 9 08:24 2013-03-01_13-31-20
          drwxrwxr-x 3 jenkins jenkins 141 Jul 9 08:24 2013-03-01_13-32-42
          drwxrwxr-x 3 jenkins jenkins 141 Jul 9 08:24 2013-03-28_09-56-31
          drwxrwxr-x 3 jenkins jenkins 141 Jul 9 08:24 2013-03-28_10-02-11
          lrwxrwxrwx 1 jenkins jenkins 19 Mar 1 13:32 3 -> 2013-03-01_13-32-42
          lrwxrwxrwx 1 jenkins jenkins 19 Mar 28 09:56 4 -> 2013-03-28_09-56-31
          lrwxrwxrwx 1 jenkins jenkins 19 Mar 28 10:02 5 -> 2013-03-28_10-02-11
          lrwxrwxrwx 1 jenkins jenkins 1 Jul 9 14:23 lastFailedBuild -> 4
          lrwxrwxrwx 1 jenkins jenkins 1 Jul 9 14:23 lastStableBuild -> 5
          lrwxrwxrwx 1 jenkins jenkins 1 Jul 4 11:18 lastSuccessfulBuild -> 5
          lrwxrwxrwx 1 jenkins jenkins 2 Jul 9 14:23 lastUnstableBuild -> -1
          lrwxrwxrwx 1 jenkins jenkins 1 Jul 9 14:23 lastUnsuccessfulBuild -> 4
          {noformat}

          The disk shows 5 builds, 1 through 5, but the GUI only shows 4 and 5, it is missing 1, 2, and 3.

          How do I debug this? One thing looks odd: the dates on the symbolic links differ from the dates in the build history, and differ from the directories they actually link.
          Martin d'Anjou made changes -
          Description Original: Builds disappear from build history in Jenkins LTS 1.509.2.

          We upgraded from 1.492 on Thursday before a long weekend, so not much happened over the weekend. Four days later, that is today, we lost some builds. We recovered them by reloading from disk this morning. Later in the afternoon of the same day, a project was renamed, and some of its builds went missing.

          Here are the builds of the renamed job on disk:
          {noformat}
          $ ls -l
          total 25
          lrwxrwxrwx 1 jenkins jenkins 19 Mar 1 13:29 1 -> 2013-03-01_13-29-26
          lrwxrwxrwx 1 jenkins jenkins 19 Mar 1 13:31 2 -> 2013-03-01_13-31-20
          drwxrwxr-x 3 jenkins jenkins 141 Jul 9 08:24 2013-03-01_13-29-26
          drwxrwxr-x 3 jenkins jenkins 141 Jul 9 08:24 2013-03-01_13-31-20
          drwxrwxr-x 3 jenkins jenkins 141 Jul 9 08:24 2013-03-01_13-32-42
          drwxrwxr-x 3 jenkins jenkins 141 Jul 9 08:24 2013-03-28_09-56-31
          drwxrwxr-x 3 jenkins jenkins 141 Jul 9 08:24 2013-03-28_10-02-11
          lrwxrwxrwx 1 jenkins jenkins 19 Mar 1 13:32 3 -> 2013-03-01_13-32-42
          lrwxrwxrwx 1 jenkins jenkins 19 Mar 28 09:56 4 -> 2013-03-28_09-56-31
          lrwxrwxrwx 1 jenkins jenkins 19 Mar 28 10:02 5 -> 2013-03-28_10-02-11
          lrwxrwxrwx 1 jenkins jenkins 1 Jul 9 14:23 lastFailedBuild -> 4
          lrwxrwxrwx 1 jenkins jenkins 1 Jul 9 14:23 lastStableBuild -> 5
          lrwxrwxrwx 1 jenkins jenkins 1 Jul 4 11:18 lastSuccessfulBuild -> 5
          lrwxrwxrwx 1 jenkins jenkins 2 Jul 9 14:23 lastUnstableBuild -> -1
          lrwxrwxrwx 1 jenkins jenkins 1 Jul 9 14:23 lastUnsuccessfulBuild -> 4
          {noformat}

          The disk shows 5 builds, 1 through 5, but the GUI only shows 4 and 5, it is missing 1, 2, and 3.

          How do I debug this? One thing looks odd: the dates on the symbolic links differ from the dates in the build history, and differ from the directories they actually link.
          New: Builds disappear from build history in Jenkins LTS 1.509.2.

          We upgraded from 1.492 on July 4th and then renamed some builds. Four days later we realized the renamed builds had gone missing. We recovered them by reloading from disk this morning. Later in the afternoon, another project was renamed, and some of its builds went missing too.

          Here are the builds of the renamed job on disk:
          {noformat}
          $ ls -l
          total 25
          lrwxrwxrwx 1 jenkins jenkins 19 Mar 1 13:29 1 -> 2013-03-01_13-29-26
          lrwxrwxrwx 1 jenkins jenkins 19 Mar 1 13:31 2 -> 2013-03-01_13-31-20
          drwxrwxr-x 3 jenkins jenkins 141 Jul 9 08:24 2013-03-01_13-29-26
          drwxrwxr-x 3 jenkins jenkins 141 Jul 9 08:24 2013-03-01_13-31-20
          drwxrwxr-x 3 jenkins jenkins 141 Jul 9 08:24 2013-03-01_13-32-42
          drwxrwxr-x 3 jenkins jenkins 141 Jul 9 08:24 2013-03-28_09-56-31
          drwxrwxr-x 3 jenkins jenkins 141 Jul 9 08:24 2013-03-28_10-02-11
          lrwxrwxrwx 1 jenkins jenkins 19 Mar 1 13:32 3 -> 2013-03-01_13-32-42
          lrwxrwxrwx 1 jenkins jenkins 19 Mar 28 09:56 4 -> 2013-03-28_09-56-31
          lrwxrwxrwx 1 jenkins jenkins 19 Mar 28 10:02 5 -> 2013-03-28_10-02-11
          lrwxrwxrwx 1 jenkins jenkins 1 Jul 9 14:23 lastFailedBuild -> 4
          lrwxrwxrwx 1 jenkins jenkins 1 Jul 9 14:23 lastStableBuild -> 5
          lrwxrwxrwx 1 jenkins jenkins 1 Jul 4 11:18 lastSuccessfulBuild -> 5
          lrwxrwxrwx 1 jenkins jenkins 2 Jul 9 14:23 lastUnstableBuild -> -1
          lrwxrwxrwx 1 jenkins jenkins 1 Jul 9 14:23 lastUnsuccessfulBuild -> 4
          {noformat}

          The disk shows 5 builds, 1 through 5, but the GUI only shows 4 and 5, it is missing 1, 2, and 3.

          How do I debug this? One thing looks odd: the dates on the symbolic links differ from the dates in the build history, and differ from the directories they actually link.
          Martin d'Anjou made changes -
          Description Original: Builds disappear from build history in Jenkins LTS 1.509.2.

          We upgraded from 1.492 on July 4th and then renamed some builds. Four days later we realized the renamed builds had gone missing. We recovered them by reloading from disk this morning. Later in the afternoon, another project was renamed, and some of its builds went missing too.

          Here are the builds of the renamed job on disk:
          {noformat}
          $ ls -l
          total 25
          lrwxrwxrwx 1 jenkins jenkins 19 Mar 1 13:29 1 -> 2013-03-01_13-29-26
          lrwxrwxrwx 1 jenkins jenkins 19 Mar 1 13:31 2 -> 2013-03-01_13-31-20
          drwxrwxr-x 3 jenkins jenkins 141 Jul 9 08:24 2013-03-01_13-29-26
          drwxrwxr-x 3 jenkins jenkins 141 Jul 9 08:24 2013-03-01_13-31-20
          drwxrwxr-x 3 jenkins jenkins 141 Jul 9 08:24 2013-03-01_13-32-42
          drwxrwxr-x 3 jenkins jenkins 141 Jul 9 08:24 2013-03-28_09-56-31
          drwxrwxr-x 3 jenkins jenkins 141 Jul 9 08:24 2013-03-28_10-02-11
          lrwxrwxrwx 1 jenkins jenkins 19 Mar 1 13:32 3 -> 2013-03-01_13-32-42
          lrwxrwxrwx 1 jenkins jenkins 19 Mar 28 09:56 4 -> 2013-03-28_09-56-31
          lrwxrwxrwx 1 jenkins jenkins 19 Mar 28 10:02 5 -> 2013-03-28_10-02-11
          lrwxrwxrwx 1 jenkins jenkins 1 Jul 9 14:23 lastFailedBuild -> 4
          lrwxrwxrwx 1 jenkins jenkins 1 Jul 9 14:23 lastStableBuild -> 5
          lrwxrwxrwx 1 jenkins jenkins 1 Jul 4 11:18 lastSuccessfulBuild -> 5
          lrwxrwxrwx 1 jenkins jenkins 2 Jul 9 14:23 lastUnstableBuild -> -1
          lrwxrwxrwx 1 jenkins jenkins 1 Jul 9 14:23 lastUnsuccessfulBuild -> 4
          {noformat}

          The disk shows 5 builds, 1 through 5, but the GUI only shows 4 and 5, it is missing 1, 2, and 3.

          How do I debug this? One thing looks odd: the dates on the symbolic links differ from the dates in the build history, and differ from the directories they actually link.
          New: Builds disappear from build history in Jenkins LTS 1.509.2.

          We upgraded from 1.492 on July 4th and then renamed one build. Four days later we realized the renamed build had lost some or all of its history. We recovered the history by reloading from disk this morning. Later in the afternoon, another project was renamed, and some of its build history went missing too.

          Here are the builds of the renamed job on disk:
          {noformat}
          $ ls -l
          total 25
          lrwxrwxrwx 1 jenkins jenkins 19 Mar 1 13:29 1 -> 2013-03-01_13-29-26
          lrwxrwxrwx 1 jenkins jenkins 19 Mar 1 13:31 2 -> 2013-03-01_13-31-20
          drwxrwxr-x 3 jenkins jenkins 141 Jul 9 08:24 2013-03-01_13-29-26
          drwxrwxr-x 3 jenkins jenkins 141 Jul 9 08:24 2013-03-01_13-31-20
          drwxrwxr-x 3 jenkins jenkins 141 Jul 9 08:24 2013-03-01_13-32-42
          drwxrwxr-x 3 jenkins jenkins 141 Jul 9 08:24 2013-03-28_09-56-31
          drwxrwxr-x 3 jenkins jenkins 141 Jul 9 08:24 2013-03-28_10-02-11
          lrwxrwxrwx 1 jenkins jenkins 19 Mar 1 13:32 3 -> 2013-03-01_13-32-42
          lrwxrwxrwx 1 jenkins jenkins 19 Mar 28 09:56 4 -> 2013-03-28_09-56-31
          lrwxrwxrwx 1 jenkins jenkins 19 Mar 28 10:02 5 -> 2013-03-28_10-02-11
          lrwxrwxrwx 1 jenkins jenkins 1 Jul 9 14:23 lastFailedBuild -> 4
          lrwxrwxrwx 1 jenkins jenkins 1 Jul 9 14:23 lastStableBuild -> 5
          lrwxrwxrwx 1 jenkins jenkins 1 Jul 4 11:18 lastSuccessfulBuild -> 5
          lrwxrwxrwx 1 jenkins jenkins 2 Jul 9 14:23 lastUnstableBuild -> -1
          lrwxrwxrwx 1 jenkins jenkins 1 Jul 9 14:23 lastUnsuccessfulBuild -> 4
          {noformat}

          The disk shows 5 builds, 1 through 5, but the GUI only shows 4 and 5, it is missing 1, 2, and 3.

          How do I debug this? One thing looks odd: the dates on the symbolic links differ from the dates in the build history, and differ from the directories they actually link.

          Martin d'Anjou added a comment - - edited

          I am observing that the Jenkins GUI only shows the 2 most recent builds in the build history. I am up to build 16, and Jenkins only shows builds 15 and 16 in the build history.

          Martin d'Anjou added a comment - - edited I am observing that the Jenkins GUI only shows the 2 most recent builds in the build history. I am up to build 16, and Jenkins only shows builds 15 and 16 in the build history.

          do you have any errors in jenkins.log?

          Kanstantsin Shautsou added a comment - do you have any errors in jenkins.log?

          Oleg Nenashev added a comment -

          In the my case, there's no builds in history after renaming.
          Configuration reload works well, but bug is really annoying.

          Symlinks are corrupted as well:
          lrwxrwxrwx 1 jenkins synopsys 2 Aug 19 00:55 lastFailedBuild -> -1
          lrwxrwxrwx 1 jenkins synopsys 2 Aug 23 07:25 lastStableBuild -> -1
          lrwxrwxrwx 1 jenkins synopsys 2 Aug 23 00:50 lastSuccessfulBuild -> -1
          lrwxrwxrwx 1 jenkins synopsys 2 Aug 19 00:55 lastUnstableBuild -> -1
          lrwxrwxrwx 1 jenkins synopsys 2 Aug 19 00:55 lastUnsuccessfulBuild -> -1

          Oleg Nenashev added a comment - In the my case, there's no builds in history after renaming. Configuration reload works well, but bug is really annoying. Symlinks are corrupted as well: lrwxrwxrwx 1 jenkins synopsys 2 Aug 19 00:55 lastFailedBuild -> -1 lrwxrwxrwx 1 jenkins synopsys 2 Aug 23 07:25 lastStableBuild -> -1 lrwxrwxrwx 1 jenkins synopsys 2 Aug 23 00:50 lastSuccessfulBuild -> -1 lrwxrwxrwx 1 jenkins synopsys 2 Aug 19 00:55 lastUnstableBuild -> -1 lrwxrwxrwx 1 jenkins synopsys 2 Aug 19 00:55 lastUnsuccessfulBuild -> -1

          I'm seeing this on 1.528 as well. Has something to do with renaming jobs. After reloading configuration from disk build history shows all missing builds.

          Samuli Saarinen added a comment - I'm seeing this on 1.528 as well. Has something to do with renaming jobs. After reloading configuration from disk build history shows all missing builds.

          David Ishee added a comment - - edited

          I'm seeing this in LTS 1.509.3 too. When I look at the jobs directory for this job, I see some bad symbolic links:

          lastFailedBuild -> -1
          lastStableBuild -> -1
          lastSuccessfulBuild -> -1
          lastUnstableBuild -> -1
          lastUnsuccessfulBuild -> -1
          

          Reloading the configuration from disk made the history come back.

          David Ishee added a comment - - edited I'm seeing this in LTS 1.509.3 too. When I look at the jobs directory for this job, I see some bad symbolic links: lastFailedBuild -> -1 lastStableBuild -> -1 lastSuccessfulBuild -> -1 lastUnstableBuild -> -1 lastUnsuccessfulBuild -> -1 Reloading the configuration from disk made the history come back.
          Daniel Beck made changes -
          Link New: This issue is duplicated by JENKINS-19650 [ JENKINS-19650 ]

            oleg_nenashev Oleg Nenashev
            deepchip Martin d'Anjou
            Votes:
            15 Vote for this issue
            Watchers:
            29 Start watching this issue

              Created:
              Updated:
              Resolved: