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

【已解答】面板报错

发表在 Windows面板2025-11-14 09:26 [复制链接] 1 199

为了能快速了解并处理您的问题,请提供以下基础信息:
面板、插件版本:8.2.2

系统版本:2019

问题描述:面板报错,提示编码报错Traceback (most recent call last):
  File "E:\BtSoft\panel/class\public.py", line 363, in ReadFile
    f_body = fp.read()
UnicodeDecodeError: 'gbk' codec can't decode byte 0xef in position 0: illegal multibyte sequence

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "E:\BtSoft\panel/class\public.py", line 373, in ReadFile
    f_body = fp.read()
  File "C:\Program Files\python\lib\codecs.py", line 322, in decode
    (result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xef in position 0: invalid continuation byte

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "E:\BtSoft\panel/class\public.py", line 382, in ReadFile
    f_body = fp.read()
UnicodeDecodeError: 'gbk' codec can't decode byte 0xef in position 0: illegal multibyte sequence

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "E:\BtSoft\panel\BTPanel\__init__.py", line 1584, in publicObject
    return run_exec().run(toObject, defs, get)
  File "E:\BtSoft\panel\BTPanel\__init__.py", line 1825, in run
    result = resobj(get)
  File "E:\BtSoft\panel/class\data.py", line 142, in getData
    site['ssl'] = self.get_site_ssl_info(webType, site['name'])
  File "E:\BtSoft\panel/class\data.py", line 163, in get_site_ssl_info
    conf = public.readFile(file)
  File "E:\BtSoft\panel/class\public.py", line 406, in readFile
    return ReadFile(filename, mode)
  File "E:\BtSoft\panel/class\public.py", line 391, in ReadFile
    f_body = fp.read()
  File "C:\Program Files\python\lib\codecs.py", line 322, in decode
    (result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'mbcs' codec can't decode bytes in position 0--1: No mapping for the Unicode character exists in the target code page.

相关截图(日志、错误):

使用道具 举报 只看该作者 回复
发表于 2025-11-14 12:15:54 | 显示全部楼层
您好,给您服务器做个快照
不做快照不要执行以下操作

到官网下载windwos极速版的安装包
覆盖安装到原面板安装目录下
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

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

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

紧急运维服务

响应时间:3分钟

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

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

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

点击联系技术免费分析

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

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