Last modified: 2013-09-23 22:37:56 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T56444, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 54444 - Conflicting versions and paths of 'java' on -dev and -exec nodes
Conflicting versions and paths of 'java' on -dev and -exec nodes
Status: RESOLVED FIXED
Product: Wikimedia Labs
Classification: Unclassified
tools (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: Marc A. Pelletier
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-09-22 05:26 UTC by Kunal Mehta (Legoktm)
Modified: 2013-09-23 22:37 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Kunal Mehta (Legoktm) 2013-09-22 05:26:12 UTC
local-low@tools-dev:~$ jsub java -version
Your job 1075312 ("java") has been submitted

local-low@tools-dev:~$ cat java.err
-bash: /usr/lib/jvm/java-6-openjdk-amd64/jre/bin/java: No such file or directory

Turns out it's actually at /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java

local-low@tools-dev:~$ java -version
java version "1.6.0_27"

local-low@tools-exec-05:~$ java -version
java version "1.7.0_25"

Those should be the same version.
Comment 1 Gerrit Notification Bot 2013-09-22 22:19:24 UTC
Change 85630 had a related patch set uploaded by Yuvipanda:
Ensure that a matching version of JDK is present for the JRE

https://gerrit.wikimedia.org/r/85630
Comment 2 Yuvi Panda 2013-09-22 22:27:16 UTC
So, after investigation, it turned out that:

1. There was a copy of JDK and JRE 6 *and* 7 installed on -dev. These aren't on puppet. 
2. There's only a copy of JRE 7 on the exec nodes. This is properly puppetized.

So default 'java' on -dev seems to resolve to v6 for some reason, and that is not found in exec nodes, hence this problem. 

I've 'fixed' it by getting rid of all traces of Java 6 from -dev (by hand), and then adding a puppet change to install JDK 7 on -dev.
Comment 3 Kunal Mehta (Legoktm) 2013-09-22 22:52:18 UTC
local-low@tools-dev:~$ jsub java -version
Your job 1081432 ("java") has been submitted

local-low@tools-dev:~$ cat java.out
Error occurred during initialization of VM
Could not reserve enough space for object heap

Looks like it "works" now. Thanks Yuvi!
Comment 4 Gerrit Notification Bot 2013-09-23 22:37:39 UTC
Change 85630 merged by Ryan Lane:
Ensure that a matching version of JDK is present for the JRE

https://gerrit.wikimedia.org/r/85630

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


Navigation
Links