Help with trying to get dev environment going on latest

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

I think this could be related to the Rails 7 / Zeitwerk changes. I don’t see exactly where it’s required from the stack trace, but since you mention foreman_fog_proxmox:

I think that line should be dropped. In Zeitwerk merge imminent and Rails 7.0 merge today I added some links to common issues you need to resolve. Usually they’re not hard, just require a bit of effort.

Oh, duh. I could have sworn I switched foreman to origin/3.13-stable, but it was the foreman_fog_proxmox I tried from the old stable. sigh. I actually checked out 3.13-stable and it now works using rail 6.

Your mention of rails 7 made me realize I must not have remembered checking off stable properly.

So, now I have bugs to fix in in current versions and yet more things to look for in the next version! Fun!

Thanks,
Brian