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

【待反馈】下载文件报错

发表在 Linux面板2022-11-23 12:13 [复制链接] 1 4351

[2022-11-23 12:04:47,282] ERROR in app: Exception on /download [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/map.py", line 624, in match
    raise NotFound() from None
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 2525, in wsgi_app
    response = self.full_dispatch_request()
  File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/app.py", line 1822, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/app.py", line 1820, in full_dispatch_request
    rv = self.dispatch_request()
  File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/app.py", line 1796, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
  File "/www/server/panel/BTPanel/__init__.py", line 941, in download
    cache_timeout=0)
TypeError: send_file() got an unexpected keyword argument 'add_etags'
[2022-11-23 12:04:47,424] ERROR in app: Exception on /favicon.ico [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/map.py", line 624, in match
    raise NotFound() from None
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 2525, in wsgi_app
    response = self.full_dispatch_request()
  File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/app.py", line 1822, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/app.py", line 1820, in full_dispatch_request
    rv = self.dispatch_request()
  File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/app.py", line 1796, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
  File "/www/server/panel/BTPanel/__init__.py", line 1321, in send_favicon
    return send_file(s_file, conditional=True, add_etags=True)
TypeError: send_file() got an unexpected keyword argument 'add_etags'


使用道具 举报 只看该作者 回复
发表于 2022-11-23 14:28:50 | 显示全部楼层
您好,服务器命令行使用root权限执行以下命令修复面板试试是否可以恢复正常?
  1. #删除原来的python环境
  2. rm -rf /www/server/panel/pyenv
  3. #重新安装环境
  4. curl http://download.bt.cn/install/update_panel.sh|bash
复制代码
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

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

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

紧急运维服务

响应时间:3分钟

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

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

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

点击联系技术免费分析

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

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