Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1402805

Summary: After successful install and on login, webUI throwing error: We're sorry, but something went wrong.
Product: Red Hat Satellite Reporter: Sachin Ghai <sghai>
Component: PackagingAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED ERRATA QA Contact: Kedar Bidarkar <kbidarka>
Severity: high Docs Contact:
Priority: high    
Version: 6.3.0CC: bbuckingham, bkearney, ehelms, kbidarka, tbrisker
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-02-21 16:51:07 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
foreman-debug none

Description Sachin Ghai 2016-12-08 11:50:00 UTC
Description of problem:
Installed satellite6.3 snap8 and install was completed successfully. I didn't see any error with installer on console.

However on login, I got following error: : We're sorry, but something went wrong.

and production.log filled with this exception:

2016-12-08 06:34:59 d2fd673f [app] [I] Started GET "/users/login" for 10.10.61.198 at 2016-12-08 06:34:59 -0500
2016-12-08 06:34:59 d2fd673f [app] [I] Processing by UsersController#login as HTML
2016-12-08 06:34:59 d2fd673f [app] [I]   Rendered users/login.html.erb within layouts/login (4.9ms)
2016-12-08 06:34:59 d2fd673f [app] [I]   Rendered layouts/base.html.erb (2.0ms)
2016-12-08 06:34:59 d2fd673f [app] [W] Action failed
 | Webpack::Rails::Manifest::ManifestLoadError: Could not load compiled manifest from /usr/share/foreman/public/webpack/manifest.json - have you run `rake webpack:compile`? (original error No such file or directory @ rb_sysopen - /usr/share/foreman/public/webpack/manifest.json)
 | /opt/theforeman/tfm/root/usr/share/gems/gems/webpack-rails-0.9.8/lib/webpack/rails/manifest.rb:78:in `rescue in load_static_manifest'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/webpack-rails-0.9.8/lib/webpack/rails/manifest.rb:76:in `load_static_manifest'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/webpack-rails-0.9.8/lib/webpack/rails/manifest.rb:59:in `load_manifest'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/webpack-rails-0.9.8/lib/webpack/rails/manifest.rb:51:in `manifest'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/webpack-rails-0.9.8/lib/webpack/rails/manifest.rb:29:in `asset_paths'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/webpack-rails-0.9.8/lib/webpack/rails/helper.rb:18:in `webpack_asset_paths'
 | /usr/share/foreman/app/views/layouts/base.html.erb:15:in `_6b3b5578f144325e698a88acf2500a12'
 | /opt/rh/rh-ror42/root/usr/share/gems/gems/actionview-4.2.6/lib/action_view/template.rb:145:in `block in render'
 | /opt/rh/rh-ror42/root/usr/share/gems/gems/activesupport-4.2.6/lib/active_support/notifications.rb:166:in `instrument'
 | /opt/rh/rh-ror42/root/usr/share/gems/gems/actionview-4.2.6/lib/action_view/template.rb:333:in `instrument'
 | /opt/rh/rh-ror42/root/usr/share/gems/gems/actionview-4.2.6/lib/action_view/template.rb:143:in `render'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/deface-1.0.2/lib/deface/action_view_extensions.rb:41:in `render'
 | /opt/rh/rh-ror42/root/usr/share/gems/gems/actionview-4.2.6/lib/action_view/renderer/template_renderer.rb:54:in `block (2 levels) in render_template'

Version-Release number of selected component (if applicable):
sat6.3 snap8

How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:
UI throwing error

Expected results:
UI should be loaded after successful login

Additional info:

Comment 2 Sachin Ghai 2016-12-08 12:06:06 UTC
Created attachment 1229447 [details]
foreman-debug

Comment 3 Bryan Kearney 2016-12-08 13:52:17 UTC
I see this earlier in the log:

2016-12-08 13:34:53  [app] [W] unknown class ExternalUsergroups, ignoring
 | NameError: uninitialized constant ExternalUsergroups
 | /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_hooks-0.3.12/lib/foreman_hooks.rb:90:in `load_missing_constant_with_hooks'
 | /opt/rh/rh-ror42/root/usr/share/gems/gems/activesupport-4.2.6/lib/active_support/inflector/methods.rb:261:in `const_get'
 | /opt/rh/rh-ror42/root/usr/share/gems/gems/activesupport-4.2.6/lib/active_support/inflector/methods.rb:261:in `block in constantize'
 | /opt/rh/rh-ror42/root/usr/share/gems/gems/activesupport-4.2.6/lib/active_support/inflector/methods.rb:259:in `each'
 | /opt/rh/rh-ror42/root/usr/share/gems/gems/activesupport-4.2.6/lib/active_support/inflector/methods.rb:259:in `inject'
 | /opt/rh/rh-ror42/root/usr/share/gems/gems/activesupport-4.2.6/lib/active_support/inflector/methods.rb:259:in `constantize'
 | /opt/rh/rh-ror42/root/usr/share/gems/gems/activesupport-4.2.6/lib/active_support/core_ext/string/inflections.rb:66:in `constantize'

Comment 4 Tomer Brisker 2016-12-08 15:25:41 UTC
This looks like an issue during packaging, seems like `rake webpack:compile` isn't executed.  Was there any error message in the package building logs?
https://github.com/theforeman/foreman-packaging/commit/8ef00cf3f99ec3ff75f1bc6230a531b02822764d or something similar should be pulled into foreman-packaging.
@bkearney - that doesn't seem related.

Comment 5 Kedar Bidarkar 2017-08-26 21:57:13 UTC
Was performing multiple user, usergroup with IDM and AD tests, I have not encountered this issue while looking at the logs.


VERIFIED with sat630-snap13.0

Comment 6 Satellite Program 2018-02-21 16:51:07 UTC
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA.
> 
> For information on the advisory, and where to find the updated files, follow the link below.
> 
> If the solution does not work for you, open a new bug report.
> 
> https://access.redhat.com/errata/RHSA-2018:0336