I just cloned one of my repos to a new Mac, everything was fine but then when I try to rake db:create:all or rake db:migrate, I got this error: (I read something about database.yml file but I don't have it in my project and it all worked on another Mac):
rake aborted!
Cannot load `Rails.application.database_configuration`:
Could not load database configuration. No such file - ["config/database.yml"]
/Library/Ruby/Gems/2.0.0/gems/railties-4.2.1/lib/rails/application/configuration.rb:110:in `database_configuration'
/Library/Ruby/Gems/2.0.0/gems/activerecord-4.2.1/lib/active_record/railtie.rb:117:in `block (2 levels) in <class:Railtie>'
/Library/Ruby/Gems/2.0.0/gems/activesupport-4.2.1/lib/active_support/lazy_load_hooks.rb:38:in `instance_eval'
/Library/Ruby/Gems/2.0.0/gems/activesupport-4.2.1/lib/active_support/lazy_load_hooks.rb:38:in `execute_hook'
/Library/Ruby/Gems/2.0.0/gems/activesupport-4.2.1/lib/active_support/lazy_load_hooks.rb:45:in `block in run_load_hooks'
/Library/Ruby/Gems/2.0.0/gems/activesupport-4.2.1/lib/active_support/lazy_load_hooks.rb:44:in `each'
/Library/Ruby/Gems/2.0.0/gems/activesupport-4.2.1/lib/active_support/lazy_load_hooks.rb:44:in `run_load_hooks'
/Library/Ruby/Gems/2.0.0/gems/activerecord-4.2.1/lib/active_record/base.rb:316:in `<module:ActiveRecord>'
/Library/Ruby/Gems/2.0.0/gems/activerecord-4.2.1/lib/active_record/base.rb:26:in `<top (required)>'
/Library/Ruby/Gems/2.0.0/gems/devise-3.4.1/lib/devise/orm/active_record.rb:3:in `<top (required)>'
/Library/Ruby/Gems/2.0.0/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:274:in `require'
/Library/Ruby/Gems/2.0.0/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:274:in `block in require'
/Library/Ruby/Gems/2.0.0/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:240:in `load_dependency'
/Library/Ruby/Gems/2.0.0/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:274:in `require'
/Users/fabrizio/Desktop/SkyWalker/imnotatester/config/initializers/devise.rb:22:in `block in <top (required)>'
/Library/Ruby/Gems/2.0.0/gems/devise-3.4.1/lib/devise.rb:293:in `setup'
/Users/fabrizio/Desktop/SkyWalker/imnotatester/config/initializers/devise.rb:3:in `<top (required)>'
/Library/Ruby/Gems/2.0.0/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:268:in `load'
/Library/Ruby/Gems/2.0.0/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:268:in `block in load'
/Library/Ruby/Gems/2.0.0/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:240:in `load_dependency'
/Library/Ruby/Gems/2.0.0/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:268:in `load'
/Library/Ruby/Gems/2.0.0/gems/railties-4.2.1/lib/rails/engine.rb:652:in `block in load_config_initializer'
/Library/Ruby/Gems/2.0.0/gems/activesupport-4.2.1/lib/active_support/notifications.rb:166:in `instrument'
/Library/Ruby/Gems/2.0.0/gems/railties-4.2.1/lib/rails/engine.rb:651:in `load_config_initializer'
/Library/Ruby/Gems/2.0.0/gems/railties-4.2.1/lib/rails/engine.rb:616:in `block (2 levels) in <class:Engine>'
/Library/Ruby/Gems/2.0.0/gems/railties-4.2.1/lib/rails/engine.rb:615:in `each'
/Library/Ruby/Gems/2.0.0/gems/railties-4.2.1/lib/rails/engine.rb:615:in `block in <class:Engine>'
/Library/Ruby/Gems/2.0.0/gems/railties-4.2.1/lib/rails/initializable.rb:30:in `instance_exec'
/Library/Ruby/Gems/2.0.0/gems/railties-4.2.1/lib/rails/initializable.rb:30:in `run'
/Library/Ruby/Gems/2.0.0/gems/railties-4.2.1/lib/rails/initializable.rb:55:in `block in run_initializers'
/Library/Ruby/Gems/2.0.0/gems/railties-4.2.1/lib/rails/initializable.rb:44:in `each'
/Library/Ruby/Gems/2.0.0/gems/railties-4.2.1/lib/rails/initializable.rb:44:in `tsort_each_child'
/Library/Ruby/Gems/2.0.0/gems/railties-4.2.1/lib/rails/initializable.rb:54:in `run_initializers'
/Library/Ruby/Gems/2.0.0/gems/railties-4.2.1/lib/rails/application.rb:352:in `initialize!'
/Users/fabrizio/Desktop/SkyWalker/imnotatester/config/environment.rb:5:in `<top (required)>'
/Library/Ruby/Gems/2.0.0/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:274:in `require'
/Library/Ruby/Gems/2.0.0/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:274:in `block in require'
/Library/Ruby/Gems/2.0.0/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:240:in `load_dependency'
/Library/Ruby/Gems/2.0.0/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:274:in `require'
/Library/Ruby/Gems/2.0.0/gems/railties-4.2.1/lib/rails/application.rb:328:in `require_environment!'
/Library/Ruby/Gems/2.0.0/gems/railties-4.2.1/lib/rails/application.rb:457:in `block in run_tasks_blocks'
Tasks: TOP => db:migrate => environment
(See full trace by running task with --trace)
Create database.yml in config directory (near application.rb, boot.rb, routes.rb).
# database.yml
development:
encoding: utf8
adapter: sqlite3
database: db/development.sqlite3
pool: 5
timeout: 5000
Then call bundle exec rake db:create && bundler exec rake db:migrate,. Hope you have bundler and sqlite3 in the Gemfile.
Related
When trying to deploy a Rails app to Heroku, the deployment is failing with this error in the release logs:
rake aborted!
KeyError: key not found: :secret_key_base
/app/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.4/lib/active_support/encrypted_configuration.rb:11:in `fetch'
/app/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.4/lib/active_support/encrypted_configuration.rb:11:in `fetch'
/app/config/initializers/devise.rb:313:in `block (2 levels) in <main>'
/app/vendor/bundle/ruby/2.6.0/gems/devise-jwt-0.8.0/lib/devise/jwt.rb:21:in `jwt'
/app/config/initializers/devise.rb:312:in `block in <main>'
/app/vendor/bundle/ruby/2.6.0/gems/devise-4.7.3/lib/devise.rb:307:in `setup'
/app/config/initializers/devise.rb:11:in `<main>'
/app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:59:in `load'
/app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:59:in `load'
/app/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.4/lib/active_support/dependencies.rb:285:in `block in load'
/app/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.4/lib/active_support/dependencies.rb:257:in `load_dependency'
/app/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.4/lib/active_support/dependencies.rb:285:in `load'
/app/vendor/bundle/ruby/2.6.0/gems/railties-5.2.4.4/lib/rails/engine.rb:663:in `block in load_config_initializer'
/app/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.4/lib/active_support/notifications.rb:170:in `instrument'
/app/vendor/bundle/ruby/2.6.0/gems/railties-5.2.4.4/lib/rails/engine.rb:662:in `load_config_initializer'
/app/vendor/bundle/ruby/2.6.0/gems/railties-5.2.4.4/lib/rails/engine.rb:620:in `block (2 levels) in <class:Engine>'
/app/vendor/bundle/ruby/2.6.0/gems/railties-5.2.4.4/lib/rails/engine.rb:619:in `each'
/app/vendor/bundle/ruby/2.6.0/gems/railties-5.2.4.4/lib/rails/engine.rb:619:in `block in <class:Engine>'
/app/vendor/bundle/ruby/2.6.0/gems/railties-5.2.4.4/lib/rails/initializable.rb:32:in `instance_exec'
/app/vendor/bundle/ruby/2.6.0/gems/railties-5.2.4.4/lib/rails/initializable.rb:32:in `run'
/app/vendor/bundle/ruby/2.6.0/gems/railties-5.2.4.4/lib/rails/initializable.rb:61:in `block in run_initializers'
/app/vendor/bundle/ruby/2.6.0/gems/railties-5.2.4.4/lib/rails/initializable.rb:50:in `each'
/app/vendor/bundle/ruby/2.6.0/gems/railties-5.2.4.4/lib/rails/initializable.rb:50:in `tsort_each_child'
/app/vendor/bundle/ruby/2.6.0/gems/railties-5.2.4.4/lib/rails/initializable.rb:60:in `run_initializers'
/app/vendor/bundle/ruby/2.6.0/gems/railties-5.2.4.4/lib/rails/application.rb:361:in `initialize!'
/app/config/environment.rb:5:in `<main>'
/app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
/app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
/app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
/app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
/app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
/app/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.4/lib/active_support/dependencies.rb:291:in `block in require'
/app/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.4/lib/active_support/dependencies.rb:257:in `load_dependency'
/app/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.4/lib/active_support/dependencies.rb:291:in `require'
/app/vendor/bundle/ruby/2.6.0/gems/railties-5.2.4.4/lib/rails/application.rb:337:in `require_environment!'
/app/vendor/bundle/ruby/2.6.0/gems/railties-5.2.4.4/lib/rails/application.rb:520:in `block in run_tasks_blocks'
Tasks: TOP => db:migrate => db:load_config => environment
(See full trace by running task with --trace)
I've tried a few solutions but getting the same error every time. I've created a secrets.yml file like so:
development:
secret_key_base: xxxxxxxxx
test:
secret_key_base: xxxxxxxxx
production:
secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
...but that didn't do anything.
I've tried running heroku config:set secret_key_base=xxxxx and then when I run heroku config again indeed the secret_key_base matches. But I still get the error in the release logs when trying to deploy.
Any help is appreciated; I'm completely lost!
when i do rake db:setup the rake it's aborted and i don't know why...................... because postgresql is running this is the output of postgreql
fabian#Inna-marley:~$ sudo su - postgres
[sudo] contraseña para fabian:
postgres#Inna-marley:~$ psql
psql (13.0 (Ubuntu 13.0-1.pgdg20.04+1))
Digite «help» para obtener ayuda.
postgres=#
this is the output on my terminar
rake db:setup
rake aborted!
ArgumentError: Write key must be initialized
/home/fabian/.rvm/gems/ruby-2.6.6/gems/analytics-ruby-2.0.13/lib/segment/analytics/client.rb:319:in `check_write_key!'
/home/fabian/.rvm/gems/ruby-2.6.6/gems/analytics-ruby-2.0.13/lib/segment/analytics/client.rb:28:in `initialize'
/home/fabian/.rvm/gems/ruby-2.6.6/gems/analytics-ruby-2.0.13/lib/segment/analytics.rb:14:in `new'
/home/fabian/.rvm/gems/ruby-2.6.6/gems/analytics-ruby-2.0.13/lib/segment/analytics.rb:14:in `initialize'
/home/fabian/rails-backend/config/initializers/analytics_ruby.rb:3:in `new'
/home/fabian/rails-backend/config/initializers/analytics_ruby.rb:3:in `<main>'
/home/fabian/.rvm/gems/ruby-2.6.6/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:59:in `load'
/home/fabian/.rvm/gems/ruby-2.6.6/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:59:in `load'
/home/fabian/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.2.1/lib/active_support/dependencies.rb:285:in `block in load'
/home/fabian/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.2.1/lib/active_support/dependencies.rb:257:in `load_dependency'
/home/fabian/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.2.1/lib/active_support/dependencies.rb:285:in `load'
/home/fabian/.rvm/gems/ruby-2.6.6/gems/railties-5.2.2.1/lib/rails/engine.rb:657:in `block in load_config_initializer'
/home/fabian/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.2.1/lib/active_support/notifications.rb:170:in `instrument'
/home/fabian/.rvm/gems/ruby-2.6.6/gems/railties-5.2.2.1/lib/rails/engine.rb:656:in `load_config_initializer'
/home/fabian/.rvm/gems/ruby-2.6.6/gems/railties-5.2.2.1/lib/rails/engine.rb:614:in `block (2 levels) in <class:Engine>'
/home/fabian/.rvm/gems/ruby-2.6.6/gems/railties-5.2.2.1/lib/rails/engine.rb:613:in `each'
/home/fabian/.rvm/gems/ruby-2.6.6/gems/railties-5.2.2.1/lib/rails/engine.rb:613:in `block in <class:Engine>'
/home/fabian/.rvm/gems/ruby-2.6.6/gems/railties-5.2.2.1/lib/rails/initializable.rb:32:in `instance_exec'
/home/fabian/.rvm/gems/ruby-2.6.6/gems/railties-5.2.2.1/lib/rails/initializable.rb:32:in `run'
/home/fabian/.rvm/gems/ruby-2.6.6/gems/railties-5.2.2.1/lib/rails/initializable.rb:61:in `block in run_initializers'
/home/fabian/.rvm/gems/ruby-2.6.6/gems/railties-5.2.2.1/lib/rails/initializable.rb:50:in `each'
/home/fabian/.rvm/gems/ruby-2.6.6/gems/railties-5.2.2.1/lib/rails/initializable.rb:50:in `tsort_each_child'
/home/fabian/.rvm/gems/ruby-2.6.6/gems/railties-5.2.2.1/lib/rails/initializable.rb:60:in `run_initializers'
/home/fabian/.rvm/gems/ruby-2.6.6/gems/railties-5.2.2.1/lib/rails/application.rb:361:in `initialize!'
/home/fabian/rails-backend/config/environment.rb:5:in `<main>'
/home/fabian/.rvm/gems/ruby-2.6.6/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
/home/fabian/.rvm/gems/ruby-2.6.6/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
/home/fabian/.rvm/gems/ruby-2.6.6/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
/home/fabian/.rvm/gems/ruby-2.6.6/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
/home/fabian/.rvm/gems/ruby-2.6.6/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
/home/fabian/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.2.1/lib/active_support/dependencies.rb:291:in `block in require'
/home/fabian/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.2.1/lib/active_support/dependencies.rb:257:in `load_dependency'
/home/fabian/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.2.1/lib/active_support/dependencies.rb:291:in `require'
/home/fabian/.rvm/gems/ruby-2.6.6/gems/railties-5.2.2.1/lib/rails/application.rb:337:in `require_environment!'
/home/fabian/.rvm/gems/ruby-2.6.6/gems/railties-5.2.2.1/lib/rails/application.rb:520:in `block in run_tasks_blocks'
/home/fabian/.rvm/gems/ruby-2.6.6/gems/bugsnag-6.18.0/lib/bugsnag/integrations/rake.rb:20:in `execute'
/home/fabian/.rvm/gems/ruby-2.6.6/gems/rake-13.0.1/exe/rake:27:in `<top (required)>'
/home/fabian/.rvm/gems/ruby-2.6.6/bin/ruby_executable_hooks:24:in `eval'
/home/fabian/.rvm/gems/ruby-2.6.6/bin/ruby_executable_hooks:24:in `<main>'
Tasks: TOP => db:setup => db:schema:load_if_ruby => db:create => db:load_config => environment
(See full trace by running task with --trace)
I'd recommend to start with checking ENV variables, first of all in database.yml.
I'm trying to install a Rails app (Spree E-commerce) on a Digital Ocean droplet using the Tomo CLI tool. You run it on your local machine, give it the login credentials for the server, and it will deploy your Rails app for you. At least in theory.
I've had problem after problem with Tomo, most of which I've managed to fix. However, I'm at a loss for the current problem, which Tomo encounters when it tries to create the database with bundle exec rake db:create. I tried creating the database first, as Tomo seems to skip steps if they are already completed on the server, but that didn't fix anything.
Here is the error message provided by Tomo. Googling has brought me zilch so far. Any help would be great!
• rails:db_create
cd /tmp/tomo/20200718051237 && bundle exec rake db:version
cd /tmp/tomo/20200718051237 && bundle exec rake db:create
DEPRECATION WARNING: Including LoggerSilence is deprecated and will be removed in Rails 6.1. Please use `ActiveSupport::LoggerSilence` instead (called from block (2 levels) in require at /home/deployer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/bundler-2.1.4/lib/bundler/runtime.rb:74)
rake aborted!
LoadError: Could not load the 'http' 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.
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:34:in `require'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/zeitwerk-2.3.0/lib/zeitwerk/kernel.rb:23:in `require'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/activesupport-6.0.3.2/lib/active_support/dependencies.rb:324:in `block in require'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/activesupport-6.0.3.2/lib/active_support/dependencies.rb:291:in `load_dependency'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/activesupport-6.0.3.2/lib/active_support/dependencies.rb:324:in `require'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/activerecord-6.0.3.2/lib/active_record/connection_adapters/connection_specification.rb:169:in `spec'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/activerecord-6.0.3.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:1052:in `establish_connection'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/activerecord-6.0.3.2/lib/active_record/connection_handling.rb:51:in `establish_connection'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/activerecord-6.0.3.2/lib/active_record/railtie.rb:201:in `block (2 levels) in <class:Railtie>'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/activesupport-6.0.3.2/lib/active_support/lazy_load_hooks.rb:71:in `class_eval'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/activesupport-6.0.3.2/lib/active_support/lazy_load_hooks.rb:71:in `block in execute_hook'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/activesupport-6.0.3.2/lib/active_support/lazy_load_hooks.rb:61:in `with_execution_control'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/activesupport-6.0.3.2/lib/active_support/lazy_load_hooks.rb:66:in `execute_hook'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/activesupport-6.0.3.2/lib/active_support/lazy_load_hooks.rb:43:in `block in on_load'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/activesupport-6.0.3.2/lib/active_support/lazy_load_hooks.rb:42:in `each'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/activesupport-6.0.3.2/lib/active_support/lazy_load_hooks.rb:42:in `on_load'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/activerecord-6.0.3.2/lib/active_record/railtie.rb:198:in `block in <class:Railtie>'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/railties-6.0.3.2/lib/rails/initializable.rb:32:in `instance_exec'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/railties-6.0.3.2/lib/rails/initializable.rb:32:in `run'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/railties-6.0.3.2/lib/rails/initializable.rb:61:in `block in run_initializers'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/railties-6.0.3.2/lib/rails/initializable.rb:60:in `run_initializers'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/railties-6.0.3.2/lib/rails/application.rb:363:in `initialize!'
/tmp/tomo/20200718051237/config/environment.rb:5:in `<main>'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
/var/www/ncode-bkk-spree/shared/bundle/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'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
/var/www/ncode-bkk-spree/shared/bundle/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'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/zeitwerk-2.3.0/lib/zeitwerk/kernel.rb:23:in `require'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/activesupport-6.0.3.2/lib/active_support/dependencies.rb:324:in `block in require'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/activesupport-6.0.3.2/lib/active_support/dependencies.rb:291:in `load_dependency'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/activesupport-6.0.3.2/lib/active_support/dependencies.rb:324:in `require'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/railties-6.0.3.2/lib/rails/application.rb:339:in `require_environment!'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/railties-6.0.3.2/lib/rails/application.rb:523:in `block in run_tasks_blocks'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/rake-13.0.1/exe/rake:27:in `<top (required)>'
/home/deployer/.rbenv/versions/2.6.5/bin/bundle:23:in `load'
/home/deployer/.rbenv/versions/2.6.5/bin/bundle:23:in `<main>'
Caused by:
LoadError: cannot load such file -- active_record/connection_adapters/http_adapter
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:34:in `require'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/zeitwerk-2.3.0/lib/zeitwerk/kernel.rb:23:in `require'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/activesupport-6.0.3.2/lib/active_support/dependencies.rb:324:in `block in require'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/activesupport-6.0.3.2/lib/active_support/dependencies.rb:291:in `load_dependency'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/activesupport-6.0.3.2/lib/active_support/dependencies.rb:324:in `require'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/activerecord-6.0.3.2/lib/active_record/connection_adapters/connection_specification.rb:169:in `spec'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/activerecord-6.0.3.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:1052:in `establish_connection'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/activerecord-6.0.3.2/lib/active_record/connection_handling.rb:51:in `establish_connection'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/activerecord-6.0.3.2/lib/active_record/railtie.rb:201:in `block (2 levels) in <class:Railtie>'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/activesupport-6.0.3.2/lib/active_support/lazy_load_hooks.rb:71:in `class_eval'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/activesupport-6.0.3.2/lib/active_support/lazy_load_hooks.rb:71:in `block in execute_hook'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/activesupport-6.0.3.2/lib/active_support/lazy_load_hooks.rb:61:in `with_execution_control'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/activesupport-6.0.3.2/lib/active_support/lazy_load_hooks.rb:66:in `execute_hook'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/activesupport-6.0.3.2/lib/active_support/lazy_load_hooks.rb:43:in `block in on_load'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/activesupport-6.0.3.2/lib/active_support/lazy_load_hooks.rb:42:in `each'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/activesupport-6.0.3.2/lib/active_support/lazy_load_hooks.rb:42:in `on_load'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/activerecord-6.0.3.2/lib/active_record/railtie.rb:198:in `block in <class:Railtie>'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/railties-6.0.3.2/lib/rails/initializable.rb:32:in `instance_exec'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/railties-6.0.3.2/lib/rails/initializable.rb:32:in `run'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/railties-6.0.3.2/lib/rails/initializable.rb:61:in `block in run_initializers'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/railties-6.0.3.2/lib/rails/initializable.rb:60:in `run_initializers'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/railties-6.0.3.2/lib/rails/application.rb:363:in `initialize!'
/tmp/tomo/20200718051237/config/environment.rb:5:in `<main>'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
/var/www/ncode-bkk-spree/shared/bundle/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'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
/var/www/ncode-bkk-spree/shared/bundle/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'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/zeitwerk-2.3.0/lib/zeitwerk/kernel.rb:23:in `require'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/activesupport-6.0.3.2/lib/active_support/dependencies.rb:324:in `block in require'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/activesupport-6.0.3.2/lib/active_support/dependencies.rb:291:in `load_dependency'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/activesupport-6.0.3.2/lib/active_support/dependencies.rb:324:in `require'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/railties-6.0.3.2/lib/rails/application.rb:339:in `require_environment!'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/railties-6.0.3.2/lib/rails/application.rb:523:in `block in run_tasks_blocks'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/rake-13.0.1/exe/rake:27:in `<top (required)>'
/home/deployer/.rbenv/versions/2.6.5/bin/bundle:23:in `load'
/home/deployer/.rbenv/versions/2.6.5/bin/bundle:23:in `<main>'
Tasks: TOP => db:create => db:load_config => environment
(See full trace by running task with --trace)
ERROR: The following script failed on deployer#134.209.110.34 (exit status 1).
cd /tmp/tomo/20200718051237 && bundle exec rake db:create
You can manually re-execute the script via SSH as follows:
ssh -o LogLevel\=ERROR -A -o ConnectTimeout\=5 -o StrictHostKeyChecking\=accept-new -o ControlMaster\=auto -o ControlPath\=/var/folders/b1/mqpmy8jj4h74xl88g_wdxr3h0000gn/T/tomo_ssh_91c26631d427a22d -o ControlPersist\=30s -o PasswordAuthentication\=no deployer#134.209.110.34 -- cd\ /tmp/tomo/20200718051237\ \&\&\ bundle\ exec\ rake\ db:create
For more troubleshooting info, run tomo again using the --debug option.
DEPRECATION WARNING: Including LoggerSilence is deprecated and will be removed in Rails 6.1. Please use `ActiveSupport::LoggerSilence` instead (called from block (2 levels) in require at /home/deployer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/bundler-2.1.4/lib/bundler/runtime.rb:74)
rake aborted!
LoadError: Could not load the 'http' 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.
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:34:in `require'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/zeitwerk-2.3.0/lib/zeitwerk/kernel.rb:23:in `require'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/activesupport-6.0.3.2/lib/active_support/dependencies.rb:324:in `block in require'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/activesupport-6.0.3.2/lib/active_support/dependencies.rb:291:in `load_dependency'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/activesupport-6.0.3.2/lib/active_support/dependencies.rb:324:in `require'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/activerecord-6.0.3.2/lib/active_record/connection_adapters/connection_specification.rb:169:in `spec'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/activerecord-6.0.3.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:1052:in `establish_connection'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/activerecord-6.0.3.2/lib/active_record/connection_handling.rb:51:in `establish_connection'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/activerecord-6.0.3.2/lib/active_record/railtie.rb:201:in `block (2 levels) in <class:Railtie>'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/activesupport-6.0.3.2/lib/active_support/lazy_load_hooks.rb:71:in `class_eval'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/activesupport-6.0.3.2/lib/active_support/lazy_load_hooks.rb:71:in `block in execute_hook'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/activesupport-6.0.3.2/lib/active_support/lazy_load_hooks.rb:61:in `with_execution_control'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/activesupport-6.0.3.2/lib/active_support/lazy_load_hooks.rb:66:in `execute_hook'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/activesupport-6.0.3.2/lib/active_support/lazy_load_hooks.rb:43:in `block in on_load'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/activesupport-6.0.3.2/lib/active_support/lazy_load_hooks.rb:42:in `each'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/activesupport-6.0.3.2/lib/active_support/lazy_load_hooks.rb:42:in `on_load'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/activerecord-6.0.3.2/lib/active_record/railtie.rb:198:in `block in <class:Railtie>'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/railties-6.0.3.2/lib/rails/initializable.rb:32:in `instance_exec'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/railties-6.0.3.2/lib/rails/initializable.rb:32:in `run'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/railties-6.0.3.2/lib/rails/initializable.rb:61:in `block in run_initializers'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/railties-6.0.3.2/lib/rails/initializable.rb:60:in `run_initializers'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/railties-6.0.3.2/lib/rails/application.rb:363:in `initialize!'
/tmp/tomo/20200718051237/config/environment.rb:5:in `<main>'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
/var/www/ncode-bkk-spree/shared/bundle/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'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
/var/www/ncode-bkk-spree/shared/bundle/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'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/zeitwerk-2.3.0/lib/zeitwerk/kernel.rb:23:in `require'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/activesupport-6.0.3.2/lib/active_support/dependencies.rb:324:in `block in require'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/activesupport-6.0.3.2/lib/active_support/dependencies.rb:291:in `load_dependency'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/activesupport-6.0.3.2/lib/active_support/dependencies.rb:324:in `require'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/railties-6.0.3.2/lib/rails/application.rb:339:in `require_environment!'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/railties-6.0.3.2/lib/rails/application.rb:523:in `block in run_tasks_blocks'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/rake-13.0.1/exe/rake:27:in `<top (required)>'
/home/deployer/.rbenv/versions/2.6.5/bin/bundle:23:in `load'
/home/deployer/.rbenv/versions/2.6.5/bin/bundle:23:in `<main>'
Caused by:
LoadError: cannot load such file -- active_record/connection_adapters/http_adapter
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:34:in `require'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/zeitwerk-2.3.0/lib/zeitwerk/kernel.rb:23:in `require'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/activesupport-6.0.3.2/lib/active_support/dependencies.rb:324:in `block in require'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/activesupport-6.0.3.2/lib/active_support/dependencies.rb:291:in `load_dependency'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/activesupport-6.0.3.2/lib/active_support/dependencies.rb:324:in `require'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/activerecord-6.0.3.2/lib/active_record/connection_adapters/connection_specification.rb:169:in `spec'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/activerecord-6.0.3.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:1052:in `establish_connection'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/activerecord-6.0.3.2/lib/active_record/connection_handling.rb:51:in `establish_connection'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/activerecord-6.0.3.2/lib/active_record/railtie.rb:201:in `block (2 levels) in <class:Railtie>'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/activesupport-6.0.3.2/lib/active_support/lazy_load_hooks.rb:71:in `class_eval'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/activesupport-6.0.3.2/lib/active_support/lazy_load_hooks.rb:71:in `block in execute_hook'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/activesupport-6.0.3.2/lib/active_support/lazy_load_hooks.rb:61:in `with_execution_control'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/activesupport-6.0.3.2/lib/active_support/lazy_load_hooks.rb:66:in `execute_hook'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/activesupport-6.0.3.2/lib/active_support/lazy_load_hooks.rb:43:in `block in on_load'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/activesupport-6.0.3.2/lib/active_support/lazy_load_hooks.rb:42:in `each'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/activesupport-6.0.3.2/lib/active_support/lazy_load_hooks.rb:42:in `on_load'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/activerecord-6.0.3.2/lib/active_record/railtie.rb:198:in `block in <class:Railtie>'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/railties-6.0.3.2/lib/rails/initializable.rb:32:in `instance_exec'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/railties-6.0.3.2/lib/rails/initializable.rb:32:in `run'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/railties-6.0.3.2/lib/rails/initializable.rb:61:in `block in run_initializers'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/railties-6.0.3.2/lib/rails/initializable.rb:60:in `run_initializers'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/railties-6.0.3.2/lib/rails/application.rb:363:in `initialize!'
/tmp/tomo/20200718051237/config/environment.rb:5:in `<main>'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
/var/www/ncode-bkk-spree/shared/bundle/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'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
/var/www/ncode-bkk-spree/shared/bundle/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'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/zeitwerk-2.3.0/lib/zeitwerk/kernel.rb:23:in `require'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/activesupport-6.0.3.2/lib/active_support/dependencies.rb:324:in `block in require'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/activesupport-6.0.3.2/lib/active_support/dependencies.rb:291:in `load_dependency'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/activesupport-6.0.3.2/lib/active_support/dependencies.rb:324:in `require'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/railties-6.0.3.2/lib/rails/application.rb:339:in `require_environment!'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/railties-6.0.3.2/lib/rails/application.rb:523:in `block in run_tasks_blocks'
/var/www/ncode-bkk-spree/shared/bundle/ruby/2.6.0/gems/rake-13.0.1/exe/rake:27:in `<top (required)>'
/home/deployer/.rbenv/versions/2.6.5/bin/bundle:23:in `load'
/home/deployer/.rbenv/versions/2.6.5/bin/bundle:23:in `<main>'
Tasks: TOP => db:create => db:load_config => environment
(See full trace by running task with --trace)
Here is my database.yml file:
default: &default
adapter: postgresql
encoding: unicode
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
development:
<<: *default
database: development_db
username: my-user
password: Rails.application.credentials.db[:dpassword]
test:
<<: *default
database: test_db
production:
<<: *default
host: localhost
database: production_db
encoding: utf8
username: my-user
password: Rails.application.credentials.db[:ppassword]
Help me! Enter "mina deploy" get this beauty:
My "/home/deploy/inscope/shared/config/database.yml" looks:
production:
adapter: postgresql
encoding: unicode
database: ***
username: ***
password: ***
host: localhost
rake aborted!
Gem::LoadError: Specified 'postgresql' for database adapter, but the gem is not loaded. Add `gem 'pg'` to your Gemfile (and ensure its version is at the minimum required by ActiveRecord).
/home/deploy/inscope/tmp/build-142737137923106/vendor/bundle/ruby/2.2.0/gems/activerecord-4.1.0/lib/active_record/connection_adapters/connection_specification.rb:190:in `rescue in spec'
/home/deploy/inscope/tmp/build-142737137923106/vendor/bundle/ruby/2.2.0/gems/activerecord-4.1.0/lib/active_record/connection_adapters/connection_specification.rb:187:in `spec'
/home/deploy/inscope/tmp/build-142737137923106/vendor/bundle/ruby/2.2.0/gems/activerecord-4.1.0/lib/active_record/connection_handling.rb:50:in `establish_connection'
/home/deploy/inscope/tmp/build-142737137923106/vendor/bundle/ruby/2.2.0/gems/activerecord-4.1.0/lib/active_record/railtie.rb:129:in `block (2 levels) in <class:Railtie>'
/home/deploy/inscope/tmp/build-142737137923106/vendor/bundle/ruby/2.2.0/gems/activesupport-4.1.0/lib/active_support/lazy_load_hooks.rb:38:in `instance_eval'
/home/deploy/inscope/tmp/build-142737137923106/vendor/bundle/ruby/2.2.0/gems/activesupport-4.1.0/lib/active_support/lazy_load_hooks.rb:38:in `execute_hook'
/home/deploy/inscope/tmp/build-142737137923106/vendor/bundle/ruby/2.2.0/gems/activesupport-4.1.0/lib/active_support/lazy_load_hooks.rb:28:in `block in on_load'
/home/deploy/inscope/tmp/build-142737137923106/vendor/bundle/ruby/2.2.0/gems/activesupport-4.1.0/lib/active_support/lazy_load_hooks.rb:27:in `each'
/home/deploy/inscope/tmp/build-142737137923106/vendor/bundle/ruby/2.2.0/gems/activesupport-4.1.0/lib/active_support/lazy_load_hooks.rb:27:in `on_load'
/home/deploy/inscope/tmp/build-142737137923106/vendor/bundle/ruby/2.2.0/gems/activerecord-4.1.0/lib/active_record/railtie.rb:118:in `block in <class:Railtie>'
/home/deploy/inscope/tmp/build-142737137923106/vendor/bundle/ruby/2.2.0/gems/railties-4.1.0/lib/rails/initializable.rb:30:in `instance_exec'
/home/deploy/inscope/tmp/build-142737137923106/vendor/bundle/ruby/2.2.0/gems/railties-4.1.0/lib/rails/initializable.rb:30:in `run'
/home/deploy/inscope/tmp/build-142737137923106/vendor/bundle/ruby/2.2.0/gems/railties-4.1.0/lib/rails/initializable.rb:55:in `block in run_initializers'
/home/deploy/inscope/tmp/build-142737137923106/vendor/bundle/ruby/2.2.0/gems/railties-4.1.0/lib/rails/initializable.rb:54:in `run_initializers'
/home/deploy/inscope/tmp/build-142737137923106/vendor/bundle/ruby/2.2.0/gems/railties-4.1.0/lib/rails/application.rb:288:in `initialize!'
/home/deploy/inscope/tmp/build-142737137923106/config/environment.rb:5:in `<top (required)>'
/home/deploy/inscope/tmp/build-142737137923106/vendor/bundle/ruby/2.2.0/gems/activesupport-4.1.0/lib/active_support/dependencies.rb:247:in `require'
/home/deploy/inscope/tmp/build-142737137923106/vendor/bundle/ruby/2.2.0/gems/activesupport-4.1.0/lib/active_support/dependencies.rb:247:in `block in require'
/home/deploy/inscope/tmp/build-142737137923106/vendor/bundle/ruby/2.2.0/gems/activesupport-4.1.0/lib/active_support/dependencies.rb:232:in `load_dependency'
/home/deploy/inscope/tmp/build-142737137923106/vendor/bundle/ruby/2.2.0/gems/activesupport-4.1.0/lib/active_support/dependencies.rb:247:in `require'
/home/deploy/inscope/tmp/build-142737137923106/vendor/bundle/ruby/2.2.0/gems/railties-4.1.0/lib/rails/application.rb:264:in `require_environment!'
/home/deploy/inscope/tmp/build-142737137923106/vendor/bundle/ruby/2.2.0/gems/railties-4.1.0/lib/rails/application.rb:367:in `block in run_tasks_blocks'
/home/deploy/inscope/tmp/build-142737137923106/vendor/bundle/ruby/2.2.0/gems/sprockets-rails-2.2.4/lib/sprockets/rails/task.rb:64:in `block (2 levels) in define'
Gem::LoadError: pg is not part of the bundle. Add it to Gemfile.
/home/deploy/.rvm/gems/ruby-2.2.0/gems/bundler-1.9.1/lib/bundler/rubygems_integration.rb:261:in `block in replace_gem'
/home/deploy/inscope/tmp/build-142737137923106/vendor/bundle/ruby/2.2.0/gems/activerecord-4.1.0/lib/active_record/connection_adapters/postgresql_adapter.rb:13:in `<top (required)>'
/home/deploy/inscope/tmp/build-142737137923106/vendor/bundle/ruby/2.2.0/gems/activesupport-4.1.0/lib/active_support/dependencies.rb:247:in `require'
/home/deploy/inscope/tmp/build-142737137923106/vendor/bundle/ruby/2.2.0/gems/activesupport-4.1.0/lib/active_support/dependencies.rb:247:in `block in require'
/home/deploy/inscope/tmp/build-142737137923106/vendor/bundle/ruby/2.2.0/gems/activesupport-4.1.0/lib/active_support/dependencies.rb:232:in `load_dependency'
/home/deploy/inscope/tmp/build-142737137923106/vendor/bundle/ruby/2.2.0/gems/activesupport-4.1.0/lib/active_support/dependencies.rb:247:in `require'
/home/deploy/inscope/tmp/build-142737137923106/vendor/bundle/ruby/2.2.0/gems/activerecord-4.1.0/lib/active_record/connection_adapters/connection_specification.rb:188:in `spec'
/home/deploy/inscope/tmp/build-142737137923106/vendor/bundle/ruby/2.2.0/gems/activerecord-4.1.0/lib/active_record/connection_handling.rb:50:in `establish_connection'
/home/deploy/inscope/tmp/build-142737137923106/vendor/bundle/ruby/2.2.0/gems/activerecord-4.1.0/lib/active_record/railtie.rb:129:in `block (2 levels) in <class:Railtie>'
/home/deploy/inscope/tmp/build-142737137923106/vendor/bundle/ruby/2.2.0/gems/activesupport-4.1.0/lib/active_support/lazy_load_hooks.rb:38:in `instance_eval'
/home/deploy/inscope/tmp/build-142737137923106/vendor/bundle/ruby/2.2.0/gems/activesupport-4.1.0/lib/active_support/lazy_load_hooks.rb:38:in `execute_hook'
/home/deploy/inscope/tmp/build-142737137923106/vendor/bundle/ruby/2.2.0/gems/activesupport-4.1.0/lib/active_support/lazy_load_hooks.rb:28:in `block in on_load'
/home/deploy/inscope/tmp/build-142737137923106/vendor/bundle/ruby/2.2.0/gems/activesupport-4.1.0/lib/active_support/lazy_load_hooks.rb:27:in `each'
/home/deploy/inscope/tmp/build-142737137923106/vendor/bundle/ruby/2.2.0/gems/activesupport-4.1.0/lib/active_support/lazy_load_hooks.rb:27:in `on_load'
/home/deploy/inscope/tmp/build-142737137923106/vendor/bundle/ruby/2.2.0/gems/activerecord-4.1.0/lib/active_record/railtie.rb:118:in `block in <class:Railtie>'
/home/deploy/inscope/tmp/build-142737137923106/vendor/bundle/ruby/2.2.0/gems/railties-4.1.0/lib/rails/initializable.rb:30:in `instance_exec'
/home/deploy/inscope/tmp/build-142737137923106/vendor/bundle/ruby/2.2.0/gems/railties-4.1.0/lib/rails/initializable.rb:30:in `run'
/home/deploy/inscope/tmp/build-142737137923106/vendor/bundle/ruby/2.2.0/gems/railties-4.1.0/lib/rails/initializable.rb:55:in `block in run_initializers'
/home/deploy/inscope/tmp/build-142737137923106/vendor/bundle/ruby/2.2.0/gems/railties-4.1.0/lib/rails/initializable.rb:54:in `run_initializers'
/home/deploy/inscope/tmp/build-142737137923106/vendor/bundle/ruby/2.2.0/gems/railties-4.1.0/lib/rails/application.rb:288:in `initialize!'
/home/deploy/inscope/tmp/build-142737137923106/config/environment.rb:5:in `<top (required)>'
/home/deploy/inscope/tmp/build-142737137923106/vendor/bundle/ruby/2.2.0/gems/activesupport-4.1.0/lib/active_support/dependencies.rb:247:in `require'
/home/deploy/inscope/tmp/build-142737137923106/vendor/bundle/ruby/2.2.0/gems/activesupport-4.1.0/lib/active_support/dependencies.rb:247:in `block in require'
/home/deploy/inscope/tmp/build-142737137923106/vendor/bundle/ruby/2.2.0/gems/activesupport-4.1.0/lib/active_support/dependencies.rb:232:in `load_dependency'
/home/deploy/inscope/tmp/build-142737137923106/vendor/bundle/ruby/2.2.0/gems/activesupport-4.1.0/lib/active_support/dependencies.rb:247:in `require'
/home/deploy/inscope/tmp/build-142737137923106/vendor/bundle/ruby/2.2.0/gems/railties-4.1.0/lib/rails/application.rb:264:in `require_environment!'
/home/deploy/inscope/tmp/build-142737137923106/vendor/bundle/ruby/2.2.0/gems/railties-4.1.0/lib/rails/application.rb:367:in `block in run_tasks_blocks'
/home/deploy/inscope/tmp/build-142737137923106/vendor/bundle/ruby/2.2.0/gems/sprockets-rails-2.2.4/lib/sprockets/rails/task.rb:64:in `block (2 levels) in define'
Tasks: TOP => environment
(See full trace by running task with --trace)
! ERROR: Deploy failed.
-----> Cleaning up build
Unlinking current
OK
! Command failed.
Failed with status 19
You have to add
gem 'pg'
In your GEMFILE, and you can see it in first row of error:
Gem::LoadError: Specified 'postgresql' for database adapter,
but the gem is not loaded.
Add `gem 'pg'` to your Gemfile (and ensure its version is at the minimum required by ActiveRecord).
I have installed the paypal express gem and after trying to do migrations I receive a cannot load such file -- paypal/express error.
Log:
$ gem install paypal-express
Successfully installed paypal-express-0.5.5
Parsing documentation for paypal-express-0.5.5
1 gem installed
$ rake db:migrate
rake aborted!
cannot load such file -- paypal/express
/.rvm/gems/ruby-2.0.0-p353/gems/activesupport-4.0.0.rc1/lib/active_support/dependencies.rb:228:in `require'
/.rvm/gems/ruby-2.0.0-p353/gems/activesupport-4.0.0.rc1/lib/active_support/dependencies.rb:228:in `block in require'
/.rvm/gems/ruby-2.0.0-p353/gems/activesupport-4.0.0.rc1/lib/active_support/dependencies.rb:213:in `load_dependency'
/.rvm/gems/ruby-2.0.0-p353/gems/activesupport-4.0.0.rc1/lib/active_support/dependencies.rb:228:in `require'
/dating/config/initializers/paypal.rb:1:in `<top (required)>'
/.rvm/gems/ruby-2.0.0-p353/gems/activesupport-4.0.0.rc1/lib/active_support/dependencies.rb:222:in `load'
/.rvm/gems/ruby-2.0.0-p353/gems/activesupport-4.0.0.rc1/lib/active_support/dependencies.rb:222:in `block in load'
/.rvm/gems/ruby-2.0.0-p353/gems/activesupport-4.0.0.rc1/lib/active_support/dependencies.rb:213:in `load_dependency'
/.rvm/gems/ruby-2.0.0-p353/gems/activesupport-4.0.0.rc1/lib/active_support/dependencies.rb:222:in `load'
/.rvm/gems/ruby-2.0.0-p353/gems/railties-4.0.0.rc1/lib/rails/engine.rb:609:in `block (2 levels) in <class:Engine>'
/.rvm/gems/ruby-2.0.0-p353/gems/railties-4.0.0.rc1/lib/rails/engine.rb:608:in `each'
/.rvm/gems/ruby-2.0.0-p353/gems/railties-4.0.0.rc1/lib/rails/engine.rb:608:in `block in <class:Engine>'
/.rvm/gems/ruby-2.0.0-p353/gems/railties-4.0.0.rc1/lib/rails/initializable.rb:30:in `instance_exec'
/.rvm/gems/ruby-2.0.0-p353/gems/railties-4.0.0.rc1/lib/rails/initializable.rb:30:in `run'
/.rvm/gems/ruby-2.0.0-p353/gems/railties-4.0.0.rc1/lib/rails/initializable.rb:55:in `block in run_initializers'
/.rvm/gems/ruby-2.0.0-p353/gems/railties-4.0.0.rc1/lib/rails/initializable.rb:44:in `each'
/.rvm/gems/ruby-2.0.0-p353/gems/railties-4.0.0.rc1/lib/rails/initializable.rb:44:in `tsort_each_child'
/.rvm/gems/ruby-2.0.0-p353/gems/railties-4.0.0.rc1/lib/rails/initializable.rb:54:in `run_initializers'
/.rvm/gems/ruby-2.0.0-p353/gems/railties-4.0.0.rc1/lib/rails/application.rb:214:in `initialize!'
/.rvm/gems/ruby-2.0.0-p353/gems/railties-4.0.0.rc1/lib/rails/railtie/configurable.rb:30:in `method_missing'
/dating/config/environment.rb:5:in `<top (required)>'
/.rvm/gems/ruby-2.0.0-p353/gems/activesupport-4.0.0.rc1/lib/active_support/dependencies.rb:228:in `require'
/.rvm/gems/ruby-2.0.0-p353/gems/activesupport-4.0.0.rc1/lib/active_support/dependencies.rb:228:in `block in require'
/.rvm/gems/ruby-2.0.0-p353/gems/activesupport-4.0.0.rc1/lib/active_support/dependencies.rb:213:in `load_dependency'
/.rvm/gems/ruby-2.0.0-p353/gems/activesupport-4.0.0.rc1/lib/active_support/dependencies.rb:228:in `require'
/.rvm/gems/ruby-2.0.0-p353/gems/railties-4.0.0.rc1/lib/rails/application.rb:188:in `require_environment!'
/.rvm/gems/ruby-2.0.0-p353/gems/railties-4.0.0.rc1/lib/rails/application.rb:248:in `block in run_tasks_blocks'
/.rvm/gems/ruby-2.0.0-p353/bin/ruby_executable_hooks:15:in `eval'
/.rvm/gems/ruby-2.0.0-p353/bin/ruby_executable_hooks:15:in `<main>'
Tasks: TOP => db:migrate => environment
Put gem 'paypal-express' in your Gemfile and run bundle install. You shouldn't even have to require paypal/express in your initializer.