Outline: Migrate data

Created on 2 Jan 2020  Â·  3Comments  Â·  Source: outline/outline

Hi!

Is there a simple way to migrate all the documents data in self hosted universe?
I am deploying outline on a new server and want to restore my data from outline of the old server.

Thanks

question self-hosted

Most helpful comment

If I had to guess it would be that the SECRET_KEY environment variable does not match the one on the previous server. They must be the same or encrypted fields in the database cannot be decrypted.

All 3 comments

Hi – you should just copy the postgres database itself or connect to the same database from the new server. The are lots of guides on how to do this, eg:
https://www.postgresqltutorial.com/postgresql-copy-database/

There is no permanent data stored on the server Outline is hosted on.

@tommoor
I am having problems with that. I am deploying with docker compose.

I had copied the postgres database and made a volume. In the db i can see its all ok, but when i tried to login there is an error:

image

The log is:
UnhandledPromiseRejectionWarning: Error: error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt

If I had to guess it would be that the SECRET_KEY environment variable does not match the one on the previous server. They must be the same or encrypted fields in the database cannot be decrypted.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

compengsamit picture compengsamit  Â·  6Comments

carvalhorafael picture carvalhorafael  Â·  5Comments

tommoor picture tommoor  Â·  9Comments

tommoor picture tommoor  Â·  5Comments

gaui picture gaui  Â·  6Comments