Error while restoring backup of previous Confluence server
Asked by ?ukasz:

When I am trying to restore (moving from one server to another) our instance of Confluence I encounter a strange, not a very descriptive error:

*
  > Your session has expired. You may need to re-submit the form or reload the page

I tried two different backup files (ZIP), tried changing permissions around, etc. No idea anymore.

The new installation is a docker container (official, latest). Migrating from MySQL to PostgreSQL on the way. Besides that nothing special I would say...


Answers:
author: Andreas Gounaris
body: Trying to migrate my dev installation to production, I faced the same issue.

My problem was Chrome! When I switched to FF it went through.

Confluence version (both servers): 6.14.1

Chrome version: 77.0.3865.90 (Official Build) (64-bit)


author: AnnWorley
body: Hi!

Please let us know more: At what point in the restore do you see the error? Are you restoring a site XML backup under Confluence Admin\>Backup and Restore? Does the session timeout abort the restore?

Are you uploading the backup or is it in a directory on the server's file system:
> **To upload and import a small site:**
>
> 1. Go to ![](https://confluence.atlassian.com/doc/files/747833194/747833195/2/1517274813281/cog.png) \> **General Configuration** \> **Backup and Restore**.
> 2. Choose **Choose File** and browse for the site export file.
> 3. Uncheck **Build Index** if you want to create the index at a later stage.
> 4. Choose **Upload and Restore**.
>
> **To import a site from the restore directory:**

1.
   > Copy your export file to `<confluence-home>/restore. `  
   > (If you're not sure where this directory is located, the path is listed in the **Backup and Restore** screen)
2.
   > Go to ![](https://confluence.atlassian.com/doc/files/747833194/747833195/2/1517274813281/cog.png) \> **General Configuration** \> **Backup and Restore**.
3.
   > Select your site export file under **Restore a backup from the Confluence Home Directory**.
4.
   > Uncheck **Build Index** if you want to create the index at a later stage.
5.
   > Choose **Restore**.

If the latter, it seems like the restore would complete despite your browser session expiring.

Please check whether another Atlassian application is overwriting your cookie: [Logging into another Atlassian application logs me out of Confluence](https://confluence.atlassian.com/confkb/logging-into-another-atlassian-application-logs-me-out-of-confluence-268043930.html)

Thanks,

Ann

comments: author: ?ukasz
body: Well, I found the issue - proxy settings for the container. But, based on the error message that was one of the last things I would check. Pure luck...


author: AnnWorley
body: Thanks for the good news, I am relieved that you found the issue.

If you have time to update this thread to let us know what you set differently on the proxy it may help the next person with an ambiguous error like that. (We have had a lot of Docker questions lately so it could be really useful.)


author: Lars Solberg
body: I'm in the same position now... Mind sharing what configuration you did to your proxy?


author: Lars Solberg
body: I accessed confluence directly on it's port exposed using docker (8090), but I still got this message. I ended up doing the setup using a blank start, then doing restore from admin, after I logged in using the admin-user...