Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Retore Failed

Wei Lin October 22, 2020

To Whom it maybe concerned:

It's Wei Lin form ICBC (London), I have interested and successfully installed 7.5.4 product for server, but failed to restore from 5.1.1.

The error shown in the following:

org.apache.velocity.exception.MethodInvocationException: Invocation of method 'isShowSignUp' in class com.atlassian.confluence.user.actions.LoginAction threw exception java.lang.NullPointerException: Application cannot be null at /login.vm[line 6, column 28]
    at org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:342)

caused by: java.lang.NullPointerException: Application cannot be null
    at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:895)

 

I look forward to hearing from you. Thanks.

Best Regards

Wei Lin

1 answer

1 accepted

0 votes
Answer accepted
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 22, 2020

You won't be able to "restore from 5.1.1".  If you've done it with the database, you've skipped the upgrade steps so the data is the wrong shape.  If you did it with an xml import,it should have told you it can't do it because 5.1.1 is way too old and not compatible with 7.5.4.

Could you explain what you are trying to do end-to-end?  An upgrade from 5.1.1?

Wei Lin October 22, 2020

Hi Nic,

Thank you very much for your replied. We are doing an server migration and would like to extract all files and space structure which saved in the old confluence server which has 5.1.1 version installed.

Hope you could help to find the good way to get those all files.

Thanks in advance.

Best Regards

Wei Lin 

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 24, 2020

Assuming the 7.5.4 system is empty, the easiest thing to do would be to install 5.1.1 on the target server and get it running ok, stop it, point it to the 5.1.1 database, copy the attachments directory from the old server to the new one, restart it to check everything is there, and then upgrade it to 7.5.4 using the standard upgrade docs.

Wei Lin October 26, 2020

Hi Nic.

Thanks for replied, But I have got the error after installed 5.1.4 (production version) which copied from old server:

com.atlassian.config.bootstrap.BootstrapException: Unable to bootstrap application: The database driver (org.h2.Driver) was not found in the class path.
This Confluence installation cannot be upgraded automatically. Please see Confluence documentation:
https://confluence.atlassian.com/display/DOC/Database+ConfigurationInstallError.PNG
By the way, the 7.4.5 version which try to upgrading is trail version only.
So, I'm not sure what the best strategy which I could be used. Could I just manual copy the database which includes users and attached files?
I look forward to hearing from you.
Best Regards
Wei Lin
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 26, 2020

You have a broken installation of Confluence there, someone has removed things from it.  You'll need to start with a fresh clean install of 5.1.4 from scratch, without whatever "clever" customisations have been done to production.

Wei Lin October 26, 2020

Hi Nic,

Thank you so much for your quick replied and I have managed to install 5.14 the made migration from old server successfully !

But the upgrading to 7.4.5 has been failed and got those message:UpgradeError.PNGSo, any idea on it?

Also, how I can back to 5.1.4 when this upgrading failed?

Thanks in advance.

Kind Regards

Wei Lin

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 26, 2020

You'll need to read the application log to find out what has failed during starting the new system

Wei Lin October 27, 2020

Hi Nic,

Thanks for replied. The error still same, But I have read upgrading guide and the found the following (In my case):

7. Reinstall the service (Windows only)

If you run Confluence as a service on Windows you should delete the existing service then re-install the service by running <install-directory>/bin/service.bat.

This makes sure the service gets the most recent JVM options. 

 

Any idea how can I do that?

Also, I am not sure which log I need to looking for?

Thanks in advance and sorry to trouble you.

Best Regards

Wei Lin

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events