Topic closed without system record

Nice thought! When I try deleting my own topic as normal user, the topic does indeed close without a small action post to note the closure (the happens in the code here). If I recover the topic that I had marked for deletion, it does not create a small action post either. This behavior on its own seems fine to me.

The wildcard here seems to be the moderators. I think we need to find out what it is they are doing and why they are doing it.

@Fabby there is an edit on Configuring VPN using nmcli - Network - Manjaro Linux Forum that I cannot view. Can you confirm the nature of the edit? Was it a ā€œ(topic deleted by author)ā€ situation?

1 Like

That post was reclassified from the #support to the #network category is all I can seeā€¦

Nothing else in the moderation history, no user note, ā€¦ except that it had to be ā€œopenedā€ by a mod. (not reopened, just opened)

:thinking:

1 Like

Itā€™s still happening and weā€™re still tracking them when we find one. Should we not restore them next time and inform you of the deleted ones?

If you want, we can make you a mod so you can see whatā€™s happening first handā€¦

:face_with_monocle:

I am certain our mods did not close it.

I have been observing our forum ā€“ it seems like it is related to the original poster deleting the original post. The system doesnā€™t delete or hide the post for some reason until sometime later. The thread just shows as locked without any system record, leading to confusion.

I am not sure what is causing the issue or whether the locked thread is visible to only high trust level users (TL4). this is a pattern I have been observing.

Hope this helps with debugging!

EDIT: I also notice that none of these locked OPs has any replies. So the post must have been deleted within a short period of time after creation.

If itā€™s the case of the user deleting their own topic then I donā€™t think this is a bug. You can ā€˜deleteā€™ your own topics as long as there are no replies. It works in a similar way to using the dustbin icon on any of your none-OP posts (first the text is replaced by ā€˜deleted by authorā€™, and then the post is hidden after 24 hours).

If youā€™re a normal user and not staff/mod/admin etc then it doesnā€™t get a small action under it.

Hereā€™s an example Iā€™ve just knocked up on try.discourse.org (though the demo site gets wiped at the end of the day, so it may not still be there by the time you read this :slightly_smiling_face:)

3 Likes

I donā€™t know what day youā€™re in (youā€™ve posted this >9h when I read that, but I get:

Oops! That page doesnā€™t exist or is private.

Just yesterday I saw one myself that had a response, so thatā€™s most definitely not "it"

:sob:

Iā€™m on UK time (BST), but I wasnā€™t sure when the demo site gets it daily reset. The topic would have disappeared after 24 hours anyway, so maybe I should have taken a screenshot instead. :slightly_smiling_face:

Though it turns out I was just repeating something from earlier in the topic anyway, so my bad. :slightly_smiling_face:

I hope you figure it out. :crossed_fingers:

3 Likes

I really need more information to properly dig in to this. Iā€™m willing to try a few more things, but I just donā€™t have much to go on. I donā€™t think just looking at a topic as an anon user is going to give me anything useful at this point. You may need to seek out someone in the marketplace that can dig into your logs, site settings, and database to really see whatā€™s going on.

@littleviolette does your site suppress edit history? The screenshot in the OP of this topic does not seem like a self-deleted topic since the content is all there and there is no edit icon next to the timestamp. If it was self-deleted, it should show something like ā€œdeleted by authorā€ and an edit indication.

@Fabby At this point, Iā€™m unsure if you and littleviolette are experiencing the same thing. You had decided not to look into some of the suggestions based on some of littlevioletteā€™s answers, so Iā€™d like to circle back. Is there any follow up here:

I also would like to know if you use the API or run any integrations with other services.

If you two can give me your best summary of the problem again based on everything youā€™ve observed since the start of this topic, that would be appreciated! Itā€™s getting a little hard to follow everything, so a summary I can refer back to while testing would be awesome.

2 Likes

Hey Taylor,

Summary:

  1. Currently running 2.8.0.beta4, issue is still happening

  2. Plugins from today:

    Name Version Enabled?
    Discourse-auto-deactivate Automatically deactivates inactive users so that they need to recomfirm their email in order to login in again 0.0.1 Y
    discourse-chat-integration This plugin integrates discourse with a number of chat providers 0.1 Y
    discourse-fingerprint Computes user fingerprints to help administrators combat internet trolls. 2 Y
    discourse-push-notifications Plugin for integrating Chrome and FireFox push notifications 0.3.0 Y
    discourse-solved Add a solved b utton to answers on Discourse 0.1 Y
    discourse-user-notes Gives the ability for staff members to attach notes to users 0.0.2 Y
    docker_managerdocker_manager Docker manager for Discourse image 0.1 Y
    procourse-installer A Discourse plugin for discovering and installing other Discourse plugins. 0.1 Y
    retort React7ions plugin for Discourse 1.2.3 Y
    styleguide Preview how Widgets are Styled in Discourse 0.2 N
  3. Unlimited edits on first post enabled: issue still happening

  4. If we filter we cannot see anything for that time: no system, no discobot, no mod. (it would be nice if we could filter discobot out!)

  5. I donā€™t understand what this means: Post a topic there with the problem definition and the above summary asking for someone that can dig into your logs, site settings, and database to really see whatā€™s going on ???

  6. Is there any technical information (HTML / Wiki / PDF manuals; no videoā€™s, please!) available on Discourse that allows us to look into this ourselves because youā€™re dealing with a bunch of Nerds and Geeks here (With Capitals) and he have PostgreSQL, networking, virtualisation, devs, *nix enigneering, Windows professionals in our mod teamā€¦

:question:

1 Like

If you examine the topics table in your database you should be able to figure out the exact moment the topic was closed (for instance by inspecting the updated_at column). You might want to run a script that periodically dumps the contents of the topic table so you can go back in time. If you happen to have set up a Postgresql replication log you might be able to leverage that.

Then you need to find out if there was something that triggered this. This can be either a Sidekiq job (so you need to inspect the Sidekiq job queue to see which jobs ran around that time), a user action (so you need to inspect production.log or the nginx log file) or an external actor (API client, Zapier and such) calling the API (this can also be found in production.log or the nginx log file).

3 Likes

Richard,

  • Thank you for the information and if I knew where to look, Iā€™m pretty sure that would be very helpful to me. :grin:
  • Could you please take 3 steps back and give me a link to a document describing step 1, as Iā€™m a moderator on the site and have never installed Discourse and the Manjaro discourse owners are also the Manjaro project leads so pretty busy.
  • Is being a moderator enough or do I need to be asked to be promoted to owner to dig that deep?

The only things I know about discourse are:

  • Sam and Code_horror are the founders
  • It runs on a PostgreSQL back-end (which I have installed / run before)
  • There is one level up in the hierarchy from moderator and that is Owner
  • Discourse is pretty good software! :joy:

:upside_down_face: :confused:

Iā€™m a bit confused here.

since you said

so they should be able to figure out what I said?

Anyway. I do not have such a document - and if youā€™re going to need that much hand holding Iā€™m afraid you should follow Taylors suggestion and post in marketplace after all. There is no role ā€œownerā€ and you will need system level access (so outside of Discourse, on the system itself).

4 Likes

Thank you. Clearer now. Iā€™ll post a summary of this conversation locally on the modā€™s board and see what comes out.

:+1:

1 Like

@tshenry ,

Thank you for circling back and apologies for the delayed response. Here is what we have observed so far:

  1. A topic is shown as locked without any record of the system or a user locking it. Such record cannot be found in Logs either. The mysterious auto-close happens only to topics with only the first post, presumably soon after the post was created based on the screenshot our user has submitted below showing the original post was created 2m ago.

  1. Approximately 1 day after the original post was created, the system deletes the original post. Here are the timestamps of two topics that have been locked without record then subsequently deleted by the system.

Original post created: Aug. 26, 2021 6:34PM
Original post deleted by system: Aug. 27, 2021 6:41PM

Original post created: Jul 31, 2021 5:48PM
Original post deleted by the system: Aug. 01, 2021 6:02PM

This is an example screenshot of the topic that I posted in the OP of this thread today:

Regarding our forum configurations:

  1. No we do not suppress edit history;
  2. We do not have any unofficial plugins installed to our knowledge. Here are the plugins we have installed on our forum:

  1. We have auto-close topics set up in some categories, but this mysterious auto-close occurs in categories that do not have auto-close timer set up as well;
  2. We do not have solved topics auto close hours set up;
  3. Our mods do not manually add auto-close timers to topics or attempt to manually cancel existing timers;
  4. Topics with this issue are not topics that were moved between categories?
  5. We are running on 2.8.0.beta6, updated 2 days ago. We havenā€™t had any reporting of this abnormal auto-close behavior recently. I will report back if we see it again.

Thank you for your help!

4 Likes

Reporting back:

I spotted two auto-closed threads recently from the same OP without system record. I immediately contacted the OP and asked whether he just deleted the posts and the OP said yes. This happened in a category that does not have an auto-close timer set.

I suspect the issue is related to the OP deleting the first post. However, when I re-opened one of the threads this time, the original post doesnā€™t get deleted after 24 hours. I am not sure why, but I hope this provide some context for those who have the capability to troubleshoot.

Thanks a lot!

3 Likes

@tshenry In case it might help with debugging, this has happened twice on our discourse.group forum as well. Hereā€™s a link to a mysteriously closed topic (already reopened): https://igraph.discourse.group/t/how-should-i-do-for-reducing-graph-object-memory-usage/909

I asked about this on Discourse Meta here:

EDIT: It seems that this happens when the user who posted attempts to delete their post. Deleted posts appear locked to outside viewers, without an indication that the post was in fact deleted (and not just locked). The good news is that the person who posted can ā€œunlockā€ it by undeleting. See the above-linked topic for more details.

3 Likes

Ohh, this is looking very promising! I have had a lot of other things on my plate recently, so I havenā€™t had a great opportunity to dive back in. Iā€™ll try to give it another go this week. Hopefully I can come up with a definitive repro to pass to the dev team given the great info everyone has shared.

Thanks to everyone thatā€™s helped with trying to figure this one out!

Edit: Ran out of time this week, but have it high up on my list next week.

3 Likes

Hey @IAmGav :wave:

Would you mind confirming all of the steps you took to reproduce this issue? No detail is too small at this point! Iā€™ve tried many times, many ways to trigger it without success on try.discourse.org. Are you able to trigger it there by chance?

These are the main points Iā€™ve tried from the user side of things:

  • using the exact topic title and content you did
  • self-deleting the topic immediately
  • self-deleting the topic after the edit grace period
  • both as trust level 0 and 1
  • selecting a category and tag

In all cases so far, an edit revision appears on the post and the contents are replaced with ā€œ(topic deleted by author)ā€

Iā€™m in contact with @szhorvat as well to try to cover the admin side of things, hoping to see if there are any interesting site setting configurations.

1 Like

i tried it on try.discourse and it did give the expected behavior

I also tried to on a site i create last night for testing and it also worked

So it might be something on that site.

1 Like

Step what I did on site to replicate the issue.

  1. create an account
  2. confirm email to account
  3. create a normal post
  4. delete created post

itā€™s that easy

1 Like