[SOLVED] Setting up a cloned install

(Bahlsen) #1


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.

My problem is described here

(Jeff Atwood) #2

Why doesn’t Admin, Backups work?

(Bahlsen) #3

Because of this issue


May I should add, that I have tried this on a 100% clean install, with matching version numbers.

(Sam Saffron) #4

We should fix that, its a bug.

(Bahlsen) #5

So no chance of getting this to work from a snapshot?

Seems I hit a limit of 8 mails in 8 hours …

(Bahlsen) #6

For now, just disregard my impatience :slight_smile:

(Bahlsen) #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) #8

Thanks to @elberet for helping me get the backup to work.

(Régis Hanol) #9