登录
注册
开源
企业版
高校版
搜索
帮助中心
使用条款
关于我们
开源
企业版
高校版
私有云
Gitee AI
NEW
我知道了
查看详情
登录
注册
代码拉取完成,页面将自动刷新
开源项目
>
开发工具
>
测试工具
&&
捐赠
捐赠前请先登录
取消
前往登录
扫描微信二维码支付
取消
支付完成
支付提示
将跳转至支付宝完成支付
确定
取消
Watch
不关注
关注所有动态
仅关注版本发行动态
关注但不提醒动态
30
Star
310
Fork
137
阿正
/
WebUIAutoTest
代码
Issues
5
Pull Requests
0
Wiki
统计
流水线
服务
Gitee Pages
质量分析
Jenkins for Gitee
腾讯云托管
腾讯云 Serverless
悬镜安全
阿里云 SAE
Codeblitz
我知道了,不再自动展开
更新失败,请稍后重试!
Issues
/
详情
移除标识
内容风险标识
本任务被
标识为内容中包含有代码安全 Bug 、隐私泄露等敏感信息,仓库外成员不可访问
sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) database is locked
待办的
#I80730
peter
创建于
2023-09-11 10:10
访问网站时会报下面的错误 http://127.0.0.1:5000/execution sqlalchemy.exc.OperationalError sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) database is locked [SQL: SELECT user.id AS user_id, user.username AS user_username, user.email AS user_email, user.password_hash AS user_password_hash, user.last_seen AS user_last_seen FROM user WHERE user.id = ? LIMIT ? OFFSET ?] [parameters: (1, 1, 0)] (Background on this error at: http://sqlalche.me/e/13/e3q8) Traceback (most recent call last) File "E:\API_auto_test\venv\lib\site-packages\sqlalchemy\engine\base.py", line 1277, in _execute_context cursor, statement, parameters, context File "E:\API_auto_test\venv\lib\site-packages\sqlalchemy\engine\default.py", line 593, in do_execute cursor.execute(statement, parameters) The above exception was the direct cause of the following exception: File "E:\API_auto_test\venv\lib\site-packages\flask\app.py", line 2463, in __call__ return self.wsgi_app(environ, start_response) File "E:\API_auto_test\venv\lib\site-packages\flask\app.py", line 2449, in wsgi_app response = self.handle_exception(e) File "E:\API_auto_test\venv\lib\site-packages\flask\app.py", line 1866, in handle_exception reraise(exc_type, exc_value, tb) File "E:\API_auto_test\venv\lib\site-packages\flask\_compat.py", line 39, in reraise raise value File "E:\API_auto_test\venv\lib\site-packages\flask\app.py", line 2446, in wsgi_app response = self.full_dispatch_request() File "E:\API_auto_test\venv\lib\site-packages\flask\app.py", line 1951, in full_dispatch_request rv = self.handle_user_exception(e) File "E:\API_auto_test\venv\lib\site-packages\flask\app.py", line 1820, in handle_user_exception reraise(exc_type, exc_value, tb) File "E:\API_auto_test\venv\lib\site-packages\flask\_compat.py", line 39, in reraise raise value File "E:\API_auto_test\venv\lib\site-packages\flask\app.py", line 1947, in full_dispatch_request rv = self.preprocess_request() File "E:\API_auto_test\venv\lib\site-packages\flask\app.py", line 2241, in preprocess_request rv = func() File "E:\API_auto_test\src\web\app\main\routes.py", line 18, in before_request if current_user.is_authenticated: File "E:\API_auto_test\venv\lib\site-packages\werkzeug\local.py", line 347, in __getattr__ return getattr(self._get_current_object(), name) File "E:\API_auto_test\venv\lib\site-packages\werkzeug\local.py", line 306, in _get_current_object return self.__local() File "E:\API_auto_test\venv\lib\site-packages\flask_login\utils.py", line 26, in <lambda> current_user = LocalProxy(lambda: _get_user()) File "E:\API_auto_test\venv\lib\site-packages\flask_login\utils.py", line 346, in _get_user current_app.login_manager._load_user() File "E:\API_auto_test\venv\lib\site-packages\flask_login\login_manager.py", line 318, in _load_user user = self._user_callback(user_id) File "E:\API_auto_test\src\web\app\extensions.py", line 29, in load_user return User.query.filter_by(id=int(id)).first() File "E:\API_auto_test\venv\lib\site-packages\sqlalchemy\orm\query.py", line 3402, in first ret = list(self[0:1]) File "E:\API_auto_test\venv\lib\site-packages\sqlalchemy\orm\query.py", line 3176, in __getitem__ return list(res) File "E:\API_auto_test\venv\lib\site-packages\sqlalchemy\orm\query.py", line 3508, in __iter__ return self._execute_and_instances(context) File "E:\API_auto_test\venv\lib\site-packages\sqlalchemy\orm\query.py", line 3533, in _execute_and_instances result = conn.execute(querycontext.statement, self._params) File "E:\API_auto_test\venv\lib\site-packages\sqlalchemy\engine\base.py", line 1011, in execute return meth(self, multiparams, params) File "E:\API_auto_test\venv\lib\site-packages\sqlalchemy\sql\elements.py", line 298, in _execute_on_connection return connection._execute_clauseelement(self, multiparams, params) File "E:\API_auto_test\venv\lib\site-packages\sqlalchemy\engine\base.py", line 1130, in _execute_clauseelement distilled_params, File "E:\API_auto_test\venv\lib\site-packages\sqlalchemy\engine\base.py", line 1317, in _execute_context e, statement, parameters, cursor, context File "E:\API_auto_test\venv\lib\site-packages\sqlalchemy\engine\base.py", line 1511, in _handle_dbapi_exception sqlalchemy_exception, with_traceback=exc_info[2], from_=e File "E:\API_auto_test\venv\lib\site-packages\sqlalchemy\util\compat.py", line 182, in raise_ raise exception File "E:\API_auto_test\venv\lib\site-packages\sqlalchemy\engine\base.py", line 1277, in _execute_context cursor, statement, parameters, context File "E:\API_auto_test\venv\lib\site-packages\sqlalchemy\engine\default.py", line 593, in do_execute cursor.execute(statement, parameters) sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) database is locked [SQL: SELECT user.id AS user_id, user.username AS user_username, user.email AS user_email, user.password_hash AS user_password_hash, user.last_seen AS user_last_seen FROM user WHERE user.id = ? LIMIT ? OFFSET ?] [parameters: (1, 1, 0)] (Background on this error at: http://sqlalche.me/e/13/e3q8)
访问网站时会报下面的错误 http://127.0.0.1:5000/execution sqlalchemy.exc.OperationalError sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) database is locked [SQL: SELECT user.id AS user_id, user.username AS user_username, user.email AS user_email, user.password_hash AS user_password_hash, user.last_seen AS user_last_seen FROM user WHERE user.id = ? LIMIT ? OFFSET ?] [parameters: (1, 1, 0)] (Background on this error at: http://sqlalche.me/e/13/e3q8) Traceback (most recent call last) File "E:\API_auto_test\venv\lib\site-packages\sqlalchemy\engine\base.py", line 1277, in _execute_context cursor, statement, parameters, context File "E:\API_auto_test\venv\lib\site-packages\sqlalchemy\engine\default.py", line 593, in do_execute cursor.execute(statement, parameters) The above exception was the direct cause of the following exception: File "E:\API_auto_test\venv\lib\site-packages\flask\app.py", line 2463, in __call__ return self.wsgi_app(environ, start_response) File "E:\API_auto_test\venv\lib\site-packages\flask\app.py", line 2449, in wsgi_app response = self.handle_exception(e) File "E:\API_auto_test\venv\lib\site-packages\flask\app.py", line 1866, in handle_exception reraise(exc_type, exc_value, tb) File "E:\API_auto_test\venv\lib\site-packages\flask\_compat.py", line 39, in reraise raise value File "E:\API_auto_test\venv\lib\site-packages\flask\app.py", line 2446, in wsgi_app response = self.full_dispatch_request() File "E:\API_auto_test\venv\lib\site-packages\flask\app.py", line 1951, in full_dispatch_request rv = self.handle_user_exception(e) File "E:\API_auto_test\venv\lib\site-packages\flask\app.py", line 1820, in handle_user_exception reraise(exc_type, exc_value, tb) File "E:\API_auto_test\venv\lib\site-packages\flask\_compat.py", line 39, in reraise raise value File "E:\API_auto_test\venv\lib\site-packages\flask\app.py", line 1947, in full_dispatch_request rv = self.preprocess_request() File "E:\API_auto_test\venv\lib\site-packages\flask\app.py", line 2241, in preprocess_request rv = func() File "E:\API_auto_test\src\web\app\main\routes.py", line 18, in before_request if current_user.is_authenticated: File "E:\API_auto_test\venv\lib\site-packages\werkzeug\local.py", line 347, in __getattr__ return getattr(self._get_current_object(), name) File "E:\API_auto_test\venv\lib\site-packages\werkzeug\local.py", line 306, in _get_current_object return self.__local() File "E:\API_auto_test\venv\lib\site-packages\flask_login\utils.py", line 26, in <lambda> current_user = LocalProxy(lambda: _get_user()) File "E:\API_auto_test\venv\lib\site-packages\flask_login\utils.py", line 346, in _get_user current_app.login_manager._load_user() File "E:\API_auto_test\venv\lib\site-packages\flask_login\login_manager.py", line 318, in _load_user user = self._user_callback(user_id) File "E:\API_auto_test\src\web\app\extensions.py", line 29, in load_user return User.query.filter_by(id=int(id)).first() File "E:\API_auto_test\venv\lib\site-packages\sqlalchemy\orm\query.py", line 3402, in first ret = list(self[0:1]) File "E:\API_auto_test\venv\lib\site-packages\sqlalchemy\orm\query.py", line 3176, in __getitem__ return list(res) File "E:\API_auto_test\venv\lib\site-packages\sqlalchemy\orm\query.py", line 3508, in __iter__ return self._execute_and_instances(context) File "E:\API_auto_test\venv\lib\site-packages\sqlalchemy\orm\query.py", line 3533, in _execute_and_instances result = conn.execute(querycontext.statement, self._params) File "E:\API_auto_test\venv\lib\site-packages\sqlalchemy\engine\base.py", line 1011, in execute return meth(self, multiparams, params) File "E:\API_auto_test\venv\lib\site-packages\sqlalchemy\sql\elements.py", line 298, in _execute_on_connection return connection._execute_clauseelement(self, multiparams, params) File "E:\API_auto_test\venv\lib\site-packages\sqlalchemy\engine\base.py", line 1130, in _execute_clauseelement distilled_params, File "E:\API_auto_test\venv\lib\site-packages\sqlalchemy\engine\base.py", line 1317, in _execute_context e, statement, parameters, cursor, context File "E:\API_auto_test\venv\lib\site-packages\sqlalchemy\engine\base.py", line 1511, in _handle_dbapi_exception sqlalchemy_exception, with_traceback=exc_info[2], from_=e File "E:\API_auto_test\venv\lib\site-packages\sqlalchemy\util\compat.py", line 182, in raise_ raise exception File "E:\API_auto_test\venv\lib\site-packages\sqlalchemy\engine\base.py", line 1277, in _execute_context cursor, statement, parameters, context File "E:\API_auto_test\venv\lib\site-packages\sqlalchemy\engine\default.py", line 593, in do_execute cursor.execute(statement, parameters) sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) database is locked [SQL: SELECT user.id AS user_id, user.username AS user_username, user.email AS user_email, user.password_hash AS user_password_hash, user.last_seen AS user_last_seen FROM user WHERE user.id = ? LIMIT ? OFFSET ?] [parameters: (1, 1, 0)] (Background on this error at: http://sqlalche.me/e/13/e3q8)
评论 (
0
)
peter
创建了
任务
登录
后才可以发表评论
状态
待办的
待办的
进行中
已完成
已关闭
负责人
未设置
标签
未设置
标签管理
里程碑
未关联
未关联
Pull Requests
未关联
未关联
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
未关联
未关联
master
开始日期   -   截止日期
-
置顶选项
不置顶
置顶等级:高
置顶等级:中
置顶等级:低
优先级
不指定
严重
主要
次要
不重要
参与者(1)
Python
1
https://gitee.com/azhengzz/WebUIAutoTest.git
git@gitee.com:azhengzz/WebUIAutoTest.git
azhengzz
WebUIAutoTest
WebUIAutoTest
点此查找更多帮助
搜索帮助
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
评论
仓库举报
回到顶部
登录提示
该操作需登录 Gitee 帐号,请先登录后再操作。
立即登录
没有帐号,去注册