Foreman 1.24 installation error - dynflow proxy won't start

Problem:
don’t starting smart_proxy_dynflow_core.service
Expected outcome:

-- Unit smart_proxy_dynflow_core.service has begun starting up.
Jan 06 11:52:20 repo.takrom.tk smart_proxy_dynflow_core[8382]: /opt/rh/rh-ruby25/root/usr/share/gems/gems/bundler-1.16.1/lib/bundler.rb:508:in `rescue in eval_gemspec': Bundler::Dsl::DSLError
Jan 06 11:52:20 repo.takrom.tk smart_proxy_dynflow_core[8382]: from /opt/rh/rh-ruby25/root/usr/share/gems/gems/bundler-1.16.1/lib/bundler.rb:499:in `eval_gemspec'
Jan 06 11:52:20 repo.takrom.tk smart_proxy_dynflow_core[8382]: from /opt/rh/rh-ruby25/root/usr/share/gems/gems/bundler-1.16.1/lib/bundler.rb:437:in `block in load_gemspec_uncached'
Jan 06 11:52:20 repo.takrom.tk smart_proxy_dynflow_core[8382]: from /opt/rh/rh-ruby25/root/usr/share/gems/gems/bundler-1.16.1/lib/bundler/shared_helpers.rb:65:in `chdir'
Jan 06 11:52:20 repo.takrom.tk smart_proxy_dynflow_core[8382]: from /opt/rh/rh-ruby25/root/usr/share/gems/gems/bundler-1.16.1/lib/bundler/shared_helpers.rb:65:in `block in chdir'
Jan 06 11:52:20 repo.takrom.tk smart_proxy_dynflow_core[8382]: from /opt/rh/rh-ruby25/root/usr/share/ruby/monitor.rb:226:in `mon_synchronize'
Jan 06 11:52:20 repo.takrom.tk smart_proxy_dynflow_core[8382]: from /opt/rh/rh-ruby25/root/usr/share/gems/gems/bundler-1.16.1/lib/bundler/shared_helpers.rb:64:in `chdir'
Jan 06 11:52:20 repo.takrom.tk smart_proxy_dynflow_core[8382]: from /opt/rh/rh-ruby25/root/usr/share/gems/gems/bundler-1.16.1/lib/bundler.rb:436:in `load_gemspec_uncached'
Jan 06 11:52:20 repo.takrom.tk smart_proxy_dynflow_core[8382]: from /opt/rh/rh-ruby25/root/usr/share/gems/gems/bundler-1.16.1/lib/bundler.rb:422:in `load_gemspec'
Jan 06 11:52:20 repo.takrom.tk smart_proxy_dynflow_core[8382]: from /opt/rh/rh-ruby25/root/usr/share/gems/gems/bundler-1.16.1/lib/bundler/dsl.rb:66:in `block in gemspec'
Jan 06 11:52:20 repo.takrom.tk smart_proxy_dynflow_core[8382]: from /opt/rh/rh-ruby25/root/usr/share/gems/gems/bundler-1.16.1/lib/bundler/dsl.rb:66:in `map'
Jan 06 11:52:20 repo.takrom.tk smart_proxy_dynflow_core[8382]: from /opt/rh/rh-ruby25/root/usr/share/gems/gems/bundler-1.16.1/lib/bundler/dsl.rb:66:in `gemspec'
Jan 06 11:52:20 repo.takrom.tk smart_proxy_dynflow_core[8382]: from /opt/theforeman/tfm/root/usr/share/gems/gems/smart_proxy_dynflow_core-0.2.2/Gemfile.in:3:in `eval_gemfile'
Jan 06 11:52:20 repo.takrom.tk smart_proxy_dynflow_core[8382]: from /opt/rh/rh-ruby25/root/usr/share/gems/gems/bundler-1.16.1/lib/bundler/dsl.rb:47:in `instance_eval'
Jan 06 11:52:20 repo.takrom.tk smart_proxy_dynflow_core[8382]: from /opt/rh/rh-ruby25/root/usr/share/gems/gems/bundler-1.16.1/lib/bundler/dsl.rb:47:in `eval_gemfile'
Jan 06 11:52:20 repo.takrom.tk smart_proxy_dynflow_core[8382]: from /opt/rh/rh-ruby25/root/usr/share/gems/gems/bundler-1.16.1/lib/bundler/dsl.rb:12:in `evaluate'
Jan 06 11:52:20 repo.takrom.tk smart_proxy_dynflow_core[8382]: from /opt/theforeman/tfm/root/usr/share/gems/gems/bundler_ext-0.4.1/lib/bundler_ext/gemfile.rb:46:in `parse'
Jan 06 11:52:20 repo.takrom.tk smart_proxy_dynflow_core[8382]: from /opt/theforeman/tfm/root/usr/share/gems/gems/bundler_ext-0.4.1/lib/bundler_ext.rb:14:in `system_require'
Jan 06 11:52:20 repo.takrom.tk smart_proxy_dynflow_core[8382]: from /opt/theforeman/tfm/root/usr/share/gems/gems/smart_proxy_dynflow_core-0.2.2/lib/smart_proxy_dynflow_core/bundler_helper.rb:23:in `require_groups'
Jan 06 11:52:20 repo.takrom.tk smart_proxy_dynflow_core[8382]: from /opt/theforeman/tfm/root/usr/share/gems/gems/smart_proxy_dynflow_core-0.2.2/lib/smart_proxy_dynflow_core/launcher.rb:28:in `load_settings!'
Jan 06 11:52:20 repo.takrom.tk smart_proxy_dynflow_core[8382]: from /opt/theforeman/tfm/root/usr/share/gems/gems/smart_proxy_dynflow_core-0.2.2/lib/smart_proxy_dynflow_core/launcher.rb:12:in `start'
Jan 06 11:52:20 repo.takrom.tk smart_proxy_dynflow_core[8382]: from /opt/theforeman/tfm/root/usr/share/gems/gems/smart_proxy_dynflow_core-0.2.2/lib/smart_proxy_dynflow_core/launcher.rb:8:in `launch!'
Jan 06 11:52:20 repo.takrom.tk smart_proxy_dynflow_core[8382]: from /opt/theforeman/tfm/root/usr/share/gems/gems/smart_proxy_dynflow_core-0.2.2/bin/smart_proxy_dynflow_core:32:in `<top (required)>'
Jan 06 11:52:20 repo.takrom.tk smart_proxy_dynflow_core[8382]: from /usr/bin/smart_proxy_dynflow_core:23:in `load'
Jan 06 11:52:20 repo.takrom.tk smart_proxy_dynflow_core[8382]: from /usr/bin/smart_proxy_dynflow_core:23:in `<main>'
Jan 06 11:52:20 repo.takrom.tk systemd[1]: smart_proxy_dynflow_core.service: control process exited, code=exited status=1
Jan 06 11:52:20 repo.takrom.tk systemd[1]: Failed to start Foreman smart proxy dynflow core service.

Foreman and Proxy versions:
foreman 1.24
rubygem-smart_proxy_dynflow.noarch 0.2.4-1.el7 @foreman-plugins

Distribution and version:
CentOS Linux release 7.7.1908 (Core)

Welcome @fabvil! I’ve edited your post a bit so hopefully someone familiar with the dynflow proxy will be able to assist :slight_smile:

I was having the same issue and found that the issue was related to the following:

opt/theforeman/tfm/root/usr/share/gems/gems/smart_proxy_dynflow_core-0.2.2/smart_proxy_dynflow_core.gemspec

The following line contains an accent which apparently is causing some issues:

gem.authors       = ['Ivan Nečas']

Changing the line to the following fixed this for me:

  gem.authors       = ['Ivan Necas']

I thought it could be related to the locale or so but it seems to be setup correctly:

LANG=en_US.UTF-8
LC_CTYPE=en_US.UTF-8
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

The locale can be set using various scripts which are sourced when you log in, but not when the service is started. What does the output of localectl say?

# localectl

   System Locale: n/a

       VC Keymap: fr
      X11 Layout: n/a

The following fixes it:

# localectl set-locale LANG=en_US.utf8
1 Like