Project

General

Profile

Bug #22190

Error performing CreateRssNotifications

Added by Ohad Levy almost 3 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
Difficulty:
Triaged:
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

2018-01-09T13:46:26  [app] [E] Error performing CreateRssNotifications (Job ID: 6eaba94b-79b6-4e79-b518-795e017bf357) from Dynflow(default) in 1620.94ms: NoMethodError (undefined method `[]' for nil:NilClass):
 | /home/foreman/git/foreman/app/services/ui_notifications/rss_notifications_checker.rb:31:in `initialize'
 | /home/foreman/git/foreman/app/jobs/create_rss_notifications.rb:8:in `new'
 | /home/foreman/git/foreman/app/jobs/create_rss_notifications.rb:8:in `perform'
 | /home/foreman/gems/gems/activejob-5.1.4/lib/active_job/execution.rb:37:in `block in perform_now'
 | /home/foreman/gems/gems/activesupport-5.1.4/lib/active_support/callbacks.rb:108:in `block in run_callbacks'
 | /home/foreman/gems/gems/i18n-0.9.1/lib/i18n.rb:265:in `with_locale'
 | /home/foreman/gems/gems/activejob-5.1.4/lib/active_job/translation.rb:7:in `block (2 levels) in <module:Translation>'
 | /home/foreman/gems/gems/activesupport-5.1.4/lib/active_support/callbacks.rb:117:in `instance_exec'
 | /home/foreman/gems/gems/activesupport-5.1.4/lib/active_support/callbacks.rb:117:in `block in run_callbacks'
 | /home/foreman/gems/gems/activejob-5.1.4/lib/active_job/logging.rb:24:in `block (4 levels) in <module:Logging>'
 | /home/foreman/gems/gems/activesupport-5.1.4/lib/active_support/notifications.rb:166:in `block in instrument'
 | /home/foreman/gems/gems/activesupport-5.1.4/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
 | /home/foreman/gems/gems/activesupport-5.1.4/lib/active_support/notifications.rb:166:in `instrument'
 | /home/foreman/gems/gems/activejob-5.1.4/lib/active_job/logging.rb:23:in `block (3 levels) in <module:Logging>'
 | /home/foreman/gems/gems/activejob-5.1.4/lib/active_job/logging.rb:46:in `tag_logger'
 | /home/foreman/gems/gems/activejob-5.1.4/lib/active_job/logging.rb:20:in `block (2 levels) in <module:Logging>'
 | /home/foreman/gems/gems/activesupport-5.1.4/lib/active_support/callbacks.rb:117:in `instance_exec'
 | /home/foreman/gems/gems/activesupport-5.1.4/lib/active_support/callbacks.rb:117:in `block in run_callbacks'
 | /home/foreman/gems/gems/activesupport-5.1.4/lib/active_support/callbacks.rb:135:in `run_callbacks'
 | /home/foreman/gems/gems/activejob-5.1.4/lib/active_job/execution.rb:33:in `perform_now'
 | /home/foreman/gems/gems/activejob-5.1.4/lib/active_job/execution.rb:16:in `perform_now'
 | /home/foreman/gems/gems/dynflow-0.8.34/lib/dynflow/active_job/queue_adapter.rb:33:in `run'
 | /home/foreman/gems/gems/dynflow-0.8.34/lib/dynflow/action.rb:518:in `block (3 levels) in execute_run'
 | /home/foreman/gems/gems/dynflow-0.8.34/lib/dynflow/middleware/stack.rb:26:in `pass'
 | /home/foreman/gems/gems/dynflow-0.8.34/lib/dynflow/middleware.rb:18:in `pass'
 | /home/foreman/gems/gems/dynflow-0.8.34/lib/dynflow/action/progress.rb:30:in `with_progress_calculation'
 | /home/foreman/gems/gems/dynflow-0.8.34/lib/dynflow/action/progress.rb:16:in `run'
 | /home/foreman/gems/gems/dynflow-0.8.34/lib/dynflow/middleware/stack.rb:22:in `call'
 | /home/foreman/gems/gems/dynflow-0.8.34/lib/dynflow/middleware/stack.rb:26:in `pass'
 | /home/foreman/gems/gems/dynflow-0.8.34/lib/dynflow/middleware.rb:18:in `pass'
 | /home/foreman/gems/gems/dynflow-0.8.34/lib/dynflow/middleware.rb:31:in `run'
 | /home/foreman/gems/gems/dynflow-0.8.34/lib/dynflow/middleware/stack.rb:22:in `call'
 | /home/foreman/gems/gems/dynflow-0.8.34/lib/dynflow/middleware/world.rb:30:in `execute'
 | /home/foreman/gems/gems/dynflow-0.8.34/lib/dynflow/action.rb:517:in `block (2 levels) in execute_run'
 | /home/foreman/gems/gems/dynflow-0.8.34/lib/dynflow/action.rb:516:in `catch'
 | /home/foreman/gems/gems/dynflow-0.8.34/lib/dynflow/action.rb:516:in `block in execute_run'
 | /home/foreman/gems/gems/dynflow-0.8.34/lib/dynflow/action.rb:431:in `block in with_error_handling'
 | /home/foreman/gems/gems/dynflow-0.8.34/lib/dynflow/action.rb:431:in `catch'
 | /home/foreman/gems/gems/dynflow-0.8.34/lib/dynflow/action.rb:431:in `with_error_handling'
 | /home/foreman/gems/gems/dynflow-0.8.34/lib/dynflow/action.rb:511:in `execute_run'
 | /home/foreman/gems/gems/dynflow-0.8.34/lib/dynflow/action.rb:268:in `execute'
 | /home/foreman/gems/gems/dynflow-0.8.34/lib/dynflow/execution_plan/steps/abstract_flow_step.rb:9:in `block (2 levels) in execute'
 | /home/foreman/gems/gems/dynflow-0.8.34/lib/dynflow/execution_plan/steps/abstract.rb:155:in `with_meta_calculation'
 | /home/foreman/gems/gems/dynflow-0.8.34/lib/dynflow/execution_plan/steps/abstract_flow_step.rb:8:in `block in execute'
 | /home/foreman/gems/gems/dynflow-0.8.34/lib/dynflow/execution_plan/steps/abstract_flow_step.rb:22:in `open_action'
 | /home/foreman/gems/gems/dynflow-0.8.34/lib/dynflow/execution_plan/steps/abstract_flow_step.rb:7:in `execute'
 | /home/foreman/gems/gems/dynflow-0.8.34/lib/dynflow/director.rb:42:in `execute'
 | /home/foreman/gems/gems/dynflow-0.8.34/lib/dynflow/executors/parallel/worker.rb:11:in `on_message'
 | /home/foreman/gems/gems/concurrent-ruby-edge-0.2.4/lib/concurrent/actor/context.rb:46:in `on_envelope'
 | /home/foreman/gems/gems/concurrent-ruby-edge-0.2.4/lib/concurrent/actor/behaviour/executes_context.rb:7:in `on_envelope'
 | /home/foreman/gems/gems/concurrent-ruby-edge-0.2.4/lib/concurrent/actor/behaviour/abstract.rb:25:in `pass'
 | /home/foreman/gems/gems/dynflow-0.8.34/lib/dynflow/actor.rb:26:in `on_envelope'
 | /home/foreman/gems/gems/concurrent-ruby-edge-0.2.4/lib/concurrent/actor/behaviour/abstract.rb:25:in `pass'
 | /home/foreman/gems/gems/concurrent-ruby-edge-0.2.4/lib/concurrent/actor/behaviour/awaits.rb:15:in `on_envelope'
 | /home/foreman/gems/gems/concurrent-ruby-edge-0.2.4/lib/concurrent/actor/behaviour/abstract.rb:25:in `pass'
 | /home/foreman/gems/gems/concurrent-ruby-edge-0.2.4/lib/concurrent/actor/behaviour/sets_results.rb:14:in `on_envelope'
 | /home/foreman/gems/gems/concurrent-ruby-edge-0.2.4/lib/concurrent/actor/behaviour/abstract.rb:25:in `pass'
 | /home/foreman/gems/gems/concurrent-ruby-edge-0.2.4/lib/concurrent/actor/behaviour/buffer.rb:38:in `process_envelope'
 | /home/foreman/gems/gems/concurrent-ruby-edge-0.2.4/lib/concurrent/actor/behaviour/buffer.rb:31:in `process_envelopes?'
 | /home/foreman/gems/gems/concurrent-ruby-edge-0.2.4/lib/concurrent/actor/behaviour/buffer.rb:20:in `on_envelope'
 | /home/foreman/gems/gems/concurrent-ruby-edge-0.2.4/lib/concurrent/actor/behaviour/abstract.rb:25:in `pass'
 | /home/foreman/gems/gems/concurrent-ruby-edge-0.2.4/lib/concurrent/actor/behaviour/termination.rb:55:in `on_envelope'
 | /home/foreman/gems/gems/concurrent-ruby-edge-0.2.4/lib/concurrent/actor/behaviour/abstract.rb:25:in `pass'
 | /home/foreman/gems/gems/concurrent-ruby-edge-0.2.4/lib/concurrent/actor/behaviour/removes_child.rb:10:in `on_envelope'
 | /home/foreman/gems/gems/concurrent-ruby-edge-0.2.4/lib/concurrent/actor/behaviour/abstract.rb:25:in `pass'
 | /home/foreman/gems/gems/concurrent-ruby-edge-0.2.4/lib/concurrent/actor/behaviour/sets_results.rb:14:in `on_envelope'
 | /home/foreman/gems/gems/concurrent-ruby-edge-0.2.4/lib/concurrent/actor/core.rb:161:in `process_envelope'
 | /home/foreman/gems/gems/concurrent-ruby-edge-0.2.4/lib/concurrent/actor/core.rb:95:in `block in on_envelope'
 | /home/foreman/gems/gems/concurrent-ruby-edge-0.2.4/lib/concurrent/actor/core.rb:118:in `block (2 levels) in schedule_execution'
 | /home/foreman/gems/gems/concurrent-ruby-1.0.5/lib/concurrent/synchronization/mri_lockable_object.rb:38:in `block in synchronize'
 | /home/foreman/gems/gems/concurrent-ruby-1.0.5/lib/concurrent/synchronization/mri_lockable_object.rb:38:in `synchronize'
 | /home/foreman/gems/gems/concurrent-ruby-1.0.5/lib/concurrent/synchronization/mri_lockable_object.rb:38:in `synchronize'
 | /home/foreman/gems/gems/concurrent-ruby-edge-0.2.4/lib/concurrent/actor/core.rb:115:in `block in schedule_execution'
 | /home/foreman/gems/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/serialized_execution.rb:18:in `call'
 | /home/foreman/gems/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/serialized_execution.rb:96:in `work'
 | /home/foreman/gems/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/serialized_execution.rb:77:in `block in call_job'
 | /home/foreman/gems/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/ruby_thread_pool_executor.rb:348:in `run_task'
 | /home/foreman/gems/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/ruby_thread_pool_executor.rb:337:in `block (3 levels) in create_worker'
 | /home/foreman/gems/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/ruby_thread_pool_executor.rb:320:in `loop'
 | /home/foreman/gems/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/ruby_thread_pool_executor.rb:320:in `block (2 levels) in create_worker'
 | /home/foreman/gems/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/ruby_thread_pool_executor.rb:319:in `catch'
 | /home/foreman/gems/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/ruby_thread_pool_executor.rb:319:in `block in create_worker'
 | /home/foreman/gems/gems/logging-2.2.2/lib/logging/diagnostic_context.rb:474:in `block in create_with_logging_context'

looking at the code options should be a hash and not an array?

Associated revisions

Revision 1af0a6c9 (diff)
Added by Ido Kanner almost 3 years ago

Fixes #22190 - Pass empty hash when options is nil (#5164)

History

#1 Updated by Ido Kanner almost 3 years ago

  • Assignee set to Ido Kanner

#2 Updated by The Foreman Bot almost 3 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/5160 added

#3 Updated by The Foreman Bot almost 3 years ago

  • Pull request https://github.com/theforeman/foreman/pull/5164 added

#4 Updated by Ohad Levy almost 3 years ago

  • Pull request deleted (https://github.com/theforeman/foreman/pull/5160)

#5 Updated by Marek Hulán almost 3 years ago

  • Legacy Backlogs Release (now unused) set to 330

#6 Updated by Marek Hulán almost 3 years ago

  • Legacy Backlogs Release (now unused) changed from 330 to 296

actually this should be cherrypicked to 1.17 where the rss notification were introduced

#7 Updated by Anonymous almost 3 years ago

  • % Done changed from 0 to 100
  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF