Rake db: migrate SQLite3 :: IOException: ошибка ввода-вывода диска

Я установил установку installfest:

http://installfest.railsbridge.org/installfest/create_a_rails_app
и получил эту ошибку при выполнении rake db:migrate.

Я попытался переустановить рельсы и рубины, но это не сработало.

С помощью:

  • Ruby 2.2.1
  • Rails 4.2.1
  • Ubuntu 14.04
  • Ubuntu настроен с помощью бродяг (VM) на хосте Windows 8.1

    vagrant@vagrant-ubuntu-trusty-64: /vagrant/odin/test_app$ rake db:migrate --trace

** Invoke db: migrate (first_time) ** Вызывать среду (first_time) ** Выполнить среду ** Вызвать db: load_config (first_time) ** Выполнить db: load_config ** Выполнить db: выполнить миграцию rake aborted! ActiveRecord :: StatementInvalid: SQLite3 :: IOException: ошибка ввода-вывода диска: SELECT name FROM sqlite_master WHERE (type = 'table' OR type = 'view') AND NOT name = 'sqlite_sequence' AND name = "schema_migrations"/home/vagrant/.rvm/gems/ruby-2.2.1/gems/sqlite3-1.3.10/lib/sqlite3/database.rb: 91: in initialize'/home/vagrant/.rvm/gems/ruby-2.2.1/gems/sqlite3-1.3.10/lib/sqlite3/database.rb:91:in новом '/home/vagrant/.rvm/gems/ruby-2.2.1/gems/sqlite3-1.3.10/lib/sqlite3/database.rb: 91: in prepare'/home/vagrant/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.1/lib/active_record/connection_adapters/sqlite3_adapter.rb:296:in блоке в exec_query'/home/vagrant/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.1/lib/active_record/connection_adapters/abstract_adapter.rb: 473: в block in log'/home/vagrant/.rvm/gems/ruby-2.2.1/gems/activesupport-4.2.1/lib/active_support/notifications/instrumenter.rb:20:in инструменте '/home/vagrant/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2 0,1/Library/active_record/connection_adapters/аннотация _adapter.rb: 467: в log'/home/vagrant/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.1/lib/active_record/connection_adapters/sqlite3_adapter.rb:293:in exec_query'/home/vagrant/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.1/lib/active_record/connection_adapters/sqlite3_adapter.rb:374:in tables'/home/vagrant/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.1/lib/active_record/connection_adapters/sqlite3_adapter.rb:380:in table_exists? ' /home/vagrant/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.1/lib/active_record/schema_migration.rb:21:in table_exists?'/home/vagrant/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.1/lib/active_record/schema_migration.rb:25:in table_exists?'/home/vagrant/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.1/lib/active_record/schema_migration.rb:25:in create_table '/home/vagrant/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.1/lib/active_record/connection_adapters/abstract/schema_statements.rb: 805: in initialize_schema_migrations_table'/home/vagrant/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.1/lib/active_record/migration.rb:922:in initialize '/home/vagrant/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.1/lib/active_record/migration.rb:820:in new'/home/vagrant/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.1/lib/active_record/migration.rb:820:in up'/home/vagrant/.rvm/gems/ruby -2.2.1/gems/activerecord-4.2.1/lib/active_record/migration.rb: 798: in migrate'/home/vagrant/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.1/lib/active_record/tasks/database_tasks.rb:137:in migrate '/home/vagrant/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.1/lib/active_record/railties/databases.rake:44: в block (2 levels) in <top (required)>'/home/vagrant/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/rake/task.rb:240:in block (2 levels) in <top (required)>'/home/vagrant/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/rake/task.rb:240:in вызове '/home/vagrant/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/rake/task.rb: 240: in block in execute'/home/vagrant/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/rake/task.rb:235:in each'/home/vagrant/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/rake/task.rb:35:in execute'/home/vagrant/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/rake/task.rb:179:in block in invoke_with_call_chain '/home/vagrant/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/monitor.rb:211:in mon_synchronize'/home/vagrant/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/rake/task.rb:172:in invoke_with_call_chain '/home/vagrant/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/rake/task.rb:165:in invoke'/home/vagrant/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/rake/application.rb:150:in invoke_task '/home/vagrant/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/rake/application.rb:106:в block (2 levels) in top_level'/home/vagrant/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/rake/application.rb:106:in каждом '/home/vagrant/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2 +0,0 /rake/application.rb:106:in block in top_level'/home/vagrant/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/rake/application.rb:115:in run_with_threads'/home/vagrant/.rvm/rubies/ruby-2.2.1/lib/ruby /2.2.0/rake/application.rb: 100: in top_level'/home/vagrant/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/rake/application.rb:78:in блоке в run '/home/vagrant/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/rake/application.rb: 176: in standard_exception_handling'/home/vagrant/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/rake/application.rb:75:in run'/home/vagrant/.rvm/rubies/ruby-2.2.1/bin/rake:33:in <main>' SQLite3::IOException: disk I/O error/home/vagrant/.rvm/gems/ruby-2.2.1/gems/sqlite3-1.3.10/lib/sqlite3/database.rb:91:in initialize '/home/vagrant/.rvm/gems/ruby-2.2.1/gems/sqlite3-1.3.10/lib/sqlite3/database.rb:91:in new'/home/vagrant/.rvm/gems/ruby-2.2.1/gems/sqlite3-1.3.10/lib/sqlite3/database.rb:91:in подготовить'/home/vagrant/.rvm/gems/ruby -2.2.1/драгоценные камни /ActiveRecord-4.2.1/Library/active_record/connection_adapters/sqlite3 _adapter.rb: 296: в block in exec_query'/home/vagrant/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.1/lib/active_record/connection_adapters/abstract_adapter.rb:473:in блоке в log '/home/vagrant/.rvm/gems/ruby-2.2.1/gems/activesupport-4.2.1/lib/active_support/notifications/instrumenter.rb:20:in instrument'/home/vagrant/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.1/lib/active_record/connection_adapters/abstract_adapter.rb:467:in 2/1/4.2.1/lib/active_record/connection_adapters/sqlite3_adapter.rb: 293: в exec_query'/home/vagrant/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.1/lib/active_record/connection_adapters/sqlite3_adapter.rb:374:in таблицах '/home/vagrant/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.1/lib/active_record/connection_adapters/sqlite3_adapter.rb:380:in table_exists?'/home/vagrant/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.1/lib/active_record/schema_migration.rb:21:in table_exists?'/home/vagrant/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.1/lib/active_record/schema_migration.rb:21:in table_exists? ' /home/vagrant/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.1/lib/active_record/schema_migration.rb:25:in create_table'/home/vagrant/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.1/lib/active_record/connection_adapters/abstract/schema_statements.rb:805:in initialize_schema_migrations_table '/home/vagrant/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2. 1/lib/active_record/migration.rb: 922: in initialize'/home/vagrant/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.1/lib/active_record/migration.rb:820:in new '/home/vagrant/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.1/lib/active_record/migration.rb:820:in up'/home/vagrant/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.1/lib/active_record/migration.rb:798:in migrate '/home/vagrant/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.1/lib/active_record/tasks/database_tasks.rb: 137: in migrate'/home/vagrant/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.1/lib/active_record/railties/databases.rake:44:in блоке (2 уровня) в '/home/vagrant/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2 .0/rake/task.rb: 240: в call'/home/vagrant/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/rake/task.rb:240:in блоке в выполнении '/home/vagrant/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/rake/task.rb:235: в each'/home/vagrant/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/rake/task.rb:235:in execute '/home/vagrant/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/rake/task.rb: 179: in block in invoke_with_call_chain'/home/vagrant/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/monitor.rb:211:in mon_synchronize'/home/vagrant/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/rake/task.rb:172:in invoke_with_call_chain'/home/vagrant/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/rake/task.rb:165:in invoke '/home/vagrant/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/rake/application.rb:150:in invoke_task'/home/vagrant/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/rake/application.rb:106:in блоке (2 уровня) в top_level '/home/vagrant/.rvm/rubies/ruby-2.2.1/lib/ruby /2.2.0/rake/application.rb: 106: в each'/home/vagrant/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/rake/application.rb:106:in each'/home/vagrant/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/rake/application.rb:106:in блоке в top_level '/home/vagrant/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/rake/application.rb:115:in run_with_threads'/home/vagrant/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/rake/application.rb:100:in top_level '/home/vagrant/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/rake/application.rb:78:в block in run'/home/vagrant/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/rake/application.rb:176:in стандарте_exception_handling '/home/vagrant/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/rake/application.rb:75:in run'/home/vagrant/.rvm/rubies/ruby-2.2.1/bin/rake:33:in "Задачи: TOP => db: migrate

0
источник поделиться
1 ответ

Я решил эту проблему, изменив параметры монтирования общих папок NFS!

mount_options:['nolock,vers=3,udp,noatime,actimeo=1']

Теперь rake db: migrate работает нормально!

0
источник

Посмотрите другие вопросы по меткам или Задайте вопрос