Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 223756

Summary: problems building p2 platform zips
Product: [Eclipse Project] Platform Reporter: Kim Moir <kim.moir>
Component: RelengAssignee: Platform-Releng-Inbox <platform-releng-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: avijayr, dj.houghton, john.arthorne, konstantin, mknauer, ngc2997, pascal, remy.suen, tjwatson, tomcatuser.13
Version: 3.4   
Target Milestone: 3.4 M6   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
patch none

Description Kim Moir CLA 2008-03-24 20:57:59 EDT
I ran a test build today to build the platform zips with p2.  When trying to build them, I get this error message. Any suggestions on how to fix this?

!SESSION 2008-03-24 18:47:10.826 -----------------------------------------------
eclipse.buildId=@build@
java.version=1.5.0_14
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
Framework arguments:  -application org.eclipse.equinox.p2.director.app.application -flavor tooling -installIU org.eclipse.platform.ide -version 3.4.0.N20080324-1711 -p2.os linux -p2.ws motif -p2.arch x86 -roaming -profile SDKProfile -profileProperties org.eclipse.update.install.features=true -metadataRepository file:/builds/N200803241711/org.eclipse.releng.eclipsebuilder/../src/repo -artifactRepository file:/builds/N200803241711/org.eclipse.releng.eclipsebuilder/../src/repo -destination /builds/N200803241711/org.eclipse.releng.eclipsebuilder/../src/N20080324-1711/p2temp/equinox.p2.build/platform.install.linux.motif.x86/eclipse -bundlepool /builds/N200803241711/org.eclipse.releng.eclipsebuilder/../src/N20080324-1711/p2temp/equinox.p2.build/platform.install.linux.motif.x86/eclipse
Command-line arguments:  -os linux -ws gtk -arch x86 -application org.eclipse.equinox.p2.director.app.application -consoleLog -flavor tooling -installIU org.eclipse.platform.ide -version 3.4.0.N20080324-1711 -p2.os linux -p2.ws motif -p2.arch x86 -roaming -profile SDKProfile -profileProperties org.eclipse.update.install.features=true -metadataRepository file:/builds/N200803241711/org.eclipse.releng.eclipsebuilder/../src/repo -artifactRepository file:/builds/N200803241711/org.eclipse.releng.eclipsebuilder/../src/repo -destination /builds/N200803241711/org.eclipse.releng.eclipsebuilder/../src/N20080324-1711/p2temp/equinox.p2.build/platform.install.linux.motif.x86/eclipse -bundlepool /builds/N200803241711/org.eclipse.releng.eclipsebuilder/../src/N20080324-1711/p2temp/equinox.p2.build/platform.install.linux.motif.x86/eclipse

!ENTRY org.eclipse.equinox.p2.director 4 0 2008-03-24 18:47:13.851
!MESSAGE Problems resolving provisioning plan.
!SUBENTRY 1 org.eclipse.equinox.p2.director 4 0 2008-03-24 18:47:13.851
!MESSAGE No IU found to satisfy dependency of org.eclipse.platform.ide 3.4.0.N20080324-1711 req requiredCapability: toolingorg.eclipse.platform.ide/org.eclipse.platform.ide.launcher/0.0.0
!STACK 0
java.lang.IllegalStateException: No IU found to satisfy dependency of org.eclipse.platform.ide 3.4.0.N20080324-1711 req requiredCapability: toolingorg.eclipse.platform.ide/org.eclipse.platform.ide.launcher/0.0.0
	at org.eclipse.equinox.internal.p2.director.PBProjector.expandRequirement(PBProjector.java:291)
	at org.eclipse.equinox.internal.p2.director.PBProjector.processIU(PBProjector.java:255)
	at org.eclipse.equinox.internal.p2.director.PBProjector.encode(PBProjector.java:81)
	at org.eclipse.equinox.internal.p2.director.SimplePlanner.getProvisioningPlan(SimplePlanner.java:332)
	at org.eclipse.equinox.internal.p2.director.app.Application.run(Application.java:209)
	at org.eclipse.equinox.internal.p2.director.app.Application.start(Application.java:245)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:362)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:175)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1212)

!ENTRY org.eclipse.equinox.p2.director 4 1 2008-03-24 18:47:13.854
!MESSAGE Cannot complete the install because some dependencies are not satisfiable
!SUBENTRY 1 org.eclipse.equinox.p2.director 4 0 2008-03-24 18:47:13.854
!MESSAGE Unsatisfied dependency: [org.eclipse.platform.ide 3.4.0.N20080324-1711] requiredCapability: toolingorg.eclipse.platform.ide/org.eclipse.platform.ide.config/0.0.0
!SUBENTRY 1 org.eclipse.equinox.p2.director 4 0 2008-03-24 18:47:13.854
!MESSAGE Unsatisfied dependency: [org.eclipse.platform.ide 3.4.0.N20080324-1711] requiredCapability: toolingorg.eclipse.platform.ide/org.eclipse.platform.ide.ini/0.0.0
!SUBENTRY 1 org.eclipse.equinox.p2.director 4 0 2008-03-24 18:47:13.855
!MESSAGE Unsatisfied dependency: [org.eclipse.platform.ide 3.4.0.N20080324-1711] requiredCapability: toolingorg.eclipse.platform.ide/org.eclipse.platform.ide.launcher/0.0.0
Comment 1 John Arthorne CLA 2008-03-24 21:59:34 EDT
Can you give a link to the metadata repository that this install is running against? Is it the testUpdates repository?
Comment 2 Kim Moir CLA 2008-03-25 09:34:05 EDT
testUpdates-N on dizzy
Comment 3 Pascal Rapicault CLA 2008-03-28 20:56:41 EDT
Moving to releng as this is being handled by Kim
Comment 4 John Arthorne CLA 2008-03-29 22:29:26 EDT
Here is a summary of the current state:

 - We currently build the Eclipse SDK, then platform binary, then platform SDK.
 - The Eclipse SDK is fine, but the platform binary and platform SDK are broken
 - If we switch the order of execution (platform binary, then Eclipse SDK, then platform SDK), then the first one to be built is good, and the remaining builds are broken.
 - So, there is some interference from the previous invocation of the generator that is contaminating the subsequent invocations.

Comparing the Eclipse SDK in good state (run first), to Eclipse SDK in bad state (run second), we can see:

 - The root IU is missing all the bundle CUs in the broken state. For example, it is missing CU for org.eclipse.equinox.simpleconfigurator, org.eclipse.equinox.p2.reconciler.dropins, etc
 - These CUs are connected to the product IU on line 158 of Generator:

   productContents.rootIUs.add(iterator.next());

 - We haven't been able to track down any further why these CUs are missing.

Comment 5 John Arthorne CLA 2008-03-29 22:34:57 EDT
Another suspicious line is 926 in Generator.java

			result[i] = factory.getBundleDescription(bundleLocations[i]);

The call factory.getBundleDescription can return null in various cases - error reading the manifest or other error creating bundle description. Many of these exceptions are completely swallowed so we wouldn't see any trace of them, especially in BundleDescriptionFactory#loadManifest.

In this case no bundle IU would be created in Generator#generateBundleIUs, and if the bundle IU is not created then the bundle CU would not be created, and therefore it would be missing from the root IU.  However, the bundle IU is still present in the repository from a previous invocation of the generator so it otherwise looks fine.

Anyway, that's another possible avenue for investigation, but unless we can actually step through the generator it is very hard to narrow down further.
Comment 6 DJ Houghton CLA 2008-03-30 12:54:36 EDT
Created attachment 94142 [details]
patch

Here is a patch which does a bit better logging. 
I didn't release it yet.
Comment 7 John Arthorne CLA 2008-03-31 11:10:53 EDT
*** Bug 224915 has been marked as a duplicate of this bug. ***
Comment 8 Vijay Aravamudhan CLA 2008-03-31 23:05:46 EDT
I just logged https://bugs.eclipse.org/bugs/show_bug.cgi?id=225029 which might be similar. If this is the case, PLEASE fix and release M6.1 - I am unable to work with 3.4 M6 due to the issue
Thanks!
Comment 9 John Arthorne CLA 2008-04-01 00:22:36 EDT
*** Bug 225029 has been marked as a duplicate of this bug. ***
Comment 10 Thomas Watson CLA 2008-04-02 09:11:53 EDT
*** Bug 225257 has been marked as a duplicate of this bug. ***
Comment 11 Vijay Aravamudhan CLA 2008-04-02 10:49:51 EDT
Is there a distro of 3.4 M6 which I can use? I am unable to work with M6 on Windows due to this issue.
Comment 12 Pascal Rapicault CLA 2008-04-02 19:54:45 EDT
A platform build should be available tomorrow.
Comment 13 John Arthorne CLA 2008-04-03 09:50:06 EDT
*** Bug 225410 has been marked as a duplicate of this bug. ***
Comment 14 Kim Moir CLA 2008-04-03 17:20:18 EDT
Can this be closed now that the M6 platform zips are available?
Comment 15 John Arthorne CLA 2008-04-03 17:44:17 EDT
The updated binary zips were released earlier today and should be replicated on mirrors by tomorrow. The milestone update site has been updated with the corrected metadata.
Comment 16 Karsten ... CLA 2008-04-04 05:50:23 EDT
Has the fixed version already landed on http://download.eclipse.org/eclipse/downloads/drops/S-3.4M6-200803301350/index.php? I downloaded that version (which now reports all test results ok, as opposed to a few days ago) earlier this morning (around 1000 CEST), yet it still crashes immediately when it is started.
Comment 17 Markus Knauer CLA 2008-04-04 06:14:12 EDT
(In reply to comment #16)
I tested the eclipse-platform-3.4M6-linux-gtk-x86_64.tar.gz download and was able to start it without problems.
Comment 18 Kim Moir CLA 2008-04-04 09:38:57 EDT
Regarding comment #16, what did you platform and zip did you download from this build page

http://download.eclipse.org/eclipse/downloads/drops/S-3.4M6-200803301350/index.php
Comment 19 Karsten ... CLA 2008-04-04 12:30:47 EDT
(In reply to comment #18)

Well, I've downloaded the eclipse-SDK-3.4M6-linux-gtk.tar.gz package for my Ubuntu 7.10 machine..
Comment 20 John Arthorne CLA 2008-04-04 14:13:24 EDT
> Well, I've downloaded the eclipse-SDK-3.4M6-linux-gtk.tar.gz package for my
> Ubuntu 7.10 machine..

This bug never existed for the SDK zips - only the platform zips. I suggest entering a new bug report.
Comment 21 Karsten ... CLA 2008-04-04 14:30:01 EDT
(In reply to comment #20)

Hm, isn't https://bugs.eclipse.org/bugs/show_bug.cgi?id=225029 something similar? That one has been marked as a duplicate of this..
Comment 22 Oleg Lyashko CLA 2008-04-04 23:51:48 EDT
(In reply to comment #21)
> (In reply to comment #20)
May be your crash relate to read-only installation? (bug 216066, bug 225257) 
Comment 23 Karsten ... CLA 2008-04-05 03:14:44 EDT
(In reply to comment #22)

> [..]
> May be your crash relate to read-only installation? (bug 216066, bug 225257) 

Yes, that sounds reasonable. My eclipse installation resides in /opt/eclipse, where a 'normal' user doesn't have write access..