Re: [xwiki-users] Upgrade from 7.4.1 to 7.4.2, still shows version 7.4.1

2016-03-29 Thread Vincent Massol
Hi,

> On 29 Mar 2016, at 14:45, Andreas Haumer  wrote:
> 
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> Hi!
> 
> Today I wanted to upgrade our XWiki installation from 7.4.1 to 7.4.2.
> I did a WAR upgrade, following the documentation at
> 
> 
> (I successfully performed these steps with previous xwiki versions many times)
> 
> In my installation, XWiki runs on apache-tomcat-7.0.61 under java version 
> 1.8.0_73
> I use PostgreSQL as database. User authentication is done against our
> 
> After restart of Tomcat XWiki started and initialized at first access as 
> usual and
> I could login as user with admin rights without problems, but then I noticed 
> some
> strange things:
> 
> 1) the distribtion wizard did not appear after first login with admin rights
> 2) In the page footer (and with $xwiki.getVersion()) I still see version 7.4.1
> 
> 
> Apart from that, the wiki seems to work. I can not see any difference to the
> previous version (including the version number, which made me wonder the 
> upgrade
> might have failed in some way)
> 
> I then removed the .../jobs/status/distribution/status.xml file and restarted
> Tomcat, but the DW still did not start and I still see version 7.4.1.
> 
> The status.xml file was not re-created, the directory 
> .../jobs/status/distribution
> is currently empty.
> 
> I checked the following:
> 
> *) tomcat/webapps/xwiki/WEB-INF/lib contains libraries from Feb. 29th, 2016
> *) all xwiki-*.jar files in WEB-INF/lib have version 7.4.2
> *) the xwiki WAR file I used is:
> 
> andreas@dyn239:~/Download> ll xwiki-enterprise-web-7.4.2.war
> - -rw-rw-r-- 1 andreas outlaws 230759467 29. Mär 13:32 
> xwiki-enterprise-web-7.4.2.war
> 
> andreas@dyn239:~/Download> sha1sum xwiki-enterprise-web-7.4.2.war
> 8378e85f72ee91a3fb2d279c75f6a40f0d57e84d  xwiki-enterprise-web-7.4.2.war
> 
> 
> Is this expected behaviour with v7.4.2?

Nope it should say 7.4.2 (as you can see at 
http://www.xwiki.org/xwiki/bin/view/Main/WebHome).

This version comes from a version.properties file located in 
[…]/xwiki/WEB-INF/version.properties 

Maybe you kept that file from a previous version? Or maybe you have overridden 
the footer message in the Admin UI (Page Elements section)?

Thanks
-Vincent

> Thanks!
> 
> - - andreas
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Upgrade from 7.4.1 to 7.4.2, still shows version 7.4.1

2016-03-29 Thread Andreas Haumer
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi!

Thanks for the quick response!

Am 29.03.2016 um 14:53 schrieb Vincent Massol:
> Hi,
> 
>> On 29 Mar 2016, at 14:45, Andreas Haumer  wrote:
[...]
>> 
>> I checked the following:
>> 
>> *) tomcat/webapps/xwiki/WEB-INF/lib contains libraries from Feb. 29th, 2016 
>> *) all xwiki-*.jar files in WEB-INF/lib have version 7.4.2 *) the xwiki WAR 
>> file I used is:
>> 
>> andreas@dyn239:~/Download> ll xwiki-enterprise-web-7.4.2.war - -rw-rw-r-- 1 
>> andreas outlaws 230759467 29. Mär 13:32 xwiki-enterprise-web-7.4.2.war
>> 
>> andreas@dyn239:~/Download> sha1sum xwiki-enterprise-web-7.4.2.war 
>> 8378e85f72ee91a3fb2d279c75f6a40f0d57e84d  xwiki-enterprise-web-7.4.2.war
>> 
>> 
>> Is this expected behaviour with v7.4.2?
> 
> Nope it should say 7.4.2 (as you can see at 
> http://www.xwiki.org/xwiki/bin/view/Main/WebHome).
> 
> This version comes from a version.properties file located in 
> […]/xwiki/WEB-INF/version.properties
> 
> Maybe you kept that file from a previous version? Or maybe you have 
> overridden the footer message in the Admin UI (Page Elements section)?
> 

I did not keep version.properties and did not override the footer message, but 
I just found
out that I made a different mistake: I have two tomcat webapp directories on 
this server and
I used the wrong one to install xwiki in. How embarrassing... ;-)

Now with the correct webapp directory and XWiki 7.4.2 I actually get the 
version 7.4.2 on the
login page and the distribtion wizard is finally starting.

But at that point I get another error: the distribution wizard fails at step 1 
with:

This version is not compatible with your installation.
Search for a compatible version by going through the list of "Stable Versions" 
located in the extension's "Description" tab.

and the detailled messages show:

Resolving extension dependency 
[org.xwiki.platform:xwiki-platform-oldcore-[7.4.1]] on namespace [Home]
Dependency [org.xwiki.platform:xwiki-platform-oldcore-[7.4.1]] is not 
compatible with core extension 
[org.xwiki.platform:xwiki-platform-legacy-oldcore-7.4.2]
class org.xwiki.extension.InstallException: Failed to resolve extension
 at 
org.xwiki.extension.job.internal.AbstractInstallPlanJob.installExtension(AbstractInstallPlanJob.java:774)
 at 
org.xwiki.extension.job.internal.AbstractInstallPlanJob.installExtension(AbstractInstallPlanJob.java:393)
 at 
org.xwiki.extension.job.internal.AbstractInstallPlanJob.installExtension(AbstractInstallPlanJob.java:290)
 at 
org.xwiki.extension.job.internal.AbstractInstallPlanJob.start(AbstractInstallPlanJob.java:224)
 at 
org.xwiki.extension.job.internal.InstallPlanJob.runInternal(InstallPlanJob.java:88)
 at org.xwiki.job.AbstractJob.runInContext(AbstractJob.java:205)
 at org.xwiki.job.AbstractJob.run(AbstractJob.java:188)
 at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
 at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
 at java.lang.Thread.run(Thread.java:745)
Caused by: class org.xwiki.extension.InstallException: Failed to create an 
install plan for extension dependency 
[org.xwiki.enterprise:xwiki-enterprise-ui-common-7.4.1]
 at 
org.xwiki.extension.job.internal.AbstractInstallPlanJob.installExtensionDependency(AbstractInstallPlanJob.java:692)
 at 
org.xwiki.extension.job.internal.AbstractInstallPlanJob.installExtensionDependency(AbstractInstallPlanJob.java:659)
 at 
org.xwiki.extension.job.internal.AbstractInstallPlanJob.installExtension(AbstractInstallPlanJob.java:911)
 at 
org.xwiki.extension.job.internal.AbstractInstallPlanJob.installExtension(AbstractInstallPlanJob.java:772)
 at 
org.xwiki.extension.job.internal.AbstractInstallPlanJob.installExtension(AbstractInstallPlanJob.java:393)
 at 
org.xwiki.extension.job.internal.AbstractInstallPlanJob.installExtension(AbstractInstallPlanJob.java:290)
 at 
org.xwiki.extension.job.internal.AbstractInstallPlanJob.start(AbstractInstallPlanJob.java:224)
 at 
org.xwiki.extension.job.internal.InstallPlanJob.runInternal(InstallPlanJob.java:88)
 at org.xwiki.job.AbstractJob.runInContext(AbstractJob.java:205)
 at org.xwiki.job.AbstractJob.run(AbstractJob.java:188)
 at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
 at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
 at java.lang.Thread.run(Thread.java:745)
Caused by: class org.xwiki.extension.InstallException: Dependency 
[org.xwiki.platform:xwiki-platform-oldcore-[7.4.1]] is not compatible with core 
extension [org.xwiki.platform:xwiki-platform-legacy-oldcore-7.4.2]
 at 
org.xwiki.extension.job.internal.AbstractInstallPlanJob.checkCoreDependency(AbstractInstallPlanJob.java:426)
 at 
org.xwiki.extension.job.internal.AbstractInstallPlanJob.installExtensionDependency(AbstractInstallPlanJob.java:628)
 at 
org.xwiki.extension.job.internal.AbstractInstallPlanJob.installExtension(AbstractInstallPlanJob.java:911)
 at 
org.xwiki.extension

Re: [xwiki-users] Upgrade from 7.4.1 to 7.4.2, still shows version 7.4.1

2016-03-29 Thread Vincent Massol

> On 29 Mar 2016, at 16:44, Andreas Haumer  wrote:
> 
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> Hi!
> 
> A short follow-up...
> 
> Am 29.03.2016 um 15:45 schrieb Andreas Haumer:
> [...]
>> 
>> Now with the correct webapp directory and XWiki 7.4.2 I actually get the 
>> version 7.4.2 on the login page and the distribtion wizard is finally 
>> starting.
>> 
>> But at that point I get another error: the distribution wizard fails at step 
>> 1 with:
>> 
>> This version is not compatible with your installation. Search for a 
>> compatible version by going through the list of "Stable Versions" located in 
>> the extension's "Description" tab.
>> 
>> and the detailled messages show:
>> 
>> Resolving extension dependency 
>> [org.xwiki.platform:xwiki-platform-oldcore-[7.4.1]] on namespace [Home] 
>> Dependency [org.xwiki.platform:xwiki-platform-oldcore-[7.4.1]] is not 
>> compatible with core extension 
>> [org.xwiki.platform:xwiki-platform-legacy-oldcore-7.4.2] class 
>> org.xwiki.extension.InstallException: Failed to resolve extension at 
>> org.xwiki.extension.job.internal.AbstractInstallPlanJob.installExtension(AbstractInstallPlanJob.java:774)
>>  at
>> org.xwiki.extension.job.internal.AbstractInstallPlanJob.installExtension(AbstractInstallPlanJob.java:393)
>>  at 
>> org.xwiki.extension.job.internal.AbstractInstallPlanJob.installExtension(AbstractInstallPlanJob.java:290)
>>  at 
>> org.xwiki.extension.job.internal.AbstractInstallPlanJob.start(AbstractInstallPlanJob.java:224)
> [...]
>> Caused by: class org.xwiki.extension.InstallException: Dependency 
>> [org.xwiki.platform:xwiki-platform-oldcore-[7.4.1]] is not compatible with 
>> core extension [org.xwiki.platform:xwiki-platform-legacy-oldcore-7.4.2] at 
>> org.xwiki.extension.job.internal.AbstractInstallPlanJob.checkCoreDependency(AbstractInstallPlanJob.java:426)
>>  at 
>> org.xwiki.extension.job.internal.AbstractInstallPlanJob.installExtensionDependency(AbstractInstallPlanJob.java:628)
>>  at
>> org.xwiki.extension.job.internal.AbstractInstallPlanJob.installExtension(AbstractInstallPlanJob.java:911)
>>  at 
>> org.xwiki.extension.job.internal.AbstractInstallPlanJob.installExtensionDependency(AbstractInstallPlanJob.java:690)
>>  at 
>> org.xwiki.extension.job.internal.AbstractInstallPlanJob.installExtensionDependency(AbstractInstallPlanJob.java:659)
>>  at 
>> org.xwiki.extension.job.internal.AbstractInstallPlanJob.installExtension(AbstractInstallPlanJob.java:911)
>>  at
>> org.xwiki.extension.job.internal.AbstractInstallPlanJob.installExtension(AbstractInstallPlanJob.java:772)
>>  at 
>> org.xwiki.extension.job.internal.AbstractInstallPlanJob.installExtension(AbstractInstallPlanJob.java:393)
>>  at 
>> org.xwiki.extension.job.internal.AbstractInstallPlanJob.installExtension(AbstractInstallPlanJob.java:290)
>>  at 
>> org.xwiki.extension.job.internal.AbstractInstallPlanJob.start(AbstractInstallPlanJob.java:224)
>>  at
>> org.xwiki.extension.job.internal.InstallPlanJob.runInternal(InstallPlanJob.java:88)
>>  at org.xwiki.job.AbstractJob.runInContext(AbstractJob.java:205) at 
>> org.xwiki.job.AbstractJob.run(AbstractJob.java:188) at 
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>>  at 
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>>  at java.lang.Thread.run(Thread.java:745)
>> 
> 
> I could not get past this error so I finally decided to stop it and perform
> a complete rework of the upgrade process:
> 
> 1) Deleted XWiki 7.4.2 webapp and database
> 2) Installed XWiki 7.4.1 webapp and complete database from backup
>   (yes, I made a backup before starting the upgrade! :-)
> 3) Checked v7.4.1 did actually run fine again (it did)
> 4) Started a fresh WAR-upgrade to v7.4.2
> 
> This time everything worked fine: correct version, distribution wizard started
> and did the upgrade (I skipped a few pages which I had changed previously)
> 
> Now it looks like I have a running XWiki v7.4.2.
> 
> That shows how important a backup before upgrade can be, even for a minor
> version upgrade (like 7.4.1 to 7.4.2)!
> 
> Thanks and sorry for the noise!

Thanks for posting back. Indeed a backup should always be done. However, a 
bugfix upgrade like the one you did should be seamless normally. I’m not sure 
what happened but it looks like some operator mistake from what you say. In any 
case, if you see anything we could do at the XWiki level to help, let us know.

Thanks
-Vincent

> 
> - - andreas
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Upgrade from 7.4.1 to 7.4.2, still shows version 7.4.1

2016-03-29 Thread Andreas Haumer
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi!

A short follow-up...

Am 29.03.2016 um 15:45 schrieb Andreas Haumer:
[...]
> 
> Now with the correct webapp directory and XWiki 7.4.2 I actually get the 
> version 7.4.2 on the login page and the distribtion wizard is finally 
> starting.
> 
> But at that point I get another error: the distribution wizard fails at step 
> 1 with:
> 
> This version is not compatible with your installation. Search for a 
> compatible version by going through the list of "Stable Versions" located in 
> the extension's "Description" tab.
> 
> and the detailled messages show:
> 
> Resolving extension dependency 
> [org.xwiki.platform:xwiki-platform-oldcore-[7.4.1]] on namespace [Home] 
> Dependency [org.xwiki.platform:xwiki-platform-oldcore-[7.4.1]] is not 
> compatible with core extension 
> [org.xwiki.platform:xwiki-platform-legacy-oldcore-7.4.2] class 
> org.xwiki.extension.InstallException: Failed to resolve extension at 
> org.xwiki.extension.job.internal.AbstractInstallPlanJob.installExtension(AbstractInstallPlanJob.java:774)
>  at
> org.xwiki.extension.job.internal.AbstractInstallPlanJob.installExtension(AbstractInstallPlanJob.java:393)
>  at 
> org.xwiki.extension.job.internal.AbstractInstallPlanJob.installExtension(AbstractInstallPlanJob.java:290)
>  at 
> org.xwiki.extension.job.internal.AbstractInstallPlanJob.start(AbstractInstallPlanJob.java:224)
[...]
> Caused by: class org.xwiki.extension.InstallException: Dependency 
> [org.xwiki.platform:xwiki-platform-oldcore-[7.4.1]] is not compatible with 
> core extension [org.xwiki.platform:xwiki-platform-legacy-oldcore-7.4.2] at 
> org.xwiki.extension.job.internal.AbstractInstallPlanJob.checkCoreDependency(AbstractInstallPlanJob.java:426)
>  at 
> org.xwiki.extension.job.internal.AbstractInstallPlanJob.installExtensionDependency(AbstractInstallPlanJob.java:628)
>  at
> org.xwiki.extension.job.internal.AbstractInstallPlanJob.installExtension(AbstractInstallPlanJob.java:911)
>  at 
> org.xwiki.extension.job.internal.AbstractInstallPlanJob.installExtensionDependency(AbstractInstallPlanJob.java:690)
>  at 
> org.xwiki.extension.job.internal.AbstractInstallPlanJob.installExtensionDependency(AbstractInstallPlanJob.java:659)
>  at 
> org.xwiki.extension.job.internal.AbstractInstallPlanJob.installExtension(AbstractInstallPlanJob.java:911)
>  at
> org.xwiki.extension.job.internal.AbstractInstallPlanJob.installExtension(AbstractInstallPlanJob.java:772)
>  at 
> org.xwiki.extension.job.internal.AbstractInstallPlanJob.installExtension(AbstractInstallPlanJob.java:393)
>  at 
> org.xwiki.extension.job.internal.AbstractInstallPlanJob.installExtension(AbstractInstallPlanJob.java:290)
>  at 
> org.xwiki.extension.job.internal.AbstractInstallPlanJob.start(AbstractInstallPlanJob.java:224)
>  at
> org.xwiki.extension.job.internal.InstallPlanJob.runInternal(InstallPlanJob.java:88)
>  at org.xwiki.job.AbstractJob.runInContext(AbstractJob.java:205) at 
> org.xwiki.job.AbstractJob.run(AbstractJob.java:188) at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>  at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>  at java.lang.Thread.run(Thread.java:745)
> 

I could not get past this error so I finally decided to stop it and perform
a complete rework of the upgrade process:

1) Deleted XWiki 7.4.2 webapp and database
2) Installed XWiki 7.4.1 webapp and complete database from backup
   (yes, I made a backup before starting the upgrade! :-)
3) Checked v7.4.1 did actually run fine again (it did)
4) Started a fresh WAR-upgrade to v7.4.2

This time everything worked fine: correct version, distribution wizard started
and did the upgrade (I skipped a few pages which I had changed previously)

Now it looks like I have a running XWiki v7.4.2.

That shows how important a backup before upgrade can be, even for a minor
version upgrade (like 7.4.1 to 7.4.2)!

Thanks and sorry for the noise!

- - andreas

- -- 
Andreas Haumer | mailto:andr...@xss.co.at
*x Software + Systeme  | http://www.xss.co.at/
Karmarschgasse 51/2/20 | Tel: +43-1-6060114-0
A-1100 Vienna, Austria | Fax: +43-1-6060114-71
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.22 (GNU/Linux)

iD8DBQFW+pTWxJmyeGcXPhERAsx8AJ40EO8vk/ILop0SX8qD2tJibrzWYgCgwgWx
pQnTjEldUb0mCv/3FqszKXw=
=m1pD
-END PGP SIGNATURE-
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Upgrade from 7.4.1 to 7.4.2, still shows version 7.4.1

2016-03-29 Thread Andreas Haumer
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi!

Am 29.03.2016 um 16:47 schrieb Vincent Massol:
> 
[...]
> 
> Thanks for posting back. Indeed a backup should always be done. However, a 
> bugfix upgrade like the one you did should be seamless normally. I’m not sure 
> what happened but it looks like some operator mistake from what you say. In 
> any case, if you see anything we could do at the XWiki level to help, let us 
> know.
> 

On the first run of the distribution wizard it did not recognize the original 
XWiki version and provided me with a menu to select
the version from. I guess this was the case because I had the 
.../jobs/status/distribution/status.xml file removed
(as recommended in 
http://platform.xwiki.org/xwiki/bin/view/Features/DistributionWizard#HThewizardfailstoappearatstartup)

So I selected 7.4.1 from the menu, but then got stuck with the "This version is 
not compatible with your installation" error.

On the second run, I had everything restored from backup, including the 
status.xml file.
This time, the DW did *not* ask me for the old version, but went straight to 
the upgrade process.

I don't know if this explanation makes sense, but if it does the DW could be 
made more robust
when detecting the XWiki version to upgrade from, especially as removing the 
status.xml file
is mentioned in the DW troubleshooting section.

- - andreas

- -- 
Andreas Haumer | mailto:andr...@xss.co.at
*x Software + Systeme  | http://www.xss.co.at/
Karmarschgasse 51/2/20 | Tel: +43-1-6060114-0
A-1100 Vienna, Austria | Fax: +43-1-6060114-71
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.22 (GNU/Linux)

iD8DBQFW+p3AxJmyeGcXPhERAlD3AJ4y7yGqzgI3Pc10S08zvzQxySxx+wCcDvd0
eacl3mJbrhQFqfzdpaboR3k=
=sgF1
-END PGP SIGNATURE-
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Upgrade from 7.4.1 to 7.4.2, still shows version 7.4.1

2016-03-29 Thread Thomas Mortagne
On Tue, Mar 29, 2016 at 5:22 PM, Andreas Haumer  wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Hi!
>
> Am 29.03.2016 um 16:47 schrieb Vincent Massol:
>>
> [...]
>>
>> Thanks for posting back. Indeed a backup should always be done. However, a 
>> bugfix upgrade like the one you did should be seamless normally. I’m not 
>> sure what happened but it looks like some operator mistake from what you 
>> say. In any case, if you see anything we could do at the XWiki level to 
>> help, let us know.
>>
>
> On the first run of the distribution wizard it did not recognize the original 
> XWiki version and provided me with a menu to select
> the version from. I guess this was the case because I had the 
> .../jobs/status/distribution/status.xml file removed
> (as recommended in 
> http://platform.xwiki.org/xwiki/bin/view/Features/DistributionWizard#HThewizardfailstoappearatstartup)

No, it's usually because you removed all extensions located in
permanent directory (extension/repository/ folder). Looks like you
cleaned too much stuff. The repair message is not about missing status
but about a database with a lot of documents and not a single
extension registered.

>
> So I selected 7.4.1 from the menu, but then got stuck with the "This version 
> is not compatible with your installation" error.

There is no such "blocker" error AFAIK. It does indicate you that this
version is invalid (because this version require WAR version 7.4.1)
but it's not supposed to block you in any way, you should have an
upgrade button.

>
> On the second run, I had everything restored from backup, including the 
> status.xml file.
> This time, the DW did *not* ask me for the old version, but went straight to 
> the upgrade process.
>
> I don't know if this explanation makes sense, but if it does the DW could be 
> made more robust
> when detecting the XWiki version to upgrade from, especially as removing the 
> status.xml file
> is mentioned in the DW troubleshooting section.
>
> - - andreas
>
> - --
> Andreas Haumer | mailto:andr...@xss.co.at
> *x Software + Systeme  | http://www.xss.co.at/
> Karmarschgasse 51/2/20 | Tel: +43-1-6060114-0
> A-1100 Vienna, Austria | Fax: +43-1-6060114-71
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v2.0.22 (GNU/Linux)
>
> iD8DBQFW+p3AxJmyeGcXPhERAlD3AJ4y7yGqzgI3Pc10S08zvzQxySxx+wCcDvd0
> eacl3mJbrhQFqfzdpaboR3k=
> =sgF1
> -END PGP SIGNATURE-
> ___
> 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