Project

General

Profile

Actions

Bug #25562

closed

No Product View after Katello Update 3.8 -> 3.9

Added by Zach Huntington-Meath almost 6 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
High
Assignee:
Category:
-
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

This is a bug from a user who posted about it on the community discourse: https://community.theforeman.org/t/no-product-view-after-katello-update-3-8-3-9/11968

Problem:
After having updated Katello from 3.8 to 3.9, the Content -> Products View has gone AWOL. I just get an empty screen with no error message.

Running hammer product list fails as well:

# hammer product list
undefined method `tasks' for nil:NilClass

Expected outcome:
Being able to list products using UI or with hammer.

Foreman and Proxy versions:
1.20

Foreman and Proxy plugin versions:
Katello 3.9

Other relevant data:
[e.g. logs from Foreman and/or the Proxy, modified templates, commands issued, etc]
(for logs, surround with three back-ticks to get proper formatting, e.g.)

2018-11-27T14:07:06 [I|app|] Started GET "/katello/api/organizations/1/products?page=1&per_page=1000" for 192.168.98.100 at 2018-11-27 14:07:06 +0100
2018-11-27T14:07:06 [I|app|04957] Processing by Katello::Api::V2::ProductsController#index as JSON
2018-11-27T14:07:06 [I|app|04957]   Parameters: {"page"=>"1", "per_page"=>"1000", "api_version"=>"v2", "organization_id"=>"1", "product"=>{}}
2018-11-27T14:07:06 [I|app|04957] Authorized user admin(Admin User)
2018-11-27T14:07:06 [I|app|04957] Current user set to admin (admin)
2018-11-27T14:07:07 [I|app|04957]   Rendering /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.9.0/app/views/katello/api/v2/products/index.json.rabl within katello/api/v2/layouts/collection
2018-11-27T14:07:07 [I|app|04957]   Rendered /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.9.0/app/views/katello/api/v2/products/index.json.rabl within katello/api/v2/layouts/collection (75.9ms)
2018-11-27T14:07:07 [E|app|04957] ActionView::Template::Error: undefined method `tasks' for nil:NilClass
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.9.0/app/models/katello/sync_plan.rb:121:in `next_sync_date'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.9.0/app/models/katello/sync_plan.rb:125:in `next_sync'
/opt/theforeman/tfm/root/usr/share/gems/gems/rabl-0.13.1/lib/rabl/helpers.rb:16:in `data_object_attribute'
/opt/theforeman/tfm/root/usr/share/gems/gems/rabl-0.13.1/lib/rabl/builder.rb:140:in `attribute'
/opt/theforeman/tfm/root/usr/share/gems/gems/rabl-0.13.1/lib/rabl/builder.rb:114:in `block in compile_settings'
/opt/theforeman/tfm/root/usr/share/gems/gems/rabl-0.13.1/lib/rabl/builder.rb:113:in `each'
/opt/theforeman/tfm/root/usr/share/gems/gems/rabl-0.13.1/lib/rabl/builder.rb:113:in `compile_settings'
/opt/theforeman/tfm/root/usr/share/gems/gems/rabl-0.13.1/lib/rabl/builder.rb:53:in `block in to_hash'
/opt/theforeman/tfm/root/usr/share/gems/gems/rabl-0.13.1/lib/rabl/builder.rb:248:in `cache_results'
/opt/theforeman/tfm/root/usr/share/gems/gems/rabl-0.13.1/lib/rabl/builder.rb:49:in `to_hash'
/opt/theforeman/tfm/root/usr/share/gems/gems/rabl-0.13.1/lib/rabl/engine.rb:86:in `to_hash'
/opt/theforeman/tfm/root/usr/share/gems/gems/rabl-0.13.1/lib/rabl/engine.rb:48:in `block in render'
/opt/theforeman/tfm/root/usr/share/gems/gems/rabl-0.13.1/lib/rabl/engine.rb:380:in `cache_results'
/opt/theforeman/tfm/root/usr/share/gems/gems/rabl-0.13.1/lib/rabl/engine.rb:47:in `render'
/usr/share/foreman/config/initializers/rabl_init.rb:49:in `render'
/opt/theforeman/tfm/root/usr/share/gems/gems/rabl-0.13.1/lib/rabl/builder.rb:124:in `block (2 levels) in merge_engines_into_result'
Actions

Also available in: Atom PDF