Foreman 3.1 - I cannot access to repository packages list from "Products" menu

Problem:

Hi everyone,

I’m using Foreman 3.1 with katello 4.3 plugin, and I cannot access to my repository packages list from this menu :
Products > PROD_Epel > Repositories > REPO_EPEL_7_x64 > Packages

Url : https://foreman_katello_server/products/57/repositories/2221/content/packages

As shown on the screenshot bellow :

Bellow the production.log file output.

Thank you,

Expected outcome:

2022-02-01T13:18:20 [I|app|88d6b015] Completed 200 OK in 208ms (Views: 163.3ms | ActiveRecord: 24.5ms | Allocations: 130996)
2022-02-01T13:18:28 [I|app|00797b4b] Started GET “/notification_recipients” for 192.168.2.14 at 2022-02-01 13:18:28 +0100
2022-02-01T13:18:28 [I|app|00797b4b] Processing by NotificationRecipientsController#index as JSON
2022-02-01T13:18:28 [I|app|00797b4b] Completed 200 OK in 10ms (Views: 0.2ms | ActiveRecord: 1.4ms | Allocations: 2225)
2022-02-01T13:18:28 [I|app|32bf0791] Started GET “/katello/api/v2/products/57?organization_id=3” for 192.168.2.14 at 2022-02-01 13:18:28 +0100
2022-02-01T13:18:28 [I|app|683b8bfc] Started GET “/katello/api/v2/repositories/2221?organization_id=3&product_id=57” for 192.168.2.14 at 2022-02-01 13:18:28 +0100
2022-02-01T13:18:28 [I|app|32bf0791] Processing by Katello::Api::V2::ProductsController#show as HTML
2022-02-01T13:18:28 [I|app|32bf0791] Parameters: {“organization_id”=>“3”, “api_version”=>“v2”, “id”=>“57”}
2022-02-01T13:18:28 [I|app|683b8bfc] Processing by Katello::Api::V2::RepositoriesController#show as HTML
2022-02-01T13:18:28 [I|app|683b8bfc] Parameters: {“organization_id”=>“3”, “product_id”=>“57”, “api_version”=>“v2”, “id”=>“2221”}
2022-02-01T13:18:28 [I|app|683b8bfc] Rendering /usr/share/gems/gems/katello-4.3.0.rc4/app/views/katello/api/v2/repositories/show.json.rabl within katello/api/v2/layouts/resource
2022-02-01T13:18:28 [I|app|32bf0791] Rendering /usr/share/gems/gems/katello-4.3.0.rc4/app/views/katello/api/v2/products/show.json.rabl within katello/api/v2/layouts/resource
2022-02-01T13:18:28 [I|app|683b8bfc] Rendered /usr/share/gems/gems/katello-4.3.0.rc4/app/views/katello/api/v2/repositories/show.json.rabl within katello/api/v2/layouts/resource (Duration: 82.6ms | Allocations: 27082)
2022-02-01T13:18:28 [I|app|683b8bfc] Completed 200 OK in 103ms (Views: 52.4ms | ActiveRecord: 39.6ms | Allocations: 34284)
2022-02-01T13:18:28 [I|app|32bf0791] Rendered /usr/share/gems/gems/katello-4.3.0.rc4/app/views/katello/api/v2/products/show.json.rabl within katello/api/v2/layouts/resource (Duration: 207.2ms | Allocations: 121433)
2022-02-01T13:18:28 [I|app|32bf0791] Completed 200 OK in 242ms (Views: 177.5ms | ActiveRecord: 39.9ms | Allocations: 130996)
2022-02-01T13:18:29 [I|app|7c29ac41] Started GET “/notification_recipients” for 192.168.52.3 at 2022-02-01 13:18:29 +0100
2022-02-01T13:18:29 [I|app|7c29ac41] Processing by NotificationRecipientsController#index as JSON
2022-02-01T13:18:29 [I|app|7c29ac41] Completed 200 OK in 17ms (Views: 0.2ms | ActiveRecord: 3.1ms | Allocations: 2222)

Foreman and Proxy versions:

Foreman 3.1

Foreman and Proxy plugin versions:

Katello 4.3

Distribution and version:

AlmaLinux 8.5

Other relevant data:

1 Like

I have the same exact issue with the same version of foreman and katello. I am also experiencing this bug: https://projects.theforeman.org/issues/34202

I believe it could be related to this bug, because it’s the same message I saw in the browser debugger.

Hi @cazzen2k4

I just tested this solution, but it didn’t work …

I have modified the repository-details-manage-content.controller.js file as indicated on the github link, then I restarted all foreman services “foreman-maintain service restart”, but I still have the same problem :confused:

Did I have to reboot the hole server ?

Hi @siriwliw,

Sorry, I should have been more clear. I haven’t actually tested it myself just yet. I only know I got this exact error when browsing the product-page together with a white page. I will try it myself and get back to you.

Okay thanks, i’ll wait for your reply :slight_smile:

@siriwliw It didn’t work for me either, not even after rebooting. The error-message still appears in the broswer :frowning:

Do you also experiencing the wrong RPM-package being uploaded? (the link I posted above) https://projects.theforeman.org/issues/34202

I will let you know in case I mange to get it to work. Otherwise I guess we just have wait for katello 4.3.1 :slight_smile:

Yeah, I see …
I hope that someone can find a correction until the official release :pleading_face:

Products > PROD_Epel > Repositories > REPO_EPEL_7_x64 > Packages

So guess no error reported in the foreman production log? If you are on chrome can you check the inspector console to see if java script errors are reported? Basically you’d have to

  • Right click on the browser
  • Choose Inspect (which would take you to the tool)
  • Click on “Console”
  • Let us know if you see any stack traces there.

Is this the admin user (wondering if its permissions related if non admin)

Hi @Partha_Aji

Yes, here is the error message displayed :

(I’m using a account with all admin privileges)

Hi @cazzen2k4

Have you already tested if the correction for uploading-rpm work or not ?

Hi @siriwliw

No, not yet. I don’t think I will have time to do that this week to be honest.

Yes, I saw that they applied changes on several files, it will be difficult to do the same manually …

Do we have any update on this or on any other forum?
i am also facing same issue on my all browsers weather it is Firefox/chrome/edge.