Bug 892788 - "Available" plugins list in jenkins is empty - "Check Now" button works only in Firefox and not in Chrome/IE
Summary: "Available" plugins list in jenkins is empty - "Check Now" button works only ...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Image
Version: 2.x
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
: ---
Assignee: Ben Parees
QA Contact: libra bugs
URL:
Whiteboard:
: 1067410 (view as bug list)
Depends On: 860036
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-01-07 21:01 UTC by Sumana Annam
Modified: 2015-05-15 00:33 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of: 860036
Environment:
Last Closed: 2014-04-29 10:04:52 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Sumana Annam 2013-01-07 21:01:56 UTC
+++ 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:

Comment 1 Bill DeCoste 2013-01-16 21:11:15 UTC
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.

Comment 2 joycezhang 2013-01-17 09:11:19 UTC
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.

Comment 3 Bill DeCoste 2013-01-17 15:08:33 UTC
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?

Comment 4 Bill DeCoste 2013-01-17 16:40:28 UTC
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)

Comment 5 Bill DeCoste 2013-01-17 18:01:28 UTC
If the plugins are populated from FF then they become visible in Chrome.

Comment 6 Sumana Annam 2013-01-17 18:21:23 UTC
(In reply to comment #5)
> Yes, that's the workaround I have been proposing to users.

Comment 7 Bill DeCoste 2013-01-17 18:47:46 UTC
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.

Comment 8 Bill DeCoste 2013-01-17 20:43:23 UTC
Have no explanation for it but neither of the above log entries ever occurs with Chrome.

Comment 9 Bill DeCoste 2013-01-17 20:57:17 UTC
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.

Comment 11 Alain Esteva Ramirez 2013-09-11 15:00:31 UTC
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/

Comment 12 targarace 2013-09-29 20:27:21 UTC
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.

Comment 13 Ben Parees 2014-02-13 00:10:13 UTC
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.

Comment 14 Ben Parees 2014-02-18 20:45:25 UTC
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

Comment 15 Ben Parees 2014-02-20 14:45:30 UTC
*** Bug 1067410 has been marked as a duplicate of this bug. ***

Comment 16 Max Rydahl Andersen 2014-04-29 09:59:38 UTC
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.

Comment 17 Max Rydahl Andersen 2014-04-29 10:04:32 UTC
never mind - found the check now button. opening separate button to remove that need.


Note You need to log in before you can comment on or make changes to this bug.