I had an rather old discourse (working ok) installation (Ver 2.6.0.beta4 = 1ac010db3c )
And I’m trying to restore its backup on a new/fresh Discourse installation (on a fresh/separate server). I’ve tried installing the new installation with the same plugins as the old one, and/or without any plugins also.
I am getting the following error in restoration (I’ve only pasting the last few lines of restore log, which I think are relevant, because before these lines, all log lines seem to show ‘ok’ msgs):
[2021-04-13 13:15:04] Restoring uploads, this may take a while... [2021-04-13 13:16:51] EXCEPTION: 855 of 1096 uploads are not migrated to S3. S3 migration failed for db 'default'. [2021-04-13 13:16:51] /var/www/discourse/lib/file_store/to_s3_migration.rb:131:in `raise_or_log' /var/www/discourse/lib/file_store/to_s3_migration.rb:78:in `migration_successful?' /var/www/discourse/lib/file_store/to_s3_migration.rb:357:in `migrate_to_s3' /var/www/discourse/lib/file_store/to_s3_migration.rb:65:in `migrate' /var/www/discourse/lib/file_store/s3_store.rb:240:in `copy_from' /var/www/discourse/lib/backup_restore/uploads_restorer.rb:62:in `restore_uploads' /var/www/discourse/lib/backup_restore/uploads_restorer.rb:44:in `restore' /var/www/discourse/lib/backup_restore/restorer.rb:62:in `run' /var/www/discourse/script/spawn_backup_restore.rb:23:in `restore' /var/www/discourse/script/spawn_backup_restore.rb:36:in `block in <main>' /var/www/discourse/script/spawn_backup_restore.rb:4:in `fork' /var/www/discourse/script/spawn_backup_restore.rb:4:in `<main>' [2021-04-13 13:16:51] Trying to rollback... [2021-04-13 13:16:51] Rolling back... [2021-04-13 13:16:52] Cleaning stuff up... [2021-04-13 13:16:52] Dropping functions from the discourse_functions schema... [2021-04-13 13:16:52] Removing tmp '/var/www/discourse/tmp/restores/default/2021-04-13-131303' directory... [2021-04-13 13:16:52] Marking restore as finished... [2021-04-13 13:16:52] Notifying 'bathinda' of the end of the restore...
In the mean time, I’ll try to update the old disco instance to the new/latest discourse version, then backup and then try to restore that backup on the new instance.
Edit1: Before starting restore operation, I’m just doing one thing, i.e. I configure the uploads folder and backup folder on my Aws S3 instance (copying the same id/secret etc from the old instance to the newly instance settings, and then starting the restore).