# Job exception error in logs

**URL:** <https://meta.discourse.org/t/job-exception-error-in-logs/218826>\
**Category:** Bug\
**Tags:** chat\
**Created:** [February 19, 2022, 5:50pm UTC](https://meta.discourse.org/t/job-exception-error-in-logs/218826 "2022-02-19T17:50:26Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Don](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/don/32/228726_2.png) [@Don](https://meta.discourse.org/u/Don)\
**Post date:** [February 19, 2022, 5:50pm UTC](https://meta.discourse.org/t/job-exception-error-in-logs/218826/1 "2022-02-19T17:50:27Z")

</div>

Hello,

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.

![Screenshot 2022-02-19 at 18.37.14](https://global.discourse-cdn.com/meta/original/3X/5/7/57f64fd4cdc1176a38dfffa3469d9ef2395948d9.png)

Discourse version: [5374e587a3](https://github.com/discourse/discourse/commits/5374e587a319efcc248a0c059c1802eee9f90aa1)  
Discourse Chat plugin version: [dcbfdbd502](https://github.com/discourse/discourse-chat/commits/dcbfdbd50242441fc69b6f6645fb312bcdc51f23)

* * *

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

**backtrace**

```plaintext
activerecord-6.1.4.1/lib/active_record/relation/finder_methods.rb:302:in `exists?'

activerecord-6.1.4.1/lib/active_record/querying.rb:22:in `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-6.1.4.1/lib/active_record/relation/batches.rb:71:in `block (2 levels) in find_each'

activerecord-6.1.4.1/lib/active_record/relation/batches.rb:71:in `each'

activerecord-6.1.4.1/lib/active_record/relation/batches.rb:71:in `block in find_each'

activerecord-6.1.4.1/lib/active_record/relation/batches.rb:138:in `block in find_in_batches'

activerecord-6.1.4.1/lib/active_record/relation/batches.rb:245:in `block in in_batches'

activerecord-6.1.4.1/lib/active_record/relation/batches.rb:229:in `loop'

activerecord-6.1.4.1/lib/active_record/relation/batches.rb:229:in `in_batches'

activerecord-6.1.4.1/lib/active_record/relation/batches.rb:137:in `find_in_batches'

activerecord-6.1.4.1/lib/active_record/relation/batches.rb:70:in `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 🙂

---

_[View the full topic](https://meta.discourse.org/t/job-exception-error-in-logs/218826)._
