Rails ruby_agent migration - `require: cannot load such file -- forest_admin_agent (LoadError)`

Feature(s) impacted

Legacy client to ruby_agent migration

Observed behavior

Follow steps outlined in:

Expected behavior

Running

rails g forest_admin_rails:install FOREST_ENV_SECRET

Generates an initializer and create_agent lib file

Failure Logs

 /Users/<user>/.asdf/installs/ruby/3.3.5/lib/ruby/3.3.0/bundled_gems.rb:75:in `require': cannot load such file -- forest_admin_agent (LoadError)
        from /Users/<user>/.asdf/installs/ruby/3.3.5/lib/ruby/3.3.0/bundled_gems.rb:75:in `block (2 levels) in replace_require'
        from /Users/<user>/.asdf/installs/ruby/3.3.5/lib/ruby/gems/3.3.0/gems/bootsnap-1.10.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:15:in `require'
        from /Users/<user>/.asdf/installs/ruby/3.3.5/lib/ruby/gems/3.3.0/gems/zeitwerk-2.6.15/lib/zeitwerk/kernel.rb:34:in `require'
        from /Users/<user>/.asdf/installs/ruby/3.3.5/lib/ruby/gems/3.3.0/gems/forest_admin_rails-1.0.0.pre.beta.75/lib/forest_admin_rails/engine.rb:1:in `<main>'
        from /Users/<user>/.asdf/installs/ruby/3.3.5/lib/ruby/3.3.0/bundled_gems.rb:75:in `require'
        from /Users/<user>/.asdf/installs/ruby/3.3.5/lib/ruby/3.3.0/bundled_gems.rb:75:in `block (2 levels) in replace_require'
        from /Users/<user>/.asdf/installs/ruby/3.3.5/lib/ruby/gems/3.3.0/gems/bootsnap-1.10.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
        from /Users/<user>/.asdf/installs/ruby/3.3.5/lib/ruby/gems/3.3.0/gems/zeitwerk-2.6.15/lib/zeitwerk/kernel.rb:34:in `require'
        from /Users/<user>/.asdf/installs/ruby/3.3.5/lib/ruby/gems/3.3.0/gems/forest_admin_rails-1.0.0.pre.beta.75/lib/forest_admin_rails.rb:3:in `<main>'
        from /Users/<user>/.asdf/installs/ruby/3.3.5/lib/ruby/3.3.0/bundled_gems.rb:75:in `require'
        from /Users/<user>/.asdf/installs/ruby/3.3.5/lib/ruby/3.3.0/bundled_gems.rb:75:in `block (2 levels) in replace_require'
        from /Users/<user>/.asdf/installs/ruby/3.3.5/lib/ruby/gems/3.3.0/gems/bootsnap-1.10.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
        from /Users/<user>/.asdf/installs/ruby/3.3.5/lib/ruby/gems/3.3.0/gems/zeitwerk-2.6.15/lib/zeitwerk/kernel.rb:34:in `require'
        from /Users/<user>/.asdf/installs/ruby/3.3.5/lib/ruby/gems/3.3.0/gems/bundler-2.5.3/lib/bundler/runtime.rb:60:in `block (2 levels) in require'
        from /Users/<user>/.asdf/installs/ruby/3.3.5/lib/ruby/gems/3.3.0/gems/bundler-2.5.3/lib/bundler/runtime.rb:55:in `each'
        from /Users/<user>/.asdf/installs/ruby/3.3.5/lib/ruby/gems/3.3.0/gems/bundler-2.5.3/lib/bundler/runtime.rb:55:in `block in require'
        from /Users/<user>/.asdf/installs/ruby/3.3.5/lib/ruby/gems/3.3.0/gems/bundler-2.5.3/lib/bundler/runtime.rb:44:in `each'
        from /Users/<user>/.asdf/installs/ruby/3.3.5/lib/ruby/gems/3.3.0/gems/bundler-2.5.3/lib/bundler/runtime.rb:44:in `require'
        from /Users/<user>/.asdf/installs/ruby/3.3.5/lib/ruby/gems/3.3.0/gems/bundler-2.5.3/lib/bundler.rb:187:in `require'
        from /Users/<user>/Documents/<user>/platform/config/application.rb:9:in `<main>'
        from /Users/<user>/.asdf/installs/ruby/3.3.5/lib/ruby/3.3.0/bundled_gems.rb:75:in `require'
        from /Users/<user>/.asdf/installs/ruby/3.3.5/lib/ruby/3.3.0/bundled_gems.rb:75:in `block (2 levels) in replace_require'
        from /Users/<user>/.asdf/installs/ruby/3.3.5/lib/ruby/gems/3.3.0/gems/bootsnap-1.10.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
        from /Users/<user>/.asdf/installs/ruby/3.3.5/lib/ruby/gems/3.3.0/gems/railties-7.1.4.1/lib/rails/command/actions.rb:15:in `require_application!'
        from /Users/<user>/.asdf/installs/ruby/3.3.5/lib/ruby/gems/3.3.0/gems/railties-7.1.4.1/lib/rails/command/actions.rb:19:in `boot_application!'
        from /Users/<user>/.asdf/installs/ruby/3.3.5/lib/ruby/gems/3.3.0/gems/railties-7.1.4.1/lib/rails/commands/generate/generate_command.rb:21:in `perform'
        from /Users/<user>/.asdf/installs/ruby/3.3.5/lib/ruby/gems/3.3.0/gems/thor-1.3.1/lib/thor/command.rb:28:in `run'
        from /Users/<user>/.asdf/installs/ruby/3.3.5/lib/ruby/gems/3.3.0/gems/thor-1.3.1/lib/thor/invocation.rb:127:in `invoke_command'
        from /Users/<user>/.asdf/installs/ruby/3.3.5/lib/ruby/gems/3.3.0/gems/railties-7.1.4.1/lib/rails/command/base.rb:178:in `invoke_command'
        from /Users/<user>/.asdf/installs/ruby/3.3.5/lib/ruby/gems/3.3.0/gems/thor-1.3.1/lib/thor.rb:527:in `dispatch'
        from /Users/<user>/.asdf/installs/ruby/3.3.5/lib/ruby/gems/3.3.0/gems/railties-7.1.4.1/lib/rails/command/base.rb:73:in `perform'
        from /Users/<user>/.asdf/installs/ruby/3.3.5/lib/ruby/gems/3.3.0/gems/railties-7.1.4.1/lib/rails/command.rb:71:in `block in invoke'
        from /Users/<user>/.asdf/installs/ruby/3.3.5/lib/ruby/gems/3.3.0/gems/railties-7.1.4.1/lib/rails/command.rb:149:in `with_argv'
        from /Users/<user>/.asdf/installs/ruby/3.3.5/lib/ruby/gems/3.3.0/gems/railties-7.1.4.1/lib/rails/command.rb:69:in `invoke'
        from /Users/<user>/.asdf/installs/ruby/3.3.5/lib/ruby/gems/3.3.0/gems/railties-7.1.4.1/lib/rails/commands.rb:18:in `<main>'
        from /Users/<user>/.asdf/installs/ruby/3.3.5/lib/ruby/3.3.0/bundled_gems.rb:75:in `require'
        from /Users/<user>/.asdf/installs/ruby/3.3.5/lib/ruby/3.3.0/bundled_gems.rb:75:in `block (2 levels) in replace_require'
        from /Users/<user>/.asdf/installs/ruby/3.3.5/lib/ruby/gems/3.3.0/gems/bootsnap-1.10.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
        from bin/rails:7:in `<main>'

Context

  • Project name: riipen-platform
  • Team name: Riipen
  • Environment name: N/A
  • Agent technology: Rails
  • Agent (forest package) ‘forest_admin_rails 1.0.0.pre.beta.75’
  • Database type: N/A
  • Recent changes made on your end if any: Working on migrating our existing version

hello @Dustin_Bolink, welcome to the community !

The ruby agent is currently in beta and all packages must be installed.
Can you edit your Gemfile and add these lines:

gem "forest_admin_rails", "~> 1.0.0.pre.beta.75"
gem "forest_admin_agent", "~> 1.0.0.pre.beta.75"
gem "forest_admin_datasource_toolkit", "~> 1.0.0.pre.beta.75"
gem "forest_admin_datasource_active_record", "~> 1.0.0.pre.beta.75"
gem "forest_admin_datasource_customizer", "~> 1.0.0.pre.beta.75"

I’ll update the documentation thanks for your feedback.