Recurrent Notifications from User Post

Hi Guys,

One quick doubt, since I recovered my site from a backup, any time this one specific user replies to a topic, it generates constant “Edit” notifications to the user that created the Topic or that was being replied to.

Tried to investigate and seems like there is something weird in Sidekiq, on the “Retries” section some jobs just keep piling there and never seem to succeed. After removing them, the notifications stop (until the person posts on another topic and then a new one is generated).

The messages have this format:

Next Retry Retry Count Queue Job Arguments Error
in 1 minute 10 default Jobs::PostAlert {“post_id”=>25977142, “new_record”=>true, “options”=>nil, “current_site_id”=>“default”} Jobs::HandledExceptionWrapper: Wrapped ActiveRecord::RecordNotFound: Couldn’t find User with ‘id’=1452

From what I can infer here, it seems that a user doesn’t exist (even though it happens with the posts of a user that does exist and is active). So maybe is another one. Is there a query or something that I can do to double check this?

I tried some looking at the doc but if I need to “fix” something I’m nervous of blowing something up :sweat_smile:

Grateful for any help!

1 Like

Small Update:

  • Only happens with that one user.
  • Shows as if every message that user wrote is being “edited” in the notifications that users get (aka: if it is answering to another user, then that user will get recurrent “edit notifications” about that one post).
  • Rebuild doesn’t affect the issue.
  • Deleting the retrying job on Sidekiq seems to stop it forever for that one notification, but everytime that user posts, happens again.