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 *

Your post must include a link to this post.

How does this work?
Write a response on your own website and include a link to this post. Then submit your response’s URL here. Your response may appear here after moderation. To update or remove it, edit or delete your original post and submit the same URL again. Learn more about Webmentions.