我随机(我的看法)得到以下错误:“sqlite3.OperationalError OperationalError:数据库被锁定”当我通过Admin界面更新Lektor中的记录时。我尝试了几个项目(quickstart,lektor-website),我仍然得到这个“随机”错误。我的配置:Mac OS 10.11,最新版本的Lektor(2.3),Python 2.7。这是追溯:
File "/usr/local/lib/lektor/lib/python2.7/site-packages/flask/app.py", line 2000, in __call__
return self.wsgi_app(environ, start_response)
File "/usr/local/lib/lektor/lib/python2.7/site-packages/flask/app.py", line 1991, in wsgi_app
response = self.make_response(self.handle_exception(e))
File "/usr/local/lib/lektor/lib/python2.7/site-packages/flask/app.py", line 1567, in handle_exception
reraise(exc_type, exc_value, tb)
File "/usr/local/lib/lektor/lib/python2.7/site-packages/flask/app.py", line 1988, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/lektor/lib/python2.7/site-packages/flask/app.py", line 1641, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/lib/lektor/lib/python2.7/site-packages/flask/app.py", line 1544, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/local/lib/lektor/lib/python2.7/site-packages/flask/app.py", line 1639, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/lektor/lib/python2.7/site-packages/flask/app.py", line 1625, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/usr/local/lib/lektor/lib/python2.7/site-packages/lektor/admin/modules/serve.py", line 150, in serve_artifact
return serve_up_artifact(path)
File "/usr/local/lib/lektor/lib/python2.7/site- packages/lektor/admin/modules/serve.py", line 129, in serve_up_artifact
artifact_name, filename = li.resolve_artifact('/' + path, pad)
File "/usr/local/lib/lektor/lib/python2.7/site-packages/lektor/admin/webui.py", line 60, in resolve_artifact
prog, _ = builder.build(source)
File "/usr/local/lib/lektor/lib/python2.7/site-packages/lektor/builder.py", line 1080, in build
self.update_source_info(prog, build_state)
File "/usr/local/lib/lektor/lib/python2.7/site-packages/lektor/builder.py", line 1047, in update_source_info
build_state.write_source_info(info)
File "/usr/local/lib/lektor/lib/python2.7/site-packages/lektor/builder.py", line 240, in write_source_info
Open an interactive python shell in this frame''', [info.path, info.alt, lang, info.type, source, title])
关于如何防止这种情况的任何建议?
提前致谢!