当前位置:论坛首页 > Linux面板 > 求助

【待反馈】运行修复脚本以后宝塔无法登陆

发表在 Linux面板2022-3-11 11:02 [复制链接] 3 3003

出错了,面板运行时发生错误!AttributeError: '_AppCtxGlobals' object has no attribute 'api_request'
运行修复脚本以后宝塔无法登陆


使用道具 举报 只看该作者 回复
发表于 2022-3-11 11:03:31 | 显示全部楼层
您好,登录提示什么错误?您那边执行bt 22看下面板日志
使用道具 举报 回复 支持 反对
发表于 2022-3-11 11:09:28 | 显示全部楼层
本帖最后由 超级菜鸡 于 2022-3-11 11:11 编辑
谢花郎 发表于 2022-3-11 11:03
您好,登录提示什么错误?您那边执行bt 22看下面板日志

[2022-03-11 10:26:38,726] ERROR in app: Exception on /login [GET]
Traceback (most recent call last):
  File "class/flask_sockets.py", line 30, in __call__
    handler, values = adapter.match()
  File "/www/server/panel/pyenv/lib/python3.7/site-packages/werkzeug/routing.py", line 1945, in match
    raise NotFound()
werkzeug.exceptions.NotFound: 404 Not Found: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/app.py", line 2447, in wsgi_app
    response = self.full_dispatch_request()
  File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/app.py", line 1953, in full_dispatch_request
    return self.finalize_request(rv)
  File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/app.py", line 1970, in finalize_request
    response = self.process_response(response)
  File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/app.py", line 2267, in process_response
    response = handler(response)
  File "class/flask_compress.py", line 110, in after_request
    if not session.get('login',None) or g.api_request:
  File "/www/server/panel/pyenv/lib/python3.7/site-packages/werkzeug/local.py", line 347, in __getattr__
    return getattr(self._get_current_object(), name)
AttributeError: '_AppCtxGlobals' object has no attribute 'api_request'
使用道具 举报 回复 支持 反对
发表于 2022-3-11 11:11:55 | 显示全部楼层
超级菜鸡 发表于 2022-3-11 11:09
[2022-03-11 10:26:38,726] ERROR in app: Exception on /login [GET]
Traceback (most recent call last) ...

此问题我们有做过修复,麻烦您重新执行bt 16修复一下,然后清除浏览器缓存重新访问。
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急运维服务

响应时间:3分钟

问题处理方式:宝塔专家1对1服务

工作时间:工作日:9:00 - 18:30

宝塔专业团队为您解决服务器疑难问题

点击联系技术免费分析

工作时间:09:00至18:30

快速回复 返回顶部 返回列表