Upgrade xwiki 10.3 to 11.10.10

Hi,

I updated my xwiki version from 10.3 to 11.10.10, after upgrade in the xwiki footer show again the old xwiki version … why??

Also there are exceptions in the catalina logs, I attach the exceptions … someone can help me ?

err_xwiki_catalina.txt (781.5 KB)

Tomcat – apache-tomcat-9.0.4
DB – HSQLDB

Thanks
Andrea.

Hi, can you list the exact steps you’ve followed to do the upgrade?

Thx

1 - i stopped tomcat 9
2 - i downloaded the war from https://www.xwiki.org/xwiki/bin/view/Download/
3 - I unzipped the war and customized the following files in the expanded directory

web.xml

  <env-entry>
    <env-entry-name>XWikiConfig</env-entry-name>
    <env-entry-type>java.lang.String</env-entry-type>
    <env-entry-value>/WEB-INF/xwiki.cfg</env-entry-value>
  </env-entry>

hibernate.cfg.xml

<property name="connection.url">jdbc:hsqldb:file:${environment.permanentDirectory}/database/xwiki_db;shutdown=true</property>
<property name="connection.username">sa</property>
<property name="connection.password"></property>
<property name="connection.driver_class">org.hsqldb.jdbcDriver</property>
<property name="dialect">org.hibernate.dialect.HSQLDialect</property>

<property name="hibernate.connection.charSet">UTF-8</property>
<property name="hibernate.connection.useUnicode">true</property>
<property name="hibernate.connection.characterEncoding">utf8</property>

<mapping resource="xwiki.hbm.xml"/>
<mapping resource="feeds.hbm.xml"/>
<mapping resource="instance.hbm.xml"/>
<mapping resource="notification-filter-preferences.hbm.xml"/>
<mapping resource="mailsender.hbm.xml"/>

4 - I put the db drivers (hsqldb.jar) in the directory /u02/apache-tomcat-9.0.4/webapps/xwiki/WEB-INF/lib

[root@xxxxs lib]# ls -la hsql*
-rwxrwxrwx 1 tomcat tomcat 1543134 May 16  2018 hsqldb.jar
[root@xxxx lib]# pwd
/u02/apache-tomcat-9.0.4/webapps/xwiki/WEB-INF/lib

5 - I restarted the tomcat and followed the distribution wizard procedure.

Where? I hope it wasn’t over the previous version :slight_smile: The fact that you’re displaying the old version seems to indicate that could be the cause.

See https://www.xwiki.org/xwiki/bin/view/Documentation/AdminGuide/Upgrade#HMethod1.CUpgradingthewebapp.WAR

Yes, I read it.
I removed the old directory and the old war in the webapps tomcat folder then i put in the new directory with my customizations.

i rollback and repeated the procedure two times with the same results.

ok. But it’s not possible that xwiki will display the old version if the webapp you started is the new one :slight_smile:

Unless you manually configured the footer in the XWiki Admin UI and put a hardcoded value there :slight_smile:

No I have not done any of this, also browsing and trying to perform some operations there are exceptions

Examples

image

before the upgrade this functions worked.

in add:
image

I solved it by reinstalling a clean version of 10.3 and importing the contents from the production version.

later I updated to 12.9.

A problem presist on the skin, every time i restart tomcat the following file is loaded into the tomcat work:

work/Catalina/localhost/xwiki/xwiki-temp/cache/lesscss.skinfiles.cache.dat

This seems to load some css that are not the ones I chose from the xwiki settings, if i go to the wiki settings i’ll see the correct skin

I have already tried to clear the browser cache and the xwiki cache from the settings but the problem persist.

Any suggestions ?

err-skin err-skin-2