Bug 1402805 - After successful install and on login, webUI throwing error: We're sorry, but something went wrong.
Summary: After successful install and on login, webUI throwing error: We're sorry, but...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Packaging
Version: 6.3.0
Hardware: Unspecified
OS: Unspecified
high
high vote
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Kedar Bidarkar
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-12-08 11:50 UTC by Sachin Ghai
Modified: 2019-09-26 14:37 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-02-21 16:51:07 UTC
Target Upstream Version:


Attachments (Terms of Use)
foreman-debug (374.00 KB, application/x-xz)
2016-12-08 12:06 UTC, Sachin Ghai
no flags Details

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


Note You need to log in before you can comment on or make changes to this bug.