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

GitHub Branch Source Plugin v2.0.1 failed to load - SCM API Plugin v2.0.2-beta-2 is older than required. To fix, install v2.0.2 or later.

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • experimental

      $ lsb_release -a
      No LSB modules are available.
      Distributor ID: Debian
      Description: Debian GNU/Linux 8.7 (jessie)
      Release: 8.7
      Codename: jessie

      Jenkins ver. 2.32.2

      Hi,
      I've been using Blue ocean for a while and it's really great, looks way better! Lately, I wanted to upgrade to v1.0.0-b21

      I was on experimental update center and I had the following problem:
      JENKINS-32831 which leads to INFRA-1051 in the comments. I was able to upgrade mostly everything by switching temporarily to https://updates.jenkins-ci.org/update-center.json but now GitHub Branch Source Plugin and everything from Blue Ocean failed to install (that was expected, I installed the wrong version of SCM API Plugin (v1.3 from default update source).

      SCM API Plugin	 Already Installed
      GitHub Branch Source Plugin	
       Failure -
      java.io.IOException: Failed to dynamically deploy this plugin
      	at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:1895)
      	at hudson.model.UpdateCenter$DownloadJob.run(UpdateCenter.java:1652)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      	at hudson.remoting.AtmostOneThreadExecutor$Worker.run(AtmostOneThreadExecutor.java:110)
      	at java.lang.Thread.run(Thread.java:745)
      Caused by: java.io.IOException: Failed to install github-branch-source plugin
      	at hudson.PluginManager.dynamicLoad(PluginManager.java:873)
      	at hudson.PluginManager.dynamicLoad(PluginManager.java:813)
      	at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:1891)
      	... 5 more
      Caused by: java.io.IOException: GitHub Branch Source Plugin v2.0.1 failed to load.
       - SCM API Plugin v1.3 is older than required. To fix, install v2.0.2 or later.
      	at hudson.PluginWrapper.resolvePluginDependencies(PluginWrapper.java:621)
      	at hudson.PluginManager.dynamicLoad(PluginManager.java:863)
      	... 7 more
      

      I tried using https://updates.jenkins-ci.org/experimental/update-center.json again. Reinstalled v2.0.2 from the experimental:

      SCM API Plugin	 Already Installed
      GitHub Branch Source Plugin	
       Failure -
      java.io.IOException: Failed to dynamically deploy this plugin
      	at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:1895)
      	at hudson.model.UpdateCenter$DownloadJob.run(UpdateCenter.java:1652)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      	at hudson.remoting.AtmostOneThreadExecutor$Worker.run(AtmostOneThreadExecutor.java:110)
      	at java.lang.Thread.run(Thread.java:745)
      Caused by: java.io.IOException: Failed to install github-branch-source plugin
      	at hudson.PluginManager.dynamicLoad(PluginManager.java:873)
      	at hudson.PluginManager.dynamicLoad(PluginManager.java:813)
      	at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:1891)
      	... 5 more
      Caused by: java.io.IOException: GitHub Branch Source Plugin v2.0.1 failed to load.
       - SCM API Plugin v2.0.2-beta-2 is older than required. To fix, install v2.0.2 or later.
      	at hudson.PluginWrapper.resolvePluginDependencies(PluginWrapper.java:621)
      	at hudson.PluginManager.dynamicLoad(PluginManager.java:863)
      	... 7 more
      

      SCM API Plugin v2.0.2-beta-2 is older than required. To fix, install v2.0.2 or later.

      This doesn't really help

      From the top menu, I get the following red message:

      There are dependency errors loading some plugins:
      GitHub Pipeline for Blue Ocean v1.0.0-b21
      Pipeline REST API for Blue Ocean v1.0.0-b21 failed to load. Fix this plugin first.
      Git Pipeline for Blue Ocean v1.0.0-b21
      Pipeline REST API for Blue Ocean v1.0.0-b21 failed to load. Fix this plugin first.
      Events API for Blue Ocean v1.0.0-b21
      Pipeline REST API for Blue Ocean v1.0.0-b21 failed to load. Fix this plugin first.
      GitHub Branch Source Plugin v2.0.1
      SCM API Plugin v2.0.2-beta-2 is older than required. To fix, install v2.0.2 or later.
      Personalization for Blue Ocean v1.0.0-b21
      Events API for Blue Ocean v1.0.0-b21 failed to load. Fix this plugin first.
      Blue Ocean beta v1.0.0-b21
      GitHub Pipeline for Blue Ocean v1.0.0-b21 failed to load. Fix this plugin first.
      Pipeline: GitHub Groovy Libraries v1.0-beta-1
      GitHub Branch Source Plugin v2.0.0-beta-1 failed to load. Fix this plugin first.
      Pipeline GitHub Notify Step Plugin v1.0.1
      GitHub Branch Source Plugin v1.10.1 failed to load. Fix this plugin first.
      Pipeline REST API for Blue Ocean v1.0.0-b21
      GitHub Branch Source Plugin v1.8.1 failed to load. Fix this plugin first.
      Dashboard for Blue Ocean v1.0.0-b21
      Events API for Blue Ocean v1.0.0-b21 failed to load. Fix this plugin first.
      GitHub Organization Folder Plugin v1.6-beta-2
      GitHub Branch Source Plugin v2.0.0-beta-2 failed to load. Fix this plugin first.
      

          [JENKINS-41675] GitHub Branch Source Plugin v2.0.1 failed to load - SCM API Plugin v2.0.2-beta-2 is older than required. To fix, install v2.0.2 or later.

          Gabriel Le Breton added a comment - - edited

          I was able to reproduce this on a brand new jenkins installation of Jenkins ver. 2.32.1:

          1. Install jenkins

          docker run -p 8888:8080 jenkinsci/blueocean:latest
          

          2. Visit http://localhost:8888
          3. Normal Setup, install plugins, etc.
          4. Go to manage plugins, check all, upgrade. http://localhost:8888/pluginManager/
          5. Go to Advanced tab http://localhost:8888/pluginManager/advanced
          6. Set update URL to https://updates.jenkins-ci.org/experimental/update-center.json
          7. Check for updates http://localhost:8888/pluginManager/
          8. Check all
          9. Upgrade and restart.

          Gabriel Le Breton added a comment - - edited I was able to reproduce this on a brand new jenkins installation of Jenkins ver. 2.32.1 : 1. Install jenkins docker run -p 8888:8080 jenkinsci/blueocean:latest 2. Visit http://localhost:8888 3. Normal Setup, install plugins, etc. 4. Go to manage plugins, check all, upgrade. http://localhost:8888/pluginManager/ 5. Go to Advanced tab http://localhost:8888/pluginManager/advanced 6. Set update URL to https://updates.jenkins-ci.org/experimental/update-center.json 7. Check for updates http://localhost:8888/pluginManager/ 8. Check all 9. Upgrade and restart.

          Got it, Error message was quite right, the only problem is that the version isn't available yet here:
          http://mirrors.jenkins-ci.org/plugins/scm-api/

          But the version is available here:
          https://github.com/jenkinsci/scm-api-plugin/releases

          I grabbed 2.0.2 release, built it myself with maven and installed the hpi file. Everything started working again!
          Keep up the good work on Blue Ocean and sorry for the noise. I moved back to the stable release channel now.

          Gabriel Le Breton added a comment - Got it, Error message was quite right, the only problem is that the version isn't available yet here: http://mirrors.jenkins-ci.org/plugins/scm-api/ But the version is available here: https://github.com/jenkinsci/scm-api-plugin/releases I grabbed 2.0.2 release, built it myself with maven and installed the hpi file. Everything started working again! Keep up the good work on Blue Ocean and sorry for the noise. I moved back to the stable release channel now.

            gableroux Gabriel Le Breton
            gableroux Gabriel Le Breton
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: