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

【待反馈】升级最新版后报错

发表在 Linux面板2023-11-21 17:31 [复制链接] 22 5250

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

REQUEST_DATE: 2023-11-21 17:29:41 PAN_VERSION: 8.0.4  OS_VERSION: CentOS  7.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))[arce]  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))[arce]  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-11-21 18:01:53 | 显示全部楼层
先修复一下面板看看
到服务器SSH终端中执行下面命令(非面板终端)修复面板
删除之前无法使用的面板环境
  1. mv  /www/server/panel/pyenv /www/backup/pyenv_backup
复制代码

重新获取新的面板环境和更新包
  1. curl http://download.bt.cn/install/update_panel.sh|bash
复制代码
使用道具 举报 回复 支持 反对
发表于 2023-11-23 13:56:45 | 显示全部楼层
阿珂 发表于 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.
使用道具 举报 回复 支持 反对
发表于 2023-11-23 14:03:38 | 显示全部楼层
而且现在使用bt 命令 变成这样了

[root@localhost ~]# bt
  File "/www/server/panel/tools.py", line 53
    print("检测到 [{}] 表丢失,正在修复...".format(info["tb_name"]), end="   ")
                                                                                   ^
SyntaxError: invalid syntax
使用道具 举报 回复 支持 反对
发表于 2023-11-23 14:29:10 | 显示全部楼层
现在面板也打不开了,很恐怖,
我尝试将你给我第一条命令重新cp 回去, 目前面板能打开,我执行了一下bt-16

请输入命令编号:16
===============================================
正在执行(16)...
===============================================
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  3740  100  3740    0     0  15563      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 [sigspec]
Starting Bt-Panel....   done
Starting Bt-Tasks...    done
已成功升级到[8.0.4]

但问题依然存在
使用道具 举报 回复 支持 反对
发表于 2023-11-23 14:31:17 | 显示全部楼层
目前的问题还是,点击网站  ,java项目会报错, 再次点击标签后可以刷新出列表
使用道具 举报 回复 支持 反对
发表于 2023-11-24 08:41:54 | 显示全部楼层
还在等待回复中
使用道具 举报 回复 支持 反对
发表于 2023-11-24 08:42:34 | 显示全部楼层
还在等待回复
使用道具 举报 回复 支持 反对
发表于 2023-11-24 11:00:47 | 显示全部楼层
还在等待回复
使用道具 举报 回复 支持 反对
发表于 2023-11-24 13:47:39 | 显示全部楼层
还在等待回复
使用道具 举报 回复 支持 反对
发表于 2023-11-24 16:35:03 | 显示全部楼层
还在等待回复
使用道具 举报 回复 支持 反对
发表于 2023-11-27 15:53:21 | 显示全部楼层
阿珂 发表于 2023-11-21 18:01
先修复一下面板看看
到服务器SSH终端中执行下面命令(非面板终端)修复面板
删除之前无法使用的面板环境

还在等待帮助中
使用道具 举报 回复 支持 反对
发表于 2023-11-27 16:08:08 | 显示全部楼层
请求网址:
http://xxxxx:8888/project/java/get_system_info
请求方法:
POST
状态代码:
500 INTERNAL SERVER ERROR
远程地址:
127.0.0.1:7890
引荐来源网址政策:
strict-origin-when-cross-origin

使用道具 举报 回复 支持 反对
发表于 2023-11-27 16:08:40 | 显示全部楼层
报错应该是这个接口的问题,希望官方老师可以给我一些思路
使用道具 举报 回复 支持 反对
发表于 2023-11-27 18:17:36 | 显示全部楼层
报错详情截图出来看下
使用道具 举报 回复 支持 反对
12下一页
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

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

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

紧急运维服务

响应时间:3分钟

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

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

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

点击联系技术免费分析

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

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