Actions
Bug #23721
closedNightlies javascript does not work
Description
You may reproduce by creating a new box with Forklift (vagrant up centos7-katello-nightly).
Check out the attached screenshot, but basically without JS users can't even click on the vertical navigation bar.
As you can see, assets:precompile and webpack:compile don't work after installation.
vssh centos7-katello-nightly Last login: Tue May 29 08:05:47 2018 from 192.168.121.1 [vagrant@centos7-katello-nightly ~]$ sudo foreman-rake assets:precompile /usr/share/foreman/lib/foreman.rb:8: warning: already initialized constant Foreman::UUID_REGEXP /usr/share/foreman/lib/foreman.rb:8: warning: previous definition of UUID_REGEXP was here /usr/share/foreman/lib/core_extensions.rb:182: warning: already initialized constant ActiveSupport::MessageEncryptor::DEFAULT_CIPHER /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activesupport-5.1.4/lib/active_support/message_encryptor.rb:22: warning: previous definition of DEFAULT_CIPHER was here rake aborted! LoadError: cannot load such file -- sass /opt/theforeman/tfm/root/usr/share/gems/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require' /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:292:in `block in require' /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:258:in `load_dependency' /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:292:in `require' /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/sprockets-3.7.1/lib/sprockets/autoload/sass.rb:1:in `<top (required)>' /opt/theforeman/tfm/root/usr/share/gems/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require' /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:292:in `block in require' /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:258:in `load_dependency' /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:292:in `require' /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/sprockets-3.7.1/lib/sprockets/sass_processor.rb:47:in `initialize' /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/sprockets-3.7.1/lib/sprockets/sass_processor.rb:26:in `new' /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/sprockets-3.7.1/lib/sprockets/sass_processor.rb:26:in `instance' /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/sprockets-3.7.1/lib/sprockets/sass_processor.rb:30:in `call' /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/sprockets-3.7.1/lib/sprockets/processor_utils.rb:75:in `call_processor' /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/sprockets-3.7.1/lib/sprockets/processor_utils.rb:57:in `block in call_processors' /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/sprockets-3.7.1/lib/sprockets/processor_utils.rb:56:in `reverse_each' /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/sprockets-3.7.1/lib/sprockets/processor_utils.rb:56:in `call_processors' /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/sprockets-3.7.1/lib/sprockets/loader.rb:134:in `load_from_unloaded' /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/sprockets-3.7.1/lib/sprockets/loader.rb:60:in `block in load' /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/sprockets-3.7.1/lib/sprockets/loader.rb:317:in `fetch_asset_from_dependency_cache' /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/sprockets-3.7.1/lib/sprockets/loader.rb:44:in `load' /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/sprockets-3.7.1/lib/sprockets/cached_environment.rb:20:in `block in initialize' /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/sprockets-3.7.1/lib/sprockets/cached_environment.rb:47:in `load' /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/sprockets-3.7.1/lib/sprockets/bundle.rb:23:in `block in call' /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/sprockets-3.7.1/lib/sprockets/utils.rb:200:in `dfs' /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/sprockets-3.7.1/lib/sprockets/bundle.rb:24:in `call' /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/sprockets-3.7.1/lib/sprockets/processor_utils.rb:75:in `call_processor' /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/sprockets-3.7.1/lib/sprockets/processor_utils.rb:57:in `block in call_processors' /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/sprockets-3.7.1/lib/sprockets/processor_utils.rb:56:in `reverse_each' /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/sprockets-3.7.1/lib/sprockets/processor_utils.rb:56:in `call_processors' /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/sprockets-3.7.1/lib/sprockets/loader.rb:134:in `load_from_unloaded' /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/sprockets-3.7.1/lib/sprockets/loader.rb:60:in `block in load' /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/sprockets-3.7.1/lib/sprockets/loader.rb:317:in `fetch_asset_from_dependency_cache' /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/sprockets-3.7.1/lib/sprockets/loader.rb:44:in `load' /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/sprockets-3.7.1/lib/sprockets/cached_environment.rb:20:in `block in initialize' /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/sprockets-3.7.1/lib/sprockets/cached_environment.rb:47:in `load' /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/sprockets-3.7.1/lib/sprockets/base.rb:66:in `find_asset' /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/sprockets-3.7.1/lib/sprockets/base.rb:73:in `find_all_linked_assets' /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/sprockets-3.7.1/lib/sprockets/manifest.rb:134:in `block in find' /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/sprockets-3.7.1/lib/sprockets/manifest.rb:133:in `each' /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/sprockets-3.7.1/lib/sprockets/manifest.rb:133:in `find' /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/sprockets-3.7.1/lib/sprockets/manifest.rb:185:in `compile' /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/sprockets-rails-3.2.1/lib/sprockets/rails/task.rb:68:in `block (3 levels) in define' /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/sprockets-3.7.1/lib/rake/sprocketstask.rb:147:in `with_logger' /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/sprockets-rails-3.2.1/lib/sprockets/rails/task.rb:67:in `block (2 levels) in define' /opt/rh/rh-ruby24/root/usr/share/gems/gems/rake-12.0.0/exe/rake:27:in `<top (required)>' Tasks: TOP => assets:precompile (See full trace by running task with --trace) [vagrant@centos7-katello-nightly ~]$ sudo foreman-rake webpack:compile /usr/share/foreman/lib/foreman.rb:8: warning: already initialized constant Foreman::UUID_REGEXP /usr/share/foreman/lib/foreman.rb:8: warning: previous definition of UUID_REGEXP was here /usr/share/foreman/lib/core_extensions.rb:182: warning: already initialized constant ActiveSupport::MessageEncryptor::DEFAULT_CIPHER /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activesupport-5.1.4/lib/active_support/message_encryptor.rb:22: warning: previous definition of DEFAULT_CIPHER was here rake aborted! Can't find our webpack executable at /usr/share/foreman/node_modules/.bin/webpack - have you run `npm install`? /opt/theforeman/tfm/root/usr/share/gems/gems/webpack-rails-0.9.8/lib/tasks/webpack.rake:10:in `block (2 levels) in <top (required)>' /opt/rh/rh-ruby24/root/usr/share/gems/gems/rake-12.0.0/exe/rake:27:in `<top (required)>' Tasks: TOP => webpack:compile (See full trace by running task with --trace)
Files
Actions