Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Upgrade Eclipse from 2021-12 (4.22) to 2022-03 (4.23) failed
Upgrade Eclipse from 2021-12 (4.22) to 2022-03 (4.23) failed [message #1850890] Mon, 21 March 2022 11:47 Go to next message
Heiko Selber is currently offline Heiko SelberFriend
Messages: 5
Registered: October 2020
Junior Member
After checking for updates in Eclipse 2021-12 the new version 2022-03 was offered for installation, so I gave it a try.

However, after the upgrade finished without any errors, the new version doesn't start.

The log file /my-eclipse-folder/jee-2021-06/eclipse/configuration/1647524672922.log shows that some required jars are missing, for example:

/my-eclipse-folder/jee-2021-06/eclipse/configuration/org.eclipse.osgi/358/data/431355561/plugins/org.eclipse.equinox.common_3.16.0.v20220211-2322.jar
/my-eclipse-folder/jee-2021-06/eclipse/configuration/org.eclipse.osgi/358/data/431355561/plugins/org.eclipse.osgi_3.17.200.v20220215-2237.jar
/my-eclipse-folder/jee-2021-06/eclipse/configuration/org.eclipse.osgi/358/data/431355561/plugins/org.eclipse.osgi.compatibility.state_1.2.600.v20220207-1403.jar
/my-eclipse-folder/jee-2021-06/eclipse/configuration/org.eclipse.osgi/358/data/431355561/plugins/org.eclipse.e4.tools.emf.ui_4.7.200.v20220114-0046.jar
/my-eclipse-folder/jee-2021-06/eclipse/configuration/org.eclipse.osgi/358/data/431355561/plugins/org.eclipse.e4.ui.workbench.swt_0.16.400.v20220222-1128.jar

...and many more.

I can confirm that these files are nowhere on my hard disk.

What might have gone wrong?

I use Ubuntu 20.04.4 LTS and Adoptium JDK 11.

All previous platform upgrades since 2020-03 succeeded without a problem, if you don't count that stale folders like jee-2020-03 remain and that 2021-12 was installed in jee-2021-06.

I had backed up the eclipse folder before trying the upgrade, so I managed to revert to 2021-12.

Now 2022-03 is marked as installed somewhere, so it isn't offered for installation any more.

What can I do to retry the upgrade and how can I avoid the errors?

I don't want to do a fresh installation because I don't want to reinstall all my plugins and redo all my configurations.
Re: Upgrade Eclipse from 2021-12 (4.22) to 2022-03 (4.23) failed [message #1850891 is a reply to message #1850890] Mon, 21 March 2022 12:01 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
The actual plugins will be installed to /my-eclipse-folder/jee-2021-06/eclipse/plugins/, or perhaps in the bundle pool if you installed with the installer. The folder configuration/org.eclipse.osgi/ is some kind of managed cache. The configuration/org.eclipse.equinox.simpleconfigurator/bundles.info should indicate where the bundles are actually physically located.

I'd first try starting with -clean so that a full new bundle table is built from scratch. You might try -debug as well, for more details information about what is going on during startup. Also try with -data <fresh-new-workspace> to be sure it's not dying because of some problem opening the existing workspace.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Upgrade Eclipse from 2021-12 (4.22) to 2022-03 (4.23) failed [message #1850901 is a reply to message #1850891] Mon, 21 March 2022 17:56 Go to previous messageGo to next message
Heiko Selber is currently offline Heiko SelberFriend
Messages: 5
Registered: October 2020
Junior Member
Quote:
I'd first try starting with -clean


You mean, run
eclipse -clean
?

When I do (with or without any command line options), the process immediately dies with this error:

!SESSION Mon Mar 21 18:45:34 CET 2022 ------------------------------------------
!ENTRY org.eclipse.equinox.launcher 4 0 2022-03-21 18:45:34.162
!MESSAGE Could not find extension: reference:file:org.eclipse.osgi.compatibility.state_1.2.600.v20220207-1403.jar
!ENTRY org.eclipse.equinox.launcher 4 0 2022-03-21 18:45:34.184
!MESSAGE Exception launching the Eclipse Platform:
!STACK
java.lang.ClassNotFoundException: org.eclipse.core.runtime.adaptor.EclipseStarter
        at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:476)
        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:589)
        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:656)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:596)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1467)
        at org.eclipse.equinox.launcher.Main.main(Main.java:1440)


I assume the installation was in the middle of something critical when it failed, so now even the basic runtime classes can't be found.

I'd better try to start the upgrade entirely new, but I don't know how to convince eclipse that the upgrade is there to be installed. I assume I'd have to poke around in .p2 but maybe I sohuldn't.
Re: Upgrade Eclipse from 2021-12 (4.22) to 2022-03 (4.23) failed [message #1850943 is a reply to message #1850901] Wed, 23 March 2022 07:04 Go to previous messageGo to next message
Rolf Theunissen is currently offline Rolf TheunissenFriend
Messages: 260
Registered: April 2012
Senior Member
This looks similar to Bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=579338

Would you be able to confirm that your problem is similar (have a look at the config.ini file) and comment in the bug? Would you be able to provide additional data so the root cause can be tracked down?
Re: Upgrade Eclipse from 2021-12 (4.22) to 2022-03 (4.23) failed [message #1851104 is a reply to message #1850943] Mon, 28 March 2022 08:32 Go to previous messageGo to next message
Heiko Selber is currently offline Heiko SelberFriend
Messages: 5
Registered: October 2020
Junior Member
Quote:
This looks similar to Bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=579338

Would you be able to confirm that your problem is similar (have a look at the config.ini file) and comment in the bug? Would you be able to provide additional data so the root cause can be tracked down?


I am not sure, but it is likely the same problem.

When I compare my config.ini (attached) with that of bug 579338, they look pretty much the same.
The osgi_bundles reference has one more '../', probably because my eclipse installation directory is one level deeper than theirs.
osgi.bundles=reference\:file\:../../../../../../../../../.p2/pool/plugins/org.eclipse.equinox.simpleconfigurator_1.4.0.v20210315-2228.jar@1\:start


Effectively, osgi_bundles points from ~/eclipse/jee-2021-06/eclipse/configuration to 5 directory levels above where .p2 is actually located (~/).

The file org.eclipse.osgi_3.17.200... referenced as osgi.framework.extensions in config.ini is nowhere on my file system, only older versions 3.17.0... and 3.17.100...

However, I didn't notice any message about a missing certificate during installation.

I'll try to come up with more information soon. I have kept all files from the failed upgrade (I guess).

Is there anything specific that I should look for?
  • Attachment: config.ini
    (Size: 1.00KB, Downloaded 80 times)
Re: Upgrade Eclipse from 2021-12 (4.22) to 2022-03 (4.23) failed [message #1851107 is a reply to message #1851104] Mon, 28 March 2022 08:51 Go to previous message
Rolf Theunissen is currently offline Rolf TheunissenFriend
Messages: 260
Registered: April 2012
Senior Member
I guess the certificate error is not related.

What we would be looking for is why the new bundles are not downloaded, or not moved to the correct location. The insertion of the relative path seems related. For now we are completely in the dark of what happened and without a reproduction scenario nothing can be fixed. Please add any additional information to the Bug report.
Previous Topic:update site with all Jetty bundles with same version as the one installed in current Eclipse release
Next Topic:[ Eclipse 22/03 R ] Eclipse 'Project Explorer View' doesn't show Errors
Goto Forum:
  


Current Time: Fri Apr 19 10:34:45 GMT 2024

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

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

Back to the top