+++ This bug was initially created as a clone of Bug #860036 +++ Description of problem: Based on bug: https://bugzilla.redhat.com/show_bug.cgi?id=860036 After installing Jenkins cartridge, one needs to go to Manage Jenkins -> Manage Plugins -> Advanced, at buttom right click "Check now" to update jenkins. After this is done, the available tab populates plugins which can be installed/managed. "Check Now" button strangely works only in Firefox and NOT in Chrome and IE 9. Personally, I ran into the same and user confirmed it too. See: https://openshift.redhat.com/community/forums/openshift/cannot-install-jenkins-plugins#comment-26279 Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. Create Jenkins application 2. Go to "Manage plug-ins -> Available" 3. Go to "Manage Jenkins" Actual results: Expected results:
I just tested Firefox and IE against a devenv and STG. All combinations populate the plugin list although it can take a long time to populate (several minutes in some cases). I am unable to test Chrome since it doesn't play nicely with the proxy.
Please refer to the details tested against on chrome and firefox with devenv_2681 as below: Firefox 12: 1. Create Jenkins application 2. Go to "Manage plug-ins -> Available" 3. Chosse "Advanced" tab and click "check now" 4. Go back to check "Manage plug-ins -> Available" Actual results: To step2: It's empty at the begining. To step4: The plugins are listed under "Available" tab after checking updates done. Chrome 22: 1. Create Jenkins application 2. Go to "Manage plug-ins -> Available" 3. Chosse "Advanced" tab and click "check now" Actual results: To step2: It's empty. To step3: Checking updates can't be done and no plugin listed under "Available" tab.
For Chrome, what are you setting so that the browser allows you to get through the certificate issues with using the file.rdu.redhat.com proxy?
Was able to get Chrome to get passed the cert issue via the crazy "proceed" workaround. Does look like there's an issue with Chrome - the plugin list is not populating. No idea why the browser would matter as the behavior of Jenkins appears to be consistent (i.e. we see the "Checking for updates" page)
If the plugins are populated from FF then they become visible in Chrome.
(In reply to comment #5) > Yes, that's the workaround I have been proposing to users.
Periodically see this "Caused by: net.sf.json.JSONException: Unterminated string at character" during the update. Should see this "INFO: Obtained the latest update center data file for UpdateSource default" Looks like the returning JSON is sometimes cutoff and fails the update. Regardless of browser.
Have no explanation for it but neither of the above log entries ever occurs with Chrome.
Looks like Chrome is holding something open to the server that is preventing the update call. When Chrome is stopped then I see the attempt although it still fails to populate.
If you are using FF version 23 and check for updates is not working then you should check your Mixed Content Blocker settings. See more details at: https://blog.mozilla.org/tanvi/2013/04/10/mixed-content-blocking-enabled-in-firefox-23/
If you go to Manage Jenkins -> System Log -> All jenkins logs, you probably will see below Sep 29, 2013 8:33:36 PM hudson.model.ComputerSet <clinit> WARNING: Failed to instantiate NodeMonitors hudson.util.IOException2: Unable to read /var/lib/jenkins/nodeMonitors.xml at hudson.XmlFile.read(XmlFile.java:145) at hudson.model.ComputerSet.<clinit>(ComputerSet.java:410) at hudson.model.OverallLoadStatistics.computeTotalExecutors(OverallLoadStatistics.java:63) at hudson.model.LoadStatistics.updateExecutorCounts(LoadStatistics.java:188) at hudson.model.LoadStatistics$LoadStatisticsUpdater.doRun(LoadStatistics.java:226) at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:54) at java.util.TimerThread.mainLoop(Timer.java:555) at java.util.TimerThread.run(Timer.java:505) Caused by: com.thoughtworks.xstream.io.StreamException: : input contained no data at com.thoughtworks.xstream.io.xml.XppReader.pullNextEvent(XppReader.java:126) at com.thoughtworks.xstream.io.xml.AbstractPullReader.readRealEvent(AbstractPullReader.java:148) at com.thoughtworks.xstream.io.xml.AbstractPullReader.readEvent(AbstractPullReader.java:141) at com.thoughtworks.xstream.io.xml.AbstractPullReader.move(AbstractPullReader.java:118) at com.thoughtworks.xstream.io.xml.AbstractPullReader.moveDown(AbstractPullReader.java:103) at com.thoughtworks.xstream.io.xml.XppReader.<init>(XppReader.java:63) at com.thoughtworks.xstream.io.xml.AbstractXppDriver.createReader(AbstractXppDriver.java:54) at com.thoughtworks.xstream.io.xml.AbstractXppDriver.createReader(AbstractXppDriver.java:65) at com.thoughtworks.xstream.XStream.fromXML(XStream.java:925) at hudson.XmlFile.read(XmlFile.java:143) ... 7 more Caused by: java.io.EOFException: input contained no data at org.xmlpull.mxp1.MXParser.fillBuf(MXParser.java:3003) at org.xmlpull.mxp1.MXParser.more(MXParser.java:3046) at org.xmlpull.mxp1.MXParser.parseProlog(MXParser.java:1410) at org.xmlpull.mxp1.MXParser.nextImpl(MXParser.java:1395) at org.xmlpull.mxp1.MXParser.next(MXParser.java:1093) at com.thoughtworks.xstream.io.xml.XppReader.pullNextEvent(XppReader.java:109) ... 16 more Sep 29, 2013 8:33:36 PM hudson.WebAppMain$2 run INFO: Jenkins is fully up and running Sep 29, 2013 8:33:36 PM hudson.TcpSlaveAgentListener <init> INFO: JNLP slave agent listener started on TCP port 60874 Sep 29, 2013 8:33:36 PM jenkins.InitReactorRunner$1 onAttained INFO: Completed initialization Sep 29, 2013 8:33:36 PM org.jenkinsci.main.modules.sshd.SSHD start INFO: Started SSHD at port 51148 Sep 29, 2013 8:33:34 PM jenkins.InitReactorRunner$1 onAttained INFO: Loaded all jobs Sep 29, 2013 8:33:27 PM jenkins.InitReactorRunner$1 onAttained INFO: Augmented all extensions Sep 29, 2013 8:33:27 PM hudson.model.UpdateCenter load WARNING: Failed to load /var/lib/jenkins/hudson.model.UpdateCenter.xml hudson.util.IOException2: Unable to read /var/lib/jenkins/hudson.model.UpdateCenter.xml at hudson.XmlFile.unmarshal(XmlFile.java:168) at hudson.model.UpdateCenter.load(UpdateCenter.java:533) at hudson.model.UpdateCenter.init(UpdateCenter.java:1546) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at hudson.init.InitializerFinder.invoke(InitializerFinder.java:120) at hudson.init.InitializerFinder$TaskImpl.run(InitializerFinder.java:184) at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:259) at jenkins.model.Jenkins$7.runTask(Jenkins.java:893) at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:187) at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:94) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:724) Caused by: com.thoughtworks.xstream.io.StreamException: : input contained no data at com.thoughtworks.xstream.io.xml.XppReader.pullNextEvent(XppReader.java:126) at com.thoughtworks.xstream.io.xml.AbstractPullReader.readRealEvent(AbstractPullReader.java:148) at com.thoughtworks.xstream.io.xml.AbstractPullReader.readEvent(AbstractPullReader.java:141) at com.thoughtworks.xstream.io.xml.AbstractPullReader.move(AbstractPullReader.java:118) at com.thoughtworks.xstream.io.xml.AbstractPullReader.moveDown(AbstractPullReader.java:103) at com.thoughtworks.xstream.io.xml.XppReader.<init>(XppReader.java:63) at com.thoughtworks.xstream.io.xml.AbstractXppDriver.createReader(AbstractXppDriver.java:54) at com.thoughtworks.xstream.io.xml.AbstractXppDriver.createReader(AbstractXppDriver.java:65) at hudson.XmlFile.unmarshal(XmlFile.java:166) ... 15 more Caused by: java.io.EOFException: input contained no data at org.xmlpull.mxp1.MXParser.fillBuf(MXParser.java:3003) at org.xmlpull.mxp1.MXParser.more(MXParser.java:3046) at org.xmlpull.mxp1.MXParser.parseProlog(MXParser.java:1410) at org.xmlpull.mxp1.MXParser.nextImpl(MXParser.java:1395) at org.xmlpull.mxp1.MXParser.next(MXParser.java:1093) at com.thoughtworks.xstream.io.xml.XppReader.pullNextEvent(XppReader.java:109) ... 23 more and I found out both files nodeMonitors.xml and hudson.model.UpdateCenter.xml in /var/lib/jenkins are empty, so my solution was simple, go to https://github.com/sragu/my-jenkins/blob/master/nodeMonitors.xml https://github.com/sragu/my-jenkins/blob/master/hudson.model.UpdateCenter.xml replace the empty files with those two, and the available list just appears! my version is 1.520, hope it helps.
I'm finding that both firefox and chrome work IF I connect to jenkins directly via port-forward, but it does not work under normal conditions. I suspect this is related to the warning jenkins is showing that the reverse proxy is not configured properly. This is causing some other jenkins behavior issues as well.
As alluded to in comment 11, this issue is due to mixed content blocking in FF and Chrome. To enable mixed content (http+https content on the same page) in chrome, after attempting to update the plugin list, a shield icon will appear in the location bar. You must click this and allow the mixed content: http://knowledgebase.pearsonschool.com/kmp/article/AA-05523/0/GPOINT%3A-How-do-I-display-mixed-content-with-Google-Chrome.html
*** Bug 1067410 has been marked as a duplicate of this bug. ***
i'm going to reopen this again since I have *zero* certificate warnings, zero mixed content warnings etc. It is simply not showing up in *any* browser.
never mind - found the check now button. opening separate button to remove that need.