Since I was playing closer attention to my log files after I upgraded to v16, I noticed the following error (all urlencoded decoded so it is readable from here on in):
[2024-02-07 10:23:57] [info] 2024-02-07 10:23:57,786 [main] WARN .e.r.i.l.LocalExtensionStorage - Failed to load extension from file [/var/lib/xwiki/data/extension/repository/org.xwiki.platform:xwiki-platform-logging-ui/12.1/org.xwiki.platform:xwiki-platform-logging-ui-12.1.xed] in local repository
So I decided to have a look in the directory and I found the following subdirectories:
Ignoring the actual error for the moment, I noticed that these jar files are for previous versions of xwiki.
Does that mean that every upgrade has left the previous versions of the libraries on the server? If so, why are old versions of the libraries left lying around? Is it necessary? Is there a reason why upgrading xwiki doesn’t remove these old versions?
Can I delete the older libraries? I mean, I’m pretty sure that the v10 logging-ui support jars are probably not being used on my currently installation, nor are they likely to be used again in the near future.
I am seeing this in the other library folders as well in that older versions of the library files are left hanging around.
The server is currently running ubuntu 20 and the upgrades happened via the apt upgrade command
Any insight would be helpful. I don’t want to be deleting things that are kept for reasons that I am unaware of.
It’s more that Extension Manager does not try to figure out during upgrade if the local extension representing the previous version is still used and, for example, ask confirmation to the user to get rid of it (which would probably be the ideal).