Problem: The foreman-proxy service running into an error upgrading from Ubuntu 20.04 with working Foreman v3.11.1 to Ubuntu 22.04, error is thrown:
internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb :85:in `require’: cannot load such file – webrick/https (LoadError)
Expected outcome: Running service without error
Foreman and Proxy versions: v3.11.1
Foreman and Proxy plugin versions: 3.11.1
Distribution and version: Ubuntu 22.04.4 LTS
Other relevant data:
I think the pkg ‘ruby-webrick’ needs to be added to packaging for jammy .dep-pkgs as done for rhel-8: Add rubygem-webrick package by ekohl · Pull Request #8580 · theforeman/foreman-packaging · GitHub
Installed version: https://ubuntu.pkgs.org/22.04/ubuntu-updates-main-amd64/ruby-webrick_1.7.0-3_all.deb.html (uptodate-version)
installation command: apt install ruby-webrick (bundle add webrick in foreman-proxy user context hasn’t worked)
Should be added as dependency so the required package is installed automatically when the do-release-upgrade process is running.
Not defined in either one of the files:
Source: foreman-proxy
Section: net
Priority: extra
Maintainer: Greg Sutcliffe <gsutclif@redhat.com>
Build-Depends: debhelper (>= 9.20160709), rename
Standards-Version: 3.9.1
Homepage: http://theforeman.org/projects/smart-proxy
Vcs-Git: git://github.com/theforeman/smart-proxy.git
Vcs-Browser: https://github.com/theforeman/smart-proxy
Package: foreman-proxy
Section: net
Priority: extra
Architecture: all
Depends: ruby, rake, ruby-sinatra (>= 1.3.3), ruby-rack (>= 1.1.0), ruby-json, ruby-augeas, ruby-bundler-ext, ruby-concurrent (>= 1.0.0), ruby-concurrent (<< 2.0.0), ruby-rsec, ruby-logging, ruby-sd-notify (>= 0.1.0), ruby-sd-notify (<< 0.2.0)
Recommends: sudo, curl, ping, ruby-gssapi, ruby-rubyipmi (>= 0.10.0), ruby-redfish-client (>= 0.5.1), ruby-rkerberos (>= 0.1.1), ruby-libvirt (>= 0.6.0), ruby-rb-inotify, ruby-jwt (>= 1.5.6), ruby-xmlrpc (>= 0.3), foreman-debug
Suggests: foreman-proxy-journald
Description: RESTful proxies for DNS, DHCP, TFTP, and Puppet
Smart-Proxy is a project which provides a RESTful API to various sub-systems
like DNS, DHCP, TFTP, and Puppet.
This file has been truncated. show original
OR:
Source: foreman
Maintainer: Greg Sutcliffe <greg.sutcliffe@gmail.com>
Section: web
Priority: extra
Standards-Version: 3.9.1
Build-Depends: debhelper (>= 9.20160709), ruby-dev (>= 1:2.7), git,
zlib1g-dev, libpq-dev, pkg-config, libvirt-dev,
build-essential, curl, nodejs (>= 8.9),
python3, libsystemd-dev, libcurl4-openssl-dev, libxml2-dev, tzdata,
libfontconfig1, libfreetype6
Homepage: http://www.theforeman.org/
Package: foreman
Architecture: any
Section: web
Priority: extra
Depends: ruby (>= 1:2.7), ruby-dev, zlib1g-dev,
build-essential, tzdata,
rake (>=0.8.4), gawk, ${misc:Depends}
Recommends: foreman-proxy, foreman-debug (= ${binary:Version})
This file has been truncated. show original
Not sure if only the foreman-proxy pkg is needing this gem as dependency or the foreman pkg itself.
Can you look into that?
Was not sure if this is the correct way to file a bug report.
Thanks all!
Best regards,
Till
ekohl
August 7, 2024, 2:47pm
2
That looks like an oversight. Could you submit a PR?