So I’m migrating my Discourse instance to another server. According to Move your Discourse Instance to a Different Server, I created a backup and downloaded to my computer. Then I have a fresh installation on the new server. But when I try to restore, bad things happen:
[2018-04-27 11:32:32] 'vencent' has started the restore! [2018-04-27 11:32:32] Marking restore as running... [2018-04-27 11:32:32] Making sure /var/www/discourse/tmp/restores/default/2018-04-27-113232 exists... [2018-04-27 11:32:32] Copying archive to tmp directory... [2018-04-27 11:32:32] Unzipping archive, this may take a while... [2018-04-27 11:32:33] No metadata file to extract. [2018-04-27 11:32:33] Validating metadata... [2018-04-27 11:32:33] Current version: 20180308071922 [2018-04-27 11:32:33] Restored version: 20171228122834 [2018-04-27 11:32:33] Extracting dump file... [2018-04-27 11:32:33] Cannot restore into different schema, restoring in-place [2018-04-27 11:32:33] Enabling readonly mode... [2018-04-27 11:32:33] Pausing sidekiq... [2018-04-27 11:32:33] Waiting for sidekiq to finish running jobs... [2018-04-27 11:32:34] Restoring dump file... (can be quite long)
Then it gets stuck at the last line and never show anything new for like 20 minutes. But my site is so small that it wouldn’t take so long like this. Also, there is nothing new in
/var/discourse/shared/standalone/log/var-log/postgres/current after a few minutes. I guess the restoring process seems broken… I tried again with no success. Is there any way to solve this problem?
FYI, the version of my old instance is 1.9.3 if I’m remembering clearly.