I am unable to upgrade from 7 to 8 version please provide all steps

getting below error

/home/rabendra/dev/Upshift-Booking-Software/config/routes.rb:54:in block in <main>': undefined method draw’ for #ActionDispatch::Routing::Mapper:0x0000561ecc3d1cd8 (NoMethodError)

Feature(s) impacted

I am unable to upgrade v8.

Observed behavior

getting error undefined method `draw’ for #ActionDispatch::Routing::Mapper:0x0000561ecc3d1cd8 (NoMethodError)

Expected behavior

It should upgrade to v8.

Failure Logs

raceback (most recent call last):
67: from bin/rails:4:in <main>' 66: from /home/rabendra/.rvm/gems/ruby-2.7.1@mvp/gems/activesupport-6.0.6.1/lib/active_support/dependencies.rb:324:in require’
65: from /home/rabendra/.rvm/gems/ruby-2.7.1@mvp/gems/activesupport-6.0.6.1/lib/active_support/dependencies.rb:291:in load_dependency' 64: from /home/rabendra/.rvm/gems/ruby-2.7.1@mvp/gems/activesupport-6.0.6.1/lib/active_support/dependencies.rb:324:in block in require’
63: from /home/rabendra/.rvm/gems/ruby-2.7.1@mvp/gems/bootsnap-1.4.8/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in require' 62: from /home/rabendra/.rvm/gems/ruby-2.7.1@mvp/gems/bootsnap-1.4.8/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in require_with_bootsnap_lfi’
61: from /home/rabendra/.rvm/gems/ruby-2.7.1@mvp/gems/bootsnap-1.4.8/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in register' 60: from /home/rabendra/.rvm/gems/ruby-2.7.1@mvp/gems/bootsnap-1.4.8/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in block in require_with_bootsnap_lfi’
59: from /home/rabendra/.rvm/gems/ruby-2.7.1@mvp/gems/bootsnap-1.4.8/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in require' 58: from /home/rabendra/.rvm/gems/ruby-2.7.1@mvp/gems/railties-6.0.6.1/lib/rails/commands.rb:18:in
57: from /home/rabendra/.rvm/gems/ruby-2.7.1@mvp/gems/railties-6.0.6.1/lib/rails/command.rb:46:in invoke' 56: from /home/rabendra/.rvm/gems/ruby-2.7.1@mvp/gems/railties-6.0.6.1/lib/rails/command/base.rb:69:in perform’
55: from /home/rabendra/.rvm/gems/ruby-2.7.1@mvp/gems/thor-1.3.0/lib/thor.rb:527:in dispatch' 54: from /home/rabendra/.rvm/gems/ruby-2.7.1@mvp/gems/thor-1.3.0/lib/thor/invocation.rb:127:in invoke_command’
53: from /home/rabendra/.rvm/gems/ruby-2.7.1@mvp/gems/thor-1.3.0/lib/thor/command.rb:28:in run' 52: from /home/rabendra/.rvm/gems/ruby-2.7.1@mvp/gems/railties-6.0.6.1/lib/rails/commands/server/server_command.rb:138:in perform’
51: from /home/rabendra/.rvm/gems/ruby-2.7.1@mvp/gems/railties-6.0.6.1/lib/rails/commands/server/server_command.rb:138:in tap' 50: from /home/rabendra/.rvm/gems/ruby-2.7.1@mvp/gems/railties-6.0.6.1/lib/rails/commands/server/server_command.rb:147:in block in perform’
49: from /home/rabendra/.rvm/gems/ruby-2.7.1@mvp/gems/railties-6.0.6.1/lib/rails/commands/server/server_command.rb:37:in start' 48: from /home/rabendra/.rvm/gems/ruby-2.7.1@mvp/gems/railties-6.0.6.1/lib/rails/commands/server/server_command.rb:77:in log_to_stdout’
47: from /home/rabendra/.rvm/gems/ruby-2.7.1@mvp/gems/rack-2.2.8/lib/rack/server.rb:422:in wrapped_app' 46: from /home/rabendra/.rvm/gems/ruby-2.7.1@mvp/gems/rack-2.2.8/lib/rack/server.rb:249:in app’
45: from /home/rabendra/.rvm/gems/ruby-2.7.1@mvp/gems/rack-2.2.8/lib/rack/server.rb:349:in build_app_and_options_from_config' 44: from /home/rabendra/.rvm/gems/ruby-2.7.1@mvp/gems/rack-2.2.8/lib/rack/builder.rb:66:in parse_file’
43: from /home/rabendra/.rvm/gems/ruby-2.7.1@mvp/gems/rack-2.2.8/lib/rack/builder.rb:105:in load_file' 42: from /home/rabendra/.rvm/gems/ruby-2.7.1@mvp/gems/rack-2.2.8/lib/rack/builder.rb:116:in new_from_string’
41: from /home/rabendra/.rvm/gems/ruby-2.7.1@mvp/gems/rack-2.2.8/lib/rack/builder.rb:116:in eval' 40: from config.ru:1:in block in ’
39: from /home/rabendra/.rvm/gems/ruby-2.7.1@mvp/gems/bootsnap-1.4.8/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:53:in require_relative' 38: from /home/rabendra/.rvm/gems/ruby-2.7.1@mvp/gems/activesupport-6.0.6.1/lib/active_support/dependencies.rb:324:in require’
37: from /home/rabendra/.rvm/gems/ruby-2.7.1@mvp/gems/activesupport-6.0.6.1/lib/active_support/dependencies.rb:291:in load_dependency' 36: from /home/rabendra/.rvm/gems/ruby-2.7.1@mvp/gems/activesupport-6.0.6.1/lib/active_support/dependencies.rb:324:in block in require’
35: from /home/rabendra/.rvm/gems/ruby-2.7.1@mvp/gems/zeitwerk-2.6.12/lib/zeitwerk/kernel.rb:38:in require' 34: from /home/rabendra/.rvm/gems/ruby-2.7.1@mvp/gems/bootsnap-1.4.8/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in require’
33: from /home/rabendra/.rvm/gems/ruby-2.7.1@mvp/gems/bootsnap-1.4.8/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in require_with_bootsnap_lfi' 32: from /home/rabendra/.rvm/gems/ruby-2.7.1@mvp/gems/bootsnap-1.4.8/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in register’
31: from /home/rabendra/.rvm/gems/ruby-2.7.1@mvp/gems/bootsnap-1.4.8/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in block in require_with_bootsnap_lfi' 30: from /home/rabendra/.rvm/gems/ruby-2.7.1@mvp/gems/bootsnap-1.4.8/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in require’
29: from /home/rabendra/dev/Upshift-Booking-Software/config/environment.rb:5:in <main>' 28: from /home/rabendra/.rvm/gems/ruby-2.7.1@mvp/gems/railties-6.0.6.1/lib/rails/application.rb:363:in initialize!’
27: from /home/rabendra/.rvm/gems/ruby-2.7.1@mvp/gems/railties-6.0.6.1/lib/rails/initializable.rb:60:in run_initializers' 26: from /home/rabendra/.rvm/rubies/ruby-2.7.1/lib/ruby/2.7.0/tsort.rb:205:in tsort_each’
25: from /home/rabendra/.rvm/rubies/ruby-2.7.1/lib/ruby/2.7.0/tsort.rb:226:in tsort_each' 24: from /home/rabendra/.rvm/rubies/ruby-2.7.1/lib/ruby/2.7.0/tsort.rb:347:in each_strongly_connected_component’
23: from /home/rabendra/.rvm/rubies/ruby-2.7.1/lib/ruby/2.7.0/tsort.rb:347:in call' 22: from /home/rabendra/.rvm/rubies/ruby-2.7.1/lib/ruby/2.7.0/tsort.rb:347:in each’
21: from /home/rabendra/.rvm/rubies/ruby-2.7.1/lib/ruby/2.7.0/tsort.rb:349:in block in each_strongly_connected_component' 20: from /home/rabendra/.rvm/rubies/ruby-2.7.1/lib/ruby/2.7.0/tsort.rb:431:in each_strongly_connected_component_from’
19: from /home/rabendra/.rvm/rubies/ruby-2.7.1/lib/ruby/2.7.0/tsort.rb:350:in block (2 levels) in each_strongly_connected_component' 18: from /home/rabendra/.rvm/rubies/ruby-2.7.1/lib/ruby/2.7.0/tsort.rb:228:in block in tsort_each’
17: from /home/rabendra/.rvm/gems/ruby-2.7.1@mvp/gems/railties-6.0.6.1/lib/rails/initializable.rb:61:in block in run_initializers' 16: from /home/rabendra/.rvm/gems/ruby-2.7.1@mvp/gems/railties-6.0.6.1/lib/rails/initializable.rb:32:in run’
15: from /home/rabendra/.rvm/gems/ruby-2.7.1@mvp/gems/railties-6.0.6.1/lib/rails/initializable.rb:32:in instance_exec' 14: from /home/rabendra/.rvm/gems/ruby-2.7.1@mvp/gems/railties-6.0.6.1/lib/rails/application/finisher.rb:184:in block in module:Finisher
13: from /home/rabendra/.rvm/gems/ruby-2.7.1@mvp/gems/railties-6.0.6.1/lib/rails/application/routes_reloader.rb:10:in execute' 12: from /home/rabendra/.rvm/gems/ruby-2.7.1@mvp/gems/activesupport-6.0.6.1/lib/active_support/file_update_checker.rb:83:in execute’
11: from /home/rabendra/.rvm/gems/ruby-2.7.1@mvp/gems/railties-6.0.6.1/lib/rails/application/routes_reloader.rb:29:in block in updater' 10: from /home/rabendra/.rvm/gems/ruby-2.7.1@mvp/gems/railties-6.0.6.1/lib/rails/application/routes_reloader.rb:20:in reload!’
9: from /home/rabendra/.rvm/gems/ruby-2.7.1@mvp/gems/railties-6.0.6.1/lib/rails/application/routes_reloader.rb:40:in load_paths' 8: from /home/rabendra/.rvm/gems/ruby-2.7.1@mvp/gems/railties-6.0.6.1/lib/rails/application/routes_reloader.rb:40:in each’
7: from /home/rabendra/.rvm/gems/ruby-2.7.1@mvp/gems/railties-6.0.6.1/lib/rails/application/routes_reloader.rb:40:in block in load_paths' 6: from /home/rabendra/.rvm/gems/ruby-2.7.1@mvp/gems/bootsnap-1.4.8/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:59:in load’
5: from /home/rabendra/.rvm/gems/ruby-2.7.1@mvp/gems/bootsnap-1.4.8/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:59:in load' 4: from /home/rabendra/dev/Upshift-Booking-Software/config/routes.rb:1:in
3: from /home/rabendra/.rvm/gems/ruby-2.7.1@mvp/gems/actionpack-6.0.6.1/lib/action_dispatch/routing/route_set.rb:408:in draw' 2: from /home/rabendra/.rvm/gems/ruby-2.7.1@mvp/gems/actionpack-6.0.6.1/lib/action_dispatch/routing/route_set.rb:426:in eval_block’
1: from /home/rabendra/.rvm/gems/ruby-2.7.1@mvp/gems/actionpack-6.0.6.1/lib/action_dispatch/routing/route_set.rb:426:in instance_exec' /home/rabendra/dev/Upshift-Booking-Software/config/routes.rb:54:in block in ‘: undefined method `draw’ for #ActionDispatch::Routing::Mapper:0x0000561ecc3d1cd8 (NoMethodError)

Context

  • Project name: upshiftcars
  • Team name: …
  • Environment name: development/production
  • Agent (forest package) name & version: v7
  • Database type: postgres
  • Recent changes made on your end if any: nope

Hello,
Please follow this upgrade to v8 guide !

@Alban_Bertolini Hi There first of all thank you so much for giving rapid response and after following all steps still getting same issue which i described in the beginning. so please help me out over it. getting error while restarting the server (rails s) in forest development. and here is the server error log.
/home/rabendra/.rvm/gems/ruby-2.7.1@mvp/gems/forest_liana-8.0.17/config/routes.rb:62:in block in <main>': undefined method draw’ for #ActionDispatch::Routing::Mapper:0x000055d079683270 (NoMethodError)

Hello @rabendra_sharma :wave:

A similar issue was reported and resolved in our github repository.

From the stack you have shared, it appears that your rails version is 6.0.6, could you try to upgrade to a version >= 6.1.6 ?

I’ll create a ticket so that the documentation is updated to reflect this point.

Best regards,

1 Like

Hi @dogan.ay Thanks you for your response as well as suggestion and tried same but after upgrading rails version 6.1.6 getting error “could not found server” while running rails s.

Hello @rabendra_sharma

It seems that your application no longer has a local server.

Can you check in your Gemfile whether you have the puma or webrick gem ?