Error Log: "Job exception: undefined method `closed' for nil:NilClass Did you mean? clone"


(Lutz Biermann) #1

This is not exactly an error, because everything seems to work as it should. But I really have a lot (several hundred) of this error in the log files of the latest build:

Job exception: undefined method `closed' for nil:NilClass
Did you mean?  clone

job	Jobs::PeriodicalUpdates

/var/www/discourse/app/models/topic_status_update.rb:82:in `schedule_auto_close_job'
/var/www/discourse/app/models/topic_status_update.rb:42:in `block in ensure_consistency!'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/relation/batches.rb:51:in `block (2 levels) in find_each'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/relation/batches.rb:51:in `each'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/relation/batches.rb:51:in `block in find_each'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/relation/batches.rb:124:in `find_in_batches'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/relation/batches.rb:50:in `find_each'
/var/www/discourse/app/models/topic_status_update.rb:41:in `ensure_consistency!'
/var/www/discourse/app/jobs/scheduled/periodical_updates.rb:28:in `execute'
/var/www/discourse/app/jobs/base.rb:154:in `block (2 levels) in perform'

(Alan Tan) #3

Thanks for reporting @Lutz.

Fixed in


(Alan Tan) #4