[xwiki-users] Fwd: upgrade from 5.1
Hi, I'm trying to upgrade our 5.1 xwiki to 5.3 and I get a lot of warning messages (5.1 to 5.2.2 upgrade has the same result): WARN o.x.v.i.DefaultVelocityEngine - Deprecated usage of getter [com.xpn.xwiki.api.DeprecatedContext.getMacro] in xwiki:XWiki.XWikiUserSheet@78,32 WARN o.x.v.i.DefaultVelocityEngine - Deprecated usage of getter [com.xpn.xwiki.a pi.DeprecatedContext.getDatabase] in xwiki:XWiki.XWikiUserSheet@81,22 etc.. I tried different solutions (I'm using standalone version): - replace war - copy database and conf file on a fresh install - export/import What could I do to remove all these messages? What is the less painfull way to migrate a wiki (I read the doc http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Upgrade). I really think that there's should be a simpler way to upgrade xwiki for standalone version. Each of the above solution has its drawbacks. Thanks
Did you upgraded only the WAR or did you upgraded the wiki pages too (generally using the distribution wyzard you get when you start XWiki after upgrading the war). If you get those warning without upgrading the page this is simply because the old page you have are using deprecated API like the message say, if you upgrade to the new pages you won't have those messages anymore. On Thu, Dec 19, 2013 at 3:05 PM, Christophe Domas <christophe.domas+xwiki@gmail.com> wrote:
Hi,
I'm trying to upgrade our 5.1 xwiki to 5.3 and I get a lot of warning messages (5.1 to 5.2.2 upgrade has the same result):
WARN o.x.v.i.DefaultVelocityEngine - Deprecated usage of getter [com.xpn.xwiki.api.DeprecatedContext.getMacro] in xwiki:XWiki.XWikiUserSheet@78,32
WARN o.x.v.i.DefaultVelocityEngine - Deprecated usage of getter [com.xpn.xwiki.a pi.DeprecatedContext.getDatabase] in xwiki:XWiki.XWikiUserSheet@81,22
etc..
I tried different solutions (I'm using standalone version): - replace war - copy database and conf file on a fresh install - export/import
What could I do to remove all these messages?
What is the less painfull way to migrate a wiki (I read the doc http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Upgrade). I really think that there's should be a simpler way to upgrade xwiki for standalone version. Each of the above solution has its drawbacks.
Thanks _______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne
How do you force the distribution wizard (I read on a precedent mail that I can play with environment.permanentDirectory but I'm not able to find the mail). regards 2013/12/19 Thomas Mortagne <thomas.mortagne@xwiki.com>
Did you upgraded only the WAR or did you upgraded the wiki pages too (generally using the distribution wyzard you get when you start XWiki after upgrading the war).
If you get those warning without upgrading the page this is simply because the old page you have are using deprecated API like the message say, if you upgrade to the new pages you won't have those messages anymore.
On Thu, Dec 19, 2013 at 3:05 PM, Christophe Domas <christophe.domas+xwiki@gmail.com> wrote:
Hi,
I'm trying to upgrade our 5.1 xwiki to 5.3 and I get a lot of warning messages (5.1 to 5.2.2 upgrade has the same result):
WARN o.x.v.i.DefaultVelocityEngine - Deprecated usage of getter [com.xpn.xwiki.api.DeprecatedContext.getMacro] in xwiki:XWiki.XWikiUserSheet@78,32
WARN o.x.v.i.DefaultVelocityEngine - Deprecated usage of getter [com.xpn.xwiki.a pi.DeprecatedContext.getDatabase] in xwiki:XWiki.XWikiUserSheet@81,22
etc..
I tried different solutions (I'm using standalone version): - replace war - copy database and conf file on a fresh install - export/import
What could I do to remove all these messages?
What is the less painfull way to migrate a wiki (I read the doc http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Upgrade). I really think that there's should be a simpler way to upgrade xwiki for standalone version. Each of the above solution has its drawbacks.
Thanks _______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne _______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Did you cancel it ? On Thu, Dec 19, 2013 at 4:38 PM, Christophe Domas <christophe.domas+xwiki@gmail.com> wrote:
How do you force the distribution wizard (I read on a precedent mail that I can play with environment.permanentDirectory but I'm not able to find the mail).
regards
2013/12/19 Thomas Mortagne <thomas.mortagne@xwiki.com>
Did you upgraded only the WAR or did you upgraded the wiki pages too (generally using the distribution wyzard you get when you start XWiki after upgrading the war).
If you get those warning without upgrading the page this is simply because the old page you have are using deprecated API like the message say, if you upgrade to the new pages you won't have those messages anymore.
On Thu, Dec 19, 2013 at 3:05 PM, Christophe Domas <christophe.domas+xwiki@gmail.com> wrote:
Hi,
I'm trying to upgrade our 5.1 xwiki to 5.3 and I get a lot of warning messages (5.1 to 5.2.2 upgrade has the same result):
WARN o.x.v.i.DefaultVelocityEngine - Deprecated usage of getter [com.xpn.xwiki.api.DeprecatedContext.getMacro] in xwiki:XWiki.XWikiUserSheet@78,32
WARN o.x.v.i.DefaultVelocityEngine - Deprecated usage of getter [com.xpn.xwiki.a pi.DeprecatedContext.getDatabase] in xwiki:XWiki.XWikiUserSheet@81,22
etc..
I tried different solutions (I'm using standalone version): - replace war - copy database and conf file on a fresh install - export/import
What could I do to remove all these messages?
What is the less painfull way to migrate a wiki (I read the doc http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Upgrade). I really think that there's should be a simpler way to upgrade xwiki for standalone version. Each of the above solution has its drawbacks.
Thanks _______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne _______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne
No, I didn't cancel it but I tried so many ways to migrate that I'm not sure anymore in which state is my wiki. If I copy data on a fresh installation of xwiki 5.3, can I run this wizard? If I export pages from my 5.1 xwiki and import them on a fesh install of xwiki 5.3, are the pages are migrated? Another question: it seems that the distribution wizard needs an internet access (the server has no access but the browser that displays the distribution wizard have it). Thanks 2013/12/19 Thomas Mortagne <thomas.mortagne@xwiki.com>
Did you cancel it ?
On Thu, Dec 19, 2013 at 4:38 PM, Christophe Domas <christophe.domas+xwiki@gmail.com> wrote:
How do you force the distribution wizard (I read on a precedent mail that I can play with environment.permanentDirectory but I'm not able to find the mail).
regards
2013/12/19 Thomas Mortagne <thomas.mortagne@xwiki.com>
Did you upgraded only the WAR or did you upgraded the wiki pages too (generally using the distribution wyzard you get when you start XWiki after upgrading the war).
If you get those warning without upgrading the page this is simply because the old page you have are using deprecated API like the message say, if you upgrade to the new pages you won't have those messages anymore.
On Thu, Dec 19, 2013 at 3:05 PM, Christophe Domas <christophe.domas+xwiki@gmail.com> wrote:
Hi,
I'm trying to upgrade our 5.1 xwiki to 5.3 and I get a lot of warning messages (5.1 to 5.2.2 upgrade has the same result):
WARN o.x.v.i.DefaultVelocityEngine - Deprecated usage of getter [com.xpn.xwiki.api.DeprecatedContext.getMacro] in xwiki:XWiki.XWikiUserSheet@78,32
WARN o.x.v.i.DefaultVelocityEngine - Deprecated usage of getter [com.xpn.xwiki.a pi.DeprecatedContext.getDatabase] in xwiki:XWiki.XWikiUserSheet@81,22
etc..
I tried different solutions (I'm using standalone version): - replace war - copy database and conf file on a fresh install - export/import
What could I do to remove all these messages?
What is the less painfull way to migrate a wiki (I read the doc http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Upgrade). I really think that there's should be a simpler way to upgrade xwiki for standalone version. Each of the above solution has its drawbacks.
Thanks _______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne _______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne _______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
On 12/20/2013 11:46 AM, Christophe Domas wrote:
No, I didn't cancel it but I tried so many ways to migrate that I'm not sure anymore in which state is my wiki.
If I copy data on a fresh installation of xwiki 5.3, can I run this wizard?
If I export pages from my 5.1 xwiki and import them on a fesh install of xwiki 5.3, are the pages are migrated?
Another question: it seems that the distribution wizard needs an internet access (the server has no access but the browser that displays the distribution wizard have it).
The distribution wizard need access to a XWiki repository server to access the upgrade packages. In the default configuration indeed this needs internet access (for the server - never mind the browser triggering the update, that does not help) What the upgrader actually does is not upgrading the database structure of all pages to a new database structure (this is something done at startup time by the webapp, if necessary), but instead upgrading the contents of some pages with newer content. You can think of these pages (quite a lot, but not all in the XWiki space) as the "User interface" of the XWiki, which need to be updated when the "core application" (the webapp) is updated. So e.g. if you export all you pages from an 5.1 instance and import them into a 5.3 instance, this overwrites the "UI for 5.3" with the "UI for 5.1" and the pages are not migrated as a result. Because your server has no internet access, you basically have two options to upgrade them: a) do it the "old style" way by importing the xwiki-enterprise-ui-mainwiki-all-5.3.xar, carefully excluding the pages you should not upgrade. As you already noticed this has some drawbacks b) give the server an "upgrade repository" of the file system To do this: - pick an (empty) directory, e.g. /opt/xwiki-repo - create the necessary directories to place the import package that is: /opt/xwiki-repo/org/xwiki/enterprise/xwiki-enterprise-ui-mainwiki/5.3/ - place the xwiki-enterprise-ui-mainwiki-5.3.xar and the xwiki-enterprise-ui-mainwiki-5.3.pom from http://nexus.xwiki.org/nexus/content/groups/public/org/xwiki/enterprise/xwik... in that directory - tell the server to use this repository; for this edit the WEB-INF/xwiki.properties - look for a line like: # extension.repositories=local:maven:file://${sys:user.home}/.m2/repository copy uncomment and edit it to: extension.repositories=local:maven:file:///opt/xwiki-repo Preferably this should be done after upgrading the *.war and before starting the server for the first time after the upgrade of the *.war You should see the Distribution Wizard kick in after you start the server and log in with an admin account, allowing you to upgrade the wiki. I did something similar to that (actually supplying a somewhat modified version of the main UI for my own ends) and it worked -- but I needed a few attempts to weed out my stupid typos, duh. Typical error: the distribution wizard cannot find the upgrade package for "org.xwiki.enterprise:xwiki-enterprise-ui-mainwiki" and version "5.3" which means there is a typo in the property ... Cheers, Clemens
participants (3)
-
Christophe Domas -
Clemens Klein-Robbenhaar -
Thomas Mortagne