Upgrade Foreman to 1.22 : uninitialized constant Dynflow (NameError)

Problem: Error module:ForemanTasksCore: uninitialized constant Dynflow (NameError) during foreman migration 1.21.4 to 1.22

Distribution and version:
OS: debian
RELEASE: 9.11
FOREMAN: 1.22.0
RUBY: ruby 2.3.3p222 (2016-11-21) [x86_64-linux-gnu]
PUPPET: 5.5.17

Other relevant data:
At the end of the installation, I have the following errors

`Systemd start for foreman-proxy failed!
journalctl log for foreman-proxy:
– Logs begin at Thu 2019-10-24 07:59:43 UTC, end at Mon 2019-11-04 10:54:28 UTC. –
Nov 04 10:50:14 intsrvdpl-a1 systemd[1]: Starting Foreman Proxy…
Nov 04 10:50:14 intsrvdpl-a1 smart-proxy[18865]: /usr/lib/ruby/vendor_ruby/foreman_tasks_core/ticker.rb:2:in module:ForemanTasksCore: uninitialized constant Dynflow (NameError)

Nov 04 10:50:14 intsrvdpl-a1 smart-proxy[18865]: from /usr/lib/ruby/vendor_ruby/foreman_tasks_core/ticker.rb:1:in <top (required)>' Nov 04 10:50:14 intsrvdpl-a1 smart-proxy[18865]: from /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:inrequire’
Nov 04 10:50:14 intsrvdpl-a1 smart-proxy[18865]: from /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in require' Nov 04 10:50:14 intsrvdpl-a1 smart-proxy[18865]: from /usr/lib/ruby/vendor_ruby/foreman_tasks_core.rb:6:in<top (required)>’
Nov 04 10:50:14 intsrvdpl-a1 smart-proxy[18865]: from /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in require' Nov 04 10:50:14 intsrvdpl-a1 smart-proxy[18865]: from /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:inrequire’
Nov 04 10:50:14 intsrvdpl-a1 smart-proxy[18865]: from /usr/lib/ruby/vendor_ruby/foreman_remote_execution_core.rb:1:in <top (required)>' Nov 04 10:50:14 intsrvdpl-a1 smart-proxy[18865]: from /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:inrequire’
Nov 04 10:50:14 intsrvdpl-a1 smart-proxy[18865]: from /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in require' Nov 04 10:50:14 intsrvdpl-a1 smart-proxy[18865]: from /usr/lib/ruby/vendor_ruby/bundler_ext/runtime.rb:41:inblock in system_require’
Nov 04 10:50:14 intsrvdpl-a1 smart-proxy[18865]: from /usr/lib/ruby/vendor_ruby/bundler_ext/runtime.rb:37:in each' Nov 04 10:50:14 intsrvdpl-a1 smart-proxy[18865]: from /usr/lib/ruby/vendor_ruby/bundler_ext/runtime.rb:37:insystem_require’
Nov 04 10:50:15 intsrvdpl-a1 smart-proxy[18865]: from /usr/lib/ruby/vendor_ruby/bundler_ext.rb:19:in block in system_require' Nov 04 10:50:15 intsrvdpl-a1 smart-proxy[18865]: from /usr/lib/ruby/vendor_ruby/bundler_ext.rb:14:ineach’
Nov 04 10:50:15 intsrvdpl-a1 smart-proxy[18865]: from /usr/lib/ruby/vendor_ruby/bundler_ext.rb:14:in system_require' Nov 04 10:50:15 intsrvdpl-a1 smart-proxy[18865]: from /usr/share/foreman-proxy/lib/bundler_helper.rb:22:inrequire_groups’
Nov 04 10:50:15 intsrvdpl-a1 smart-proxy[18865]: from /usr/share/foreman-proxy/lib/smart_proxy_main.rb:31:in <top (required)>' Nov 04 10:50:15 intsrvdpl-a1 smart-proxy[18865]: from /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:inrequire’
Nov 04 10:50:15 intsrvdpl-a1 smart-proxy[18865]: from /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in require' Nov 04 10:50:15 intsrvdpl-a1 smart-proxy[18865]: from /usr/share/foreman-proxy/bin/smart-proxy:5:in
Nov 04 10:50:15 intsrvdpl-a1 systemd[1]: foreman-proxy.service: Main process exited, code=exited, status=1/FAILURE

Nov 04 10:50:15 intsrvdpl-a1 systemd[1]: Failed to start Foreman Proxy.
Nov 04 10:50:15 intsrvdpl-a1 systemd[1]: foreman-proxy.service: Unit entered failed state.
Nov 04 10:50:15 intsrvdpl-a1 systemd[1]: foreman-proxy.service: Failed with result ‘exit-code’.
Nov 04 10:54:28 intsrvdpl-a1 systemd[1]: Starting Foreman Proxy…
Nov 04 10:54:28 intsrvdpl-a1 smart-proxy[21494]: /usr/lib/ruby/vendor_ruby/foreman_tasks_core/ticker.rb:2:in module:ForemanTasksCore: uninitialized constant Dynflow (NameError)

I forgot to add something important: his error only happens after the upgrade of foreman_proxy_plugin_remote_execution_ssh

How did you perform the upgrade? If you say it happened after upgrade of foreman_proxy_plugin_remote_execution_ssh, what was the old version and what is the new one?

Thank you for your answer. I went from foreman 1.21.4 to foreman 1.22
For the upgrade

1 I changed the sources.list
deb http://deb.theforeman.org/ stretch 1.21 => deb http://deb.theforeman.org/ stretch 1.22
deb http://deb.theforeman.org/ plugins 1.21 => deb http://deb.theforeman.org/ plugins 1.22

2 apt-get update && apt-get upgrade -y && foreman-intaller

3 when launching foreman-installer, I had the error in the logs

module:ForemanTasksCore: uninitialized constant Dynflow (NameError)
....
foreman-proxy.service: Main process exited, code=exited, status=1/FAILURE
Failed to start Foreman Proxy.

to determine who was responsible for these errors, I made apt-get remove
when i uninstalled apt-ge autoremove ruby-foreman-remote-execution ruby-smart-proxy-remote-execution-ssh, and replayed foreman-installer, everything went well and the foreman-proxy started

to reproduce the bug, I launched the foreman-insaller -i and I activated the foreman_proxy_plugin_remote_execution_ssh (key 56)

But I need to run remote tasks with ssh

@1visible @aruzicka

The same error still happens on foreman nightly + debian 10.

I’m still stuck on version 1.21
can you help me ?
thank you

Also on Debian 10 with Foreman 1.24