Ruby: SQLite3::BusyException: database is locked:

后端 未结 18 1042
感动是毒
感动是毒 2020-11-28 23:29

Ran into this error message whilst developing tonight: SQLite3::BusyException: database is locked:

I have two models:

  • Podcasts have many
18条回答
  •  佛祖请我去吃肉
    2020-11-29 00:20

    It is most likely not related to rails code. Using at the same time the console with the sandbox option (rails console --sandbox), makes the problem systematic with SQLite, since the console is basically waiting to quit to rollback everything.

    The solution above from @trisweb will not work in this case, but quitting the console will.

提交回复
热议问题