Skip to content

Rails console broken #292

@trishtzy

Description

@trishtzy
hotel_app [master~1●] % bundle exec rails c
Traceback (most recent call last):
	61: from bin/rails:9:in `<main>'
	60: from /hotel/hotel_app/vendor/gem/ruby/2.6.0/gems/activesupport-6.0.3/lib/active_support/dependencies.rb:324:in `require'
	59: from /hotel/hotel_app/vendor/gem/ruby/2.6.0/gems/activesupport-6.0.3/lib/active_support/dependencies.rb:291:in `load_dependency'
	58: from /hotel/hotel_app/vendor/gem/ruby/2.6.0/gems/activesupport-6.0.3/lib/active_support/dependencies.rb:324:in `block in require'
	57: from /hotel/hotel_app/vendor/gem/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
	56: from /hotel/hotel_app/vendor/gem/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
	55: from /hotel/hotel_app/vendor/gem/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
	54: from /hotel/hotel_app/vendor/gem/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
	53: from /hotel/hotel_app/vendor/gem/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
	52: from /hotel/hotel_app/vendor/gem/ruby/2.6.0/gems/railties-6.0.3/lib/rails/commands.rb:18:in `<main>'
	51: from /hotel/hotel_app/vendor/gem/ruby/2.6.0/gems/railties-6.0.3/lib/rails/command.rb:46:in `invoke'
	50: from /hotel/hotel_app/vendor/gem/ruby/2.6.0/gems/railties-6.0.3/lib/rails/command/base.rb:69:in `perform'
	49: from /hotel/hotel_app/vendor/gem/ruby/2.6.0/gems/thor-1.0.1/lib/thor.rb:392:in `dispatch'
	48: from /hotel/hotel_app/vendor/gem/ruby/2.6.0/gems/thor-1.0.1/lib/thor/invocation.rb:127:in `invoke_command'
	47: from /hotel/hotel_app/vendor/gem/ruby/2.6.0/gems/thor-1.0.1/lib/thor/command.rb:27:in `run'
	46: from /hotel/hotel_app/vendor/gem/ruby/2.6.0/gems/railties-6.0.3/lib/rails/commands/console/console_command.rb:101:in `perform'
	45: from /hotel/hotel_app/vendor/gem/ruby/2.6.0/gems/railties-6.0.3/lib/rails/command/actions.rb:14:in `require_application_and_environment!'
	44: from /hotel/hotel_app/vendor/gem/ruby/2.6.0/gems/railties-6.0.3/lib/rails/command/actions.rb:22:in `require_application!'
	43: from /hotel/hotel_app/vendor/gem/ruby/2.6.0/gems/activesupport-6.0.3/lib/active_support/dependencies.rb:324:in `require'
	42: from /hotel/hotel_app/vendor/gem/ruby/2.6.0/gems/activesupport-6.0.3/lib/active_support/dependencies.rb:291:in `load_dependency'
	41: from /hotel/hotel_app/vendor/gem/ruby/2.6.0/gems/activesupport-6.0.3/lib/active_support/dependencies.rb:324:in `block in require'
	40: from /hotel/hotel_app/vendor/gem/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
	39: from /hotel/hotel_app/vendor/gem/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
	38: from /hotel/hotel_app/vendor/gem/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
	37: from /hotel/hotel_app/vendor/gem/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
	36: from /hotel/hotel_app/vendor/gem/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
	35: from /hotel/hotel_app/config/application.rb:22:in `<main>'
	34: from /hotel/hotel_app/config/application.rb:23:in `<module:HotelApp>'
	33: from /hotel/hotel_app/config/application.rb:25:in `<class:Application>'
	32: from /hotel/hotel_app/vendor/gem/ruby/2.6.0/gems/railties-6.0.3/lib/rails/railtie.rb:127:in `config'
	31: from /hotel/hotel_app/vendor/gem/ruby/2.6.0/gems/railties-6.0.3/lib/rails/application.rb:100:in `instance'
	30: from /hotel/hotel_app/vendor/gem/ruby/2.6.0/gems/railties-6.0.3/lib/rails/railtie.rb:167:in `instance'
	29: from /hotel/hotel_app/vendor/gem/ruby/2.6.0/gems/railties-6.0.3/lib/rails/railtie.rb:167:in `new'
	28: from /hotel/hotel_app/vendor/gem/ruby/2.6.0/gems/railties-6.0.3/lib/rails/application.rb:139:in `initialize'
	27: from /hotel/hotel_app/vendor/gem/ruby/2.6.0/gems/activesupport-6.0.3/lib/active_support/dependencies.rb:324:in `require'
	26: from /hotel/hotel_app/vendor/gem/ruby/2.6.0/gems/activesupport-6.0.3/lib/active_support/dependencies.rb:291:in `load_dependency'
	25: from /hotel/hotel_app/vendor/gem/ruby/2.6.0/gems/activesupport-6.0.3/lib/active_support/dependencies.rb:324:in `block in require'
	24: from /hotel/hotel_app/vendor/gem/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
	23: from /hotel/hotel_app/vendor/gem/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
	22: from /hotel/hotel_app/vendor/gem/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
	21: from /hotel/hotel_app/vendor/gem/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
	20: from /hotel/hotel_app/vendor/gem/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
	19: from /hotel/hotel_app/vendor/gem/ruby/2.6.0/gems/activesupport-6.0.3/lib/active_support/executor.rb:3:in `<main>'
	18: from /hotel/hotel_app/vendor/gem/ruby/2.6.0/gems/activesupport-6.0.3/lib/active_support/dependencies.rb:324:in `require'
	17: from /hotel/hotel_app/vendor/gem/ruby/2.6.0/gems/activesupport-6.0.3/lib/active_support/dependencies.rb:291:in `load_dependency'
	16: from /hotel/hotel_app/vendor/gem/ruby/2.6.0/gems/activesupport-6.0.3/lib/active_support/dependencies.rb:324:in `block in require'
	15: from /hotel/hotel_app/vendor/gem/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
	14: from /hotel/hotel_app/vendor/gem/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
	13: from /hotel/hotel_app/vendor/gem/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
	12: from /hotel/hotel_app/vendor/gem/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
	11: from /hotel/hotel_app/vendor/gem/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
	10: from /hotel/hotel_app/vendor/gem/ruby/2.6.0/gems/activesupport-6.0.3/lib/active_support/execution_wrapper.rb:6:in `<main>'
	 9: from /hotel/hotel_app/vendor/gem/ruby/2.6.0/gems/activesupport-6.0.3/lib/active_support/execution_wrapper.rb:7:in `<module:ActiveSupport>'
	 8: from /hotel/hotel_app/vendor/gem/ruby/2.6.0/gems/activesupport-6.0.3/lib/active_support/execution_wrapper.rb:14:in `<class:ExecutionWrapper>'
	 7: from /hotel/hotel_app/vendor/gem/ruby/2.6.0/gems/activesupport-6.0.3/lib/active_support/callbacks.rb:816:in `define_callbacks'
	 6: from /hotel/hotel_app/vendor/gem/ruby/2.6.0/gems/activesupport-6.0.3/lib/active_support/callbacks.rb:816:in `each'
	 5: from /hotel/hotel_app/vendor/gem/ruby/2.6.0/gems/activesupport-6.0.3/lib/active_support/callbacks.rb:819:in `block in define_callbacks'
	 4: from /hotel/hotel_app/vendor/gem/ruby/2.6.0/gems/activesupport-6.0.3/lib/active_support/callbacks.rb:819:in `each'
	 3: from /hotel/hotel_app/vendor/gem/ruby/2.6.0/gems/activesupport-6.0.3/lib/active_support/callbacks.rb:820:in `block (2 levels) in define_callbacks'
	 2: from /hotel/hotel_app/vendor/gem/ruby/2.6.0/gems/activesupport-6.0.3/lib/active_support/callbacks.rb:849:in `set_callbacks'
	 1: from /hotel/hotel_app/vendor/gem/ruby/2.6.0/gems/activesupport-6.0.3/lib/active_support/core_ext/class/attribute.rb:106:in `block (2 levels) in class_attribute'
/hotel/hotel_app/vendor/gem/ruby/2.6.0/gems/activesupport-6.0.3/lib/active_support/core_ext/module/redefine_method.rb:27:in `redefine_singleton_method': private method `redefine_method' called for #<Class:ActiveSupport::ExecutionWrapper> (NoMethodError)

Getting this error repeatedly when running bundle exec rails c. Did anyone encounter this before?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions