It looks like there’s a problem with a couple of site settings. You might want to check and correct the values of the following hidden settings in the rails console:
cd /var/discourse
./launcher enter app
rails c
SiteSetting.lounge_category_id
SiteSetting.meta_category_id
SiteSetting.staff_category_id
SiteSetting.uncategorized_category_id
You should be able to update the settings by doing something like the following in the rails console:
Thanks for the help, but sadly it did not work; even after setting the category id in the site settings, we’re still seeing the duplicate categories when restarting Discourse.
One thing I neglected to mention is that our Discourse instance is running inside OpenShift.
Well, then I’m not sure what’s going on here. Maybe there’s a problem how migrations are running in OpenShift?
db/fixtures/500_categories.rb is responsible for seeding categories and there are checks to prevent the creation of duplicate categories unless the site setting values are negative or the creation of the category is forced (the “Uncategorized” category must exist).