Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » P2 » Update (not install) Eclipse SDK with p2 director
Update (not install) Eclipse SDK with p2 director [message #798163] Tue, 14 February 2012 10:30 Go to next message
Tomasz Zarna is currently offline Tomasz ZarnaFriend
Messages: 172
Registered: July 2009
Senior Member
I'm updating my Eclipse quite often. So far I used p2 agent with couple of defined repositories and profiles. This worked fine but I decided to switch to using scripts. Here is what I put up for installing the SDK (a snippet):

./eclipse/equinox-p2-adminui-3.7.1-linux-gtk-x86/eclipse/eclipse -consolelog -application org.eclipse.equinox.p2.director -metadataRepository http://download.eclipse.org/eclipse/updates/3.8-I-builds -artifactRepository http://download.eclipse.org/eclipse/updates/3.8-I-builds -installIU org.eclipse.sdk.ide -destination ~/eclipse/ibuild38/ -bundlepool ~/eclipse/bp


This works like a charm when installing the IU, but when run for the second time (with intent to update the existing installation) it fails. Changing the destination helps but it's not what I need.

I'm missing a magic switch, right?

Cheers,
T
Re: Update (not install) Eclipse SDK with p2 director [message #799059 is a reply to message #798163] Wed, 15 February 2012 11:47 Go to previous messageGo to next message
Brian de Alwis is currently offline Brian de AlwisFriend
Messages: 242
Registered: July 2009
Senior Member
Tomasz Zarna wrote on Tue, 14 February 2012 05:30
This works like a charm when installing the IU, but when run for the second time (with intent to update the existing installation) it fails.


It would help if you posted the failure too! Smile

But I think you have two problems:

1. You likely need to specify the p2 profile: "-profile SDKProfile"
2. You need to instruct p2 to record the installed features: "-profileProperties org.eclipse.update.install.features=true"
Re: Update (not install) Eclipse SDK with p2 director [message #806100 is a reply to message #799059] Fri, 24 February 2012 14:51 Go to previous messageGo to next message
Tomasz Zarna is currently offline Tomasz ZarnaFriend
Messages: 172
Registered: July 2009
Senior Member
Thanks for the quick reply Brian.

I applied both suggestions, I think it worked once, but ever since I try to update the SDK I get this:

Installing org.eclipse.sdk.ide 3.8.0.I20120223-0928.
Installation failed.
Cannot complete the install because of a conflicting dependency.
 Software being installed: Eclipse SDK 3.8.0.I20120223-0928 (org.eclipse.sdk.ide 3.8.0.I20120223-0928)
 Software currently installed: Eclipse SDK 3.8.0.I20120214-0800 (org.eclipse.sdk.ide 3.8.0.I20120214-0800)
 Only one of the following can be installed at once: 
  toolingorg.eclipse.sdk.ide.configuration 3.8.0.I20120223-0928
  toolingorg.eclipse.sdk.ide.configuration 3.8.0.I20120214-0800
 Cannot satisfy dependency:
  From: Eclipse SDK 3.8.0.I20120214-0800 (org.eclipse.sdk.ide 3.8.0.I20120214-0800)
  To: toolingorg.eclipse.sdk.ide.configuration [3.8.0.I20120214-0800]
 Cannot satisfy dependency:
  From: Eclipse SDK 3.8.0.I20120223-0928 (org.eclipse.sdk.ide 3.8.0.I20120223-0928)
  To: toolingorg.eclipse.sdk.ide.configuration [3.8.0.I20120223-0928]
Application failed, log file location: /home/tzarna/eclipse/equinox-p2-adminui-3.7.1-linux-gtk-x86/eclipse/configuration/1330094173919.log


And the log itself:

!SESSION 2012-02-24 15:36:12.933 -----------------------------------------------
eclipse.buildId=unknown
java.fullversion=JRE 1.6.0 IBM J9 2.4 Linux x86-32 jvmxi3260sr9-20110624_85526 (JIT enabled, AOT enabled)
J9VM - 20110624_085526
JIT  - r9_20101028_17488ifx17
GC   - 20101027_AA
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
Framework arguments:  -application org.eclipse.equinox.p2.director -metadataRepository http://download.eclipse.org/eclipse/updates/3.8-I-builds -artifactRepository http://download.eclipse.org/eclipse/updates/3.8-I-builds -installIU org.eclipse.sdk.ide -destination /home/tzarna/eclipse/ibuild38 -bundlepool /home/tzarna/eclipse/bp -profile SDKProfile -profileProperties org.eclipse.update.install.features=true
Command-line arguments:  -os linux -ws gtk -arch x86 -consoleLog -application org.eclipse.equinox.p2.director -metadataRepository http://download.eclipse.org/eclipse/updates/3.8-I-builds -artifactRepository http://download.eclipse.org/eclipse/updates/3.8-I-builds -installIU org.eclipse.sdk.ide -destination /home/tzarna/eclipse/ibuild38 -bundlepool /home/tzarna/eclipse/bp -profile SDKProfile -profileProperties org.eclipse.update.install.features=true

!ENTRY org.eclipse.equinox.p2.director 4 1 2012-02-24 15:36:57.464
!MESSAGE Cannot complete the install because of a conflicting dependency.
!SUBENTRY 1 org.eclipse.equinox.p2.director 4 0 2012-02-24 15:36:57.466
!MESSAGE Software being installed: Eclipse SDK 3.8.0.I20120223-0928 (org.eclipse.sdk.ide 3.8.0.I20120223-0928)
!SUBENTRY 1 org.eclipse.equinox.p2.director 4 0 2012-02-24 15:36:57.468
!MESSAGE Software currently installed: Eclipse SDK 3.8.0.I20120214-0800 (org.eclipse.sdk.ide 3.8.0.I20120214-0800)
!SUBENTRY 1 org.eclipse.equinox.p2.director 4 1 2012-02-24 15:36:57.470
!MESSAGE Only one of the following can be installed at once: 
!SUBENTRY 2 org.eclipse.equinox.p2.director 4 0 2012-02-24 15:36:57.471
!MESSAGE toolingorg.eclipse.sdk.ide.configuration 3.8.0.I20120223-0928
!SUBENTRY 2 org.eclipse.equinox.p2.director 4 0 2012-02-24 15:36:57.472
!MESSAGE toolingorg.eclipse.sdk.ide.configuration 3.8.0.I20120214-0800
!SUBENTRY 1 org.eclipse.equinox.p2.director 4 1 2012-02-24 15:36:57.474
!MESSAGE Cannot satisfy dependency:
!SUBENTRY 2 org.eclipse.equinox.p2.director 4 0 2012-02-24 15:36:57.475
!MESSAGE From: Eclipse SDK 3.8.0.I20120214-0800 (org.eclipse.sdk.ide 3.8.0.I20120214-0800)
!SUBENTRY 2 org.eclipse.equinox.p2.director 4 0 2012-02-24 15:36:57.476
!MESSAGE To: toolingorg.eclipse.sdk.ide.configuration [3.8.0.I20120214-0800]
!SUBENTRY 1 org.eclipse.equinox.p2.director 4 1 2012-02-24 15:36:57.477
!MESSAGE Cannot satisfy dependency:
!SUBENTRY 2 org.eclipse.equinox.p2.director 4 0 2012-02-24 15:36:57.479
!MESSAGE From: Eclipse SDK 3.8.0.I20120223-0928 (org.eclipse.sdk.ide 3.8.0.I20120223-0928)
!SUBENTRY 2 org.eclipse.equinox.p2.director 4 0 2012-02-24 15:36:57.481
!MESSAGE To: toolingorg.eclipse.sdk.ide.configuration [3.8.0.I20120223-0928]


The "toolingorg" part looks weird, doesn't it?

[Updated on: Fri, 24 February 2012 14:52]

Report message to a moderator

Re: Update (not install) Eclipse SDK with p2 director [message #807793 is a reply to message #806100] Mon, 27 February 2012 02:16 Go to previous messageGo to next message
Brian de Alwis is currently offline Brian de AlwisFriend
Messages: 242
Registered: July 2009
Senior Member
The p2 director doesn't do updates -- p2 is trying to install the update alongside the existing version and complaining. You need to add a "-uninstallIU org.eclipse.sdk.ide".
Re: Update (not install) Eclipse SDK with p2 director [message #809356 is a reply to message #807793] Tue, 28 February 2012 19:43 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Brian's correct, currently an update is done by -installIU org.eclipse.sdk.ide -uninstallIU org.eclipse.sdk.ide.

But there's a catch. If there is nothing to update, the director trashes your install. See https://bugs.eclipse.org/bugs/show_bug.cgi?id=368238

PW


Re: Update (not install) Eclipse SDK with p2 director [message #809800 is a reply to message #809356] Wed, 29 February 2012 09:24 Go to previous messageGo to next message
Tomasz Zarna is currently offline Tomasz ZarnaFriend
Messages: 172
Registered: July 2009
Senior Member
The p2agent (aka Admin UI) seems to be handling this case fine, it says something like Quote:
Your request has been modified. X is already installed, so an update will be performed.
and then does so. I was looking for the same thing when running the p2director.
Re: Update (not install) Eclipse SDK with p2 director [message #1714161 is a reply to message #798163] Tue, 10 November 2015 11:27 Go to previous messageGo to next message
Dinusha Boteju is currently offline Dinusha BotejuFriend
Messages: 1
Registered: November 2015
Junior Member
Does any new p2director version support updating?
Re: Update (not install) Eclipse SDK with p2 director [message #1786926 is a reply to message #1714161] Tue, 15 May 2018 23:02 Go to previous message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4430
Registered: July 2009
Senior Member

I really wish that was just a different command line switch you could use.

_
Nitin Dahyabhai
Eclipse Web Tools Platform
Previous Topic:Eclipse RCP - Dependent plugins deployed as directory
Next Topic:p2.mirror task fails when using iu with specific version
Goto Forum:
  


Current Time: Fri Mar 29 13:47:07 GMT 2024

Powered by FUDForum. Page generated in 0.03947 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top