After copying full application-data from old windows installation to linux installation, failed
Asked by jilong sun:

After copying full application-data from old windows installation to linux installation's application-data, failed to open confluence web site.

Before copying, I have finished the database setup for linux installation. The error is as below:

![error1.png](/t5/image/serverpage/image-id/12676iC0808E094AA4601C/image-size/large?v=v2&px=999 "error1.png")


Answers:
author: AnnWorley
body: One of the common causes of [Confluence does not start due to Spring Application context has not been set](https://confluence.atlassian.com/confkb/confluence-does-not-start-due-to-spring-application-context-has-not-been-set-218278311.html) is unexpected formatting in the confluence.cfg.xml file. According to [Migrating Confluence Between Servers](https://confluence.atlassian.com/doc/migrating-confluence-between-servers-184150.html), since you moved from Windows to Linux:

"... you'll need to replace the backslashes with forward slashes in the following lines in confluence.cfg.xml:"

```
<property name="attachments.dir">${confluenceHome}/attachments</property>


<property name="lucene.index.dir">${localHome}/index</property>
<property name="webwork.multipart.saveDir">${localHome}/temp</property>

```

I look forward to hearing whether Confluence starts after the confluence.cfg.xml is edited.

You mentioned that you completed the setup step for the Linux database. In order for the application data directory ("Confluence Home") to work with the database, the database will need to have been restored from a backup of the old database. The Confluence setup wizard sets up the schema but does not restore the data from your old Windows database.

One strategy would be to use the XML backup and restore to change the OS. You would just install Confluence out of the box on Linux with no data, then import an XML site backup from the Windows instance. If you don't have much data it can be an easy way to go. You will not need to copy over the home directory if you include attachments in the backup.

Please keep me posted on your progress, I will be happy to help out.

Thanks,

Ann

comments: author: jilong sun
body: Thanks for your reply. The windows installation has been shutdown and removed, I only kept its application data directory. So I can't use the xml import solution.

I confirmed that the confluence.cfg.xml is correct. So I started the linux installation again, and I want to set up the clean linux installation firstly and then check how to import old data. But this time, after mysql database is set up successfully, I am directed to a blank page, seems not successful. I have attached the screen as below, any thought?

![Untitled11.png](https://community.atlassian.com/t5/image/serverpage/image-id/12723i1C2C07ECE6CFEDFF/image-size/large?v=v2&px=999 "Untitled11.png")

It seems that the database setup information(connection string, username, pass) are not saved into the confluence.cfg.xml successfully. as below:

![confluence.cfg.xml.png](https://community.atlassian.com/t5/image/serverpage/image-id/12724iBE64C5647316651A/image-size/large?v=v2&px=999 "confluence.cfg.xml.png")


author: jilong sun
body: Hello, [@AnnWorley](/t5/user/viewprofilepage/user-id/502040), any thought about the issue above?