Hi there, first, thank you for an amazing project. It’s been a wonderful community catalyst for us.
First a few details about our setup:
- We recently moved from the Ubuntu 12.04 to the docker setup (although I think this issue may have happened before). We upgraded by creating a backup in the admin panel and uploading it to our new clean docker install.
- We are on Discourse 0.9.9
- We are using a digital ocean 2 GB droplet with a 1 GB swap (just in case).
- We are running Ubuntu 12.04.4 LTS.
Some of our users are encountering a strange issue when creating new topics. For instance, this user posted a new topic with a hyperlink and ended up seeing this:
He was no longer able to see his post, but I was. It was not assigned a valid category, but rather a junk category that I have been trying to delete.
When I give this user admin rights he can see it OR when I re-categorize it (I have admin rights), it becomes visible to all.
Other users encountering the same issue have gotten message post failures that read “500 error” in a small modal window (sorry no screen shot). Still others have gotten this just after hitting the “create topic”:
In this case, like the others, the user was unable to view the topic because it was categorized with a category that they were unable to see (he was not an admin). When I manually categorized it, everyone was able to see it.
Ultimately, from my sleuthing it seems to be some kind of problem related to a bogus category mixing with the permissions of the newer [Staff] category (we started using Discourse before that category was added).
Here are some other clues from my end.
Sidekiq is choking on lots of
category_idwhen sending email updates.
I look at one of these failed posts and find it in the “staff” cateogory.
I open the strange post.
I check its category:
So my theory is that on occasion, when users are creating a new topic, this “Ghost” category (maybe it has a nil category id?) is being assigned to the topic (this happens even when the user manually selects a different category). Since this category is broken and has admin only security settings (not sure where to change that on a category I can’t see … without a manual dive into the database), the user is unable to see their new post.
Hopefully this makes some sense …
Thanks for thinking about it with us!