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

Could not attach 'plugins/active.txt' to support bundle

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      With Support Core plugin 2.42 I see exceptions:

      Could not attach 'plugins/active.txt' to support bundle
      java.lang.UnsupportedOperationException
      	at java.util.Collections$UnmodifiableList.sort(Unknown Source)
      	at java.util.Collections.sort(Unknown Source)
      	at com.cloudbees.jenkins.support.impl.AboutJenkins$ActivePlugins.printTo(AboutJenkins.java:709)
      	at com.cloudbees.jenkins.support.api.PrintedContent.writeTo(PrintedContent.java:47)
      	at com.cloudbees.jenkins.support.SupportPlugin.writeBundle(SupportPlugin.java:359)
      	at com.cloudbees.jenkins.support.SupportPlugin.writeBundle(SupportPlugin.java:273)
      	at com.cloudbees.jenkins.support.SupportPlugin$PeriodicWorkImpl$1.run(SupportPlugin.java:761)
      	at java.lang.Thread.run(Unknown Source)
      
      Nov 02, 2017 8:23:38 AM WARNING com.cloudbees.jenkins.support.SupportPlugin writeBundle
      Could not attach 'plugins/disabled.txt' to support bundle
      java.lang.UnsupportedOperationException
      	at java.util.Collections$UnmodifiableList.sort(Unknown Source)
      	at java.util.Collections.sort(Unknown Source)
      	at com.cloudbees.jenkins.support.impl.AboutJenkins$DisabledPlugins.printTo(AboutJenkins.java:727)
      	at com.cloudbees.jenkins.support.api.PrintedContent.writeTo(PrintedContent.java:47)
      	at com.cloudbees.jenkins.support.SupportPlugin.writeBundle(SupportPlugin.java:359)
      	at com.cloudbees.jenkins.support.SupportPlugin.writeBundle(SupportPlugin.java:273)
      	at com.cloudbees.jenkins.support.SupportPlugin$PeriodicWorkImpl$1.run(SupportPlugin.java:761)
      	at java.lang.Thread.run(Unknown Source)
      
      Nov 02, 2017 8:23:38 AM WARNING com.cloudbees.jenkins.support.SupportPlugin writeBundle
      Could not attach 'docker/Dockerfile' to support bundle
      java.lang.UnsupportedOperationException
      	at java.util.Collections$UnmodifiableList.sort(Unknown Source)
      	at java.util.Collections.sort(Unknown Source)
      	at com.cloudbees.jenkins.support.impl.AboutJenkins$Dockerfile.printTo(AboutJenkins.java:775)
      	at com.cloudbees.jenkins.support.api.PrintedContent.writeTo(PrintedContent.java:47)
      	at com.cloudbees.jenkins.support.SupportPlugin.writeBundle(SupportPlugin.java:359)
      	at com.cloudbees.jenkins.support.SupportPlugin.writeBundle(SupportPlugin.java:273)
      	at com.cloudbees.jenkins.support.SupportPlugin$PeriodicWorkImpl$1.run(SupportPlugin.java:761)
      	at java.lang.Thread.run(Unknown Source)
      

        Attachments

          Issue Links

            Activity

            Show
            escoem Emilio Escobar added a comment - - edited Hello David, can you confirm that you are running the last weekly available? Jenkins 2.87? This change has been introduced: https://github.com/jenkinsci/jenkins/blob/jenkins-2.87/core/src/main/java/hudson/PluginManager.java#L1130-L1133 https://github.com/jenkinsci/jenkins/commit/6e75f7349ccaa98afe5725ef974e89ab2e25e0e3 Which is not in the last LTS: https://github.com/jenkinsci/jenkins/blob/jenkins-2.73.2/core/src/main/java/hudson/PluginManager.java#L1133-L1138 And also is not at: https://github.com/jenkinsci/jenkins/blob/jenkins-2.86/core/src/main/java/hudson/PluginManager.java#L1133-L1138 For the line: https://github.com/jenkinsci/support-core-plugin/blob/support-core-2.42/src/main/java/com/cloudbees/jenkins/support/impl/AboutJenkins.java#L709
            Show
            escoem Emilio Escobar added a comment - https://github.com/jenkinsci/jenkins/pull/3109 and https://issues.jenkins-ci.org/browse/JENKINS-47713 causes this one
            Hide
            davida2009 David Aldrich added a comment -

            Hi Emilio, yes we are running Jenkins 2.87.

            Show
            davida2009 David Aldrich added a comment - Hi Emilio, yes we are running Jenkins 2.87.
            Hide
            escoem Emilio Escobar added a comment -

            PR-121 sent.

            Show
            escoem Emilio Escobar added a comment - PR-121 sent.
            Hide
            markewaite Mark Waite added a comment - - edited

            Emilio Escobar I'm seeing that same stack trace in 2.89.  I assume that is expected.

            Since 2.89 has been chosen as the next long term support release, should PR-121 be recommended for backporting to 2.89?

            Show
            markewaite Mark Waite added a comment - - edited Emilio Escobar I'm seeing that same stack trace in 2.89.  I assume that is expected. Since 2.89 has been chosen as the next long term support release, should PR-121  be recommended for backporting to 2.89?
            Hide
            escoem Emilio Escobar added a comment - - edited

            Hi Mark Waite, this is a support-core-plugin issue, not a core one, I'm just waiting for someone to merge https://github.com/jenkinsci/support-core-plugin/pull/121 and release the plugin.

            Show
            escoem Emilio Escobar added a comment - - edited Hi Mark Waite , this is a support-core-plugin issue, not a core one, I'm just waiting for someone to merge https://github.com/jenkinsci/support-core-plugin/pull/121 and release the plugin.
            Hide
            markewaite Mark Waite added a comment -

            Emilio Escobar thanks. I assumed the bug report was against the support-core-plugin, but mistakenly inferred that Jenkins core changes were needed since there were references to core changes.

            I've been testing the 2.89 weekly release since it is the version selected for the next long term support release. When I saw the same stack trace in 2.89 as had been reported in 2.87, I was worried that we'd deliver a long term support release which could not create fully detailed support bundles.

            Show
            markewaite Mark Waite added a comment - Emilio Escobar thanks. I assumed the bug report was against the support-core-plugin, but mistakenly inferred that Jenkins core changes were needed since there were references to core changes. I've been testing the 2.89 weekly release since it is the version selected for the next long term support release. When I saw the same stack trace in 2.89 as had been reported in 2.87, I was worried that we'd deliver a long term support release which could not create fully detailed support bundles.
            Hide
            escoem Emilio Escobar added a comment -

            Hi Mark Waite,

            _ I was worried that we'd deliver a long term support release which could not create fully detailed support bundles._

            In fact, it's going to happen until the PR is merged and the new version released.

            Show
            escoem Emilio Escobar added a comment - Hi Mark Waite , _ I was worried that we'd deliver a long term support release which could not create fully detailed support bundles._ In fact, it's going to happen until the PR is merged and the new version released.
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Emilio Escobar
            Path:
            src/main/java/com/cloudbees/jenkins/support/impl/AboutJenkins.java
            http://jenkins-ci.org/commit/support-core-plugin/f27bdd1c6ec8b8869526fb34ece86e689f46f492
            Log:
            JENKINS-47779 copy list before sorting

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Emilio Escobar Path: src/main/java/com/cloudbees/jenkins/support/impl/AboutJenkins.java http://jenkins-ci.org/commit/support-core-plugin/f27bdd1c6ec8b8869526fb34ece86e689f46f492 Log: JENKINS-47779 copy list before sorting
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Emilio Escobar
            Path:
            src/main/java/com/cloudbees/jenkins/support/impl/AboutJenkins.java
            http://jenkins-ci.org/commit/support-core-plugin/069fb03379d51f6784156e95dd153d4d2c6bfb0c
            Log:
            JENKINS-47779 comments addressed

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Emilio Escobar Path: src/main/java/com/cloudbees/jenkins/support/impl/AboutJenkins.java http://jenkins-ci.org/commit/support-core-plugin/069fb03379d51f6784156e95dd153d4d2c6bfb0c Log: JENKINS-47779 comments addressed
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Emilio Escobar
            Path:
            src/main/java/com/cloudbees/jenkins/support/impl/AboutJenkins.java
            http://jenkins-ci.org/commit/support-core-plugin/292dbb48f5c94528a34885ab6ef595a501c9869f
            Log:
            JENKINS-47779 why not

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Emilio Escobar Path: src/main/java/com/cloudbees/jenkins/support/impl/AboutJenkins.java http://jenkins-ci.org/commit/support-core-plugin/292dbb48f5c94528a34885ab6ef595a501c9869f Log: JENKINS-47779 why not
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Baptiste Mathus
            Path:
            src/main/java/com/cloudbees/jenkins/support/impl/AboutJenkins.java
            http://jenkins-ci.org/commit/support-core-plugin/eabbb45750fcfb43537f08fc2c0292b437baaf1e
            Log:
            Merge pull request #121 from escoem/JENKINS-47779

            [FIXED JENKINS-47779] Could not attach 'plugins/active.txt' to support bundle

            Compare: https://github.com/jenkinsci/support-core-plugin/compare/9fc6229ea50c...eabbb45750fc

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Baptiste Mathus Path: src/main/java/com/cloudbees/jenkins/support/impl/AboutJenkins.java http://jenkins-ci.org/commit/support-core-plugin/eabbb45750fcfb43537f08fc2c0292b437baaf1e Log: Merge pull request #121 from escoem/ JENKINS-47779 [FIXED JENKINS-47779] Could not attach 'plugins/active.txt' to support bundle Compare: https://github.com/jenkinsci/support-core-plugin/compare/9fc6229ea50c...eabbb45750fc
            Hide
            escoem Emilio Escobar added a comment -

            released as 2.43

            Show
            escoem Emilio Escobar added a comment - released as 2.43

              People

              Assignee:
              escoem Emilio Escobar
              Reporter:
              davida2009 David Aldrich
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: