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

【待反馈】面板报错怎么办??

发表在 Linux面板2023-7-16 21:51 [复制链接] 1 2353

本帖最后由 堡塔运维小林 于 2023-7-17 09:04 编辑

为了能快速了解并处理您的问题,请提供以下基础信息:
面板、插件版本:免费版 [url=]8.0.0[/url]

系统版本:CentOS  7.9.2009 x86_64(Py3.7.9)

问题描述:出错了,面板运行时发生错误![url=]TypeError: the JSON object must be str, bytes or bytearray, not bool[/url]

相关截图(日志、错误):Traceback (most recent call last):  File "class/ajax.py", line 1794, in get_pay_type    data = json.loads(public.readFile("data/pay_type.json"))  File "/www/server/panel/pyenv/lib/python3.7/json/__init__.py", line 348, in loads    return _default_decoder.decode(s)  File "/www/server/panel/pyenv/lib/python3.7/json/decoder.py", line 337, in decode    obj, end = self.raw_decode(s, idx=_w(s, 0).end())  File "/www/server/panel/pyenv/lib/python3.7/json/decoder.py", line 355, in raw_decode    raise JSONDecodeError("Expecting value", s, err.value) from Nonejson.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)During handling of the above exception, another exception occurred:Traceback (most recent call last):  File "/www/server/panel/BTPanel/__init__.py", line 2016, in publicObject    res = run_obj.run(toObject, defs, get)  File "/www/server/panel/BTPanel/__init__.py", line 1963, in run    result = getattr(toObject, get.action)(get)  File "class/ajax.py", line 1798, in get_pay_type    data = json.loads(public.readFile("data/pay_type.json"))  File "/www/server/panel/pyenv/lib/python3.7/json/__init__.py", line 341, in loads    raise TypeError(f'the JSON object must be str, bytes or bytearray, 'TypeError: the JSON object must be str, bytes or bytearray, not bool

使用道具 举报 只看该作者 回复
发表于 2023-7-17 09:04:34 | 显示全部楼层
您好,这个可能是面板环境错误导致的,您执行下面的命令手动修复一下面板环境,下面的命令不要在面板的终端中执行
备份当前面板环境:
  1. mv /www/server/panel/pyenv /www/server/panel/pyenv.bak
复制代码

执行修复面板环境命令:
  1. 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

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