本帖最后由 宝塔用户_npajsg 于 2023-4-21 10:58 编辑
现在的问题是,默认状态下下载 fecmall 2.5.1会出现以下信息(以前偶尔也有,但是重试大概率能解决)
出错了,面板运行时发生错误!
TypeError: the JSON object must be str, bytes or bytearray, not bool
REQUEST_DATE: 2023-04-20 13:42:50
PAN_VERSION: 7.9.9
OS_VERSION: \S x86_64(Py3.7.8)
REMOTE_ADDR: 106.72.2.224
REQUEST_URI: POST /auth?action=create_plugin_other_order
REQUEST_FORM: {'pid': '600801452', 'cycle': '999', 'type': '0'}
USER_AGENT: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36
Traceback (most recent call last):
File "/www/server/panel/BTPanel/__init__.py", line 1995, in publicObject
res = run_obj.run(toObject, defs, get)
File "/www/server/panel/BTPanel/__init__.py", line 1942, in run
result = getattr(toObject, get.action)(get)
File "class/panelAuth.py", line 86, in create_plugin_other_order
return json.loads(public.httpPost(p_url,pdata))
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
如果改变节点
curl -k -sSO https://120.78.156.100/new/auto_node.sh && bash auto_node.sh
---》可以顺利下载插件,但在一件部署的时候会少下载很多文件
导致设置跳转index.php时因读取不到而跳404
已解决实例搭建完成切换root用户之后立刻切换节点
云服务器境外地区的用户,可以尝试执行下面的命令,指定这个节点解决此问题
sed -i "/bt.cn/d" /etc/hosts
echo "128.1.164.196 www.bt.cn download.bt.cn api.bt.cn dg1.bt.cn dg2.bt.cn" >> /etc/hosts
之后部署就一路顺利了
|