I have attempted to restore a backup to a clean rebuild of discourse.
./launcher enter app
discourse restore my_backup.tar.gz
It starts restoring the dump file and the quits with the error:
ERROR: could not create unique index "badges_pkey" DETAIL: Key (id)=(37) is duplicated.
The backup was made with Discourse v1.8.0beta10 and I tried reverting to this version before restoring but it gave the same error.
I also tried a slightly older backup and that gave the same error so it isn’t just a single corrupt backup file.
Any ideas? Thanks.