Errors updating RCP [message #1808842] |
Tue, 02 July 2019 21:44  |
Eclipse User |
|
|
|
I am getting following errors during running update on our RCP
An error occurred while collecting items to be installed
session context was:(profile=DefaultProfile, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
No repository found containing: osgi.bundle,org.apache.commons.compress,1.18.0.v20181121-2221
No repository found containing: osgi.bundle,org.apache.httpcomponents.httpcore,4.4.10.v20190123-2214
No repository found containing: osgi.bundle,org.bouncycastle.bcpkix,1.61.0.v20190602-1335
No repository found containing: osgi.bundle,org.bouncycastle.bcprov,1.61.0.v20190602-1335
I see these bundles in target definition, but with lower version. Which makes me think that this has something to do with latest Eclipse release and some features we depend on.
If I update RCP version v1 to v2.1, the update works. However, if I update from v2 to v2.1, that's when update fails. The only thing that changed was inclusion of egit update site in p2.inf. Furthermore, if I remove reference to egit update site from 'Available Software Sites' and just leave update site product (with other sites), I get error
An error occurred while uninstalling
session context was:(profile=DefaultProfile, phase=org.eclipse.equinox.internal.p2.engine.phases.Uninstall, operand=[R]my.product 8.0.3.R20190530-1447 --> [R]my.product 8.0.3.R20190702-2042, action=org.eclipse.equinox.internal.p2.touchpoint.eclipse.actions.UninstallBundleAction).
Installable unit contains no artifacts: [R]my.product 8.0.3.R20190530-1447.
How can I find out what causes update failure?
Thanks,
Alex
[Updated on: Wed, 03 July 2019 00:14] by Moderator Report message to a moderator
|
|
|
|
Re: Errors updating RCP [message #1808876 is a reply to message #1808842] |
Wed, 03 July 2019 16:49   |
Eclipse User |
|
|
|
Quote:
The second looks more mysterious. I've never seen such an error before. This seems to happen purely because you've removed a dependency in the p2.inf?
All that there is p2.inf are some predefined update sites that are needed to be shown in Software Installation dialog, like
org.eclipse.equinox.p2.touchpoint.eclipse.addRepository(type:0,location:http${#58}//download.eclipse.org/egit/updates/,name:EGit Tooling,enabled:true);\
And I just confirmed that if I remove eGit from Available Sites dialog, I get error about missing bundles. If I put it back in I get the second error.
Here is target definition used, all sites are bound to specific version, so I am not sure which one mandates the latest versions. I did find that all of the bundles in question are part of org.eclipse.equinox.p2.iu, so perhaps this has something to do with the issue?
|
|
|
|
Re: Errors updating RCP [message #1808986 is a reply to message #1808880] |
Fri, 05 July 2019 13:11   |
Eclipse User |
|
|
|
Thanks Ed,
I'll look into your suggestion to use Targlets.
Quote:
Well neon.target tells me a lot. That sounds ancient but you want to install the latest version of EGit as well, thought your *.target file locks in very specific versions.
eGit update site is not part of target, and in p2.inf it points to general update url without version.
I still want to find out though why update fails, because update succeeds when I update from v1 to v2.1, but fails updating from v2 to v2.1. Also why with eGit the errors occur? It's in p2.inf and not part of target, so it shouldn't affect against what product is build, should it?
Another observation I noticed is if I remove everything from Install Software dialog and just leave product's update site I get the error I mentioned above
Quote:
An error occurred while uninstalling
session context was:(profile=DefaultProfile, phase=org.eclipse.equinox.internal.p2.engine.phases.Uninstall, operand=[R]my.product 8.0.3.R20190530-1447 --> [R]my.product 8.0.3.R20190702-2042, action=org.eclipse.equinox.internal.p2.touchpoint.eclipse.actions.UninstallBundleAction).
Installable unit contains no artifacts: [R]my.product 8.0.3.R20190530-1447.
These errors are really weird because nothing major changed in our build process other than introduction of some new plugins and features.
[Updated on: Fri, 05 July 2019 13:47] by Moderator Report message to a moderator
|
|
|
Re: Errors updating RCP [message #1808998 is a reply to message #1808986] |
Fri, 05 July 2019 15:02   |
Eclipse User |
|
|
|
I couldn't see your *.target file. Maybe the link got removed? I didn't see any actual "egit errors" in the resolution. And I'm getting confused to by failures to resolve a target platform versus failures to install/update your product...
|
|
|
|
|
Re: Errors updating RCP [message #1809041 is a reply to message #1809022] |
Sun, 07 July 2019 12:49   |
Eclipse User |
|
|
|
I get the advantages of using targlets, and will certainly look into using them. However, the issue still remains what is the underlying cause of error
Quote:
An error occurred while uninstalling
session context was:(profile=DefaultProfile, phase=org.eclipse.equinox.internal.p2.engine.phases.Uninstall, operand=[R]my.product 8.0.3.R20190530-1447 --> [R]my.product 8.0.3.R20190702-2042, action=org.eclipse.equinox.internal.p2.touchpoint.eclipse.actions.UninstallBundleAction).
Installable unit contains no artifacts: [R]my.product 8.0.3.R20190530-1447.
What does "Installable unit contains no artifacts" mean and why can't it be uninstalled? Are there logs I can look at to see the cause of the error? I'd like to fix this issue as update needs to be available before we move to targlets solution.
Error especially confusing since I can update previous release fine, which makes me think that something is wrong with v2 release IU?
|
|
|
|
Powered by
FUDForum. Page generated in 0.05634 seconds