Bahlsen
(Bahlsen)
May 2, 2015, 7:15am
1
Hi
I have a cloned forum, which I need to do some setup on. My attempts so far has only resultet in grief and tears. If you are a seasoned Discourse sys-admin, and can fix this, please PM me.
Thanks
My problem is described here
https://meta.discourse.org/t/email-verification-not-working-in-a-cloned-forum/28203
Why doesn’t Admin, Backups work?
Bahlsen
(Bahlsen)
May 2, 2015, 10:00am
3
Because of this issue
http://meta-originpull.discourse.org/t/sql-error-during-import/27793
May I should add, that I have tried this on a 100% clean install, with matching version numbers.
sam
(Sam Saffron)
May 2, 2015, 10:09am
4
We should fix that, its a bug.
1 Like
Bahlsen
(Bahlsen)
May 2, 2015, 10:12am
5
So no chance of getting this to work from a snapshot?
Edit:
Seems I hit a limit of 8 mails in 8 hours …
Bahlsen
(Bahlsen)
May 2, 2015, 9:14pm
6
For now, just disregard my impatience
Bahlsen
(Bahlsen)
May 3, 2015, 7:36am
7
Unfortunately, the bug @sam mentioned still causes this.
[2015-05-03 07:30:42] CREATE INDEX
[2015-05-03 07:30:43] CREATE INDEX
[2015-05-03 07:30:44] psql:/var/www/discourse/tmp/restores/default/2015-05-03-072756/dump.sql:3864981: ERROR: could not create unique index "post_timings_unique"
[2015-05-03 07:30:44] DETAIL: Key (topic_id, post_number, user_id)=(13868, 7, 6580) is duplicated.
[2015-05-03 07:30:44] EXCEPTION: psql failed
[2015-05-03 07:30:44] /var/www/discourse/lib/backup_restore/restorer.rb:217:in `restore_dump'
/var/www/discourse/lib/backup_restore/restorer.rb:38:in `run'
/var/www/discourse/lib/backup_restore/backup_restore.rb:161:in `block in start!'
/var/www/discourse/lib/backup_restore/backup_restore.rb:158:in `fork'
/var/www/discourse/lib/backup_restore/backup_restore.rb:158:in `start!'
/var/www/discourse/lib/backup_restore/backup_restore.rb:17:in `restore!'
/var/www/discourse/app/controllers/admin/backups_controller.rb:74:in `restore'
Bahlsen
(Bahlsen)
May 3, 2015, 4:55pm
8
Thanks to @elberet for helping me get the backup to work.