Project

General

Profile

Actions

Bug #23358

closed

Daily reports throw exception

Added by Trey Dockendorf almost 6 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Category:
-
Target version:
Fixed in Releases:
Found in Releases:

Description

This issue is actually in 1.17.0 but don't see that in "Found in release".

[root@foreman-test ~]# sudo -u foreman /bin/bash
bash-4.2$ /usr/sbin/foreman-rake reports:daily
k/opt/theforeman/tfm/root/usr/share/gems/gems/sequel-4.20.0/lib/sequel/database/schema_generator.rb:19: warning: constant ::Fixnum is deprecated
/opt/theforeman/tfm/root/usr/share/gems/gems/sequel-4.20.0/lib/sequel/database/schema_generator.rb:19: warning: constant ::Bignum is deprecated
/usr/share/foreman/lib/core_extensions.rb:183: warning: already initialized constant ActiveSupport::MessageEncryptor::DEFAULT_CIPHER
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activesupport-5.1.4/lib/active_support/message_encryptor.rb:22: warning: previous definition of DEFAULT_CIPHER was here
/opt/theforeman/tfm/root/usr/share/gems/gems/logging-1.8.2/lib/logging/appender.rb:139: warning: constant ::Fixnum is deprecated
/opt/theforeman/tfm/root/usr/share/gems/gems/logging-1.8.2/lib/logging/logger.rb:295: warning: constant ::Fixnum is deprecated
rake aborted!
ActionView::Template::Error: undefined method `audit_path' for #<#<Class:0x00000007e459b0>:0x00000007e2fe80>
Did you mean?  audio_path
/usr/share/foreman/app/helpers/audits_helper.rb:55:in `block in details'
/usr/share/foreman/app/helpers/audits_helper.rb:52:in `each'
/usr/share/foreman/app/helpers/audits_helper.rb:52:in `map'
/usr/share/foreman/app/helpers/audits_helper.rb:52:in `details'
/usr/share/foreman/app/views/audit_mailer/summary.html.erb:17:in `block in _29b113038a9f0101d00d96e716eda93a'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.4/lib/active_record/relation/delegation.rb:39:in `each'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.4/lib/active_record/relation/delegation.rb:39:in `each'
/usr/share/foreman/app/views/audit_mailer/summary.html.erb:6:in `_29b113038a9f0101d00d96e716eda93a'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionview-5.1.4/lib/action_view/template.rb:157:in `block in render'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activesupport-5.1.4/lib/active_support/notifications.rb:168:in `instrument'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionview-5.1.4/lib/action_view/template.rb:352:in `instrument_render_template'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionview-5.1.4/lib/action_view/template.rb:155:in `render'
/opt/theforeman/tfm/root/usr/share/gems/gems/deface-1.2.0/lib/deface/action_view_extensions.rb:41:in `render'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionview-5.1.4/lib/action_view/renderer/template_renderer.rb:52:in `block (2 levels) in render_template'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionview-5.1.4/lib/action_view/renderer/abstract_renderer.rb:42:in `block in instrument'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activesupport-5.1.4/lib/active_support/notifications.rb:166:in `block in instrument'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activesupport-5.1.4/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activesupport-5.1.4/lib/active_support/notifications.rb:166:in `instrument'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionview-5.1.4/lib/action_view/renderer/abstract_renderer.rb:41:in `instrument'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionview-5.1.4/lib/action_view/renderer/template_renderer.rb:51:in `block in render_template'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionview-5.1.4/lib/action_view/renderer/template_renderer.rb:59:in `render_with_layout'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionview-5.1.4/lib/action_view/renderer/template_renderer.rb:50:in `render_template'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionview-5.1.4/lib/action_view/renderer/template_renderer.rb:14:in `render'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionview-5.1.4/lib/action_view/renderer/renderer.rb:42:in `render_template'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionview-5.1.4/lib/action_view/renderer/renderer.rb:23:in `render'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionview-5.1.4/lib/action_view/rendering.rb:103:in `_render_template'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionview-5.1.4/lib/action_view/rendering.rb:83:in `render_to_body'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/abstract_controller/rendering.rb:24:in `render'
/usr/share/foreman/app/mailers/audit_mailer.rb:14:in `block (3 levels) in summary'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionmailer-5.1.4/lib/action_mailer/collector.rb:26:in `custom'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/abstract_controller/collector.rb:9:in `html'
/usr/share/foreman/app/mailers/audit_mailer.rb:14:in `block (2 levels) in summary'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionmailer-5.1.4/lib/action_mailer/base.rb:912:in `collect_responses'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionmailer-5.1.4/lib/action_mailer/base.rb:830:in `mail'
/opt/theforeman/tfm/root/usr/share/gems/gems/roadie-rails-1.2.1/lib/roadie/rails/automatic.rb:5:in `mail'
/usr/share/foreman/app/mailers/application_mailer.rb:15:in `mail'
/usr/share/foreman/app/mailers/audit_mailer.rb:13:in `block in summary'
/usr/share/foreman/app/mailers/application_mailer.rb:36:in `set_locale_for'
/usr/share/foreman/app/mailers/audit_mailer.rb:12:in `summary'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/abstract_controller/base.rb:186:in `process_action'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/abstract_controller/callbacks.rb:20:in `block in process_action'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activesupport-5.1.4/lib/active_support/callbacks.rb:131:in `run_callbacks'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/abstract_controller/callbacks.rb:19:in `process_action'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/abstract_controller/base.rb:124:in `process'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionmailer-5.1.4/lib/action_mailer/rescuable.rb:23:in `block in process'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionmailer-5.1.4/lib/action_mailer/rescuable.rb:15:in `handle_exceptions'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionmailer-5.1.4/lib/action_mailer/rescuable.rb:22:in `process'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionview-5.1.4/lib/action_view/rendering.rb:30:in `process'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionmailer-5.1.4/lib/action_mailer/base.rb:609:in `block in process'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activesupport-5.1.4/lib/active_support/notifications.rb:166:in `block in instrument'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activesupport-5.1.4/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activesupport-5.1.4/lib/active_support/notifications.rb:166:in `instrument'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionmailer-5.1.4/lib/action_mailer/base.rb:608:in `process'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionmailer-5.1.4/lib/action_mailer/message_delivery.rb:105:in `block in processed_mailer'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionmailer-5.1.4/lib/action_mailer/message_delivery.rb:104:in `tap'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionmailer-5.1.4/lib/action_mailer/message_delivery.rb:104:in `processed_mailer'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionmailer-5.1.4/lib/action_mailer/message_delivery.rb:95:in `deliver_now'
/usr/share/foreman/app/models/mail_notifications/mail_notification.rb:52:in `deliver'
/usr/share/foreman/app/models/user_mail_notification.rb:13:in `deliver'
/usr/share/foreman/lib/tasks/reports.rake:98:in `block (2 levels) in process_notifications'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.4/lib/active_record/relation/delegation.rb:39:in `each'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.4/lib/active_record/relation/delegation.rb:39:in `each'
/usr/share/foreman/lib/tasks/reports.rake:97:in `block in process_notifications'
/usr/share/foreman/app/models/concerns/foreman/thread_session.rb:93:in `as'
/usr/share/foreman/app/models/concerns/foreman/thread_session.rb:99:in `as_anonymous_admin'
/usr/share/foreman/lib/tasks/reports.rake:96:in `process_notifications'
/usr/share/foreman/lib/tasks/reports.rake:104:in `block (2 levels) in <top (required)>'
/opt/rh/rh-ruby24/root/usr/share/gems/gems/rake-12.0.0/exe/rake:27:in `<top (required)>'
NoMethodError: undefined method `audit_path' for #<#<Class:0x00000007e459b0>:0x00000007e2fe80>
Did you mean?  audio_path
/usr/share/foreman/app/helpers/audits_helper.rb:55:in `block in details'
/usr/share/foreman/app/helpers/audits_helper.rb:52:in `each'
/usr/share/foreman/app/helpers/audits_helper.rb:52:in `map'
/usr/share/foreman/app/helpers/audits_helper.rb:52:in `details'
/usr/share/foreman/app/views/audit_mailer/summary.html.erb:17:in `block in _29b113038a9f0101d00d96e716eda93a'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.4/lib/active_record/relation/delegation.rb:39:in `each'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.4/lib/active_record/relation/delegation.rb:39:in `each'
/usr/share/foreman/app/views/audit_mailer/summary.html.erb:6:in `_29b113038a9f0101d00d96e716eda93a'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionview-5.1.4/lib/action_view/template.rb:157:in `block in render'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activesupport-5.1.4/lib/active_support/notifications.rb:168:in `instrument'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionview-5.1.4/lib/action_view/template.rb:352:in `instrument_render_template'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionview-5.1.4/lib/action_view/template.rb:155:in `render'
/opt/theforeman/tfm/root/usr/share/gems/gems/deface-1.2.0/lib/deface/action_view_extensions.rb:41:in `render'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionview-5.1.4/lib/action_view/renderer/template_renderer.rb:52:in `block (2 levels) in render_template'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionview-5.1.4/lib/action_view/renderer/abstract_renderer.rb:42:in `block in instrument'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activesupport-5.1.4/lib/active_support/notifications.rb:166:in `block in instrument'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activesupport-5.1.4/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activesupport-5.1.4/lib/active_support/notifications.rb:166:in `instrument'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionview-5.1.4/lib/action_view/renderer/abstract_renderer.rb:41:in `instrument'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionview-5.1.4/lib/action_view/renderer/template_renderer.rb:51:in `block in render_template'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionview-5.1.4/lib/action_view/renderer/template_renderer.rb:59:in `render_with_layout'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionview-5.1.4/lib/action_view/renderer/template_renderer.rb:50:in `render_template'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionview-5.1.4/lib/action_view/renderer/template_renderer.rb:14:in `render'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionview-5.1.4/lib/action_view/renderer/renderer.rb:42:in `render_template'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionview-5.1.4/lib/action_view/renderer/renderer.rb:23:in `render'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionview-5.1.4/lib/action_view/rendering.rb:103:in `_render_template'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionview-5.1.4/lib/action_view/rendering.rb:83:in `render_to_body'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/abstract_controller/rendering.rb:24:in `render'
/usr/share/foreman/app/mailers/audit_mailer.rb:14:in `block (3 levels) in summary'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionmailer-5.1.4/lib/action_mailer/collector.rb:26:in `custom'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/abstract_controller/collector.rb:9:in `html'
/usr/share/foreman/app/mailers/audit_mailer.rb:14:in `block (2 levels) in summary'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionmailer-5.1.4/lib/action_mailer/base.rb:912:in `collect_responses'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionmailer-5.1.4/lib/action_mailer/base.rb:830:in `mail'
/opt/theforeman/tfm/root/usr/share/gems/gems/roadie-rails-1.2.1/lib/roadie/rails/automatic.rb:5:in `mail'
/usr/share/foreman/app/mailers/application_mailer.rb:15:in `mail'
/usr/share/foreman/app/mailers/audit_mailer.rb:13:in `block in summary'
/usr/share/foreman/app/mailers/application_mailer.rb:36:in `set_locale_for'
/usr/share/foreman/app/mailers/audit_mailer.rb:12:in `summary'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/abstract_controller/base.rb:186:in `process_action'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/abstract_controller/callbacks.rb:20:in `block in process_action'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activesupport-5.1.4/lib/active_support/callbacks.rb:131:in `run_callbacks'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/abstract_controller/callbacks.rb:19:in `process_action'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/abstract_controller/base.rb:124:in `process'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionmailer-5.1.4/lib/action_mailer/rescuable.rb:23:in `block in process'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionmailer-5.1.4/lib/action_mailer/rescuable.rb:15:in `handle_exceptions'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionmailer-5.1.4/lib/action_mailer/rescuable.rb:22:in `process'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionview-5.1.4/lib/action_view/rendering.rb:30:in `process'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionmailer-5.1.4/lib/action_mailer/base.rb:609:in `block in process'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activesupport-5.1.4/lib/active_support/notifications.rb:166:in `block in instrument'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activesupport-5.1.4/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activesupport-5.1.4/lib/active_support/notifications.rb:166:in `instrument'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionmailer-5.1.4/lib/action_mailer/base.rb:608:in `process'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionmailer-5.1.4/lib/action_mailer/message_delivery.rb:105:in `block in processed_mailer'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionmailer-5.1.4/lib/action_mailer/message_delivery.rb:104:in `tap'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionmailer-5.1.4/lib/action_mailer/message_delivery.rb:104:in `processed_mailer'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionmailer-5.1.4/lib/action_mailer/message_delivery.rb:95:in `deliver_now'
/usr/share/foreman/app/models/mail_notifications/mail_notification.rb:52:in `deliver'
/usr/share/foreman/app/models/user_mail_notification.rb:13:in `deliver'
/usr/share/foreman/lib/tasks/reports.rake:98:in `block (2 levels) in process_notifications'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.4/lib/active_record/relation/delegation.rb:39:in `each'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.4/lib/active_record/relation/delegation.rb:39:in `each'
/usr/share/foreman/lib/tasks/reports.rake:97:in `block in process_notifications'
/usr/share/foreman/app/models/concerns/foreman/thread_session.rb:93:in `as'
/usr/share/foreman/app/models/concerns/foreman/thread_session.rb:99:in `as_anonymous_admin'
/usr/share/foreman/lib/tasks/reports.rake:96:in `process_notifications'
/usr/share/foreman/lib/tasks/reports.rake:104:in `block (2 levels) in <top (required)>'
/opt/rh/rh-ruby24/root/usr/share/gems/gems/rake-12.0.0/exe/rake:27:in `<top (required)>'
Tasks: TOP => reports:daily
(See full trace by running task with --trace)

Actions #2

Updated by Ohad Levy almost 6 years ago

this seems like a fairly simple regression, should we target 17.1?

Actions #3

Updated by Ondřej Pražák almost 6 years ago

  • Assignee set to Ondřej Pražák
Actions #4

Updated by The Foreman Bot almost 6 years ago

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

Updated by Daniel Lobato Garcia almost 6 years ago

  • translation missing: en.field_release set to 297
Actions #6

Updated by Ondřej Pražák almost 6 years ago

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

Updated by The Foreman Bot almost 6 years ago

  • Pull request https://github.com/theforeman/foreman/pull/5463 added
Actions #8

Updated by The Foreman Bot almost 6 years ago

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

Also available in: Atom PDF