[xwiki-users] migrating from .war to Debain apt package
Hi, I'm struggling with migrating a 6.3 .war instance to a Debian APT/package 7.3 instance. I had hoped I would be able to install as per http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationViaAPT choosing the xwiki-enterprise-tomcat7-mysql package, then edit hibernate.cfg.xml to point at the existing (external) MySQL instance hosting the database, then edit server.xml, xwiki.cfg and xwiki.properties to match the previous. The new instance connects, and after editing xwiki.cfg, I can login as superadmin, the previously setup LDAP auth not working), I was expecting to see the xwiki updater run, but it did not, and the top bar of xwiki is empty, it only has the logo on the far left and the three little lines on teh far right under which the only option is logout. Do I need to to do a .war update to get it up to 7.3 before migrating to a Debian APT/package instance ? or is there something that I have missed ? Cheers
I'm sure others will have better hints, and your log could help, but I'd start by stopping the server, restoring the DB backup, then start it up. paul
shouldbe q931 <mailto:shouldbeq931@gmail.com> 18 décembre 2015 20:05 Hi,
I'm struggling with migrating a 6.3 .war instance to a Debian APT/package 7.3 instance.
I had hoped I would be able to install as per http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationViaAPT choosing the xwiki-enterprise-tomcat7-mysql package, then edit hibernate.cfg.xml to point at the existing (external) MySQL instance hosting the database, then edit server.xml, xwiki.cfg and xwiki.properties to match the previous.
The new instance connects, and after editing xwiki.cfg, I can login as superadmin, the previously setup LDAP auth not working), I was expecting to see the xwiki updater run, but it did not, and the top bar of xwiki is empty, it only has the logo on the far left and the three little lines on teh far right under which the only option is logout.
Do I need to to do a .war update to get it up to 7.3 before migrating to a Debian APT/package instance ? or is there something that I have missed ?
Cheers _______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
On Fri, Dec 18, 2015 at 7:30 PM, Paul Libbrecht <paul@hoplahup.net> wrote:
I'm sure others will have better hints, and your log could help, but I'd start by stopping the server, restoring the DB backup, then start it up.
paul
shouldbe q931 <mailto:shouldbeq931@gmail.com> 18 décembre 2015 20:05 Hi,
I'm struggling with migrating a 6.3 .war instance to a Debian APT/package 7.3 instance.
I had hoped I would be able to install as per http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationViaAPT choosing the xwiki-enterprise-tomcat7-mysql package, then edit hibernate.cfg.xml to point at the existing (external) MySQL instance hosting the database, then edit server.xml, xwiki.cfg and xwiki.properties to match the previous.
The new instance connects, and after editing xwiki.cfg, I can login as superadmin, the previously setup LDAP auth not working), I was expecting to see the xwiki updater run, but it did not, and the top bar of xwiki is empty, it only has the logo on the far left and the three little lines on teh far right under which the only option is logout.
Do I need to to do a .war update to get it up to 7.3 before migrating to a Debian APT/package instance ? or is there something that I have missed ?
Cheers _______________________________________________ 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
Hi Paul, I'm fairly sure that none of the standard logs will help me with this as the tomcat/java side is working correctly, it is the xwiki application which is not seeing that the db needs to be updated. I have already stopping tomcat, rolling back to a previous database snapshot and retrying, but did not see any improvement. Cheers
On Fri, Dec 18, 2015 at 11:45 PM, shouldbe q931 <shouldbeq931@gmail.com> wrote:
On Fri, Dec 18, 2015 at 7:30 PM, Paul Libbrecht <paul@hoplahup.net> wrote:
I'm sure others will have better hints, and your log could help, but I'd start by stopping the server, restoring the DB backup, then start it up.
paul
shouldbe q931 <mailto:shouldbeq931@gmail.com> 18 décembre 2015 20:05 Hi,
I'm struggling with migrating a 6.3 .war instance to a Debian APT/package 7.3 instance.
I had hoped I would be able to install as per http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationViaAPT choosing the xwiki-enterprise-tomcat7-mysql package, then edit hibernate.cfg.xml to point at the existing (external) MySQL instance hosting the database, then edit server.xml, xwiki.cfg and xwiki.properties to match the previous.
The new instance connects, and after editing xwiki.cfg, I can login as superadmin, the previously setup LDAP auth not working), I was expecting to see the xwiki updater run, but it did not, and the top bar of xwiki is empty, it only has the logo on the far left and the three little lines on teh far right under which the only option is logout.
Do I need to to do a .war update to get it up to 7.3 before migrating to a Debian APT/package instance ? or is there something that I have missed ?
Cheers _______________________________________________ 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
Hi Paul,
I'm fairly sure that none of the standard logs will help me with this as the tomcat/java side is working correctly, it is the xwiki application which is not seeing that the db needs to be updated.
I have already stopping tomcat, rolling back to a previous database snapshot and retrying, but did not see any improvement.
Cheers
I imported the 7.3 xar, and now it looks much better :-) Importing the xar did not wipe content or groups, but did wipe rights and LDAP config, wit the LDAP config recreated and the rights correctly set, it appears to up and running :-) Cheers
On Sat, Dec 19, 2015 at 12:46 AM, shouldbe q931 <shouldbeq931@gmail.com> wrote:
On Fri, Dec 18, 2015 at 11:45 PM, shouldbe q931 <shouldbeq931@gmail.com> wrote:
On Fri, Dec 18, 2015 at 7:30 PM, Paul Libbrecht <paul@hoplahup.net> wrote:
I'm sure others will have better hints, and your log could help, but I'd start by stopping the server, restoring the DB backup, then start it up.
paul
shouldbe q931 <mailto:shouldbeq931@gmail.com> 18 décembre 2015 20:05 Hi,
I'm struggling with migrating a 6.3 .war instance to a Debian APT/package 7.3 instance.
I had hoped I would be able to install as per http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationViaAPT choosing the xwiki-enterprise-tomcat7-mysql package, then edit hibernate.cfg.xml to point at the existing (external) MySQL instance hosting the database, then edit server.xml, xwiki.cfg and xwiki.properties to match the previous.
The new instance connects, and after editing xwiki.cfg, I can login as superadmin, the previously setup LDAP auth not working), I was expecting to see the xwiki updater run, but it did not, and the top bar of xwiki is empty, it only has the logo on the far left and the three little lines on teh far right under which the only option is logout.
Do I need to to do a .war update to get it up to 7.3 before migrating to a Debian APT/package instance ? or is there something that I have missed ?
Cheers _______________________________________________ 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
Hi Paul,
I'm fairly sure that none of the standard logs will help me with this as the tomcat/java side is working correctly, it is the xwiki application which is not seeing that the db needs to be updated.
I have already stopping tomcat, rolling back to a previous database snapshot and retrying, but did not see any improvement.
Cheers
I imported the 7.3 xar, and now it looks much better :-)
Importing the xar did not wipe content or groups, but did wipe rights and LDAP config, wit the LDAP config recreated and the rights correctly set, it appears to up and running :-)
Cheers
Most of the spaces are fine, but there are three that look like http://pasteboard.co/8zJUMYt.png I have confirmed that the rights on the spaces with the error are the same as the rights on the spaces that do not show the error Cheers
Can you copy the text of the error that you get when clicking? paul shouldbe q931 wrote:
Most of the spaces are fine, but there are three that look like http://pasteboard.co/8zJUMYt.png
I have confirmed that the rights on the spaces with the error are the same as the rights on the spaces that do not show the error
On Sun, Dec 20, 2015 at 1:15 AM, Paul Libbrecht <paul@hoplahup.net> wrote:
Can you copy the text of the error that you get when clicking?
paul
shouldbe q931 wrote:
Most of the spaces are fine, but there are three that look like http://pasteboard.co/8zJUMYt.png
I have confirmed that the rights on the spaces with the error are the same as the rights on the spaces that do not show the error
_______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
pastebins of the text pages http://pastebin.com/pnJxVr89 activity stream http://pastebin.com/D3BkSM6i tags http://pastebin.com/XPquSSJs They all have "org.xwiki.rendering.macro.MacroExecutionException: The execution of the [velocity] script macro is not allowed. Check the rights of its last author or the parameters if it's rendered from another script." as the first line, which can also be seen from the screengrab. I thought I was the original creator of the spaces that have this issue, and I have the script right, but maybe I am mistaken... Cheers
Hi, Make sure you read the error message that says "Check the rights of its last author" (i.e. no the creator). Script rights are checked on the last content author of the document and, if in your migration you haven`t given script rights to that user, all his scripts will stop functioning. Hope this helps, Eduard On Mon, Dec 21, 2015 at 3:01 AM, shouldbe q931 <shouldbeq931@gmail.com> wrote:
On Sun, Dec 20, 2015 at 1:15 AM, Paul Libbrecht <paul@hoplahup.net> wrote:
Can you copy the text of the error that you get when clicking?
paul
shouldbe q931 wrote:
Most of the spaces are fine, but there are three that look like http://pasteboard.co/8zJUMYt.png
I have confirmed that the rights on the spaces with the error are the same as the rights on the spaces that do not show the error
_______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
pastebins of the text
pages http://pastebin.com/pnJxVr89 activity stream http://pastebin.com/D3BkSM6i tags http://pastebin.com/XPquSSJs
They all have "org.xwiki.rendering.macro.MacroExecutionException: The execution of the [velocity] script macro is not allowed. Check the rights of its last author or the parameters if it's rendered from another script." as the first line, which can also be seen from the screengrab.
I thought I was the original creator of the spaces that have this issue, and I have the script right, but maybe I am mistaken...
Cheers _______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
On Tue, Jan 5, 2016 at 9:13 AM, Eduard Moraru <enygma2002@gmail.com> wrote:
Hi,
Make sure you read the error message that says "Check the rights of its last author" (i.e. no the creator). Script rights are checked on the last content author of the document and, if in your migration you haven`t given script rights to that user, all his scripts will stop functioning.
Hope this helps, Eduard
Hi Eduard, As I posted, I have read the error message, and although I have the script right, I see the error. I also still see the error if I save the page... Cheers
On Mon, Dec 21, 2015 at 3:01 AM, shouldbe q931 <shouldbeq931@gmail.com> wrote:
On Sun, Dec 20, 2015 at 1:15 AM, Paul Libbrecht <paul@hoplahup.net> wrote:
Can you copy the text of the error that you get when clicking?
paul
shouldbe q931 wrote:
Most of the spaces are fine, but there are three that look like http://pasteboard.co/8zJUMYt.png
I have confirmed that the rights on the spaces with the error are the same as the rights on the spaces that do not show the error
_______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
pastebins of the text
pages http://pastebin.com/pnJxVr89 activity stream http://pastebin.com/D3BkSM6i tags http://pastebin.com/XPquSSJs
They all have "org.xwiki.rendering.macro.MacroExecutionException: The execution of the [velocity] script macro is not allowed. Check the rights of its last author or the parameters if it's rendered from another script." as the first line, which can also be seen from the screengrab.
I thought I was the original creator of the spaces that have this issue, and I have the script right, but maybe I am mistaken...
Cheers _______________________________________________ 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
Hi, Regarding your original question (Distribution Wizard not showing), there's a troubleshooting section [1] in the documentation that maybe helps. Regarding the rights issue, in the screenshot you`ve posted [2] I notice that both the creator and last author are not set, so there is a problem with your documents (the xar import process or something), but your document's content author is surely not well set. As an example, go to Main.Activity and it will probably say that it does not have PR/SR. Now edit the page in wiki syntax and add an extra space in the content . You need to do this otherwise an empty save does not change the internal "content author" (which is used for checking PR/SR), just the "last author". You could try the "Check content author" [3] extension/snippet that can help you debug these issues. Thanks, Eduard ---------- [1] http://platform.xwiki.org/xwiki/bin/view/Features/DistributionWizard#HThewiz... [2] http://pasteboard.co/8zJUMYt.png [3] http://extensions.xwiki.org/xwiki/bin/view/Extension/Check+Content+Author On Tue, Jan 5, 2016 at 8:44 PM, shouldbe q931 <shouldbeq931@gmail.com> wrote:
On Tue, Jan 5, 2016 at 9:13 AM, Eduard Moraru <enygma2002@gmail.com> wrote:
Hi,
Make sure you read the error message that says "Check the rights of its last author" (i.e. no the creator). Script rights are checked on the last content author of the document and, if in your migration you haven`t given script rights to that user, all his scripts will stop functioning.
Hope this helps, Eduard
Hi Eduard,
As I posted, I have read the error message, and although I have the script right, I see the error.
I also still see the error if I save the page...
Cheers
On Mon, Dec 21, 2015 at 3:01 AM, shouldbe q931 <shouldbeq931@gmail.com> wrote:
On Sun, Dec 20, 2015 at 1:15 AM, Paul Libbrecht <paul@hoplahup.net>
wrote:
Can you copy the text of the error that you get when clicking?
paul
shouldbe q931 wrote:
Most of the spaces are fine, but there are three that look like http://pasteboard.co/8zJUMYt.png
I have confirmed that the rights on the spaces with the error are the same as the rights on the spaces that do not show the error
_______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
pastebins of the text
pages http://pastebin.com/pnJxVr89 activity stream http://pastebin.com/D3BkSM6i tags http://pastebin.com/XPquSSJs
They all have "org.xwiki.rendering.macro.MacroExecutionException: The execution of the [velocity] script macro is not allowed. Check the rights of its last author or the parameters if it's rendered from another script." as the first line, which can also be seen from the screengrab.
I thought I was the original creator of the spaces that have this issue, and I have the script right, but maybe I am mistaken...
Cheers _______________________________________________ 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
users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
On Wed, Jan 6, 2016 at 10:47 AM, Eduard Moraru <enygma2002@gmail.com> wrote:
Hi,
Regarding your original question (Distribution Wizard not showing), there's a troubleshooting section [1] in the documentation that maybe helps.
Regarding the rights issue, in the screenshot you`ve posted [2] I notice that both the creator and last author are not set, so there is a problem with your documents (the xar import process or something), but your document's content author is surely not well set.
As an example, go to Main.Activity and it will probably say that it does not have PR/SR. Now edit the page in wiki syntax and add an extra space in the content . You need to do this otherwise an empty save does not change the internal "content author" (which is used for checking PR/SR), just the "last author".
You could try the "Check content author" [3] extension/snippet that can help you debug these issues.
Thanks, Eduard
---------- [1] http://platform.xwiki.org/xwiki/bin/view/Features/DistributionWizard#HThewiz... [2] http://pasteboard.co/8zJUMYt.png [3] http://extensions.xwiki.org/xwiki/bin/view/Extension/Check+Content+Author
I "fixed" the distribution wizard issue by installing the 7.3 admin xar There was no xar import process for the rest of the content, it was an upgrade to an existing database, I "fixed" the problem by editing the page (a space page), and then reverting to the previous version. Cheers
participants (3)
-
Eduard Moraru -
Paul Libbrecht -
shouldbe q931