In a recent multisite install, I’ve set up some users to watch a category by changing the default user preferences and following the instructions by @sam.
Now, a post has been created in this category. However, the corresponding
PostAlert job seems to be running into an exception. Here are the symptoms:
Notifications are sent very slowly, only one is sent whenever
In Sidekiq (in the main site), I see a scheduled retry:
In the logs of the main site, the error is logged.
The log entry says
Job exception: unexpected return, with the following backtrace:
/var/www/discourse/plugins/discourse-push-notifications/plugin.rb:81:in `block (2 levels) in activate!' /var/www/discourse/lib/discourse_event.rb:12:in `block in trigger' /usr/local/lib/ruby/2.3.0/set.rb:306:in `each_key' /usr/local/lib/ruby/2.3.0/set.rb:306:in `each' /var/www/discourse/lib/discourse_event.rb:11:in `trigger' /var/www/discourse/app/services/post_alerter.rb:392:in `create_notification' /var/www/discourse/app/services/post_alerter.rb:509:in `block in notify_post_users' /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-220.127.116.11/lib/active_record/relation/delegation.rb:46:in `each' /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-18.104.22.168/lib/active_record/relation/delegation.rb:46:in `each' /var/www/discourse/app/services/post_alerter.rb:508:in `notify_post_users' /var/www/discourse/app/services/post_alerter.rb:105:in `after_save_post' /var/www/discourse/app/services/post_alerter.rb:5:in `post_created' /var/www/discourse/app/jobs/regular/post_alert.rb:7:in `execute' /var/www/discourse/app/jobs/base.rb:154:in `block (2 levels) in perform'
What’s going on here? Did I hit a #bug, or did I manage to damage the database?
I’m running version Discourse 1.8.0.beta10 - GitHub - discourse/discourse: A platform for community discussion. Free, open, simple. version 6bb2dd0584cede80c741a43f0628f1dea23ae7a1