Menu Home

Cleaning Mastodon PushNotificationWorker failures

Hey Mastodon admins,
I’ve noticed lots of errors in the logs and sidekiq dead queue similar to a failure for pushrelay-mast1.your.org.

These come from failed mobile/web notification services which are registered for your users… and they fail repeatively!


Note: if you know who runs/ran the failing push services, maybe give them a message and see if it’s in any way required any more.

Two commands to clean that spam from the sidekiq dead queue and error logs in general.

On the irb console – docker-compose exec web bundle exec rails console on docker

Web::PushSubscription.where('endpoint LIKE ?', 'https://pushrelay-mast1.your.org/%').in_batches.delete_all
and
Sidekiq::DeadSet.new.select {_1.display_class == "Web::PushNotificationWorker"}.map(&:delete)

should resolve the problem of this dead push relay.

Categories: Mastodon TECHNICAL

shlee

Leave a Reply

Your email address will not be published. Required fields are marked *

To respond on your own website, enter the URL of your response which should contain a link to this post's permalink URL. Your response will then appear (possibly after moderation) on this page. Want to update or remove your response? Update or delete your post and re-enter your post's URL again. (Find out more about Webmentions.)