【待反馈】升级最新版后报错
为了能快速了解并处理您的问题,请提供以下基础信息:面板、插件版本:REQUEST_DATE: 2023-11-21 17:29:41 PAN_VERSION: 8.0.4OS_VERSION: CentOS7.6.1810 x86_64(Py3.7.9) REMOTE_ADDR: ========== REQUEST_URI: POST /project/java/get_system_info?系统版本:
问题描述:
点击网站 -java项目 会报错, 再次点击后可以刷新出列表
相关截图(日志、错误):
Traceback (most recent call last):File "/www/server/panel/class/projectModel/javaModel.py", line 1364, in _get_jdk_status versions = json.loads(public.readFile(tmp_file))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 boolDuring handling of the above exception, another exception occurred:Traceback (most recent call last):File "/www/server/panel/BTPanel/__init__.py", line 2102, in publicObject res = run_obj.run(toObject, defs, get)File "/www/server/panel/BTPanel/__init__.py", line 2049, in run result = getattr(toObject, get.action)(get)File "class/panelController.py", line 81, in model result = PluginLoader.module_run(module_name,def_name,pdata)File "/www/server/panel/class/projectModel/javaModel.py", line 1432, in get_system_info reuslt['jdk_info'] = self.get_local_jdk_version(get)File "/www/server/panel/class/projectModel/javaModel.py", line 1406, in get_local_jdk_version jdks = self._get_jdk_status()['versions']File "/www/server/panel/class/projectModel/javaModel.py", line 1379, in _get_jdk_status versions = json.loads(public.readFile(tmp_file))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
先修复一下面板看看
到服务器SSH终端中执行下面命令(非面板终端)修复面板
删除之前无法使用的面板环境
mv/www/server/panel/pyenv /www/backup/pyenv_backup
重新获取新的面板环境和更新包
curl http://download.bt.cn/install/update_panel.sh|bash 阿珂 发表于 2023-11-21 18:01
先修复一下面板看看
到服务器SSH终端中执行下面命令(非面板终端)修复面板
删除之前无法使用的面板环境
使用curl http://download.bt.cn/install/update_panel.sh|bash报错
Transaction check error:
file /usr/include/openssl/asn1.h from install of openssl-devel-1:1.0.2k-26.el7_9.x86_64 conflicts with file from package bt-openssl102-1.0.2u-1.el7.x86_64
file /usr/include/openssl/bn.h from install of openssl-devel-1:1.0.2k-26.el7_9.x86_64 conflicts with file from package bt-openssl102-1.0.2u-1.el7.x86_64
file /usr/include/openssl/conf.h from install of openssl-devel-1:1.0.2k-26.el7_9.x86_64 conflicts with file from package bt-openssl102-1.0.2u-1.el7.x86_64
file /usr/include/openssl/crypto.h from install of openssl-devel-1:1.0.2k-26.el7_9.x86_64 conflicts with file from package bt-openssl102-1.0.2u-1.el7.x86_64
file /usr/include/openssl/des.h from install of openssl-devel-1:1.0.2k-26.el7_9.x86_64 conflicts with file from package bt-openssl102-1.0.2u-1.el7.x86_64
file /usr/include/openssl/dh.h from install of openssl-devel-1:1.0.2k-26.el7_9.x86_64 conflicts with file from package bt-openssl102-1.0.2u-1.el7.x86_64
file /usr/include/openssl/dsa.h from install of openssl-devel-1:1.0.2k-26.el7_9.x86_64 conflicts with file from package bt-openssl102-1.0.2u-1.el7.x86_64
file /usr/include/openssl/dtls1.h from install of openssl-devel-1:1.0.2k-26.el7_9.x86_64 conflicts with file from package bt-openssl102-1.0.2u-1.el7.x86_64
file /usr/include/openssl/ec.h from install of openssl-devel-1:1.0.2k-26.el7_9.x86_64 conflicts with file from package bt-openssl102-1.0.2u-1.el7.x86_64
file /usr/include/openssl/err.h from install of openssl-devel-1:1.0.2k-26.el7_9.x86_64 conflicts with file from package bt-openssl102-1.0.2u-1.el7.x86_64
file /usr/include/openssl/evp.h from install of openssl-devel-1:1.0.2k-26.el7_9.x86_64 conflicts with file from package bt-openssl102-1.0.2u-1.el7.x86_64
file /usr/include/openssl/modes.h from install of openssl-devel-1:1.0.2k-26.el7_9.x86_64 conflicts with file from package bt-openssl102-1.0.2u-1.el7.x86_64
file /usr/include/openssl/opensslconf.h from install of openssl-devel-1:1.0.2k-26.el7_9.x86_64 conflicts with file from package bt-openssl102-1.0.2u-1.el7.x86_64
file /usr/include/openssl/opensslv.h from install of openssl-devel-1:1.0.2k-26.el7_9.x86_64 conflicts with file from package bt-openssl102-1.0.2u-1.el7.x86_64
file /usr/include/openssl/pem.h from install of openssl-devel-1:1.0.2k-26.el7_9.x86_64 conflicts with file from package bt-openssl102-1.0.2u-1.el7.x86_64
file /usr/include/openssl/rand.h from install of openssl-devel-1:1.0.2k-26.el7_9.x86_64 conflicts with file from package bt-openssl102-1.0.2u-1.el7.x86_64
file /usr/include/openssl/rsa.h from install of openssl-devel-1:1.0.2k-26.el7_9.x86_64 conflicts with file from package bt-openssl102-1.0.2u-1.el7.x86_64
file /usr/include/openssl/sha.h from install of openssl-devel-1:1.0.2k-26.el7_9.x86_64 conflicts with file from package bt-openssl102-1.0.2u-1.el7.x86_64
file /usr/include/openssl/ssl.h from install of openssl-devel-1:1.0.2k-26.el7_9.x86_64 conflicts with file from package bt-openssl102-1.0.2u-1.el7.x86_64
file /usr/include/openssl/symhacks.h from install of openssl-devel-1:1.0.2k-26.el7_9.x86_64 conflicts with file from package bt-openssl102-1.0.2u-1.el7.x86_64
file /usr/include/openssl/tls1.h from install of openssl-devel-1:1.0.2k-26.el7_9.x86_64 conflicts with file from package bt-openssl102-1.0.2u-1.el7.x86_64
file /usr/include/openssl/x509v3.h from install of openssl-devel-1:1.0.2k-26.el7_9.x86_64 conflicts with file from package bt-openssl102-1.0.2u-1.el7.x86_64
Error Summary
-------------
OS: el - 7
bash: line 133: wget: command not found
du: cannot access ‘/www/pyenv.tar.gz’: No such file or directory
bash: line 135: [: -lt: unary operator expected
Install python env...
chmod: cannot access ‘/www/server/panel/pyenv/bin’: No such file or directory
=================================================
ERROR: Install python env fielded. 而且现在使用bt 命令 变成这样了
# bt
File "/www/server/panel/tools.py", line 53
print("检测到 [{}] 表丢失,正在修复...".format(info["tb_name"]), end=" ")
^
SyntaxError: invalid syntax 现在面板也打不开了,很恐怖,
我尝试将你给我第一条命令重新cp 回去, 目前面板能打开,我执行了一下bt-16
请输入命令编号:16
===============================================
正在执行(16)...
===============================================
% Total % Received % XferdAverage Speed Time Time TimeCurrent
DloadUpload Total Spent LeftSpeed
10037401003740 0 015563 0 --:--:-- --:--:-- --:--:-- 15518
bash: line 24: wget: command not found
bash: line 31: /www/server/panel/install/public.sh: No such file or directory
bash: line 48: wget: command not found
bash: line 65: wget: command not found
du: cannot access ‘/tmp/panel.zip’: No such file or directory
bash: line 67: [: -lt: unary operator expected
unzip:cannot find or open /tmp/panel.zip, /tmp/panel.zip.zip or /tmp/panel.zip.ZIP.
WARNING: You are using pip version 20.3.3; however, version 23.3.1 is available.
You should consider upgrading via the '/www/server/panel/pyenv/bin/python3.7 -m pip install --upgrade pip' command.
Looking in indexes: https://pypi.doubanio.com/simple
Requirement already satisfied: pymysql in ./pyenv/lib/python3.7/site-packages (0.9.3)
WARNING: You are using pip version 20.3.3; however, version 23.3.1 is available.
You should consider upgrading via the '/www/server/panel/pyenv/bin/python3.7 -m pip install --upgrade pip' command.
=====================================
kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l
Starting Bt-Panel.... done
Starting Bt-Tasks... done
已成功升级到
但问题依然存在 目前的问题还是,点击网站,java项目会报错, 再次点击标签后可以刷新出列表 还在等待回复中 还在等待回复 还在等待回复 还在等待回复
还在等待回复 阿珂 发表于 2023-11-21 18:01
先修复一下面板看看
到服务器SSH终端中执行下面命令(非面板终端)修复面板
删除之前无法使用的面板环境
还在等待帮助中 请求网址:
http://xxxxx:8888/project/java/get_system_info
请求方法:
POST
状态代码:
500 INTERNAL SERVER ERROR
远程地址:
127.0.0.1:7890
引荐来源网址政策:
strict-origin-when-cross-origin
报错应该是这个接口的问题,希望官方老师可以给我一些思路 报错详情截图出来看下
页:
[1]
2