I have setup TheForeman 1.17.1-0 in a Development install on AWS.
ruby 2.4.2p198 (2017-09-14 revision 59899) [x86_64-linux-gnu] (gem/bundler
errors using other versions)
WEBrick 1.3.1
ALL Ports open from Server to my IP
I changed Rails to listen on all interfaces as:
require 'rails/commands/server'
module Rails
class Server
alias :default_options_bk :default_options
def default_options
default_options_bk.merge!(Host: '0.0.0.0')
end
endend
Missing Dashboard Menu MouseOver Drop Downs && "Host Configuration Status
widget loading"… Never Completes
Output from Log:
00:36:43 rails.1 | started with pid 19240
00:36:43 webpack.1 | started with pid 19241
00:36:45 webpack.1 | { [Error: ENOENT: no such file or directory, open
'.env'] errno: -2, code: 'ENOENT', syscall: 'open', path: '.env' }
00:36:45 webpack.1 | Project is running at http://localhost:3808/
00:36:45 webpack.1 | webpack output is served from /webpack/
00:36:51 rails.1 | DEPRECATION WARNING: config.serve_static_files
is
deprecated and will be removed in Rails 5.1.
00:36:51 rails.1 | Please use config.public_file_server.enabled
instead.
00:36:51 rails.1 | (called from <class:Application> at
/root/foreman/config/application.rb:218)
00:36:51 rails.1 | => Booting WEBrick
00:36:51 rails.1 | => Rails 5.0.6 application starting in development on
http://0.0.0.0:5000
00:36:51 rails.1 | => Run rails server -h
for more startup options
00:36:51 rails.1 | 2017-10-12T00:36:51 [app] [W] DEPRECATION WARNING:
ActiveRecord::Base.raise_in_transactional_callbacks= is deprecated, has no
effect and will be removed without replacement. (called from <top
(required)> at /root/foreman/config/environment.rb:5)
00:36:55 rails.1 | The Apipie cache is turned off. Enable it and run
apipie:cache rake task to speed up API calls.
00:36:58 rails.1 | 2017-10-12T00:36:58 [app] [W] WARNING: Pry will not
work with foreman gem, use script/foreman-start-dev
00:36:58 rails.1 | 2017-10-12T00:36:58 [app] [W] DEPRECATION WARNING:
before_filter is deprecated and will be removed in Rails 5.1. Use
before_action instead. (called from <top (required)> at
/root/foreman/config/environment.rb:5)
00:36:58 rails.1 | 2017-10-12T00:36:58 [app] [W] DEPRECATION WARNING:
after_filter is deprecated and will be removed in Rails 5.1. Use
after_action instead. (called from <top (required)> at
/root/foreman/config/environment.rb:5)
00:36:58 rails.1 | 2017-10-12T00:36:58 [app] [W] DEPRECATION WARNING:
before_filter is deprecated and will be removed in Rails 5.1. Use
before_action instead. (called from <top (required)> at
/root/foreman/config/environment.rb:5)
00:36:58 rails.1 | 2017-10-12T00:36:58 [app] [W] DEPRECATION WARNING:
after_filter is deprecated and will be removed in Rails 5.1. Use
after_action instead. (called from <top (required)> at
/root/foreman/config/environment.rb:5)
00:36:58 rails.1 | 2017-10-12T00:36:58 [app] [W] DEPRECATION WARNING:
alias_method_chain is deprecated. Please, use Module#prepend instead. From
module, you can access the original method using super. (called from <top
(required)> at /root/foreman/config/environment.rb:5)
00:36:58 rails.1 | 2017-10-12T00:36:58 [app] [W] DEPRECATION WARNING:
Using a dynamic :controller segment in a route is deprecated and will be
removed in Rails 5.2. (called from block in <top (required)> at
/root/foreman/config/routes.rb:17)
00:36:59 rails.1 | [2017-10-12 00:36:59] INFO WEBrick 1.3.1
00:36:59 rails.1 | [2017-10-12 00:36:59] INFO ruby 2.4.2 (2017-09-14)
[x86_64-linux-gnu]
00:36:59 rails.1 | [2017-10-12 00:36:59] INFO WEBrick::HTTPServer#start:
pid=19242 port=5000
00:37:08 webpack.1 | Hash: 1d1afa88f456ce25e96c
00:37:08 webpack.1 | Version: webpack 3.6.0
00:37:08 webpack.1 | Time: 22521ms
00:37:08 webpack.1 | Asset Size Chunks Chunk
Names
00:37:08 webpack.1 | bundle.js 17.5 MB 0 [emitted] [big]
bundle
00:37:08 webpack.1 | vendor.js 75.7 kB 1 [emitted]
vendor
00:37:08 webpack.1 | bundle.css 81.7 kB 0 [emitted]
bundle
00:37:08 webpack.1 | manifest.json 153 bytes [emitted]
00:37:08 webpack.1 | [55] ./webpack/assets/javascripts/foreman_tools.js
4.22 kB {0} [built]
00:37:08 webpack.1 | [322] multi
(webpack)-dev-server/client?http://localhost:3808 webpack/hot/dev-server
./webpack/assets/javascripts/bundle.js 52 bytes {0} [built]
00:37:08 webpack.1 | [323]
(webpack)-dev-server/client?http://localhost:3808 7.23 kB {0} [built]
00:37:08 webpack.1 | [371] (webpack)/hot/dev-server.js 1.61 kB {0} [built]
00:37:08 webpack.1 | [373] ./webpack/assets/javascripts/bundle.js 1.46 kB
{0} [built]
00:37:08 webpack.1 | [414]
./node_modules/expose-loader?jstz!./node_modules/jstz/index.js 88 bytes {0}
[built]
00:37:08 webpack.1 | [420]
./node_modules/expose-loader?JsDiff!./node_modules/diff/lib/index.js 94
bytes {0} [built]
00:37:08 webpack.1 | [431] ./webpack/assets/javascripts/bundle_flot.js 240
bytes {0} [built]
00:37:08 webpack.1 | [438]
./webpack/assets/javascripts/bundle_multiselect.js 83 bytes {0} [built]
00:37:08 webpack.1 | [441] ./webpack/assets/javascripts/bundle_select2.js
108 bytes {0} [built]
00:37:08 webpack.1 | [446]
./webpack/assets/javascripts/bundle_datatables.js 103 bytes {0} [built]
00:37:08 webpack.1 | [450] ./webpack/assets/javascripts/foreman_users.js
2.86 kB {0} [built]
00:37:08 webpack.1 | [451]
./webpack/assets/javascripts/foreman_ssh_keys.js 608 bytes {0} [built]
00:37:08 webpack.1 | [452] ./webpack/assets/javascripts/foreman_trends.js
479 bytes {0} [built]
00:37:08 webpack.1 | [453]
./webpack/assets/javascripts/foreman_hostgroups.js 1.23 kB {0} [built]
00:37:08 webpack.1 | + 835 hidden modules
00:37:08 webpack.1 | Child extract-text-webpack-plugin
node_modules/extract-text-webpack-plugin/dist
node_modules/css-loader/index.js!node_modules/select2/select2-bootstrap.css:
00:37:08 webpack.1 | [0]
./node_modules/css-loader!./node_modules/select2/select2-bootstrap.css 3.58
kB {0} [built]
00:37:08 webpack.1 | [1] ./node_modules/css-loader/lib/css-base.js
1.51 kB {0} [built]
00:37:08 webpack.1 | Child extract-text-webpack-plugin
node_modules/extract-text-webpack-plugin/dist
node_modules/css-loader/index.js!node_modules/datatables.net-bs/css/dataTables.bootstrap.css:
00:37:08 webpack.1 | [0]
./node_modules/css-loader!./node_modules/datatables.net-bs/css/dataTables.bootstrap.css
5.28 kB {0} [built]
00:37:08 webpack.1 | [1] ./node_modules/css-loader/lib/css-base.js
1.51 kB {0} [built]
00:37:08 webpack.1 | Child extract-text-webpack-plugin
node_modules/extract-text-webpack-plugin/dist
node_modules/css-loader/index.js!webpack/assets/javascripts/react_app/components/statistics/StatisticsChartsListStyles.css:
00:37:08 webpack.1 | [0]
./node_modules/css-loader!./webpack/assets/javascripts/react_app/components/statistics/StatisticsChartsListStyles.css
724 bytes {0} [built]
00:37:08 webpack.1 | [1] ./node_modules/css-loader/lib/css-base.js
1.51 kB {0} [built]
00:37:08 webpack.1 | Child extract-text-webpack-plugin
node_modules/extract-text-webpack-plugin/dist
node_modules/css-loader/index.js?sourceMap!node_modules/sass-loader/lib/loader.js?sourceMap!webpack/assets/javascripts/react_app/components/notifications/notifications.scss:
00:37:08 webpack.1 | [0]
./node_modules/css-loader?sourceMap!./node_modules/sass-loader/lib/loader.js?sourceMap!./webpack/assets/javascripts/react_app/components/notifications/notifications.scss
5.69 kB {0} [built]
00:37:08 webpack.1 | [1] ./node_modules/css-loader/lib/css-base.js
1.51 kB {0} [built]
00:37:08 webpack.1 | Child extract-text-webpack-plugin
node_modules/extract-text-webpack-plugin/dist
node_modules/css-loader/index.js?sourceMap!node_modules/sass-loader/lib/loader.js?sourceMap!webpack/assets/javascripts/react_app/components/toastNotifications/toastListitem/Toast.scss:
00:37:08 webpack.1 | [0]
./node_modules/css-loader?sourceMap!./node_modules/sass-loader/lib/loader.js?sourceMap!./webpack/assets/javascripts/react_app/components/toastNotifications/toastListitem/Toast.scss
637 bytes {0} [built]
00:37:08 webpack.1 | [1] ./node_modules/css-loader/lib/css-base.js
1.51 kB {0} [built]
00:37:08 webpack.1 | Child extract-text-webpack-plugin
node_modules/extract-text-webpack-plugin/dist
node_modules/css-loader/index.js?sourceMap!node_modules/sass-loader/lib/loader.js?sourceMap!webpack/assets/javascripts/react_app/components/common/charts/PieChart/PieChart.scss:
00:37:08 webpack.1 | [0]
./node_modules/css-loader?sourceMap!./node_modules/sass-loader/lib/loader.js?sourceMap!./webpack/assets/javascripts/react_app/components/common/charts/PieChart/PieChart.scss
862 bytes {0} [built]
00:37:08 webpack.1 | [1] ./node_modules/css-loader/lib/css-base.js
1.51 kB {0} [built]
00:37:08 webpack.1 | Child extract-text-webpack-plugin
node_modules/extract-text-webpack-plugin/dist
node_modules/css-loader/index.js?sourceMap!node_modules/sass-loader/lib/loader.js?sourceMap!webpack/assets/javascripts/react_app/components/hosts/storage/vmware/controller/controller.scss:
00:37:08 webpack.1 | [0]
./node_modules/css-loader?sourceMap!./node_modules/sass-loader/lib/loader.js?sourceMap!./webpack/assets/javascripts/react_app/components/hosts/storage/vmware/controller/controller.scss
1.52 kB {0} [built]
00:37:08 webpack.1 | [1] ./node_modules/css-loader/lib/css-base.js
1.51 kB {0} [built]
00:37:08 webpack.1 | Child extract-text-webpack-plugin
node_modules/extract-text-webpack-plugin/dist
node_modules/css-loader/index.js!webpack/assets/javascripts/react_app/components/common/MessageBoxStyles.css:
00:37:08 webpack.1 | [0]
./node_modules/css-loader!./webpack/assets/javascripts/react_app/components/common/MessageBoxStyles.css
726 bytes {0} [built]
00:37:08 webpack.1 | [1] ./node_modules/css-loader/lib/css-base.js
1.51 kB {0} [built]
00:37:08 webpack.1 | Child extract-text-webpack-plugin
node_modules/extract-text-webpack-plugin/dist
node_modules/css-loader/index.js?sourceMap!node_modules/sass-loader/lib/loader.js?sourceMap!webpack/assets/javascripts/react_app/components/hosts/powerStatus/powerStatusInner/PowerStatusInner.scss:
00:37:08 webpack.1 | [0]
./node_modules/css-loader?sourceMap!./node_modules/sass-loader/lib/loader.js?sourceMap!./webpack/assets/javascripts/react_app/components/hosts/powerStatus/powerStatusInner/PowerStatusInner.scss
752 bytes {0} [built]
00:37:08 webpack.1 | [1] ./node_modules/css-loader/lib/css-base.js
1.51 kB {0} [built]
00:37:08 webpack.1 | Child extract-text-webpack-plugin
node_modules/extract-text-webpack-plugin/dist
node_modules/css-loader/index.js!webpack/assets/javascripts/react_app/components/common/LoaderStyles.css:
00:37:08 webpack.1 | [0]
./node_modules/css-loader!./webpack/assets/javascripts/react_app/components/common/LoaderStyles.css
380 bytes {0} [built]
00:37:08 webpack.1 | [1] ./node_modules/css-loader/lib/css-base.js
1.51 kB {0} [built]
00:37:08 webpack.1 | Child extract-text-webpack-plugin
node_modules/extract-text-webpack-plugin/dist
node_modules/css-loader/index.js!node_modules/select2/select2.css:
00:37:08 webpack.1 | [0] ./node_modules/select2/select2.png 861
bytes {0} [built]
00:37:08 webpack.1 | [1] ./node_modules/select2/select2-spinner.gif
2.51 kB {0} [built]
00:37:08 webpack.1 | [2]
./node_modules/css-loader!./node_modules/select2/select2.css 20.7 kB {0}
[built]
00:37:08 webpack.1 | [3] ./node_modules/css-loader/lib/css-base.js
1.51 kB {0} [built]
00:37:08 webpack.1 | [4] ./node_modules/select2/select2x2.png 1.17
kB {0} [built]
00:37:08 webpack.1 | Child extract-text-webpack-plugin
node_modules/extract-text-webpack-plugin/dist
node_modules/css-loader/index.js!node_modules/multiselect/css/multi-select.css:
00:37:08 webpack.1 | [0]
./node_modules/css-loader!./node_modules/multiselect/css/multi-select.css
2.69 kB {0} [built]
00:37:08 webpack.1 | [1] ./node_modules/css-loader/lib/css-base.js
1.51 kB {0} [built]
00:37:08 webpack.1 | [2] ./node_modules/multiselect/img/switch.png
4.15 kB {0} [built]
00:37:08 webpack.1 | Child extract-text-webpack-plugin
node_modules/extract-text-webpack-plugin/dist
node_modules/css-loader/index.js!webpack/assets/javascripts/react_app/common/commonStyles.css:
00:37:08 webpack.1 | [0]
./node_modules/css-loader!./webpack/assets/javascripts/react_app/common/commonStyles.css
201 bytes {0} [built]
00:37:08 webpack.1 | [1] ./node_modules/css-loader/lib/css-base.js
1.51 kB {0} [built]
00:37:08 webpack.1 | Child extract-text-webpack-plugin
node_modules/extract-text-webpack-plugin/dist
node_modules/css-loader/index.js?sourceMap!node_modules/sass-loader/lib/loader.js?sourceMap!webpack/assets/javascripts/react_app/components/hosts/storage/vmware/StorageContainer.scss:
00:37:08 webpack.1 | [0]
./node_modules/css-loader?sourceMap!./node_modules/sass-loader/lib/loader.js?sourceMap!./webpack/assets/javascripts/react_app/components/hosts/storage/vmware/StorageContainer.scss
1.75 kB {0} [built]
00:37:08 webpack.1 | [1] ./node_modules/css-loader/lib/css-base.js
1.51 kB {0} [built]
00:37:08 webpack.1 | Child extract-text-webpack-plugin
node_modules/extract-text-webpack-plugin/dist
node_modules/css-loader/index.js?sourceMap!node_modules/sass-loader/lib/loader.js?sourceMap!webpack/assets/javascripts/react_app/components/hosts/storage/vmware/controller/disk/disk.scss:
00:37:08 webpack.1 | [0]
./node_modules/css-loader?sourceMap!./node_modules/sass-loader/lib/loader.js?sourceMap!./webpack/assets/javascripts/react_app/components/hosts/storage/vmware/controller/disk/disk.scss
2.64 kB {0} [built]
00:37:08 webpack.1 | [1] ./node_modules/css-loader/lib/css-base.js
1.51 kB {0} [built]
00:37:08 webpack.1 | webpack: Compiled successfully.
00:37:26 rails.1 | 2017-10-12T00:37:26 [app] [W] DEPRECATION WARNING:
You didn't set secret_key_base
. Read the upgrade documentation to learn
more about this new config option. (called from env_config at
/var/lib/gems/2.4.0/gems/railties-5.0.6/lib/rails/application.rb:246)
00:37:26 rails.1 | 2017-10-12T00:37:26 d106ae33 [app] [I] Started GET
"/dashboard" for $MYIP at 2017-10-12 00:37:26 +0000
00:37:27 rails.1 | 2017-10-12T00:37:27 d106ae33 [app] [I] Processing by
DashboardController#index as HTML
00:37:27 rails.1 | 2017-10-12T00:37:27 d106ae33 [app] [I] Current user:
admin (administrator)
00:37:27 rails.1 | 2017-10-12T00:37:27 d106ae33 [app] [D] Setting current
user thread-local variable to admin
00:37:27 rails.1 | 2017-10-12T00:37:27 d106ae33 [app] [I] Session for
Admin User is expired.
00:37:27 rails.1 | 2017-10-12T00:37:27 d106ae33 [app] [I] Redirected to
http://{$MYSERVERIP}:5000/users/login
00:37:27 rails.1 | 2017-10-12T00:37:27 d106ae33 [app] [I] Filter chain
halted as :session_expiry rendered or redirected
00:37:27 rails.1 | 2017-10-12T00:37:27 d106ae33 [app] [I] Completed 302
Found in 100ms (ActiveRecord: 19.7ms)
00:37:27 rails.1 | |
00:37:27 rails.1 | |
00:37:27 rails.1 | 2017-10-12T00:37:27 6305c7bb [app] [I] Started GET
"/users/login" for $MYIP at 2017-10-12 00:37:27 +0000
00:37:27 rails.1 | 2017-10-12T00:37:27 6305c7bb [app] [I] Processing by
UsersController#login as HTML
00:37:27 rails.1 | 2017-10-12T00:37:27 6305c7bb [app] [D] Setting current
user thread-local variable to nil
00:37:27 rails.1 | 2017-10-12T00:37:27 6305c7bb [app] [I] Rendering
users/login.html.erb within layouts/login
00:37:29 rails.1 | 2017-10-12T00:37:29 6305c7bb [app] [I] Rendered
users/_welcome_box.html.erb (8.1ms)
00:37:29 rails.1 | 2017-10-12T00:37:29 6305c7bb [app] [I] Rendered
users/login.html.erb within layouts/login (1764.6ms)
00:37:29 rails.1 | 2017-10-12T00:37:29 6305c7bb [app] [I] Rendering
layouts/base.html.erb
00:37:29 rails.1 | 2017-10-12T00:37:29 6305c7bb [app] [I] Rendered
layouts/base.html.erb (553.3ms)
00:37:29 rails.1 | 2017-10-12T00:37:29 6305c7bb [app] [I] Completed 200
OK in 2352ms (Views: 2345.0ms | ActiveRecord: 1.7ms)
00:37:29 rails.1 | |
00:37:29 rails.1 | |
00:37:32 rails.1 | 2017-10-12T00:37:32 8ddda9e6 [app] [I] Started POST
"/users/login" for $MYIP at 2017-10-12 00:37:32 +0000
00:37:32 rails.1 | 2017-10-12T00:37:32 8ddda9e6 [app] [I] Processing by
UsersController#login as HTML
00:37:32 rails.1 | 2017-10-12T00:37:32 8ddda9e6 [app] [I] Parameters:
{"utf8"=>"✓", "authenticity_token"=>"$SOMESTRING==",
"login"=>{"login"=>"admin", "password"=>"[FILTERED]"}, "commit"=>"Log In"}
00:37:32 rails.1 | 2017-10-12T00:37:32 8ddda9e6 [app] [D] Setting current
user thread-local variable to nil
00:37:32 rails.1 | 2017-10-12T00:37:32 8ddda9e6 [app] [I] Current user:
foreman_admin (administrator)
00:37:32 rails.1 | 2017-10-12T00:37:32 8ddda9e6 [app] [D] Setting current
user thread-local variable to foreman_admin
00:37:32 rails.1 | 2017-10-12T00:37:32 8ddda9e6 [app] [D] Setting current
user thread-local variable to nil
00:37:32 rails.1 | 2017-10-12T00:37:32 8ddda9e6 [app] [D] Post-login
processing for admin
00:37:32 rails.1 | 2017-10-12T00:37:32 8ddda9e6 [app] [I] Current user:
foreman_admin (administrator)
00:37:32 rails.1 | 2017-10-12T00:37:32 8ddda9e6 [app] [D] Setting current
user thread-local variable to foreman_admin
00:37:32 rails.1 | 2017-10-12T00:37:32 8ddda9e6 [app] [D] Setting current
user thread-local variable to nil
00:37:32 rails.1 | 2017-10-12T00:37:32 8ddda9e6 [app] [I] Current user:
admin (administrator)
00:37:32 rails.1 | 2017-10-12T00:37:32 8ddda9e6 [app] [D] Setting current
user thread-local variable to admin
00:37:32 rails.1 | 2017-10-12T00:37:32 8ddda9e6 [app] [I] Redirected to
http://{$MYSERVERIP}:5000/dashboard
00:37:32 rails.1 | 2017-10-12T00:37:32 8ddda9e6 [app] [I] Completed 302
Found in 177ms (ActiveRecord: 19.0ms)
00:37:32 rails.1 | |
00:37:32 rails.1 | |
00:37:32 rails.1 | 2017-10-12T00:37:32 a099e33c [app] [I] Started GET
"/dashboard" for $MYIP at 2017-10-12 00:37:32 +0000
00:37:33 rails.1 | 2017-10-12T00:37:33 a099e33c [app] [I] Processing by
DashboardController#index as HTML
00:37:33 rails.1 | 2017-10-12T00:37:33 a099e33c [app