Closed 0003088 closed 7 years ago
You state you think the error is in the config file, but you haven't actually shown your config file - that would be useful. Also, what version of Foreman and the column_view plugin are you using?
I did not touch the file so I supposed the content was known but of course I can post it here
eval Hash.try_convert("SCLS=( ${X_SCLS[*]} )") /usr/bin/scl_enabled tfm if [ $? != 0 ]; then SCLS+=(tfm) export X_SCLS=$(printf '%q' "${SCLS[@]}") . /opt/theforeman/tfm//enable fi bash /tmp/t
foreman 13.1 and column_view 0.3.0
That does not look like a config file at all and I have no idea where you're getting that from. I'm going to guess that you're not looking in /etc/foreman/plugins/foreman_column_view.yaml
(that's a Debian path but I'm pretty sure it's the same on RPM distros). If that is the file you're looking at, there may be a packaging error, and we can look at that further.
In any case, the config file should contain a valid YAML hash - you can start with an example from the README (see https://github.com/GregSutcliffe/foreman_column_view#configuration) and see how you get on.
EDIT: and don't forget to restart httpd
after changes to make Foreman reload the config
Well, all I can tell you is that I am looking exactly at /etc/foreman/plugins/foreman_column_view.yaml
But if this file is malformed then it would explain the problems I'm experiencing ^^ . When I change the file it's working. Thank you for your help and your plugin, it's really useful.
Intriguing - if you have any insight on how it got like that, I'd love to know. As far as I'm aware (looking here: https://github.com/theforeman/foreman-packaging/blob/rpm/1.13/rubygem-foreman_column_view/rubygem-foreman_column_view.spec#L76-L90) the package should contain a correct config file.
Anyway, glad you got it working, and thanks for the kind words :P
When restarting the webserver I get the following error:
Web application could not be started
no implicit conversion of String into Hash (TypeError) /usr/share/foreman/config/settings.rb:17:in'
/usr/share/passenger/helper-scripts/rack-preloader.rb:29:in '
merge!' /usr/share/foreman/config/settings.rb:17:in
block in <top (required)>' /usr/share/foreman/config/settings.rb:16:ineach' /usr/share/foreman/config/settings.rb:16:in
<top (required)>' /opt/rh/rh-ruby22/root/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:54:inrequire' /opt/rh/rh-ruby22/root/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:54:in
require' /usr/share/foreman/config/application.rb:8:in<top (required)>' /opt/rh/rh-ruby22/root/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:54:in
require' /opt/rh/rh-ruby22/root/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:54:inrequire' /usr/share/foreman/config/environment.rb:2:in
<top (required)>' /opt/rh/rh-ruby22/root/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:54:inrequire' /opt/rh/rh-ruby22/root/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:54:in
require' config.ru:3:inblock in <main>' /opt/rh/sclo-ror42/root/usr/share/gems/gems/rack-1.6.2/lib/rack/builder.rb:55:in
instance_eval' /opt/rh/sclo-ror42/root/usr/share/gems/gems/rack-1.6.2/lib/rack/builder.rb:55:ininitialize' config.ru:1:in
new' config.ru:1:in<main>' /usr/share/passenger/helper-scripts/rack-preloader.rb:112:in
eval' /usr/share/passenger/helper-scripts/rack-preloader.rb:112:inpreload_app' /usr/share/passenger/helper-scripts/rack-preloader.rb:158:in
<module:PhusionPassenger>' /usr/share/passenger/helper-scripts/rack-preloader.rb:28:in
Error ID e5341886 Application root /usr/share/foreman Environment (value of RAILS_ENV, RACK_ENV, WSGI_ENV, NODE_ENV and PASSENGER_APP_ENV) production Ruby interpreter command
User and groups
Environment variables
Ulimits
System metrics
General Ruby interpreter information
Ruby configuration (RbConfig::CONFIG)
Activated Ruby gems
Ruby load path ($LOAD_PATH)
Ruby loaded libraries ($LOADED_FEATURES)
The cause of the error is located in
foreman_column_view.yaml
(and probably pretty obvious) but I'm unfamiliar with ruby and do not know how to debug this.