Job exception error in logs


I’ve got the following errors in /logs. I am not sure this is related with Chat plugin but I found a line in backtrace which mention discourse-chat.

Discourse version: 5374e587a3
Discourse Chat plugin version: dcbfdbd502

Job exception: wrong number of arguments (given 3, expected 0..1)


activerecord- `exists?'

activerecord- `exists?'

/var/www/discourse/plugins/discourse-chat/plugin.rb:165:in `block (2 levels) in activate!'

/var/www/discourse/app/jobs/scheduled/clean_up_uploads.rb:45:in `block (2 levels) in execute'

/var/www/discourse/app/jobs/scheduled/clean_up_uploads.rb:45:in `any?'

/var/www/discourse/app/jobs/scheduled/clean_up_uploads.rb:45:in `block in execute'

activerecord- `block (2 levels) in find_each'

activerecord- `each'

activerecord- `block in find_each'

activerecord- `block in find_in_batches'

activerecord- `block in in_batches'

activerecord- `loop'

activerecord- `in_batches'

activerecord- `find_in_batches'

activerecord- `find_each'

/var/www/discourse/app/jobs/scheduled/clean_up_uploads.rb:38:in `execute'

/var/www/discourse/app/jobs/base.rb:232:in `block (2 levels) in perform'

rails_multisite-4.0.0/lib/rails_multisite/connection_management.rb:80:in `with_connection'

/var/www/discourse/app/jobs/base.rb:221:in `block in perform'

/var/www/discourse/app/jobs/base.rb:217:in `each'

/var/www/discourse/app/jobs/base.rb:217:in `perform'

/var/www/discourse/app/jobs/base.rb:279:in `perform'

mini_scheduler-0.13.0/lib/mini_scheduler/manager.rb:93:in `process_queue'

mini_scheduler-0.13.0/lib/mini_scheduler/manager.rb:37:in `block (2 levels) in initialize'

Thanks :slightly_smiling_face:

Is this still happening @dodesz?

1 Like

Thanks for bumping this Jammy :slightly_smiling_face:

Nope, I haven’t seen this in a while.

1 Like

No worries. :slightly_smiling_face: I’ll close it out, but if you spot it again you can flag the topic for re-opening. :+1:

1 Like