Trying to get the dev environment working on RHEL 9 and running into this issue when I add in the foreman-fog-proxmox module:
$ bundle exec rails s -b 0.0.0.0 -p 3000
/usr/share/ruby/irb/ruby-lex.rb:123: warning: already initialized constant RubyLex::ERROR_TOKENS
/usr/share/gems/gems/irb-1.3.5/lib/irb/ruby-lex.rb:123: warning: previous definition of ERROR_TOKENS was here
2025-01-17T13:05:10 [I|app|] Rails cache backend: File
=> Booting Puma
=> Rails 7.0.8.7 application starting in development
=> Run `bin/rails server --help` for more startup options
2025-01-17T13:05:10 [W|app|] You are trying to replace import_subnets from . Adding allowed actions from plugin permissions to the existing one.
Exiting
/srv/walleye/foremandev/foreman/vendor/ruby/3.0.0/gems/bootsnap-1.18.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:17:in `require': cannot load such file -- net/validations (LoadError)
from /srv/walleye/foremandev/foreman/vendor/ruby/3.0.0/gems/bootsnap-1.18.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:17:in `require'
from /srv/walleye/foremandev/foreman/vendor/ruby/3.0.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
from /srv/walleye/foremandev/foreman/vendor/ruby/3.0.0/gems/zeitwerk-2.6.18/lib/zeitwerk/kernel.rb:34:in `require'
Basically it looks like it wants to use the ruby module net/validations from the foreman/app/lib/net/validations.rb file, but, it can’t find it. If I remove that gem from being used everything starts up fine. So, guessing it’s something missing in the module that showed up in the latest foreman. I had this working on RHEL 8 a few months ago but had to switch to a RHEL 9 because of support of 8 dropped and I can’t get it to work.
Ran into this on both the “develop” and 3.13 branches of foreman.
Any help on this would be appreciated.
Thanks,
Brian