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

【待反馈】终端运行错误

发表在 Linux面板2024-1-15 10:22 [复制链接] 7 826

为了能快速了解并处理您的问题,请提供以下基础信息:
面板、插件版本:8.0.5
系统版本:Alibaba 3
问题描述:终端运行错误
相关截图(日志、错误):

微信图片_20240115102523.png
出错了,面板运行时发生错误!ImportError: libbz2.so.1.0: cannot open shared object file: No such file or directory

REQUEST_DATE: 2024-01-15 10:21:52  VERSION: Alibaba Cloud  3 (Soaring Falcon) x86_64(Py3.7.9)  -   8.0.5 REMOTE_ADDR: 182.137.30.20 REQUEST_URI: POST /xterm?action=get_host_listREQUEST_FORM: {}  USER_AGENT: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.5735.289 Safari/537.36Traceback (most recent call last):  File "/www/server/panel/class/ssh_terminal.py", line 30, in     import pandas as pd  File "/www/server/panel/pyenv/lib/python3.7/site-packages/pandas/__init__.py", line 50, in     from pandas.core.api import (  File "/www/server/panel/pyenv/lib/python3.7/site-packages/pandas/core/api.py", line 48, in     from pandas.core.groupby import (  File "/www/server/panel/pyenv/lib/python3.7/site-packages/pandas/core/groupby/__init__.py", line 1, in     from pandas.core.groupby.generic import (  File "/www/server/panel/pyenv/lib/python3.7/site-packages/pandas/core/groupby/generic.py", line 73, in     from pandas.core.frame import DataFrame  File "/www/server/panel/pyenv/lib/python3.7/site-packages/pandas/core/frame.py", line 129, in     from pandas.core import (  File "/www/server/panel/pyenv/lib/python3.7/site-packages/pandas/core/generic.py", line 122, in     from pandas.core.describe import describe_ndframe  File "/www/server/panel/pyenv/lib/python3.7/site-packages/pandas/core/describe.py", line 39, in     from pandas.io.formats.format import format_percentiles  File "/www/server/panel/pyenv/lib/python3.7/site-packages/pandas/io/formats/format.py", line 99, in     from pandas.io.common import stringify_path  File "/www/server/panel/pyenv/lib/python3.7/site-packages/pandas/io/common.py", line 4, in     import bz2  File "/www/server/panel/pyenv/lib/python3.7/bz2.py", line 19, in     from _bz2 import BZ2Compressor, BZ2DecompressorImportError: libbz2.so.1.0: cannot open shared object file: No such file or directoryDuring handling of the above exception, another exception occurred:Traceback (most recent call last):  File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/app.py", line 2077, in wsgi_app    response = self.full_dispatch_request()  File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/app.py", line 1525, in full_dispatch_request    rv = self.handle_user_exception(e)  File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/app.py", line 1523, in full_dispatch_request    rv = self.dispatch_request()  File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/app.py", line 1509, in dispatch_request    return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)  File "/www/server/panel/BTPanel/__init__.py", line 455, in xterm    import ssh_terminal  File "/www/server/panel/class/ssh_terminal.py", line 33, in     import pandas as pd  File "/www/server/panel/pyenv/lib/python3.7/site-packages/pandas/__init__.py", line 50, in     from pandas.core.api import (  File "/www/server/panel/pyenv/lib/python3.7/site-packages/pandas/core/api.py", line 48, in     from pandas.core.groupby import (  File "/www/server/panel/pyenv/lib/python3.7/site-packages/pandas/core/groupby/__init__.py", line 1, in     from pandas.core.groupby.generic import (  File "/www/server/panel/pyenv/lib/python3.7/site-packages/pandas/core/groupby/generic.py", line 73, in     from pandas.core.frame import DataFrame  File "/www/server/panel/pyenv/lib/python3.7/site-packages/pandas/core/frame.py", line 129, in     from pandas.core import (  File "/www/server/panel/pyenv/lib/python3.7/site-packages/pandas/core/generic.py", line 122, in     from pandas.core.describe import describe_ndframe  File "/www/server/panel/pyenv/lib/python3.7/site-packages/pandas/core/describe.py", line 39, in     from pandas.io.formats.format import format_percentiles  File "/www/server/panel/pyenv/lib/python3.7/site-packages/pandas/io/formats/format.py", line 99, in     from pandas.io.common import stringify_path  File "/www/server/panel/pyenv/lib/python3.7/site-packages/pandas/io/common.py", line 4, in     import bz2  File "/www/server/panel/pyenv/lib/python3.7/bz2.py", line 19, in     from _bz2 import BZ2Compressor, BZ2DecompressorImportError: libbz2.so.1.0: cannot open shared object file: No such file or directory


使用道具 举报 只看该作者 回复
发表于 2024-1-15 14:32:51 | 显示全部楼层
到服务器SSH终端中执行下面命令(非面板终端)修复面板
删除之前无法使用的面板环境
  1. mv  /www/server/panel/pyenv /www/backup/pyenv_backup
复制代码

重新获取新的面板环境和更新包
  1. curl http://download.bt.cn/install/update_panel.sh|bash
复制代码
使用道具 举报 回复 支持 反对
发表于 2024-1-15 17:54:48 | 显示全部楼层
阿珂 发表于 2024-1-15 14:32
到服务器SSH终端中执行下面命令(非面板终端)修复面板
删除之前无法使用的面板环境

会不会影响已有的网站数据呢?
使用道具 举报 回复 支持 反对
发表于 2024-1-15 18:27:38 | 显示全部楼层
不影响,这个操作仅针对面板
使用道具 举报 回复 支持 反对
发表于 2024-2-7 08:46:09 | 显示全部楼层
TypeError: 'str' object does not support item assignment

REQUEST_DATE: 2024-02-07 08:44:54
  VERSION: Alibaba Cloud  3 (Soaring Falcon) x86_64(Py3.7.9)  -   8.0.5
REMOTE_ADDR: 183.220.117.172
REQUEST_URI: POST /safe/firewall/get_rules_list?
REQUEST_FORM: {'data': '{"p":1,"limit":20,"query":""}'}
  USER_AGENT: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.5735.289 Safari/537.36


Traceback (most recent call last):
  File "/www/server/panel/BTPanel/__init__.py", line 2315, in publicObject
    res = run_obj.run(toObject, defs, get)
  File "/www/server/panel/BTPanel/__init__.py", line 2262, in run
    result = getattr(toObject, get.action)(get)
  File "class/panelSafeController.py", line 75, in model
    result = PluginLoader.module_run(module_name,def_name,pdata)
  File "/www/server/panel/class/safeModel/firewallModel.py", line 281, in get_rules_list
    res_data[i]['status'] = -1
TypeError: 'str' object does not support item assignment



现在安全菜单报错了
使用道具 举报 回复 支持 反对
发表于 2024-2-7 08:46:59 | 显示全部楼层
出错了,面板运行时发生错误!
TypeError: 'str' object does not support item assignment


REQUEST_DATE: 2024-02-07 08:44:54
  VERSION: Alibaba Cloud  3 (Soaring Falcon) x86_64(Py3.7.9)  -   8.0.5
REMOTE_ADDR: 183.220.117.172
REQUEST_URI: POST /safe/firewall/get_rules_list?
REQUEST_FORM: {'data': '{"p":1,"limit":20,"query":""}'}
  USER_AGENT: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.5735.289 Safari/537.36


Traceback (most recent call last):
  File "/www/server/panel/BTPanel/__init__.py", line 2315, in publicObject
    res = run_obj.run(toObject, defs, get)
  File "/www/server/panel/BTPanel/__init__.py", line 2262, in run
    result = getattr(toObject, get.action)(get)
  File "class/panelSafeController.py", line 75, in model
    result = PluginLoader.module_run(module_name,def_name,pdata)
  File "/www/server/panel/class/safeModel/firewallModel.py", line 281, in get_rules_list
    res_data[i]['status'] = -1
TypeError: 'str' object does not support item assignment
使用道具 举报 回复 支持 反对
发表于 2024-2-7 08:47:38 | 显示全部楼层
111245651631
使用道具 举报 回复 支持 反对
发表于 2024-2-7 08:48:25 | 显示全部楼层
123131231231231231231231231
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

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

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

紧急运维服务

响应时间:3分钟

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

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

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

立即付费处理

工作时间:09:00至24:00

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