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

Cannot retrieve plugins in any browser

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Component/s: core
    • Environment:
    • Similar Issues:

      Description

      Vanilla install into tomcat. the rest of the functionality seems to be working fine. However the Plugin Manager has no updates or available plugins visible.

      When attempting to manually refresh get the following error:

      Stack trace

      java.io.IOException: Could not find JSON in http://updates.jenkins-ci.org/update-center.json?id=default&version=1.628
      at hudson.model.DownloadService.loadJSON(DownloadService.java:170)
      at hudson.model.UpdateSite.updateDirectlyNow(UpdateSite.java:170)
      at hudson.PluginManager.doCheckUpdatesServer(PluginManager.java:902)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:497)
      at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:298)
      at org.kohsuke.stapler.interceptor.RequirePOST$Processor.invoke(RequirePOST.java:46)
      at org.kohsuke.stapler.Function$InterceptedFunction.invoke(Function.java:399)
      at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:161)
      at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:96)
      at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:121)
      at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
      at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
      at org.kohsuke.stapler.MetaClass$3.doDispatch(MetaClass.java:183)
      at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
      at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:649)
      at org.kohsuke.stapler.Stapler.service(Stapler.java:238)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:132)
      at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:123)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:49)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
      at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
      at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:171)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:49)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      at org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:614)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
      at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:957)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:423)
      at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1079)
      at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:620)
      at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2516)
      at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2505)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
      at java.lang.Thread.run(Thread.java:745)

      Same browser hitting the same url returns a json object.

      so is the wget --trust-server-names http://updates.jenkins-ci.org/update-center.json?id=default&version=1.628

      results:

      -2015-09-09 02:11:38- http://updates.jenkins-ci.org/update-center.json?id=default
      Resolving updates.jenkins-ci.org (updates.jenkins-ci.org)... 199.193.196.24
      Connecting to updates.jenkins-ci.org (updates.jenkins-ci.org)|199.193.196.24|:80... connected.
      HTTP request sent, awaiting response... 302 Moved Temporarily
      Location: http://mirrors.jenkins-ci.org/updates/current/update-center.json [following]
      -2015-09-09 02:11:38- http://mirrors.jenkins-ci.org/updates/current/update-center.json
      Resolving mirrors.jenkins-ci.org (mirrors.jenkins-ci.org)... 199.193.196.24
      Connecting to mirrors.jenkins-ci.org (mirrors.jenkins-ci.org)|199.193.196.24|:80... connected.
      HTTP request sent, awaiting response... 302 Found
      Location: http://ftp-nyc.osuosl.org/pub/jenkins/updates/current/update-center.json [following]
      -2015-09-09 02:11:38- http://ftp-nyc.osuosl.org/pub/jenkins/updates/current/update-center.json
      Resolving ftp-nyc.osuosl.org (ftp-nyc.osuosl.org)... 64.50.233.100
      Connecting to ftp-nyc.osuosl.org (ftp-nyc.osuosl.org)|64.50.233.100|:80... connected.
      HTTP request sent, awaiting response... 200 OK
      Length: 935958 (914K) [application/json]
      Saving to: 'update-center.json'

      update-center.json 100%[===================================================>] 914.02K --.-KB/s in 0.1s

      2015-09-09 02:11:38 (6.82 MB/s) - 'update-center.json' saved [935958/935958]

      This is highly inconvenient as I need to install several plugins and mannualy resolving all the dependencies is a pain.

      Thanks,

      Nick

        Attachments

          Activity

          Hide
          danielbeck Daniel Beck added a comment -

          Is your network behind a proxy that sends user-friendly error messages rather than correct HTTP response codes when credentials etc. are invalid?

          Show
          danielbeck Daniel Beck added a comment - Is your network behind a proxy that sends user-friendly error messages rather than correct HTTP response codes when credentials etc. are invalid?
          Hide
          gtheraud Guillaume Théraud added a comment -

          Same issue when jenkins is connecting to FTP mirror.
          Fixed using another location mirror, which in this case is HTTP.

          Show
          gtheraud Guillaume Théraud added a comment - Same issue when jenkins is connecting to FTP mirror. Fixed using another location mirror, which in this case is HTTP.
          Hide
          jrogers Jonathan Rogers added a comment - - edited

          I recently started to encounter this problem somewhat intermittently, though it seems like I can successfully get updates less and less often. I'm running Jenkins 2.46.1 via the official Docker image (https://hub.docker.com/_/jenkins/). AFAIK, I haven't changed anything in Jenkins config WRT updates and the network configuration hasn't changed. From the same container where Jenkins is currently running, I can use wget and get JSON from the same URL Jenkins complained about:

           

          jenkins@jenkins-937955537-s4hss:/tmp$ wget 'http://updates.jenkins-ci.org/update-center.json?id=default&version=2.46.1'
          --2017-04-19 02:34:57-- http://updates.jenkins-ci.org/update-center.json?id=default&version=2.46.1
          Resolving updates.jenkins-ci.org (updates.jenkins-ci.org)... 52.202.51.185
          Connecting to updates.jenkins-ci.org (updates.jenkins-ci.org)|52.202.51.185|:80... connected.
          HTTP request sent, awaiting response... 301 Moved Permanently
          Location: http://updates.jenkins-ci.org/stable-2.46/update-center.json [following]
          --2017-04-19 02:34:57-- http://updates.jenkins-ci.org/stable-2.46/update-center.json
          Reusing existing connection to updates.jenkins-ci.org:80.
          HTTP request sent, awaiting response... 302 Found
          Location: http://mirrors.jenkins-ci.org/updates/stable-2.46/update-center.json [following]
          --2017-04-19 02:34:57-- http://mirrors.jenkins-ci.org/updates/stable-2.46/update-center.json
          Resolving mirrors.jenkins-ci.org (mirrors.jenkins-ci.org)... 52.202.51.185
          Reusing existing connection to updates.jenkins-ci.org:80.
          HTTP request sent, awaiting response... 302 Found
          Location: http://ftp-nyc.osuosl.org/pub/jenkins/updates/stable-2.46/update-center.json [following]
          --2017-04-19 02:34:57-- http://ftp-nyc.osuosl.org/pub/jenkins/updates/stable-2.46/update-center.json
          Resolving ftp-nyc.osuosl.org (ftp-nyc.osuosl.org)... 64.50.233.100, 2600:3404:200:237::2
          Connecting to ftp-nyc.osuosl.org (ftp-nyc.osuosl.org)|64.50.233.100|:80... connected.
          HTTP request sent, awaiting response... 200 OK
          Length: 1143681 (1.1M) [application/json]
          Saving to: ‘update-center.json?id=default&version=2.46.1’
          
          update-center.json?id=defaul 100%[==============================================>] 1.09M 908KB/s in 1.2s 
          
          2017-04-19 02:34:58 (908 KB/s) - ‘update-center.json?id=default&version=2.46.1’ saved [1143681/1143681]
          Show
          jrogers Jonathan Rogers added a comment - - edited I recently started to encounter this problem somewhat intermittently, though it seems like I can successfully get updates less and less often. I'm running Jenkins 2.46.1 via the official Docker image ( https://hub.docker.com/_/jenkins/) . AFAIK, I haven't changed anything in Jenkins config WRT updates and the network configuration hasn't changed. From the same container where Jenkins is currently running, I can use wget and get JSON from the same URL Jenkins complained about:   jenkins@jenkins-937955537-s4hss:/tmp$ wget 'http: //updates.jenkins-ci.org/update-center.json?id= default &version=2.46.1' --2017-04-19 02:34:57-- http: //updates.jenkins-ci.org/update-center.json?id= default &version=2.46.1 Resolving updates.jenkins-ci.org (updates.jenkins-ci.org)... 52.202.51.185 Connecting to updates.jenkins-ci.org (updates.jenkins-ci.org)|52.202.51.185|:80... connected. HTTP request sent, awaiting response... 301 Moved Permanently Location: http: //updates.jenkins-ci.org/stable-2.46/update-center.json [following] --2017-04-19 02:34:57-- http: //updates.jenkins-ci.org/stable-2.46/update-center.json Reusing existing connection to updates.jenkins-ci.org:80. HTTP request sent, awaiting response... 302 Found Location: http: //mirrors.jenkins-ci.org/updates/stable-2.46/update-center.json [following] --2017-04-19 02:34:57-- http: //mirrors.jenkins-ci.org/updates/stable-2.46/update-center.json Resolving mirrors.jenkins-ci.org (mirrors.jenkins-ci.org)... 52.202.51.185 Reusing existing connection to updates.jenkins-ci.org:80. HTTP request sent, awaiting response... 302 Found Location: http: //ftp-nyc.osuosl.org/pub/jenkins/updates/stable-2.46/update-center.json [following] --2017-04-19 02:34:57-- http: //ftp-nyc.osuosl.org/pub/jenkins/updates/stable-2.46/update-center.json Resolving ftp-nyc.osuosl.org (ftp-nyc.osuosl.org)... 64.50.233.100, 2600:3404:200:237::2 Connecting to ftp-nyc.osuosl.org (ftp-nyc.osuosl.org)|64.50.233.100|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 1143681 (1.1M) [application/json] Saving to: ‘update-center.json?id= default &version=2.46.1’ update-center.json?id=defaul 100%[==============================================>] 1.09M 908KB/s in 1.2s 2017-04-19 02:34:58 (908 KB/s) - ‘update-center.json?id= default &version=2.46.1’ saved [1143681/1143681]
          Hide
          danielbeck Daniel Beck added a comment -

          Does the same issue occur when configuring an HTTPS update site? (Same URL otherwise)

          Show
          danielbeck Daniel Beck added a comment - Does the same issue occur when configuring an HTTPS update site? (Same URL otherwise)
          Hide
          markewaite Mark Waite added a comment -

          Based on the long time since the last comment and the recent change from HTTP update center to HTTPS update center, I'm closing this issue.

          Show
          markewaite Mark Waite added a comment - Based on the long time since the last comment and the recent change from HTTP update center to HTTPS update center, I'm closing this issue.
          Hide
          jrogers Jonathan Rogers added a comment -

          Sorry for not responding earlier. I have not encountered the problem described in this issue for a couple of years. Unfortunately, I can't be sure what fixed it. I am now using an HTTPS update site URL, but I'm not sure when that changed. Was the default changed in a particular version of Jenkins?

          Since I last commented, I have also moved my Jenkins instance from running on a locally-managed network to Google Kubernetes Engine. It's possible that some network configuration in the local network or that of the local ISP was causing trouble.

          Show
          jrogers Jonathan Rogers added a comment - Sorry for not responding earlier. I have not encountered the problem described in this issue for a couple of years. Unfortunately, I can't be sure what fixed it. I am now using an HTTPS update site URL, but I'm not sure when that changed. Was the default changed in a particular version of Jenkins? Since I last commented, I have also moved my Jenkins instance from running on a locally-managed network to Google Kubernetes Engine. It's possible that some network configuration in the local network or that of the local ISP was causing trouble.

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            nrapopor Nick Rapoport
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: