You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I followed your guide on setting up rom-rails and it doesn't work with Sqlite database, to make sure that it's not outdated and that it actually works I switched to Postgres and everything went fine. I think the issue is that the Sequel adapter expects sqlite in the protocol part of the DATABASE_URL but Ruby On Rails actually uses sqlite3 and looks like rom-rails relies on both?
This is the stack trace with DATABASE_URL=sqlite:///Users/sasablagojevic/Developer/Projects/rails_data_mapper/db/development.sqlite3
/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/bootsnap-1.13.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:17:in`require': Could not load the 'sqlite' Active Record adapter. Ensure that the adapter is spelled correctly in config/database.yml and that you've added the necessary adapter gem to your Gemfile. (LoadError) from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/bootsnap-1.13.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:17:in `require' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/zeitwerk-2.6.4/lib/zeitwerk/kernel.rb:38:in `require'from/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/activerecord-6.1.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:1205:in`resolve_pool_config' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/activerecord-6.1.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:1046:in `establish_connection' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/activerecord-6.1.7/lib/active_record/connection_handling.rb:52:in `establish_connection'from/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/activerecord-6.1.7/lib/active_record/railtie.rb:222:in`block (2 levels) in <class:Railtie>' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/activesupport-6.1.7/lib/active_support/lazy_load_hooks.rb:71:in `class_eval' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/activesupport-6.1.7/lib/active_support/lazy_load_hooks.rb:71:in `block in execute_hook'from/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/activesupport-6.1.7/lib/active_support/lazy_load_hooks.rb:61:in`with_execution_control' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/activesupport-6.1.7/lib/active_support/lazy_load_hooks.rb:66:in `execute_hook' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/activesupport-6.1.7/lib/active_support/lazy_load_hooks.rb:52:in `block in run_load_hooks'from/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/activesupport-6.1.7/lib/active_support/lazy_load_hooks.rb:51:in`each' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/activesupport-6.1.7/lib/active_support/lazy_load_hooks.rb:51:in `run_load_hooks' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/activerecord-6.1.7/lib/active_record/base.rb:315:in `<module:ActiveRecord>'from/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/activerecord-6.1.7/lib/active_record/base.rb:15:in`<main>' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/bootsnap-1.13.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/bootsnap-1.13.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'from/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/zeitwerk-2.6.4/lib/zeitwerk/kernel.rb:38:in`require' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rom-rails-2.3.0/lib/rom/rails/active_record/configuration.rb:25:in `initialize' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rom-rails-2.3.0/lib/rom/rails/railtie.rb:106:in `new'from/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rom-rails-2.3.0/lib/rom/rails/railtie.rb:106:in`load_active_record_config' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rom-rails-2.3.0/lib/rom/rails/railtie.rb:90:in `gateways' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rom-rails-2.3.0/lib/rom/rails/railtie.rb:73:in `create_configuration'from/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rom-rails-2.3.0/lib/rom/rails/railtie.rb:78:in`create_container' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/railties-6.1.7/lib/rails/railtie.rb:207:in `public_send' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/railties-6.1.7/lib/rails/railtie.rb:207:in `method_missing'from/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rom-rails-2.3.0/lib/rom/rails/railtie.rb:45:in`block in <class:Railtie>' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/activesupport-6.1.7/lib/active_support/callbacks.rb:427:in `instance_exec' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/activesupport-6.1.7/lib/active_support/callbacks.rb:427:in `block in make_lambda'from/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/activesupport-6.1.7/lib/active_support/callbacks.rb:198:in`block (2 levels) in halting' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/activesupport-6.1.7/lib/active_support/callbacks.rb:604:in `block(2levels)indefault_terminator' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/activesupport-6.1.7/lib/active_support/callbacks.rb:603:in `catch'from/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/activesupport-6.1.7/lib/active_support/callbacks.rb:603:in`block in default_terminator' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/activesupport-6.1.7/lib/active_support/callbacks.rb:199:in `blockinhalting' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/activesupport-6.1.7/lib/active_support/callbacks.rb:512:in `block in invoke_before'from/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/activesupport-6.1.7/lib/active_support/callbacks.rb:512:in`each' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/activesupport-6.1.7/lib/active_support/callbacks.rb:512:in `invoke_before' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/activesupport-6.1.7/lib/active_support/callbacks.rb:105:in `run_callbacks'from/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/activesupport-6.1.7/lib/active_support/reloader.rb:88:in`prepare!' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/railties-6.1.7/lib/rails/application/finisher.rb:124:in `blockin <module:Finisher>' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/railties-6.1.7/lib/rails/initializable.rb:32:in `instance_exec'from/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/railties-6.1.7/lib/rails/initializable.rb:32:in`run' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/railties-6.1.7/lib/rails/initializable.rb:61:in `blockinrun_initializers' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/3.1.0/tsort.rb:228:in `block in tsort_each'from/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/3.1.0/tsort.rb:350:in`block (2 levels) in each_strongly_connected_component' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/3.1.0/tsort.rb:431:in `each_strongly_connected_component_from' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/3.1.0/tsort.rb:349:in `block in each_strongly_connected_component'from/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/3.1.0/tsort.rb:347:in`each' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/3.1.0/tsort.rb:347:in `call' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/3.1.0/tsort.rb:347:in `each_strongly_connected_component'from/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/3.1.0/tsort.rb:226:in`tsort_each' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/3.1.0/tsort.rb:205:in `tsort_each' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/railties-6.1.7/lib/rails/initializable.rb:60:in `run_initializers'from/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/railties-6.1.7/lib/rails/application.rb:391:in`initialize!' from /Users/sasablagojevic/Developer/Projects/rails_data_mapper/config/environment.rb:5:in `<main>' from config.ru:3:in `require_relative'fromconfig.ru:3:in`block in <main>' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rack-2.2.4/lib/rack/builder.rb:116:in `eval' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rack-2.2.4/lib/rack/builder.rb:116:in `new_from_string'from/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rack-2.2.4/lib/rack/builder.rb:105:in`load_file' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rack-2.2.4/lib/rack/builder.rb:66:in `parse_file' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rack-2.2.4/lib/rack/server.rb:349:in `build_app_and_options_from_config'from/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rack-2.2.4/lib/rack/server.rb:249:in`app' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rack-2.2.4/lib/rack/server.rb:422:in `wrapped_app' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/railties-6.1.7/lib/rails/commands/server/server_command.rb:77:in `log_to_stdout'from/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/railties-6.1.7/lib/rails/commands/server/server_command.rb:37:in`start' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/railties-6.1.7/lib/rails/commands/server/server_command.rb:144:in `blockinperform' from <internal:kernel>:90:in `tap'from/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/railties-6.1.7/lib/rails/commands/server/server_command.rb:135:in`perform' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/thor-1.2.1/lib/thor/command.rb:27:in `run' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/thor-1.2.1/lib/thor/invocation.rb:127:in `invoke_command'from/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/thor-1.2.1/lib/thor.rb:392:in`dispatch' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/railties-6.1.7/lib/rails/command/base.rb:69:in `perform' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/railties-6.1.7/lib/rails/command.rb:48:in `invoke'from/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/railties-6.1.7/lib/rails/commands.rb:18:in`<main>' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/bootsnap-1.13.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/bootsnap-1.13.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'from/Users/sasablagojevic/Developer/Projects/rails_data_mapper/bin/rails:5:in`<top (required)>' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/spring-4.1.0/lib/spring/client/rails.rb:28:in `load' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/spring-4.1.0/lib/spring/client/rails.rb:28:in `call'from/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/spring-4.1.0/lib/spring/client/command.rb:7:in`call' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/spring-4.1.0/lib/spring/client.rb:30:in `run' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/spring-4.1.0/bin/spring:49:in `<top (required)>'from/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/spring-4.1.0/lib/spring/binstub.rb:11:in`load' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/spring-4.1.0/lib/spring/binstub.rb:11:in `<top(required)>' from <internal:/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:85:in `require'from <internal:/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:85:in`require' from /Users/sasablagojevic/Developer/Projects/rails_data_mapper/bin/spring:10:in `blockin <top(required)>' from <internal:kernel>:90:in `tap'from/Users/sasablagojevic/Developer/Projects/rails_data_mapper/bin/spring:7:in`<top (required)>' from bin/rails:2:in `load' from bin/rails:2:in `<main>'/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/bootsnap-1.13.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:17:in`require': cannot load such file -- active_record/connection_adapters/sqlite_adapter (LoadError) from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/bootsnap-1.13.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:17:in `require' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/zeitwerk-2.6.4/lib/zeitwerk/kernel.rb:38:in `require'from/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/activerecord-6.1.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:1205:in`resolve_pool_config' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/activerecord-6.1.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:1046:in `establish_connection' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/activerecord-6.1.7/lib/active_record/connection_handling.rb:52:in `establish_connection'from/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/activerecord-6.1.7/lib/active_record/railtie.rb:222:in`block (2 levels) in <class:Railtie>' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/activesupport-6.1.7/lib/active_support/lazy_load_hooks.rb:71:in `class_eval' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/activesupport-6.1.7/lib/active_support/lazy_load_hooks.rb:71:in `block in execute_hook'from/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/activesupport-6.1.7/lib/active_support/lazy_load_hooks.rb:61:in`with_execution_control' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/activesupport-6.1.7/lib/active_support/lazy_load_hooks.rb:66:in `execute_hook' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/activesupport-6.1.7/lib/active_support/lazy_load_hooks.rb:52:in `block in run_load_hooks'from/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/activesupport-6.1.7/lib/active_support/lazy_load_hooks.rb:51:in`each' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/activesupport-6.1.7/lib/active_support/lazy_load_hooks.rb:51:in `run_load_hooks' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/activerecord-6.1.7/lib/active_record/base.rb:315:in `<module:ActiveRecord>'from/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/activerecord-6.1.7/lib/active_record/base.rb:15:in`<main>' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/bootsnap-1.13.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/bootsnap-1.13.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'from/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/zeitwerk-2.6.4/lib/zeitwerk/kernel.rb:38:in`require' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rom-rails-2.3.0/lib/rom/rails/active_record/configuration.rb:25:in `initialize' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rom-rails-2.3.0/lib/rom/rails/railtie.rb:106:in `new'from/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rom-rails-2.3.0/lib/rom/rails/railtie.rb:106:in`load_active_record_config' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rom-rails-2.3.0/lib/rom/rails/railtie.rb:90:in `gateways' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rom-rails-2.3.0/lib/rom/rails/railtie.rb:73:in `create_configuration'from/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rom-rails-2.3.0/lib/rom/rails/railtie.rb:78:in`create_container' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/railties-6.1.7/lib/rails/railtie.rb:207:in `public_send' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/railties-6.1.7/lib/rails/railtie.rb:207:in `method_missing'from/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rom-rails-2.3.0/lib/rom/rails/railtie.rb:45:in`block in <class:Railtie>' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/activesupport-6.1.7/lib/active_support/callbacks.rb:427:in `instance_exec' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/activesupport-6.1.7/lib/active_support/callbacks.rb:427:in `block in make_lambda'from/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/activesupport-6.1.7/lib/active_support/callbacks.rb:198:in`block (2 levels) in halting' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/activesupport-6.1.7/lib/active_support/callbacks.rb:604:in `block(2levels)indefault_terminator' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/activesupport-6.1.7/lib/active_support/callbacks.rb:603:in `catch'from/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/activesupport-6.1.7/lib/active_support/callbacks.rb:603:in`block in default_terminator' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/activesupport-6.1.7/lib/active_support/callbacks.rb:199:in `blockinhalting' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/activesupport-6.1.7/lib/active_support/callbacks.rb:512:in `block in invoke_before'from/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/activesupport-6.1.7/lib/active_support/callbacks.rb:512:in`each' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/activesupport-6.1.7/lib/active_support/callbacks.rb:512:in `invoke_before' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/activesupport-6.1.7/lib/active_support/callbacks.rb:105:in `run_callbacks'from/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/activesupport-6.1.7/lib/active_support/reloader.rb:88:in`prepare!' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/railties-6.1.7/lib/rails/application/finisher.rb:124:in `blockin <module:Finisher>' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/railties-6.1.7/lib/rails/initializable.rb:32:in `instance_exec'from/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/railties-6.1.7/lib/rails/initializable.rb:32:in`run' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/railties-6.1.7/lib/rails/initializable.rb:61:in `blockinrun_initializers' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/3.1.0/tsort.rb:228:in `block in tsort_each'from/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/3.1.0/tsort.rb:350:in`block (2 levels) in each_strongly_connected_component' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/3.1.0/tsort.rb:431:in `each_strongly_connected_component_from' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/3.1.0/tsort.rb:349:in `block in each_strongly_connected_component'from/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/3.1.0/tsort.rb:347:in`each' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/3.1.0/tsort.rb:347:in `call' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/3.1.0/tsort.rb:347:in `each_strongly_connected_component'from/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/3.1.0/tsort.rb:226:in`tsort_each' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/3.1.0/tsort.rb:205:in `tsort_each' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/railties-6.1.7/lib/rails/initializable.rb:60:in `run_initializers'from/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/railties-6.1.7/lib/rails/application.rb:391:in`initialize!' from /Users/sasablagojevic/Developer/Projects/rails_data_mapper/config/environment.rb:5:in `<main>' from config.ru:3:in `require_relative'fromconfig.ru:3:in`block in <main>' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rack-2.2.4/lib/rack/builder.rb:116:in `eval' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rack-2.2.4/lib/rack/builder.rb:116:in `new_from_string'from/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rack-2.2.4/lib/rack/builder.rb:105:in`load_file' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rack-2.2.4/lib/rack/builder.rb:66:in `parse_file' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rack-2.2.4/lib/rack/server.rb:349:in `build_app_and_options_from_config'from/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rack-2.2.4/lib/rack/server.rb:249:in`app' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rack-2.2.4/lib/rack/server.rb:422:in `wrapped_app' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/railties-6.1.7/lib/rails/commands/server/server_command.rb:77:in `log_to_stdout'from/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/railties-6.1.7/lib/rails/commands/server/server_command.rb:37:in`start' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/railties-6.1.7/lib/rails/commands/server/server_command.rb:144:in `blockinperform' from <internal:kernel>:90:in `tap'from/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/railties-6.1.7/lib/rails/commands/server/server_command.rb:135:in`perform' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/thor-1.2.1/lib/thor/command.rb:27:in `run' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/thor-1.2.1/lib/thor/invocation.rb:127:in `invoke_command'from/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/thor-1.2.1/lib/thor.rb:392:in`dispatch' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/railties-6.1.7/lib/rails/command/base.rb:69:in `perform' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/railties-6.1.7/lib/rails/command.rb:48:in `invoke'from/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/railties-6.1.7/lib/rails/commands.rb:18:in`<main>' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/bootsnap-1.13.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/bootsnap-1.13.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'from/Users/sasablagojevic/Developer/Projects/rails_data_mapper/bin/rails:5:in`<top (required)>' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/spring-4.1.0/lib/spring/client/rails.rb:28:in `load' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/spring-4.1.0/lib/spring/client/rails.rb:28:in `call'from/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/spring-4.1.0/lib/spring/client/command.rb:7:in`call' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/spring-4.1.0/lib/spring/client.rb:30:in `run' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/spring-4.1.0/bin/spring:49:in `<top (required)>'from/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/spring-4.1.0/lib/spring/binstub.rb:11:in`load' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/spring-4.1.0/lib/spring/binstub.rb:11:in `<top(required)>' from <internal:/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:85:in `require'from <internal:/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:85:in`require' from /Users/sasablagojevic/Developer/Projects/rails_data_mapper/bin/spring:10:in `blockin <top(required)>' from <internal:kernel>:90:in `tap'from/Users/sasablagojevic/Developer/Projects/rails_data_mapper/bin/spring:7:in`<top (required)>' from bin/rails:2:in `load' from bin/rails:2:in `<main>'
And this is the stack trace with DATABASE_URL=DATABASE_URL=sqlite3:///Users/sasablagojevic/Developer/Projects/rails_data_mapper/db/development.sqlite3:
Exiting/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/bootsnap-1.13.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:17:in`require': LoadError: cannot load such file -- sequel/adapters/sqlite3 (Sequel::AdapterNotFound) from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/bootsnap-1.13.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:17:in `require' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/zeitwerk-2.6.4/lib/zeitwerk/kernel.rb:38:in `require'from/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/sequel-5.62.0/lib/sequel/database/connecting.rb:87:in`load_adapter' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/sequel-5.62.0/lib/sequel/database/connecting.rb:17:in `adapter_class' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/sequel-5.62.0/lib/sequel/database/connecting.rb:36:in `connect'from/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/sequel-5.62.0/lib/sequel/core.rb:124:in`connect' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rom-sql-3.5.0/lib/rom/sql/gateway.rb:222:in `connect' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rom-sql-3.5.0/lib/rom/sql/gateway.rb:82:in `initialize'from/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rom-core-5.2.6/lib/rom/gateway.rb:96:in`new' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rom-core-5.2.6/lib/rom/gateway.rb:96:in `setup' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rom-core-5.2.6/lib/rom/environment.rb:54:in `block in normalize_gateways'from/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rom-core-5.2.6/lib/rom/environment.rb:47:in`each' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rom-core-5.2.6/lib/rom/environment.rb:47:in `each_with_object' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rom-core-5.2.6/lib/rom/environment.rb:47:in `normalize_gateways'from/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rom-core-5.2.6/lib/rom/environment.rb:28:in`configure_gateways' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rom-core-5.2.6/lib/rom/environment.rb:20:in `initialize' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rom-core-5.2.6/lib/rom/configuration.rb:53:in `new'from/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rom-core-5.2.6/lib/rom/configuration.rb:53:in`initialize' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rom-rails-2.3.0/lib/rom/rails/railtie.rb:73:in `new' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rom-rails-2.3.0/lib/rom/rails/railtie.rb:73:in `create_configuration'from/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rom-rails-2.3.0/lib/rom/rails/railtie.rb:78:in`create_container' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/railties-6.1.7/lib/rails/railtie.rb:207:in `public_send' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/railties-6.1.7/lib/rails/railtie.rb:207:in `method_missing'from/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rom-rails-2.3.0/lib/rom/rails/railtie.rb:45:in`block in <class:Railtie>' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/activesupport-6.1.7/lib/active_support/callbacks.rb:427:in `instance_exec' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/activesupport-6.1.7/lib/active_support/callbacks.rb:427:in `block in make_lambda'from/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/activesupport-6.1.7/lib/active_support/callbacks.rb:198:in`block (2 levels) in halting' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/activesupport-6.1.7/lib/active_support/callbacks.rb:604:in `block(2levels)indefault_terminator' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/activesupport-6.1.7/lib/active_support/callbacks.rb:603:in `catch'from/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/activesupport-6.1.7/lib/active_support/callbacks.rb:603:in`block in default_terminator' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/activesupport-6.1.7/lib/active_support/callbacks.rb:199:in `blockinhalting' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/activesupport-6.1.7/lib/active_support/callbacks.rb:512:in `block in invoke_before'from/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/activesupport-6.1.7/lib/active_support/callbacks.rb:512:in`each' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/activesupport-6.1.7/lib/active_support/callbacks.rb:512:in `invoke_before' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/activesupport-6.1.7/lib/active_support/callbacks.rb:105:in `run_callbacks'from/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/activesupport-6.1.7/lib/active_support/reloader.rb:88:in`prepare!' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/railties-6.1.7/lib/rails/application/finisher.rb:124:in `blockin <module:Finisher>' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/railties-6.1.7/lib/rails/initializable.rb:32:in `instance_exec'from/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/railties-6.1.7/lib/rails/initializable.rb:32:in`run' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/railties-6.1.7/lib/rails/initializable.rb:61:in `blockinrun_initializers' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/3.1.0/tsort.rb:228:in `block in tsort_each'from/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/3.1.0/tsort.rb:350:in`block (2 levels) in each_strongly_connected_component' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/3.1.0/tsort.rb:431:in `each_strongly_connected_component_from' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/3.1.0/tsort.rb:349:in `block in each_strongly_connected_component'from/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/3.1.0/tsort.rb:347:in`each' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/3.1.0/tsort.rb:347:in `call' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/3.1.0/tsort.rb:347:in `each_strongly_connected_component'from/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/3.1.0/tsort.rb:226:in`tsort_each' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/3.1.0/tsort.rb:205:in `tsort_each' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/railties-6.1.7/lib/rails/initializable.rb:60:in `run_initializers'from/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/railties-6.1.7/lib/rails/application.rb:391:in`initialize!' from /Users/sasablagojevic/Developer/Projects/rails_data_mapper/config/environment.rb:5:in `<main>' from config.ru:3:in `require_relative'fromconfig.ru:3:in`block in <main>' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rack-2.2.4/lib/rack/builder.rb:116:in `eval' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rack-2.2.4/lib/rack/builder.rb:116:in `new_from_string'from/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rack-2.2.4/lib/rack/builder.rb:105:in`load_file' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rack-2.2.4/lib/rack/builder.rb:66:in `parse_file' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rack-2.2.4/lib/rack/server.rb:349:in `build_app_and_options_from_config'from/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rack-2.2.4/lib/rack/server.rb:249:in`app' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rack-2.2.4/lib/rack/server.rb:422:in `wrapped_app' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/railties-6.1.7/lib/rails/commands/server/server_command.rb:77:in `log_to_stdout'from/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/railties-6.1.7/lib/rails/commands/server/server_command.rb:37:in`start' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/railties-6.1.7/lib/rails/commands/server/server_command.rb:144:in `blockinperform' from <internal:kernel>:90:in `tap'from/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/railties-6.1.7/lib/rails/commands/server/server_command.rb:135:in`perform' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/thor-1.2.1/lib/thor/command.rb:27:in `run' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/thor-1.2.1/lib/thor/invocation.rb:127:in `invoke_command'from/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/thor-1.2.1/lib/thor.rb:392:in`dispatch' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/railties-6.1.7/lib/rails/command/base.rb:69:in `perform' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/railties-6.1.7/lib/rails/command.rb:48:in `invoke'from/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/railties-6.1.7/lib/rails/commands.rb:18:in`<main>' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/bootsnap-1.13.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/bootsnap-1.13.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'from/Users/sasablagojevic/Developer/Projects/rails_data_mapper/bin/rails:5:in`<top (required)>' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/spring-4.1.0/lib/spring/client/rails.rb:28:in `load' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/spring-4.1.0/lib/spring/client/rails.rb:28:in `call'from/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/spring-4.1.0/lib/spring/client/command.rb:7:in`call' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/spring-4.1.0/lib/spring/client.rb:30:in `run' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/spring-4.1.0/bin/spring:49:in `<top (required)>'from/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/spring-4.1.0/lib/spring/binstub.rb:11:in`load' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/spring-4.1.0/lib/spring/binstub.rb:11:in `<top(required)>' from <internal:/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:85:in `require'from <internal:/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:85:in`require' from /Users/sasablagojevic/Developer/Projects/rails_data_mapper/bin/spring:10:in `blockin <top(required)>' from <internal:kernel>:90:in `tap'from/Users/sasablagojevic/Developer/Projects/rails_data_mapper/bin/spring:7:in`<top (required)>' from bin/rails:2:in `load' from bin/rails:2:in `<main>'/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/bootsnap-1.13.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:17:in`require': cannot load such file -- sequel/adapters/sqlite3 (LoadError) from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/bootsnap-1.13.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:17:in `require' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/zeitwerk-2.6.4/lib/zeitwerk/kernel.rb:38:in `require'from/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/sequel-5.62.0/lib/sequel/database/connecting.rb:87:in`load_adapter' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/sequel-5.62.0/lib/sequel/database/connecting.rb:17:in `adapter_class' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/sequel-5.62.0/lib/sequel/database/connecting.rb:36:in `connect'from/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/sequel-5.62.0/lib/sequel/core.rb:124:in`connect' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rom-sql-3.5.0/lib/rom/sql/gateway.rb:222:in `connect' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rom-sql-3.5.0/lib/rom/sql/gateway.rb:82:in `initialize'from/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rom-core-5.2.6/lib/rom/gateway.rb:96:in`new' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rom-core-5.2.6/lib/rom/gateway.rb:96:in `setup' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rom-core-5.2.6/lib/rom/environment.rb:54:in `block in normalize_gateways'from/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rom-core-5.2.6/lib/rom/environment.rb:47:in`each' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rom-core-5.2.6/lib/rom/environment.rb:47:in `each_with_object' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rom-core-5.2.6/lib/rom/environment.rb:47:in `normalize_gateways'from/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rom-core-5.2.6/lib/rom/environment.rb:28:in`configure_gateways' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rom-core-5.2.6/lib/rom/environment.rb:20:in `initialize' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rom-core-5.2.6/lib/rom/configuration.rb:53:in `new'from/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rom-core-5.2.6/lib/rom/configuration.rb:53:in`initialize' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rom-rails-2.3.0/lib/rom/rails/railtie.rb:73:in `new' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rom-rails-2.3.0/lib/rom/rails/railtie.rb:73:in `create_configuration'from/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rom-rails-2.3.0/lib/rom/rails/railtie.rb:78:in`create_container' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/railties-6.1.7/lib/rails/railtie.rb:207:in `public_send' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/railties-6.1.7/lib/rails/railtie.rb:207:in `method_missing'from/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rom-rails-2.3.0/lib/rom/rails/railtie.rb:45:in`block in <class:Railtie>' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/activesupport-6.1.7/lib/active_support/callbacks.rb:427:in `instance_exec' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/activesupport-6.1.7/lib/active_support/callbacks.rb:427:in `block in make_lambda'from/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/activesupport-6.1.7/lib/active_support/callbacks.rb:198:in`block (2 levels) in halting' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/activesupport-6.1.7/lib/active_support/callbacks.rb:604:in `block(2levels)indefault_terminator' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/activesupport-6.1.7/lib/active_support/callbacks.rb:603:in `catch'from/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/activesupport-6.1.7/lib/active_support/callbacks.rb:603:in`block in default_terminator' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/activesupport-6.1.7/lib/active_support/callbacks.rb:199:in `blockinhalting' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/activesupport-6.1.7/lib/active_support/callbacks.rb:512:in `block in invoke_before'from/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/activesupport-6.1.7/lib/active_support/callbacks.rb:512:in`each' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/activesupport-6.1.7/lib/active_support/callbacks.rb:512:in `invoke_before' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/activesupport-6.1.7/lib/active_support/callbacks.rb:105:in `run_callbacks'from/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/activesupport-6.1.7/lib/active_support/reloader.rb:88:in`prepare!' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/railties-6.1.7/lib/rails/application/finisher.rb:124:in `blockin <module:Finisher>' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/railties-6.1.7/lib/rails/initializable.rb:32:in `instance_exec'from/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/railties-6.1.7/lib/rails/initializable.rb:32:in`run' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/railties-6.1.7/lib/rails/initializable.rb:61:in `blockinrun_initializers' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/3.1.0/tsort.rb:228:in `block in tsort_each'from/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/3.1.0/tsort.rb:350:in`block (2 levels) in each_strongly_connected_component' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/3.1.0/tsort.rb:431:in `each_strongly_connected_component_from' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/3.1.0/tsort.rb:349:in `block in each_strongly_connected_component'from/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/3.1.0/tsort.rb:347:in`each' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/3.1.0/tsort.rb:347:in `call' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/3.1.0/tsort.rb:347:in `each_strongly_connected_component'from/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/3.1.0/tsort.rb:226:in`tsort_each' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/3.1.0/tsort.rb:205:in `tsort_each' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/railties-6.1.7/lib/rails/initializable.rb:60:in `run_initializers'from/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/railties-6.1.7/lib/rails/application.rb:391:in`initialize!' from /Users/sasablagojevic/Developer/Projects/rails_data_mapper/config/environment.rb:5:in `<main>' from config.ru:3:in `require_relative'fromconfig.ru:3:in`block in <main>' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rack-2.2.4/lib/rack/builder.rb:116:in `eval' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rack-2.2.4/lib/rack/builder.rb:116:in `new_from_string'from/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rack-2.2.4/lib/rack/builder.rb:105:in`load_file' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rack-2.2.4/lib/rack/builder.rb:66:in `parse_file' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rack-2.2.4/lib/rack/server.rb:349:in `build_app_and_options_from_config'from/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rack-2.2.4/lib/rack/server.rb:249:in`app' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rack-2.2.4/lib/rack/server.rb:422:in `wrapped_app' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/railties-6.1.7/lib/rails/commands/server/server_command.rb:77:in `log_to_stdout'from/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/railties-6.1.7/lib/rails/commands/server/server_command.rb:37:in`start' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/railties-6.1.7/lib/rails/commands/server/server_command.rb:144:in `blockinperform' from <internal:kernel>:90:in `tap'from/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/railties-6.1.7/lib/rails/commands/server/server_command.rb:135:in`perform' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/thor-1.2.1/lib/thor/command.rb:27:in `run' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/thor-1.2.1/lib/thor/invocation.rb:127:in `invoke_command'from/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/thor-1.2.1/lib/thor.rb:392:in`dispatch' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/railties-6.1.7/lib/rails/command/base.rb:69:in `perform' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/railties-6.1.7/lib/rails/command.rb:48:in `invoke'from/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/railties-6.1.7/lib/rails/commands.rb:18:in`<main>' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/bootsnap-1.13.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/bootsnap-1.13.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'from/Users/sasablagojevic/Developer/Projects/rails_data_mapper/bin/rails:5:in`<top (required)>' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/spring-4.1.0/lib/spring/client/rails.rb:28:in `load' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/spring-4.1.0/lib/spring/client/rails.rb:28:in `call'from/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/spring-4.1.0/lib/spring/client/command.rb:7:in`call' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/spring-4.1.0/lib/spring/client.rb:30:in `run' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/spring-4.1.0/bin/spring:49:in `<top (required)>'from/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/spring-4.1.0/lib/spring/binstub.rb:11:in`load' from /Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/spring-4.1.0/lib/spring/binstub.rb:11:in `<top(required)>' from <internal:/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:85:in `require'from <internal:/Users/sasablagojevic/.rbenv/versions/3.1.2/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:85:in`require' from /Users/sasablagojevic/Developer/Projects/rails_data_mapper/bin/spring:10:in `blockin <top(required)>' from <internal:kernel>:90:in `tap'from/Users/sasablagojevic/Developer/Projects/rails_data_mapper/bin/spring:7:in`<top (required)>' from bin/rails:2:in `load' from bin/rails:2:in `<main>'
So looks like it fails at different points but it interacts with both Sequel's Sqlite adapter and Ruby On Rails' Sqlite3 adapter
To Reproduce
Just use the sqlite database and provide the URL via ENV
Expected behavior
It would be expected for Ruby On Rails to work with Sqlite database when being setup as you describe in the docs
Your environment
Affects my production application: NO
Ruby version: 3.1
Ruby On Rails version: 6.1.7
OS: MacOS
The text was updated successfully, but these errors were encountered:
Describe the bug
I followed your guide on setting up rom-rails and it doesn't work with Sqlite database, to make sure that it's not outdated and that it actually works I switched to Postgres and everything went fine. I think the issue is that the Sequel adapter expects
sqlite
in the protocol part of the DATABASE_URL but Ruby On Rails actually usessqlite3
and looks like rom-rails relies on both?This is the stack trace with
DATABASE_URL=sqlite:///Users/sasablagojevic/Developer/Projects/rails_data_mapper/db/development.sqlite3
And this is the stack trace with
DATABASE_URL=DATABASE_URL=sqlite3:///Users/sasablagojevic/Developer/Projects/rails_data_mapper/db/development.sqlite3
:So looks like it fails at different points but it interacts with both Sequel's Sqlite adapter and Ruby On Rails' Sqlite3 adapter
To Reproduce
Just use the sqlite database and provide the URL via ENV
Expected behavior
It would be expected for Ruby On Rails to work with Sqlite database when being setup as you describe in the docs
Your environment
The text was updated successfully, but these errors were encountered: