A user, Pad_Pors, encountered an error while restoring a backup during a migration to a fresh install of Discourse. The error message indicated a problem with notifying the admin, Something went wrong while notifying user. Despite this error, the restore process appeared to complete successfully. RGJ pointed out that this error may not be the cause of the restore failure, as it occurs after the restore is finished. Further investigation by RGJ revealed a NoMethodError that may be related to the issue. Pad_Pors later discovered a previous error related to a duplicated index, which may be the root cause of the problem. gerhard provided a link to a GitHub commit that may be relevant to the issue.
after installing discourse on a new server, registering a new admin (with the same username as the old admin), and restoring backups, everything goes well till the end, and then I got this error:
[2020-01-24 07:06:47] Notifying 'padpors' of the end of the restore... [2020-01-24 07:06:47] Something went wrong while notifying user.
I got another backup from the site, and tried to restore it via terminal using this howto: Restore a backup from the command line. but then at the end of the restore, I got the same error in the terminal:
Notifying 'system' of the end of the restore...
Something went wrong while notifying user.
Finished!
[FAILED]
Restore done.
since the backups were fine, I guess this is a bug.
I see this error all the time as well.
BUT… this error happens after the restore, and it finishes with SUCCESS. So it is an error, but it is certainly not causing restores to fail.
Unpausing sidekiq...
Marking restore as finished...
Notifying 'DHSupport' of the end of the restore...
Something went wrong while notifying user.
Finished!
[SUCCESS]
ERROR: could not create unique index "index_tags_on_lower_name"
DETAIL: Key (lower(name::text))=(زبا�) is duplicated.
EXCEPTION: psql failed: DETAIL: Key (lower(name::text))=(زبا�) is duplicated.