Rails s causing psych error - mysql

When I run rails s I get the following error message. I have tried replacing all spaces with tabs and vice versa, but am unable to come to a solution.
The console output is here:
SEEMAs-Mac-mini:colloquy_new seemashenoy$ rails s
=> Booting WEBrick
=> Rails 3.2.13 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
Exiting
/Users/seemashenoy/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/psych.rb:205:in `parse': (<unknown>): found character that cannot start any token while scanning for the next token at line 18 column 1 (Psych::SyntaxError)
from /Users/seemashenoy/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/psych.rb:205:in `parse_stream'
from /Users/seemashenoy/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/psych.rb:153:in `parse'
from /Users/seemashenoy/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/psych.rb:129:in `load'
from /Users/seemashenoy/.rvm/gems/ruby-2.0.0-p481/gems/railties-3.2.13/lib/rails/application/configuration.rb:115:in `database_configuration'
from /Users/seemashenoy/.rvm/gems/ruby-2.0.0-p481/gems/activerecord-3.2.13/lib/active_record/railtie.rb:78:in `block (2 levels) in <class:Railtie>'
from /Users/seemashenoy/.rvm/gems/ruby-2.0.0-p481/gems/activesupport-3.2.13/lib/active_support/lazy_load_hooks.rb:36:in `instance_eval'
from /Users/seemashenoy/.rvm/gems/ruby-2.0.0-p481/gems/activesupport-3.2.13/lib/active_support/lazy_load_hooks.rb:36:in `execute_hook'
from /Users/seemashenoy/.rvm/gems/ruby-2.0.0-p481/gems/activesupport-3.2.13/lib/active_support/lazy_load_hooks.rb:26:in `block in on_load'
from /Users/seemashenoy/.rvm/gems/ruby-2.0.0-p481/gems/activesupport-3.2.13/lib/active_support/lazy_load_hooks.rb:25:in `each'
from /Users/seemashenoy/.rvm/gems/ruby-2.0.0-p481/gems/activesupport-3.2.13/lib/active_support/lazy_load_hooks.rb:25:in `on_load'
from /Users/seemashenoy/.rvm/gems/ruby-2.0.0-p481/gems/activerecord-3.2.13/lib/active_record/railtie.rb:74:in `block in <class:Railtie>'
from /Users/seemashenoy/.rvm/gems/ruby-2.0.0-p481/gems/railties-3.2.13/lib/rails/initializable.rb:30:in `instance_exec'
from /Users/seemashenoy/.rvm/gems/ruby-2.0.0-p481/gems/railties-3.2.13/lib/rails/initializable.rb:30:in `run'
from /Users/seemashenoy/.rvm/gems/ruby-2.0.0-p481/gems/railties-3.2.13/lib/rails/initializable.rb:55:in `block in run_initializers'
from /Users/seemashenoy/.rvm/gems/ruby-2.0.0-p481/gems/railties-3.2.13/lib/rails/initializable.rb:54:in `each'
from /Users/seemashenoy/.rvm/gems/ruby-2.0.0-p481/gems/railties-3.2.13/lib/rails/initializable.rb:54:in `run_initializers'
from /Users/seemashenoy/.rvm/gems/ruby-2.0.0-p481/gems/railties-3.2.13/lib/rails/application.rb:136:in `initialize!'
from /Users/seemashenoy/.rvm/gems/ruby-2.0.0-p481/gems/railties-3.2.13/lib/rails/railtie/configurable.rb:30:in `method_missing'
from /Users/seemashenoy/Desktop/arjun/colloquy_new/config/environment.rb:5:in `<top (required)>'
from /Users/seemashenoy/.rvm/gems/ruby-2.0.0-p481/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
from /Users/seemashenoy/.rvm/gems/ruby-2.0.0-p481/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `block in require'
from /Users/seemashenoy/.rvm/gems/ruby-2.0.0-p481/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236:in `load_dependency'
from /Users/seemashenoy/.rvm/gems/ruby-2.0.0-p481/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
from /Users/seemashenoy/Desktop/arjun/colloquy_new/config.ru:3:in `block in <main>'
from /Users/seemashenoy/.rvm/gems/ruby-2.0.0-p481/gems/rack-1.4.5/lib/rack/builder.rb:51:in `instance_eval'
from /Users/seemashenoy/.rvm/gems/ruby-2.0.0-p481/gems/rack-1.4.5/lib/rack/builder.rb:51:in `initialize'
from /Users/seemashenoy/Desktop/arjun/colloquy_new/config.ru:in `new'
from /Users/seemashenoy/Desktop/arjun/colloquy_new/config.ru:in `<main>'
from /Users/seemashenoy/.rvm/gems/ruby-2.0.0-p481/gems/rack-1.4.5/lib/rack/builder.rb:40:in `eval'
from /Users/seemashenoy/.rvm/gems/ruby-2.0.0-p481/gems/rack-1.4.5/lib/rack/builder.rb:40:in `parse_file'
from /Users/seemashenoy/.rvm/gems/ruby-2.0.0-p481/gems/rack-1.4.5/lib/rack/server.rb:200:in `app'
from /Users/seemashenoy/.rvm/gems/ruby-2.0.0-p481/gems/railties-3.2.13/lib/rails/commands/server.rb:46:in `app'
from /Users/seemashenoy/.rvm/gems/ruby-2.0.0-p481/gems/rack-1.4.5/lib/rack/server.rb:304:in `wrapped_app'
from /Users/seemashenoy/.rvm/gems/ruby-2.0.0-p481/gems/rack-1.4.5/lib/rack/server.rb:254:in `start'
from /Users/seemashenoy/.rvm/gems/ruby-2.0.0-p481/gems/railties-3.2.13/lib/rails/commands/server.rb:70:in `start'
from /Users/seemashenoy/.rvm/gems/ruby-2.0.0-p481/gems/railties-3.2.13/lib/rails/commands.rb:55:in `block in <top (required)>'
from /Users/seemashenoy/.rvm/gems/ruby-2.0.0-p481/gems/railties-3.2.13/lib/rails/commands.rb:50:in `tap'
from /Users/seemashenoy/.rvm/gems/ruby-2.0.0-p481/gems/railties-3.2.13/lib/rails/commands.rb:50:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
And my database.yml file is below
development:
adapter: mysql2
encoding: utf8
reconnect: false
database: colloquy_development
pool: 5
username: root
password:
socket: /Applications/MAMP/tmp/mysql/mysql.sock

Related

Mysql2::Error: Table 'my_database.users' doesn't exist

Whenever I run bin/rails db:migrate locally I run into the following error:
bin/rails db:migrate
== 20200108204517 AddFirstAndLastNameToUsers: migrating =======================
-- add_column(:users, :first_name, :string, {:limit=>255, :null=>false})
rails aborted!
StandardError: An error has occurred, all later migrations canceled:
Mysql2::Error: Table 'monaco_development.users' doesn't exist
/Users/robskrob/.rvm/gems/ruby-2.6.0/gems/mysql2-0.5.3/lib/mysql2/client.rb:131:in `_query'
/Users/robskrob/.rvm/gems/ruby-2.6.0/gems/mysql2-0.5.3/lib/mysql2/client.rb:131:in `block in query'
/Users/robskrob/.rvm/gems/ruby-2.6.0/gems/mysql2-0.5.3/lib/mysql2/client.rb:130:in `handle_interrupt'
/Users/robskrob/.rvm/gems/ruby-2.6.0/gems/mysql2-0.5.3/lib/mysql2/client.rb:130:in `query'
/Users/robskrob/.rvm/gems/ruby-2.6.0/gems/activerecord-6.0.1/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:202:in `block (2 levels) in execute'
/Users/robskrob/.rvm/gems/ruby-2.6.0/gems/activesupport-6.0.1/lib/active_support/dependencies/interlock.rb:48:in `block in permit_concurrent_loads'
/Users/robskrob/.rvm/gems/ruby-2.6.0/gems/activesupport-6.0.1/lib/active_support/concurrency/share_lock.rb:187:in `yield_shares'
/Users/robskrob/.rvm/gems/ruby-2.6.0/gems/activesupport-6.0.1/lib/active_support/dependencies/interlock.rb:47:in `permit_concurrent_loads'
/Users/robskrob/.rvm/gems/ruby-2.6.0/gems/activerecord-6.0.1/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:201:in `block in execute'
/Users/robskrob/.rvm/gems/ruby-2.6.0/gems/activerecord-6.0.1/lib/active_record/connection_adapters/abstract_adapter.rb:718:in `block (2 levels) in log'
/Users/robskrob/.rvm/gems/ruby-2.6.0/gems/activerecord-6.0.1/lib/active_record/connection_adapters/abstract_adapter.rb:717:in `block in log'
/Users/robskrob/.rvm/gems/ruby-2.6.0/gems/activesupport-6.0.1/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
/Users/robskrob/.rvm/gems/ruby-2.6.0/gems/activerecord-6.0.1/lib/active_record/connection_adapters/abstract_adapter.rb:708:in `log'
/Users/robskrob/.rvm/gems/ruby-2.6.0/gems/activerecord-6.0.1/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:200:in `execute'
/Users/robskrob/.rvm/gems/ruby-2.6.0/gems/activerecord-6.0.1/lib/active_record/connection_adapters/mysql/database_statements.rb:41:in `execute'
/Users/robskrob/.rvm/gems/ruby-2.6.0/gems/activerecord-6.0.1/lib/active_record/connection_adapters/abstract/schema_statements.rb:591:in `add_column'
/Users/robskrob/.rvm/gems/ruby-2.6.0/gems/activerecord-6.0.1/lib/active_record/migration.rb:890:in `block in method_missing'
/Users/robskrob/.rvm/gems/ruby-2.6.0/gems/activerecord-6.0.1/lib/active_record/migration.rb:858:in `block in say_with_time'
/Users/robskrob/.rvm/gems/ruby-2.6.0/gems/activerecord-6.0.1/lib/active_record/migration.rb:858:in `say_with_time'
/Users/robskrob/.rvm/gems/ruby-2.6.0/gems/activerecord-6.0.1/lib/active_record/migration.rb:879:in `method_missing'
/Users/robskrob/code/projects/kingandpartners/monaco/db/migrate/20200108204517_add_first_and_last_name_to_users.rb:3:in `change'
/Users/robskrob/.rvm/gems/ruby-2.6.0/gems/activerecord-6.0.1/lib/active_record/migration.rb:828:in `exec_migration'
/Users/robskrob/.rvm/gems/ruby-2.6.0/gems/activerecord-6.0.1/lib/active_record/migration.rb:812:in `block (2 levels) in migrate'
/Users/robskrob/.rvm/gems/ruby-2.6.0/gems/activerecord-6.0.1/lib/active_record/migration.rb:811:in `block in migrate'
/Users/robskrob/.rvm/gems/ruby-2.6.0/gems/activerecord-6.0.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:473:in `with_connection'
/Users/robskrob/.rvm/gems/ruby-2.6.0/gems/activerecord-6.0.1/lib/active_record/migration.rb:810:in `migrate'
/Users/robskrob/.rvm/gems/ruby-2.6.0/gems/activerecord-6.0.1/lib/active_record/migration.rb:1001:in `migrate'
/Users/robskrob/.rvm/gems/ruby-2.6.0/gems/activerecord-6.0.1/lib/active_record/migration.rb:1311:in `block in execute_migration_in_transaction'
/Users/robskrob/.rvm/gems/ruby-2.6.0/gems/activerecord-6.0.1/lib/active_record/migration.rb:1364:in `ddl_transaction'
/Users/robskrob/.rvm/gems/ruby-2.6.0/gems/activerecord-6.0.1/lib/active_record/migration.rb:1310:in `execute_migration_in_transaction'
/Users/robskrob/.rvm/gems/ruby-2.6.0/gems/activerecord-6.0.1/lib/active_record/migration.rb:1282:in `block in migrate_without_lock'
/Users/robskrob/.rvm/gems/ruby-2.6.0/gems/activerecord-6.0.1/lib/active_record/migration.rb:1281:in `each'
/Users/robskrob/.rvm/gems/ruby-2.6.0/gems/activerecord-6.0.1/lib/active_record/migration.rb:1281:in `migrate_without_lock'
/Users/robskrob/.rvm/gems/ruby-2.6.0/gems/activerecord-6.0.1/lib/active_record/migration.rb:1229:in `block in migrate'
/Users/robskrob/.rvm/gems/ruby-2.6.0/gems/activerecord-6.0.1/lib/active_record/migration.rb:1382:in `with_advisory_lock'
/Users/robskrob/.rvm/gems/ruby-2.6.0/gems/activerecord-6.0.1/lib/active_record/migration.rb:1229:in `migrate'
/Users/robskrob/.rvm/gems/ruby-2.6.0/gems/activerecord-6.0.1/lib/active_record/migration.rb:1061:in `up'
/Users/robskrob/.rvm/gems/ruby-2.6.0/gems/activerecord-6.0.1/lib/active_record/migration.rb:1036:in `migrate'
/Users/robskrob/.rvm/gems/ruby-2.6.0/gems/activerecord-6.0.1/lib/active_record/tasks/database_tasks.rb:238:in `migrate'
/Users/robskrob/.rvm/gems/ruby-2.6.0/gems/activerecord-6.0.1/lib/active_record/railties/databases.rake:85:in `block (3 levels) in <main>'
/Users/robskrob/.rvm/gems/ruby-2.6.0/gems/activerecord-6.0.1/lib/active_record/railties/databases.rake:83:in `each'
/Users/robskrob/.rvm/gems/ruby-2.6.0/gems/activerecord-6.0.1/lib/active_record/railties/databases.rake:83:in `block (2 levels) in <main>'
/Users/robskrob/.rvm/gems/ruby-2.6.0/gems/railties-6.0.1/lib/rails/commands/rake/rake_command.rb:23:in `block in perform'
/Users/robskrob/.rvm/gems/ruby-2.6.0/gems/railties-6.0.1/lib/rails/commands/rake/rake_command.rb:20:in `perform'
/Users/robskrob/.rvm/gems/ruby-2.6.0/gems/railties-6.0.1/lib/rails/command.rb:48:in `invoke'
/Users/robskrob/.rvm/gems/ruby-2.6.0/gems/railties-6.0.1/lib/rails/commands.rb:18:in `<main>'
/Users/robskrob/.rvm/gems/ruby-2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require'
/Users/robskrob/.rvm/gems/ruby-2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `block in require_with_bootsnap_lfi'
/Users/robskrob/.rvm/gems/ruby-2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
/Users/robskrob/.rvm/gems/ruby-2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require_with_bootsnap_lfi'
/Users/robskrob/.rvm/gems/ruby-2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
/Users/robskrob/.rvm/gems/ruby-2.6.0/gems/activesupport-6.0.1/lib/active_support/dependencies.rb:325:in `block in require'
/Users/robskrob/.rvm/gems/ruby-2.6.0/gems/activesupport-6.0.1/lib/active_support/dependencies.rb:291:in `load_dependency'
/Users/robskrob/.rvm/gems/ruby-2.6.0/gems/activesupport-6.0.1/lib/active_support/dependencies.rb:325:in `require'
/Users/robskrob/code/projects/kingandpartners/monaco/bin/rails:9:in `<top (required)>'
/Users/robskrob/.rvm/gems/ruby-2.6.0/gems/spring-2.1.0/lib/spring/client/rails.rb:28:in `load'
/Users/robskrob/.rvm/gems/ruby-2.6.0/gems/spring-2.1.0/lib/spring/client/rails.rb:28:in `call'
/Users/robskrob/.rvm/gems/ruby-2.6.0/gems/spring-2.1.0/lib/spring/client/command.rb:7:in `call'
/Users/robskrob/.rvm/gems/ruby-2.6.0/gems/spring-2.1.0/lib/spring/client.rb:30:in `run'
/Users/robskrob/.rvm/gems/ruby-2.6.0/gems/spring-2.1.0/bin/spring:49:in `<top (required)>'
/Users/robskrob/.rvm/gems/ruby-2.6.0/gems/spring-2.1.0/lib/spring/binstub.rb:11:in `load'
/Users/robskrob/.rvm/gems/ruby-2.6.0/gems/spring-2.1.0/lib/spring/binstub.rb:11:in `<top (required)>'
/Users/robskrob/code/projects/kingandpartners/monaco/bin/spring:15:in `<top (required)>'
bin/rails:3:in `load'
bin/rails:3:in `<main>'
This migration which creates the users table 20200103171631_devise_create_users.rb comes before the one that is currently failing 20200108204517_add_first_and_last_name_to_users.rb. So of course the error makes sense -- the migrate to create the users table did not run first. However, my question is, why is 0200108204517_add_first_and_last_name_to_users.rb running before the migration which creates the users 20200103171631_devise_create_users.rb ? I do believe the date on the file here 20200103171631_devise_create_users.rb has an earlier date and should be running before 0200108204517_add_first_and_last_name_to_users.rb.
my rails app is using:
gem 'rails', '~> 6.0.1'
gem 'mysql2', '>= 0.4.4'
gem 'devise', '~> 4.7.1'
Did you check my_database.schema_migrations table? You may find that Rails has already marked this migration as executed.
See https://edgeguides.rubyonrails.org/active_record_migrations.html#old-migrations
The users table may not exist because it's possible it was deleted manually.

Sidekiq loading invalid JSON

Hello I've installed Gitalb CE (v9.3.8) on my private server (Debian Stretch) and I have got myself into a problem with Sidekiq. Aparently it is trying to load an invalid JSON, but I don't know from where. Do you have any idea, where could have the "nalse" (second line in the log below) come from?
2017-09-06_12:23:27.91969 2017-09-06T12:23:27.919Z 27771 TID-ot0tpp4p4 INFO: Booting Sidekiq 5.0.0 with redis options {:path=>"/var/opt/gitlab/redis/redis.socket", :namespace=>"resque:gitlab", :url=>nil}
2017-09-06_12:23:27.95895 784: unexpected token at '{"retry":nalse,"queue":"cronjob","class":"StuckCiBuildsWorker","args":[]}'
2017-09-06_12:23:27.95908 /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/json-1.8.6/lib/json/common.rb:155:in `parse'
2017-09-06_12:23:27.95911 /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/json-1.8.6/lib/json/common.rb:155:in `parse'
2017-09-06_12:23:27.95913 /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/sidekiq-5.0.0/lib/sidekiq.rb:171:in `load_json'
2017-09-06_12:23:27.95916 /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/sidekiq-cron-0.6.0/lib/sidekiq/cron/job.rb:289:in `initialize'
2017-09-06_12:23:27.95918 /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/sidekiq-cron-0.6.0/lib/sidekiq/cron/job.rb:213:in `new'
2017-09-06_12:23:27.95921 /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/sidekiq-cron-0.6.0/lib/sidekiq/cron/job.rb:213:in `block in all'
2017-09-06_12:23:27.95924 /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/sidekiq-cron-0.6.0/lib/sidekiq/cron/job.rb:211:in `collect'
2017-09-06_12:23:27.95926 /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/sidekiq-cron-0.6.0/lib/sidekiq/cron/job.rb:211:in `all'
2017-09-06_12:23:27.95929 /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/sidekiq-cron-0.6.0/lib/sidekiq/cron/job.rb:488:in `destroy_removed_jobs'
2017-09-06_12:23:27.95931 /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/sidekiq-cron-0.6.0/lib/sidekiq/cron/job.rb:162:in `load_from_hash!'
2017-09-06_12:23:27.95936 /opt/gitlab/embedded/service/gitlab-rails/config/initializers/sidekiq.rb:41:in `block in <top (required)>'
2017-09-06_12:23:27.95939 /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/sidekiq-5.0.0/lib/sidekiq.rb:73:in `configure_server'
2017-09-06_12:23:27.95941 /opt/gitlab/embedded/service/gitlab-rails/config/initializers/sidekiq.rb:8:in `<top (required)>'
2017-09-06_12:23:27.95943 /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:268:in `load'
2017-09-06_12:23:27.95946 /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:268:in `block in load'
2017-09-06_12:23:27.95948 /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:240:in `load_dependency'
2017-09-06_12:23:27.95951 /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:268:in `load'
2017-09-06_12:23:27.95954 /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/railties-4.2.8/lib/rails/engine.rb:652:in `block in load_config_initializer'
2017-09-06_12:23:27.95956 /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/activesupport-4.2.8/lib/active_support/notifications.rb:166:in `instrument'
2017-09-06_12:23:27.95961 /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/railties-4.2.8/lib/rails/engine.rb:651:in `load_config_initializer'
2017-09-06_12:23:27.95964 /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/railties-4.2.8/lib/rails/engine.rb:616:in `block (2 levels) in <class:Engine>'
2017-09-06_12:23:27.95971 /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/railties-4.2.8/lib/rails/engine.rb:615:in `each'
2017-09-06_12:23:27.95974 /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/railties-4.2.8/lib/rails/engine.rb:615:in `block in <class:Engine>'
2017-09-06_12:23:27.95976 /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/railties-4.2.8/lib/rails/initializable.rb:30:in `instance_exec'
2017-09-06_12:23:27.95979 /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/railties-4.2.8/lib/rails/initializable.rb:30:in `run'
2017-09-06_12:23:27.95981 /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/railties-4.2.8/lib/rails/initializable.rb:55:in `block in run_initializers'
2017-09-06_12:23:27.95983 /opt/gitlab/embedded/lib/ruby/2.3.0/tsort.rb:228:in `block in tsort_each'
2017-09-06_12:23:27.95985 /opt/gitlab/embedded/lib/ruby/2.3.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
2017-09-06_12:23:27.95988 /opt/gitlab/embedded/lib/ruby/2.3.0/tsort.rb:422:in `block (2 levels) in each_strongly_connected_component_from'
2017-09-06_12:23:27.95993 /opt/gitlab/embedded/lib/ruby/2.3.0/tsort.rb:431:in `each_strongly_connected_component_from'
2017-09-06_12:23:27.95995 /opt/gitlab/embedded/lib/ruby/2.3.0/tsort.rb:421:in `block in each_strongly_connected_component_from'
2017-09-06_12:23:27.95997 /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/railties-4.2.8/lib/rails/initializable.rb:44:in `each'
2017-09-06_12:23:27.96000 /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/railties-4.2.8/lib/rails/initializable.rb:44:in `tsort_each_child'
2017-09-06_12:23:27.96002 /opt/gitlab/embedded/lib/ruby/2.3.0/tsort.rb:415:in `call'
2017-09-06_12:23:27.96004 /opt/gitlab/embedded/lib/ruby/2.3.0/tsort.rb:415:in `each_strongly_connected_component_from'
2017-09-06_12:23:27.96006 /opt/gitlab/embedded/lib/ruby/2.3.0/tsort.rb:349:in `block in each_strongly_connected_component'
2017-09-06_12:23:27.96009 /opt/gitlab/embedded/lib/ruby/2.3.0/tsort.rb:347:in `each'
2017-09-06_12:23:27.96011 /opt/gitlab/embedded/lib/ruby/2.3.0/tsort.rb:347:in `call'
2017-09-06_12:23:27.96013 /opt/gitlab/embedded/lib/ruby/2.3.0/tsort.rb:347:in `each_strongly_connected_component'
2017-09-06_12:23:27.96016 /opt/gitlab/embedded/lib/ruby/2.3.0/tsort.rb:226:in `tsort_each'
2017-09-06_12:23:27.96018 /opt/gitlab/embedded/lib/ruby/2.3.0/tsort.rb:205:in `tsort_each'
2017-09-06_12:23:27.96022 /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/railties-4.2.8/lib/rails/initializable.rb:54:in `run_initializers'
2017-09-06_12:23:27.96025 /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/railties-4.2.8/lib/rails/application.rb:352:in `initialize!'
2017-09-06_12:23:27.96027 /opt/gitlab/embedded/service/gitlab-rails/config/environment.rb:5:in `<top (required)>'
2017-09-06_12:23:27.96029 /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in `require'
2017-09-06_12:23:27.96032 /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in `block in require'
2017-09-06_12:23:27.96034 /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:240:in `load_dependency'
2017-09-06_12:23:27.96037 /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in `require'
2017-09-06_12:23:27.96039 /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/sidekiq-5.0.0/lib/sidekiq/cli.rb:252:in `boot_system'
2017-09-06_12:23:27.96041 /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/sidekiq-5.0.0/lib/sidekiq/cli.rb:54:in `run'
2017-09-06_12:23:27.96046 /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/sidekiq-5.0.0/bin/sidekiq:12:in `<top (required)>'
2017-09-06_12:23:27.96048 /opt/gitlab/embedded/bin/sidekiq:22:in `load'
2017-09-06_12:23:27.96050 /opt/gitlab/embedded/bin/sidekiq:22:in `<top (required)>'
2017-09-06_12:23:27.96052 /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/bundler-1.13.7/lib/bundler/cli/exec.rb:74:in `load'
2017-09-06_12:23:27.96055 /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/bundler-1.13.7/lib/bundler/cli/exec.rb:74:in `kernel_load'
2017-09-06_12:23:27.96061 /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/bundler-1.13.7/lib/bundler/cli/exec.rb:27:in `run'
2017-09-06_12:23:27.96063 /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/bundler-1.13.7/lib/bundler/cli.rb:332:in `exec'
2017-09-06_12:23:27.96065 /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/bundler-1.13.7/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
2017-09-06_12:23:27.96068 /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/bundler-1.13.7/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
2017-09-06_12:23:27.96070 /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/bundler-1.13.7/lib/bundler/vendor/thor/lib/thor.rb:359:in `dispatch'
2017-09-06_12:23:27.96072 /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/bundler-1.13.7/lib/bundler/cli.rb:20:in `dispatch'
2017-09-06_12:23:27.96078 /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/bundler-1.13.7/lib/bundler/vendor/thor/lib/thor/base.rb:440:in `start'
2017-09-06_12:23:27.96080 /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/bundler-1.13.7/lib/bundler/cli.rb:11:in `start'
2017-09-06_12:23:27.96082 /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/bundler-1.13.7/exe/bundle:34:in `block in <top (required)>'
2017-09-06_12:23:27.96085 /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/bundler-1.13.7/lib/bundler/friendly_errors.rb:100:in `with_friendly_errors'
2017-09-06_12:23:27.96087 /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/bundler-1.13.7/exe/bundle:26:in `<top (required)>'
2017-09-06_12:23:27.96089 /opt/gitlab/embedded/bin/bundle:22:in `load'
2017-09-06_12:23:27.96091 /opt/gitlab/embedded/bin/bundle:22:in `<main>'
Faulty client? Sidekiq just basically reads a JSON of a que, something put a faulty JSON inside, and it probably wasn't sidekiq, but something that interacts with it.
Check out if something in your code inserts the Sidekiq jobs "manually" - there were instructions once upon a time how to push sidekiq jobs from other frameworks: https://github.com/mperham/sidekiq/blob/master/lib/sidekiq/client.rb#L69
The invalid JSON was saved in Redis in <gitlab_data>/redis/dump.rdb. Deleting the file solved the jammed Sidekiq.
But how it got there is a mystery.

Permission Denied when creating myapp in ruby on rails

As the first time with linux and ruby on rails, I am following this guide, https://gorails.com/setup/windows/10 everthing in the steps works fine except the final step when I tried to execute this command.
rails new myapp -d mysql
after hitting enter I got this message.
/home/fil/.rbenv/versions/2.3.3/lib/ruby/2.3.0/fileutils.rb:253:in `mkdir': Permission denied # dir_s_mkdir - /myapp (Errno::EACCES)
from /home/fil/.rbenv/versions/2.3.3/lib/ruby/2.3.0/fileutils.rb:253:in `fu_mkdir'
from /home/fil/.rbenv/versions/2.3.3/lib/ruby/2.3.0/fileutils.rb:227:in `block (2 levels) in mkdir_p'
from /home/fil/.rbenv/versions/2.3.3/lib/ruby/2.3.0/fileutils.rb:225:in `reverse_each'
from /home/fil/.rbenv/versions/2.3.3/lib/ruby/2.3.0/fileutils.rb:225:in `block in mkdir_p'
from /home/fil/.rbenv/versions/2.3.3/lib/ruby/2.3.0/fileutils.rb:211:in `each'
from /home/fil/.rbenv/versions/2.3.3/lib/ruby/2.3.0/fileutils.rb:211:in `mkdir_p'
from /home/fil/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/actions/empty_directory.rb:50:in `block in invoke!'
from /home/fil/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/actions/empty_directory.rb:116:in `invoke_with_conflict_check'
from /home/fil/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/actions/empty_directory.rb:49:in `invoke!'
from /home/fil/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/actions.rb:94:in `action'
from /home/fil/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/actions/empty_directory.rb:14:in `empty_directory'
from /home/fil/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/railties-5.0.0.1/lib/rails/generators/app_base.rb:153:in `create_root'
from (eval):1:in `create_root'
from /home/fil/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'
from /home/fil/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'
from /home/fil/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `block in invoke_all'
from /home/fil/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `each'
from /home/fil/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `map'
from /home/fil/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `invoke_all'
from /home/fil/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/group.rb:232:in `dispatch'
from /home/fil/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/base.rb:440:in `start'
from /home/fil/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/railties-5.0.0.1/lib/rails/commands/application.rb:17:in `<top (required)>'
from /home/fil/.rbenv/versions/2.3.3/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /home/fil/.rbenv/versions/2.3.3/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /home/fil/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/railties-5.0.0.1/lib/rails/cli.rb:14:in `<top (required)>'
from /home/fil/.rbenv/versions/2.3.3/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:127:in `require'
from /home/fil/.rbenv/versions/2.3.3/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:127:in `rescue in require'
from /home/fil/.rbenv/versions/2.3.3/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:40:in `require'
from /home/fil/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/railties-5.0.0.1/exe/rails:9:in `<top (required)>'
from /home/fil/.rbenv/versions/2.3.3/bin/rails:22:in `load'
from /home/fil/.rbenv/versions/2.3.3/bin/rails:22:in `<main>'
What is the problem?, can you suggest a solution?

'rails server' returns error with mysql 5.7.13 on osx elcapitan

I am new to ruby on rails and also to programming. I have followed instructions on the internet and setup rails application. It worked the first time but later when i reopen it and tried to run 'rails server' it doesn't work and returns following error. I would be happy if some one helps me out of this, i have been searching the internet for 5 hours.
Thanks.
I am using ruby 2.3.1p112
rails 5.0
mysql 5.7.13
$ rails server
=> Booting Puma
=> Rails 5.0.0 application starting in development on http://localhost:3000
=> Run rails server -h for more startup options
Exiting
/Users/bruce/sea/config/routes.rb:6:in `': undefined
method `root' for main:Object (NoMethodError)
from /Users/bruce/.rvm/gems/ruby-2.3.1#global/gems/activesupport-
5.0.0/lib/active_support/dependencies.rb:287:in `load'
from /Users/bruce/.rvm/gems/ruby-2.3.1#global/gems/activesupport-
5.0.0/lib/active_support/dependencies.rb:287:in `block in load'
from /Users/bruce/.rvm/gems/ruby-2.3.1#global/gems/activesupport-
5.0.0/lib/active_support/dependencies.rb:259:in `load_dependency'
from /Users/bruce/.rvm/gems/ruby-2.3.1#global/gems/activesupport-
5.0.0/lib/active_support/dependencies.rb:287:in `load'
from /Users/bruce/.rvm/gems/ruby-2.3.1#global/gems/railties-5.0.0/lib
/rails/application/routes_reloader.rb:40:in `block in load_paths'
from /Users/bruce/.rvm/gems/ruby-2.3.1#global/gems/railties-5.0.0/lib
/rails/application/routes_reloader.rb:40:in `each'
from /Users/bruce/.rvm/gems/ruby-2.3.1#global/gems/railties-5.0.0/lib
/rails/application/routes_reloader.rb:40:in `load_paths'
from /Users/bruce/.rvm/gems/ruby-2.3.1#global/gems/railties-5.0.0/lib
/rails/application/routes_reloader.rb:16:in `reload!'
from /Users/bruce/.rvm/gems/ruby-2.3.1#global/gems/railties-5.0.0/lib
/rails/application/routes_reloader.rb:26:in `block in updater'
from /Users/bruce/.rvm/gems/ruby-2.3.1#global/gems/activesupport-
5.0.0/lib/active_support/file_update_checker.rb:77:in `execute'
from /Users/bruce/.rvm/gems/ruby-2.3.1#global/gems/railties-5.0.0/lib
/rails/application/routes_reloader.rb:27:in `updater'
from /Users/bruce/.rvm/gems/ruby-2.3.1#global/gems/railties-5.0.0/lib
/rails/application/routes_reloader.rb:7:in `execute_if_updated'
from /Users/bruce/.rvm/gems/ruby-2.3.1#global/gems/railties-5.0.0/lib
/rails/application/finisher.rb:119:in `block in '
from /Users/bruce/.rvm/gems/ruby-2.3.1#global/gems/railties-5.0.0/lib
/rails/initializable.rb:30:in `instance_exec'
from /Users/bruce/.rvm/gems/ruby-2.3.1#global/gems/railties-5.0.0/lib
/rails/initializable.rb:30:in `run'
from /Users/bruce/.rvm/gems/ruby-2.3.1#global/gems/railties-5.0.0/lib
/rails/initializable.rb:55:in `block in run_initializers'
from /Users/bruce/.rvm/rubies/ruby-2.3.1/lib/ruby/2.3.0
/tsort.rb:228:in `block in tsort_each'
from /Users/bruce/.rvm/rubies/ruby-2.3.1/lib/ruby/2.3.0
/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
from /Users/bruce/.rvm/rubies/ruby-2.3.1/lib/ruby/2.3.0
/tsort.rb:431:in `each_strongly_connected_component_from'
from /Users/bruce/.rvm/rubies/ruby-2.3.1/lib/ruby/2.3.0
/tsort.rb:349:in `block in each_strongly_connected_component'
from /Users/bruce/.rvm/rubies/ruby-2.3.1/lib/ruby/2.3.0
/tsort.rb:347:in `each'
from /Users/bruce/.rvm/rubies/ruby-2.3.1/lib/ruby/2.3.0
/tsort.rb:347:in `call'
from /Users/bruce/.rvm/rubies/ruby-2.3.1/lib/ruby/2.3.0
/tsort.rb:347:in `each_strongly_connected_component'
from /Users/bruce/.rvm/rubies/ruby-2.3.1/lib/ruby/2.3.0
/tsort.rb:226:in `tsort_each'
from /Users/bruce/.rvm/rubies/ruby-2.3.1/lib/ruby/2.3.0
/tsort.rb:205:in `tsort_each'
from /Users/bruce/.rvm/gems/ruby-2.3.1#global/gems/railties-5.0.0/lib
/rails/initializable.rb:54:in `run_initializers'
from /Users/bruce/.rvm/gems/ruby-2.3.1#global/gems/railties-5.0.0/lib
/rails/application.rb:352:in `initialize!'
from /Users/bruce/sea/config/environment.rb:5:in `<top (required)>'
from /Users/bruce/sea/config.ru:3:in `require_relative'
from /Users/bruce/sea/config.ru:3:in `block in <main>'
from /Users/bruce/.rvm/gems/ruby-2.3.1#global/gems/rack-2.0.1/lib
/rack/builder.rb:55:in `instance_eval'
from /Users/bruce/.rvm/gems/ruby-2.3.1#global/gems/rack-2.0.1/lib
/rack/builder.rb:55:in `initialize'
from /Users/bruce/sea/config.ru:in `new'
from /Users/bruce/sea/config.ru:in `<main>'
from /Users/bruce/.rvm/gems/ruby-2.3.1#global/gems/rack-2.0.1/lib
/rack/builder.rb:49:in `eval'
from /Users/bruce/.rvm/gems/ruby-2.3.1#global/gems/rack-2.0.1/lib
/rack/builder.rb:49:in `new_from_string'
from /Users/bruce/.rvm/gems/ruby-2.3.1#global/gems/rack-2.0.1/lib
/rack/builder.rb:40:in `parse_file'
from /Users/bruce/.rvm/gems/ruby-2.3.1#global/gems/rack-2.0.1/lib
/rack/server.rb:318:in `build_app_and_options_from_config'
from /Users/bruce/.rvm/gems/ruby-2.3.1#global/gems/rack-2.0.1/lib
/rack/server.rb:218:in `app'
from /Users/bruce/.rvm/gems/ruby-2.3.1#global/gems/railties-5.0.0/lib
/rails/commands/server.rb:59:in `app'
from /Users/bruce/.rvm/gems/ruby-2.3.1#global/gems/rack-2.0.1/lib
/rack/server.rb:353:in `wrapped_app'
from /Users/bruce/.rvm/gems/ruby-2.3.1#global/gems/railties-5.0.0/lib
/rails/commands/server.rb:124:in `log_to_stdout'
from /Users/bruce/.rvm/gems/ruby-2.3.1#global/gems/railties-5.0.0/lib
/rails/commands/server.rb:77:in `start'
from /Users/bruce/.rvm/gems/ruby-2.3.1#global/gems/railties-5.0.0/lib
/rails/commands/commands_tasks.rb:90:in `block in server'
from /Users/bruce/.rvm/gems/ruby-2.3.1#global/gems/railties-5.0.0/lib
/rails/commands/commands_tasks.rb:85:in `tap'
from /Users/bruce/.rvm/gems/ruby-2.3.1#global/gems/railties-5.0.0/lib
/rails/commands/commands_tasks.rb:85:in `server'
from /Users/bruce/.rvm/gems/ruby-2.3.1#global/gems/railties-5.0.0/lib
/rails/commands/commands_tasks.rb:49:in `run_command!'
from /Users/bruce/.rvm/gems/ruby-2.3.1#global/gems/railties-5.0.0/lib
/rails/commands.rb:18:in `'
from /Users/bruce/sea/bin/rails:9:in `require'
from /Users/bruce/sea/bin/rails:9:in `<top (required)>'
from /Users/bruce/.rvm/gems/ruby-2.3.1#global/gems/spring-1.7.2/lib
/spring/client/rails.rb:28:in `load'
from /Users/bruce/.rvm/gems/ruby-2.3.1#global/gems/spring-1.7.2/lib
/spring/client/rails.rb:28:in `call'
from /Users/bruce/.rvm/gems/ruby-2.3.1#global/gems/spring-1.7.2/lib
/spring/client/command.rb:7:in `call'
from /Users/bruce/.rvm/gems/ruby-2.3.1#global/gems/spring-1.7.2/lib
/spring/client.rb:30:in `run'
from /Users/bruce/.rvm/gems/ruby-2.3.1#global/gems/spring-1.7.2/bin
/spring:49:in `'
from /Users/bruce/.rvm/gems/ruby-2.3.1#global/gems/spring-1.7.2/lib
/spring/binstub.rb:11:in `load'
from /Users/bruce/.rvm/gems/ruby-2.3.1#global/gems/spring-1.7.2/lib
/spring/binstub.rb:11:in `'
from /Users/bruce/sea/bin/spring:13:in `require'
from /Users/bruce/sea/bin/spring:13:in `<top (required)>'
from bin/rails:3:in `load'`enter
from bin/rails:3:in `<main>'
Seems like in your routes.rb file you are mistakenly have root. Try change it to root_url. In ruby if nothing is find in any location then it's show no method error for mainObject which is a base class.
Hope this help you.

Ruby on rails app won't run because of error with mysql

I created a new Rails application using the command from the Ubuntu terminal:
rails new testing -d mysql
I then added the root password in the database.yml file
when I run the command rails server to run the application on the server the following occurs:
=> Booting WEBrick
=> Rails 3.2.13 application starting in`enter code here` development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
Exiting
/home/russian/.rvm/gems/ruby-1.9.3-p392/gems/mysql2-0.3.11/lib/mysql2/client.rb:44:in `connect': Unknown database 'testing_development' (Mysql2::Error)
from /home/russian/.rvm/gems/ruby-1.9.3-p392/gems/mysql2-0.3.11/lib/mysql2/client.rb:44:in `initialize'
from /home/russian/.rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.13/lib/active_record/connection_adapters/mysql2_adapter.rb:16:in `new'
from /home/russian/.rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.13/lib/active_record/connection_adapters/mysql2_adapter.rb:16:in `mysql2_connection'
from /home/russian/.rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_pool.rb:315:in `new_connection'
from /home/russian/.rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_pool.rb:325:in `checkout_new_connection'
from /home/russian/.rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_pool.rb:247:in `block (2 levels) in checkout'
from /home/russian/.rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_pool.rb:242:in `loop'
from /home/russian/.rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_pool.rb:242:in `block in checkout'
from /home/russian/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
from /home/russian/.rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_pool.rb:239:in `checkout'
from /home/russian/.rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_pool.rb:102:in `block in connection'
from /home/russian/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
from /home/russian/.rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_pool.rb:101:in `connection'
from /home/russian/.rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_pool.rb:410:in `retrieve_connection'
from /home/russian/.rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_specification.rb:171:in `retrieve_connection'
from /home/russian/.rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_specification.rb:145:in `connection'
from /home/russian/.rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.13/lib/active_record/railtie.rb:88:in `block in <class:Railtie>'
from /home/russian/.rvm/gems/ruby-1.9.3-p392/gems/railties-3.2.13/lib/rails/initializable.rb:30:in `instance_exec'
from /home/russian/.rvm/gems/ruby-1.9.3-p392/gems/railties-3.2.13/lib/rails/initializable.rb:30:in `run'
from /home/russian/.rvm/gems/ruby-1.9.3-p392/gems/railties-3.2.13/lib/rails/initializable.rb:55:in `block in run_initializers'
from /home/russian/.rvm/gems/ruby-1.9.3-p392/gems/railties-3.2.13/lib/rails/initializable.rb:54:in `each'
from /home/russian/.rvm/gems/ruby-1.9.3-p392/gems/railties-3.2.13/lib/rails/initializable.rb:54:in `run_initializers'
from /home/russian/.rvm/gems/ruby-1.9.3-p392`enter code here`/gems/railties-3.2.13/lib/rails/application.rb:136:in `initialize!'
from /home/russian/.rvm/gems/ruby-1.9.3-p392/gems/railties-3.2.13/lib/rails/railtie/configurable.rb:30:in `method_missing'
from /home/russian/testing/config/environment.rb:5:in `<top (required)>'
from /home/russian/testing/config.ru:3:in `require'
from /home/russian/testing/config.ru:3:in `block in <main>'
from /home/russian/.rvm/gems/ruby-1.9.3-p392/gems/rack-1.4.5/lib/rack/builder.rb:51:in `instance_eval'
from /home/russian/.rvm/gems/ruby-1.9.3-p392/gems/rack-1.4.5/lib/rack/builder.rb:51:in `initialize'
from /home/russian/testing/config.ru:in `new'
from /home/russian/testing/config.ru:in `<main>'
from /home/russian/.rvm/gems/ruby-1.9.3-p392/gems/rack-1.4.5/lib/rack/builder.rb:40:in `eval'
from /home/russian/.rvm/gems/ruby-1.9.3-p392/gems/rack-1.4.5/lib/rack/builder.rb:40:in `parse_file'
from /home/russian/.rvm/gems/ruby-1.9.3-p392/gems/rack-1.4.5/lib/rack/server.rb:200:in `app'
from /home/russian/.rvm/gems/ruby-1.9.3-p392/gems/railties-3.2.13/lib/rails/commands/server.rb:46:in `app'
from /home/russian/.rvm/gems/ruby-1.9.3-p392/gems/rack-1.4.5/lib/rack/server.rb:304:in `wrapped_app'
from /home/russian/.rvm/gems/ruby-1.9.3-p392/gems/rack-1.4.5/lib/rack/server.rb:254:in `start'
from /home/russian/.rvm/gems/ruby-1.9.3-p392/gems/railties-3.2.13/lib/rails/commands/server.rb:70:in `start'
from /home/russian/.rvm/gems/ruby-1.9.3-p392/gems/railties-3.2.13/lib/rails/commands.rb:55:in `block in <top (required)>'
from /home/russian/.rvm/gems/ruby-1.9.3-p392/gems/railties-3.2.13/lib/rails/commands.rb:50:in `tap'
from /home/russian/.rvm/gems/ruby-1.9.3-p392/gems/railties-3.2.13/lib/rails/commands.rb:50:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
Can anyone help me with the problem?
You have to create the Database first.