Localhost:3000/cars doesn't appear to be working. it's just a bunch of code. Please help


#1

Puma caught this error: Error loading the ‘sqlite3’ Active Record adapter. Missing a gem it depends on? can’t activate sqlite3 (~> 1.3.6), already activated sqlite3-1.4.0. Make sure all dependencies are added to Gemfile. (LoadError)
/Users/sergiotapia-fikes/.rbenv/versions/2.6.0/lib/ruby/2.6.0/bundler/rubygems_integration.rb:408:in block (2 levels) in replace_gem' /Users/sergiotapia-fikes/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/activerecord-5.2.2/lib/active_record/connection_adapters/sqlite3_adapter.rb:12:in
/Users/sergiotapia-fikes/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in require' /Users/sergiotapia-fikes/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:inblock in require_with_bootsnap_lfi’
/Users/sergiotapia-fikes/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/loaded_features_index.rb:65:in register' /Users/sergiotapia-fikes/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:20:inrequire_with_bootsnap_lfi’
/Users/sergiotapia-fikes/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:29:in require' /Users/sergiotapia-fikes/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:inblock in require’
/Users/sergiotapia-fikes/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:257:in load_dependency' /Users/sergiotapia-fikes/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:inrequire’
/Users/sergiotapia-fikes/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/activerecord-5.2.2/lib/active_record/connection_adapters/connection_specification.rb:191:in spec' /Users/sergiotapia-fikes/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/activerecord-5.2.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:952:inestablish_connection’
/Users/sergiotapia-fikes/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/activerecord-5.2.2/lib/active_record/connection_handling.rb:60:in establish_connection' /Users/sergiotapia-fikes/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/activerecord-5.2.2/lib/active_record/railtie.rb:136:inblock (2 levels) in class:Railtie
/Users/sergiotapia-fikes/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/activesupport-5.2.2/lib/active_support/lazy_load_hooks.rb:71:in instance_eval' /Users/sergiotapia-fikes/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/activesupport-5.2.2/lib/active_support/lazy_load_hooks.rb:71:inblock in execute_hook’
/Users/sergiotapia-fikes/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/activesupport-5.2.2/lib/active_support/lazy_load_hooks.rb:62:in with_execution_control' /Users/sergiotapia-fikes/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/activesupport-5.2.2/lib/active_support/lazy_load_hooks.rb:67:inexecute_hook’
/Users/sergiotapia-fikes/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/activesupport-5.2.2/lib/active_support/lazy_load_hooks.rb:52:in block in run_load_hooks' /Users/sergiotapia-fikes/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/activesupport-5.2.2/lib/active_support/lazy_load_hooks.rb:51:ineach’
/Users/sergiotapia-fikes/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/activesupport-5.2.2/lib/active_support/lazy_load_hooks.rb:51:in run_load_hooks' /Users/sergiotapia-fikes/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/activerecord-5.2.2/lib/active_record/base.rb:328:inmodule:ActiveRecord
/Users/sergiotapia-fikes/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/activerecord-5.2.2/lib/active_record/base.rb:27:in <main>' /Users/sergiotapia-fikes/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:inrequire’
/Users/sergiotapia-fikes/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in block in require_with_bootsnap_lfi' /Users/sergiotapia-fikes/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/loaded_features_index.rb:65:inregister’
/Users/sergiotapia-fikes/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:20:in require_with_bootsnap_lfi' /Users/sergiotapia-fikes/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:29:inrequire’
/Users/sergiotapia-fikes/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:in block in require' /Users/sergiotapia-fikes/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:257:inload_dependency’
/Users/sergiotapia-fikes/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:in require' /Users/sergiotapia-fikes/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/activerecord-5.2.2/lib/active_record/query_cache.rb:29:inrun’
/Users/sergiotapia-fikes/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/activesupport-5.2.2/lib/active_support/execution_wrapper.rb:27:in before' /Users/sergiotapia-fikes/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/activesupport-5.2.2/lib/active_support/callbacks.rb:426:inblock in make_lambda’
/Users/sergiotapia-fikes/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/activesupport-5.2.2/lib/active_support/callbacks.rb:198:in block (2 levels) in halting' /Users/sergiotapia-fikes/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/activesupport-5.2.2/lib/active_support/callbacks.rb:606:inblock (2 levels) in default_terminator’
/Users/sergiotapia-fikes/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/activesupport-5.2.2/lib/active_support/callbacks.rb:605:in catch' /Users/sergiotapia-fikes/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/activesupport-5.2.2/lib/active_support/callbacks.rb:605:inblock in default_terminator’
/Users/sergiotapia-fikes/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/activesupport-5.2.2/lib/active_support/callbacks.rb:199:in block in halting' /Users/sergiotapia-fikes/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/activesupport-5.2.2/lib/active_support/callbacks.rb:513:inblock in invoke_before’
/Users/sergiotapia-fikes/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/activesupport-5.2.2/lib/active_support/callbacks.rb:513:in each' /Users/sergiotapia-fikes/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/activesupport-5.2.2/lib/active_support/callbacks.rb:513:ininvoke_before’
/Users/sergiotapia-fikes/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/activesupport-5.2.2/lib/active_support/callbacks.rb:131:in run_callbacks' /Users/sergiotapia-fikes/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/activesupport-5.2.2/lib/active_support/execution_wrapper.rb:110:inrun!’
/Users/sergiotapia-fikes/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/activesupport-5.2.2/lib/active_support/execution_wrapper.rb:72:in block in run!' /Users/sergiotapia-fikes/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/activesupport-5.2.2/lib/active_support/execution_wrapper.rb:69:intap’
/Users/sergiotapia-fikes/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/activesupport-5.2.2/lib/active_support/execution_wrapper.rb:69:in run!' /Users/sergiotapia-fikes/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/actionpack-5.2.2/lib/action_dispatch/middleware/executor.rb:12:incall’
/Users/sergiotapia-fikes/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/actionpack-5.2.2/lib/action_dispatch/middleware/static.rb:127:in call' /Users/sergiotapia-fikes/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/rack-2.0.6/lib/rack/sendfile.rb:111:incall’
/Users/sergiotapia-fikes/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/railties-5.2.2/lib/rails/engine.rb:524:in call' /Users/sergiotapia-fikes/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/puma-3.12.0/lib/puma/configuration.rb:225:incall’
/Users/sergiotapia-fikes/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/puma-3.12.0/lib/puma/server.rb:658:in handle_request' /Users/sergiotapia-fikes/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/puma-3.12.0/lib/puma/server.rb:472:inprocess_client’
/Users/sergiotapia-fikes/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/puma-3.12.0/lib/puma/server.rb:332:in block in run' /Users/sergiotapia-fikes/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/puma-3.12.0/lib/puma/thread_pool.rb:133:inblock in spawn_thread’


#2

That’s an error message.

The error looks very similar to the one reported here (with solution).


#3

Thank you! i’m not sure how to find the gemfile and change it? can you please help direct me with where to start?


#4

I got it! Resolved the issue, Thank you!


#5

Great! Well done! :+1: