Job exception: undefined method `name' for

Hi everyone,

Discourse 2.5.0.beta6 ( 7fe414d35d )

My log files are quite full off these:

Job exception: undefined method `name’ for #<#Class:0x00007fa29345f668:0x00007fa27e26e3a0>

eg:

Clicking on one reveals more details:

/var/www/discourse/lib/pretty_text.rb:529:in `block in lookup_mentions'

/var/www/discourse/lib/pretty_text.rb:529:in `each'

/var/www/discourse/lib/pretty_text.rb:529:in `lookup_mentions'

/var/www/discourse/lib/pretty_text.rb:460:in `add_mentions'

/var/www/discourse/lib/pretty_text.rb:275:in `cook'

/var/www/discourse/app/models/post_analyzer.rb:31:in `cook'

/var/www/discourse/app/models/post_analyzer.rb:134:in `cooked_stripped'

/var/www/discourse/app/models/post_analyzer.rb:70:in `raw_mentions'

/var/www/discourse/app/models/post.rb:274:in `public_send'

/var/www/discourse/app/models/post.rb:274:in `block (2 levels) in <class:Post>'

/var/www/discourse/app/services/post_alerter.rb:486:in `extract_mentions'

/var/www/discourse/app/services/post_alerter.rb:62:in `after_save_post'

/var/www/discourse/app/jobs/regular/post_alert.rb:11:in `execute'

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

rails_multisite-2.2.2/lib/rails_multisite/connection_management.rb:68: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'

sidekiq-6.0.7/lib/sidekiq/processor.rb:196:in `execute_job'

sidekiq-6.0.7/lib/sidekiq/processor.rb:164:in `block (2 levels) in process'

sidekiq-6.0.7/lib/sidekiq/middleware/chain.rb:138:in `block in invoke'

/var/www/discourse/lib/sidekiq/pausable.rb:138:in `call'

sidekiq-6.0.7/lib/sidekiq/middleware/chain.rb:140:in `block in invoke'

sidekiq-6.0.7/lib/sidekiq/middleware/chain.rb:143:in `invoke'

sidekiq-6.0.7/lib/sidekiq/processor.rb:163:in `block in process'

sidekiq-6.0.7/lib/sidekiq/processor.rb:136:in `block (6 levels) in dispatch'

sidekiq-6.0.7/lib/sidekiq/job_retry.rb:111:in `local'

sidekiq-6.0.7/lib/sidekiq/processor.rb:135:in `block (5 levels) in dispatch'

sidekiq-6.0.7/lib/sidekiq.rb:37:in `block in <module:Sidekiq>'

sidekiq-6.0.7/lib/sidekiq/processor.rb:131:in `block (4 levels) in dispatch'

sidekiq-6.0.7/lib/sidekiq/processor.rb:257:in `stats'

sidekiq-6.0.7/lib/sidekiq/processor.rb:126:in `block (3 levels) in dispatch'

sidekiq-6.0.7/lib/sidekiq/job_logger.rb:13:in `call'

sidekiq-6.0.7/lib/sidekiq/processor.rb:125:in `block (2 levels) in dispatch'

sidekiq-6.0.7/lib/sidekiq/job_retry.rb:78:in `global'

sidekiq-6.0.7/lib/sidekiq/processor.rb:124:in `block in dispatch'

sidekiq-6.0.7/lib/sidekiq/logger.rb:10:in `with'

sidekiq-6.0.7/lib/sidekiq/job_logger.rb:33:in `prepare'

sidekiq-6.0.7/lib/sidekiq/processor.rb:123:in `dispatch'

sidekiq-6.0.7/lib/sidekiq/processor.rb:162:in `process'

sidekiq-6.0.7/lib/sidekiq/processor.rb:78:in `process_one'

sidekiq-6.0.7/lib/sidekiq/processor.rb:68:in `run'

sidekiq-6.0.7/lib/sidekiq/util.rb:15:in `watchdog'

sidekiq-6.0.7/lib/sidekiq/util.rb:24:in `block in safe_thread'

Any suggestions or remedial advice gratefully accepted.

Further, if this helps:

Do you have any third-party plugins installed?

Only one… Locations Plugin

Should I disable and see what happens?

Plugin disabled, errors still coming in :confused:

I rebooted the server this morning.

It’s all gone quiet since :+1:

It also seems to have cured this issue too: https://meta.discourse.org/t/onebox-for-same-site-not-working-revisited/154421/5

Possibly all related :man_shrugging:

2 Likes

This topic was automatically closed after 8 hours. New replies are no longer allowed.