Restore Error, i dont understand that error



i will move my Discourse Instance to a Different Server, i have found this…

Logs: [2018-02-09 13:12:50] [STARTED] [2018-02-09 13:12:51] 'Imperator' has started t -

I dont know how i fix this Error ERROR: current transaction is aborted, commands ignored until end of transaction block

(Rafael dos Santos Silva) #2
[2018-02-09 13:13:43] ERROR:  could not create unique index "posts_pkey"
[2018-02-09 13:13:43] DETAIL:  Key (id)=(45676) is duplicated.

This backup has invalid data.


Okay thanks,

any idea how i can fix this? :confused:

(Joshua Rosenfeld) #4

Generate a new backup.


same error :frowning:


Not working, i have try it now 4 times same error :frowning:


Nobody an idea how i can repair this? I got every time the same error.

I have try Backup with and without files.

(Neil Lalonde) #8

I don’t have any ideas about why this is happening. Is there anything about the site that you’re backing up that is unusual? Does it really have two posts with the same id? SELECT count(*) FROM posts WHERE id = 45676. I doubt it… but that backup seems to have two rows with that ID.


Not that I’m sick, I have some plugins installed. But I do not think anything unusual.
Discourse was installed on 17.08.2015, have made regular updates.

I’ve installed the plugin discourse-data-explorer and done your SQL query, that’s the result


that looks right for me


I do not want to be annoying, but I really have to move the discourse soon. However, I do not know what else to try.

Every new backup has the same error.

Is there still a possibility to bring the active Discourse on another server?

What else can I do?


So short feedback, every newly generated backup had the same error.

As written about the data-explorer is nothing twice, in the backup.
After deleting the double entry in the file was synonymous loading the backup.

Why all this is now only with the backup, I do not know.
The post was made by anonymous user.