I just moved a forum from
forum.name.com but it failed:
Error: ERROR: duplicate key value violates unique constraint “unique_post_links”
DETAIL: Key (topic_id, post_id, url)=(246, 813, http://forum.name.com) already exists.
The remap has only been partially applied due to the error above. Please re-run the script again.
So I ran it again (it failed again) then did
rake posts:rebake and checked the forum to find I have some instances of
forum.forum.name.com. (So then do
discourse remap forum.forum.name.com forum.name.com and
rake posts:rebake to try and fix it - with some success, I had to change some instances manually).
I have some questions:
discourse remap name.com forum.name.comonly apply to post content? If not, is it just Site Settings I need to look through to find possible issues?
- Should it be run in some sort of transaction? (If so, it didn’t appear to when it failed for me)