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

【待反馈】绑定宝塔账号出错

发表在 Windows面板2023-8-18 14:31 [复制链接] 2 818

本帖最后由 堡塔运维小林 于 2023-8-18 14:50 编辑

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

7.9
系统版本:

windows server 2022
问题描述:

进入面板提示绑定宝塔账号,登录出错
相关截图(日志、错误):

微信截图_20230818142945.png 微信截图_20230818143001.png Traceback (most recent call last):  File "D:\BtSoft\panel/class\public.py", line 363, in ReadFile    f_body = fp.read()UnicodeDecodeError: 'gbk' codec can't decode byte 0xca in position 57: illegal multibyte sequenceDuring handling of the above exception, another exception occurred:Traceback (most recent call last):  File "D:\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 0xbd in position 53: invalid start byteDuring handling of the above exception, another exception occurred:Traceback (most recent call last):  File "D:\BtSoft\panel/class\public.py", line 382, in ReadFile    f_body = fp.read()UnicodeDecodeError: 'gbk' codec can't decode byte 0xca in position 57: illegal multibyte sequenceDuring handling of the above exception, another exception occurred:Traceback (most recent call last):  File "D:\BtSoft\panel\BTPanel\__init__.py", line 1581, in publicObject    return run_exec().run(toObject, defs, get)  File "D:\BtSoft\panel\BTPanel\__init__.py", line 1813, in run    result = eval(fun)  File "", line 1, in   File "D:\BtSoft\panel/class\panelSSL.py", line 89, in GetAuthToken    data['serverid'] = panelAuth().get_serverid()  File "panel-win\panel\class\panelAuth.py", line 54, in panelAuth.panelAuth.get_serverid  File "D:\BtSoft\panel/class\public.py", line 406, in readFile    return ReadFile(filename, mode)  File "D:\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.
使用道具 举报 只看该作者 回复
发表于 2023-8-18 14:50:14 | 显示全部楼层
您好,您可以尝试先修复一下面板,然后再尝试前面的操作看是否可行;
如果不行,可能是面板依赖的python环境损坏了,先停止宝塔面板,然后将下面这个目录删掉
C:\Program Files\python
然后下载这个包覆盖安装一下看看是否能解决,覆盖安装不影响原来数据与正在运行的网站。
http://download.bt.cn/win/panel/BtSoft.zip
使用道具 举报 回复 支持 反对
发表于 2024-3-15 20:41:44 | 显示全部楼层
您好,这个问题解决了吗
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

企业版年付运维跟进群

普通问题处理

论坛响应时间:72小时

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

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

紧急问题处理

论坛响应时间:10分钟

问题处理方式:1对1处理(优先)

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

工作时间:晚班:18:00 - 24:00

立即付费处理
快速回复 返回顶部 返回列表