Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 368289 - b3 exits with "Cannot complete the install because some dependencies are not satisfiable"
Summary: b3 exits with "Cannot complete the install because some dependencies are not ...
Status: RESOLVED WORKSFORME
Alias: None
Product: CBI
Classification: Technology
Component: CBI p2 Repository Aggregator (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: CBI Inbox CLA
QA Contact: David Williams CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-10 14:16 EST by Wayne Pascoe CLA
Modified: 2016-11-19 11:34 EST (History)
3 users (show)

See Also:


Attachments
b3 aggregator model (7.56 KB, text/plain)
2012-06-25 20:31 EDT, Lothar Werzinger CLA
no flags Details
build log containing the error (92.84 KB, text/plain)
2012-06-25 20:31 EDT, Lothar Werzinger CLA
no flags Details
validation on Indigo - works (68.23 KB, image/png)
2012-06-26 12:52 EDT, Lothar Werzinger CLA
no flags Details
validation on Juno - fails (44.16 KB, image/png)
2012-06-26 12:53 EDT, Lothar Werzinger CLA
no flags Details
minimal failing aggregator (781 bytes, application/xml)
2013-06-10 14:55 EDT, Carsten Reckord CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Wayne Pascoe CLA 2012-01-10 14:16:34 EST
Build Identifier: M20110909-1335 

B3 Aggregator during build aggregation exits with the following message:

---- Message ----
Build failed! Exception was org.eclipse.core.runtime.CoreException: Cannot complete the install because some dependencies are not satisfiable
---- Message ----

However, it does not give any clues to what dependencies could not be satisfied or provide any hints at how to investigate further. There are no red Xs in the model at all. 


Full error copied from Eclipse follows. 

Error
Tue Jan 10 11:55:59 GMT 2012
Build failed! Exception was org.eclipse.core.runtime.CoreException: Cannot complete the install because some dependencies are not satisfiable

org.eclipse.core.runtime.CoreException: Cannot complete the install because some dependencies are not satisfiable
	at org.eclipse.b3.aggregator.engine.ValidationSetVerifier.run(ValidationSetVerifier.java:677)
	at org.eclipse.b3.aggregator.engine.Builder.runRepositoryVerifier(Builder.java:1700)
	at org.eclipse.b3.aggregator.engine.Builder.run(Builder.java:1631)
	at org.eclipse.b3.aggregator.presentation.AggregatorActionBarContributor$BuildAggregationAction$1.run(AggregatorActionBarContributor.java:292)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)


Reproducible: Always

Steps to Reproduce:
This happens every time we attempt to build with a b3aggr file that has worked in the past.
Comment 1 Thomas Hallgren CLA 2012-01-10 15:42:17 EST
Just for the sake of it (to make sure we're testing the same thing) can you please attach a failing aggregation?
Comment 2 Lothar Werzinger CLA 2012-06-25 20:30:50 EDT
I get the same "Cannot complete the install because some dependencies are not satisfiable" in the headless aggregator. The model verifies OK in the IDE.

I will attach the model and the build log.
Comment 3 Lothar Werzinger CLA 2012-06-25 20:31:17 EDT
Created attachment 217845 [details]
b3 aggregator model
Comment 4 Lothar Werzinger CLA 2012-06-25 20:31:42 EDT
Created attachment 217846 [details]
build log containing the error
Comment 5 Lothar Werzinger CLA 2012-06-25 20:33:28 EDT
Is there a newer b3 aggregator than http://download.eclipse.org/modeling/emft/b3/headless-3.7/ that might output something useful if this error occurs?
Comment 6 Lothar Werzinger CLA 2012-06-26 12:52:16 EDT
What's interesting is that if I run the validation in my Indigo Eclipse it works, and if I run it in the new Juno it fails.

I will attach screens hots for both scenarios.
Comment 7 Lothar Werzinger CLA 2012-06-26 12:52:44 EDT
Created attachment 217888 [details]
validation on Indigo - works
Comment 8 Lothar Werzinger CLA 2012-06-26 12:53:04 EDT
Created attachment 217889 [details]
validation on Juno - fails
Comment 9 Lothar Werzinger CLA 2012-06-26 12:55:59 EDT
Unfortunately the same unhelpful error message occurs in the IDE, so I have no clue to as what B3 thought went really wrong.

P.S.
I am running on Linux, so this problem seems to affect any platform.
Comment 10 Carsten Reckord CLA 2013-06-10 14:55:50 EDT
Created attachment 232192 [details]
minimal failing aggregator

I've attached another aggregation involving the latest Kepler RC3 repo that fails for me with the same exception using the latest b3 aggregator 0.2.0 (running from the editor, not headless). The stack trace line numbers just have changed a bit in the meantime:

org.eclipse.core.runtime.CoreException: Cannot complete the install because some dependencies are not satisfiable
	at org.eclipse.b3.aggregator.engine.ValidationSetVerifier.run(ValidationSetVerifier.java:686)
	at org.eclipse.b3.aggregator.engine.Builder.runRepositoryVerifier(Builder.java:1704)
	at org.eclipse.b3.aggregator.engine.Builder.run(Builder.java:1635)
	at org.eclipse.b3.aggregator.presentation.AggregatorActionBarContributor$BuildAggregationAction$1.run(AggregatorActionBarContributor.java:292)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)


I've debugged around a bit and when it fails it actually has more information on the planner status than is shown in the log. For some reason it can't extract a root cause, so the whole information is just lost in the exception message.

Unfortunately, in my case, the (otherwise lost) problem information I dug up during debugging doesn't make much sense to me either. It seems to complain that org.eclipse.ui.views is unavailable, which it clearly isn't...:

Software being installed: validationSet_main 1.0.0, 
Cannot satisfy dependency: 
   mappedRepo_download.eclipse.org_releases_kepler 1.0.0 depends on: org.eclipse.rap.sdk.feature.feature.group 0.0.0, 
Cannot satisfy dependency: 
   mappedRepo_download.eclipse.org_releases_kepler 1.0.0 depends on: org.eclipse.rse.useractions.feature.group 0.0.0, 
Cannot satisfy dependency: 
   org.eclipse.rap.sdk.feature.feature.group 2.1.0.20130520-1326 depends on: org.eclipse.ui.views 0.0.0, 
Cannot satisfy dependency: 
   org.eclipse.rap.sdk.feature.feature.group 2.1.0.20130527-1011 depends on: org.eclipse.ui.views 0.0.0, 
Cannot satisfy dependency: 
   org.eclipse.rap.sdk.feature.feature.group 2.1.0.20130528-1219 depends on: org.eclipse.ui.views 0.0.0, 
Cannot satisfy dependency: 
   org.eclipse.rse.useractions.feature.group 1.1.500.201305201712 depends on: org.eclipse.ui.views 0.0.0, 
Cannot satisfy dependency: 
   validationSet_main 1.0.0 depends on: mappedRepo_download.eclipse.org_releases_kepler [1.0.0]

(I got this by putting a breakpoint on the throw statement in ValidationSetVerifier:686 and looking at status.globalRequestStatus.explanation)
Comment 11 David Williams CLA 2016-09-16 15:42:41 EDT
[Bookkeeping change only. Moving bugs to the new "home" of aggregator, CBI.]
Comment 12 David Williams CLA 2016-11-19 11:34:37 EST
This bug is pretty old, and I think error messages have improved (primarily as a result of p2 error messages improving). 

If you can reproduce on the latest version of the aggregator, which has been renamed and made to work on "Neon.1" please re-open. 

To "use the latest" I'd suggest starting fresh with a Neon.1 SDK (version 4.6.1) say from 
http://download.eclipse.org/eclipse/downloads/
and then install the "cbi aggregator" from 
http://download.eclipse.org/cbi/updates/aggregator/ide/4.6/

BTW, the file extensions now have to be ".aggr" and some of the "internals" of the files/models have changed, so you may have to regenerate or do some fancy editing. Sorry for the churn. 

Thanks,