UI Menu Layout Foreman Error // Screenshot

Hi,

does anyone know how to fix this problem in my screenshot?
I’ve got it under Chrome and Firefox on Mac. Is annoying since the menu is
not really usable.

screenformanmenu

That’s been like that since a few versions, so a simple update from Foreman
isn’t enough.

Thanks for some solutions,

Tom

It looks like some assets are missing. Which version are you on and how did you install it (debs, rpms, manually)?

Hi,

currently 1.15.4 but this behavior is there since … versions! I’ve installed it on CentOS with yum/rpm

Could you verify the foreman RPM is properly installed? rpm -qV foreman should tell you. Also wondering if there’s an incorrect cache somewhere or you get 404 errors in your browser.

rpm -qV foreman
SM5…GT. c /etc/foreman/database.yml
S.5…T. c /etc/foreman/email.yaml
SM5…GT. c /etc/foreman/settings.yaml
S.5…T. c /etc/sysconfig/foreman

Chrome Developer Console shows no 404

The same result on Firefox, Safari and Chrome. Even with flushed Cache in FF.

Do you have any plugins installed that could break it? It looks like it tries to find the logo but can’t so it shows a rather long alt text. It surprises me you don’t see any 404s because of that.

The Header Logo is something like

https://127.0.0.1/assets/header_logo-c9614c16f2ee399ae9cb7f36ec94b9a26bf8cf9eabaa7fe6099bf80d1f7940db.svg

When I scroll down, so that the “FOREMAN” Header disappears, the menü looks fine. The errornous part gets scrolled out.

What Kind of Plugin do you mean. I think it’s a really simple setup Foreman with Salt

If it’s really 127.0.0.1 it’s likely that wouldn’t work, but then I’d expect a 404 because of it. Plugins could affect the CSS so maybe that’s placing an incorrect header there. I do not know if Salt would do that.

IP is replace. But why should this not work?

All your plugins will be listed on the About page, if you want a comprehensive list. I use the Salt plugin and don’t see this, for the record

This are my plugins. Don’t think that them will destroy me. The same problem is on other computer. Must be a server problem, not a client problem.

Are you able to run foreman-rake assets:precompile?

runs in an error

rake aborted!
LoadError: cannot load such file -- uglifier
/opt/rh/sclo-ror42/root/usr/share/gems/gems/polyglot-0.3.4/lib/polyglot.rb:65:in `require'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/dependencies.rb:274:in `block in require'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/dependencies.rb:240:in `load_dependency'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/dependencies.rb:274:in `require'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/sprockets-3.5.2/lib/sprockets/autoload/uglifier.rb:1:in `'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/sprockets-3.5.2/lib/sprockets/uglifier_compressor.rb:39:in `initialize'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/sprockets-3.5.2/lib/sprockets/uglifier_compressor.rb:24:in `new'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/sprockets-3.5.2/lib/sprockets/uglifier_compressor.rb:24:in `instance'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/sprockets-3.5.2/lib/sprockets/uglifier_compressor.rb:28:in `call'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/sprockets-3.5.2/lib/sprockets/processor_utils.rb:75:in `call_processor'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/sprockets-3.5.2/lib/sprockets/processor_utils.rb:57:in `block in call_processors'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/sprockets-3.5.2/lib/sprockets/processor_utils.rb:56:in `reverse_each'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/sprockets-3.5.2/lib/sprockets/processor_utils.rb:56:in `call_processors'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/sprockets-3.5.2/lib/sprockets/loader.rb:134:in `load_from_unloaded'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/sprockets-3.5.2/lib/sprockets/loader.rb:60:in `block in load'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/sprockets-3.5.2/lib/sprockets/loader.rb:318:in `fetch_asset_from_dependency_cache'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/sprockets-3.5.2/lib/sprockets/loader.rb:44:in `load'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/sprockets-3.5.2/lib/sprockets/cached_environment.rb:20:in `block in initialize'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/sprockets-3.5.2/lib/sprockets/cached_environment.rb:47:in `yield'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/sprockets-3.5.2/lib/sprockets/cached_environment.rb:47:in `load'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/sprockets-3.5.2/lib/sprockets/base.rb:66:in `find_asset'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/sprockets-3.5.2/lib/sprockets/base.rb:73:in `find_all_linked_assets'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/sprockets-3.5.2/lib/sprockets/manifest.rb:134:in `block in find'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/sprockets-3.5.2/lib/sprockets/manifest.rb:133:in `each'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/sprockets-3.5.2/lib/sprockets/manifest.rb:133:in `find'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/sprockets-3.5.2/lib/sprockets/manifest.rb:168:in `compile'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/sprockets-rails-2.3.3/lib/sprockets/rails/task.rb:70:in `block (3 levels) in define'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/sprockets-3.5.2/lib/rake/sprocketstask.rb:147:in `with_logger'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/sprockets-rails-2.3.3/lib/sprockets/rails/task.rb:69:in `block (2 levels) in define'
Polyglot::PolyglotLoadError: Failed to load uglifier using extensions deface, rb
/opt/rh/sclo-ror42/root/usr/share/gems/gems/polyglot-0.3.4/lib/polyglot.rb:55:in `load'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/polyglot-0.3.4/lib/polyglot.rb:68:in `rescue in require'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/polyglot-0.3.4/lib/polyglot.rb:65:in `require'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/dependencies.rb:274:in `block in require'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/dependencies.rb:240:in `load_dependency'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/dependencies.rb:274:in `require'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/sprockets-3.5.2/lib/sprockets/autoload/uglifier.rb:1:in `'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/sprockets-3.5.2/lib/sprockets/uglifier_compressor.rb:39:in `initialize'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/sprockets-3.5.2/lib/sprockets/uglifier_compressor.rb:24:in `new'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/sprockets-3.5.2/lib/sprockets/uglifier_compressor.rb:24:in `instance'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/sprockets-3.5.2/lib/sprockets/uglifier_compressor.rb:28:in `call'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/sprockets-3.5.2/lib/sprockets/processor_utils.rb:75:in `call_processor'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/sprockets-3.5.2/lib/sprockets/processor_utils.rb:57:in `block in call_processors'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/sprockets-3.5.2/lib/sprockets/processor_utils.rb:56:in `reverse_each'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/sprockets-3.5.2/lib/sprockets/processor_utils.rb:56:in `call_processors'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/sprockets-3.5.2/lib/sprockets/loader.rb:134:in `load_from_unloaded'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/sprockets-3.5.2/lib/sprockets/loader.rb:60:in `block in load'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/sprockets-3.5.2/lib/sprockets/loader.rb:318:in `fetch_asset_from_dependency_cache'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/sprockets-3.5.2/lib/sprockets/loader.rb:44:in `load'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/sprockets-3.5.2/lib/sprockets/cached_environment.rb:20:in `block in initialize'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/sprockets-3.5.2/lib/sprockets/cached_environment.rb:47:in `yield'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/sprockets-3.5.2/lib/sprockets/cached_environment.rb:47:in `load'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/sprockets-3.5.2/lib/sprockets/base.rb:66:in `find_asset'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/sprockets-3.5.2/lib/sprockets/base.rb:73:in `find_all_linked_assets'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/sprockets-3.5.2/lib/sprockets/manifest.rb:134:in `block in find'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/sprockets-3.5.2/lib/sprockets/manifest.rb:133:in `each'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/sprockets-3.5.2/lib/sprockets/manifest.rb:133:in `find'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/sprockets-3.5.2/lib/sprockets/manifest.rb:168:in `compile'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/sprockets-rails-2.3.3/lib/sprockets/rails/task.rb:70:in `block (3 levels) in define'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/sprockets-3.5.2/lib/rake/sprocketstask.rb:147:in `with_logger'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/sprockets-rails-2.3.3/lib/sprockets/rails/task.rb:69:in `block (2 levels) in define'
Tasks: TOP => assets:precompile
(See full trace by running task with --trace)