0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

rails db:migrate で BusyException: database is locked

Posted at

以下のようなエラーがでたが、原因はデータベースのGUI閲覧ツール(DB Browser for SQLiteなど)で変更を保存前の操作が残っていたから。

$ rails db:migrate

rails aborted!
StandardError: An error has occurred, this and all later migrations canceled:

SQLite3::BusyException: database is locked

以下によると、SQLiteは同時に1つのプロセスからしかアクセスできないらしく、DB Browser がアクセスしてたからロックされてたということだそうだ。
https://stackoverflow.com/questions/5452662/rake-dbmigrate-is-throwing-busyexception-database-is-locked-exception

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?