【已解决】终端本地服务器进不去
为了能快速了解并处理您的问题,请提供以下基础信息:面板、插件版本:8.0.5
系统版本:
Debian GNU/Linux 11 (bullseye) aarch64(Py3.7.16)
问题描述:
终端本地服务器进不去
相关截图(日志、错误)
出错了,面板运行时发生错误!ModuleNotFoundError: No module named 'pandas'REQUEST_DATE: 2024-01-09 10:16:06VERSION: Debian GNU/Linux 11 (bullseye) aarch64(Py3.7.16)- 8.0.5 REMOTE_ADDR: 192.168.5.96 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/120.0.0.0 Safari/537.36 Edg/120.0.0.0Traceback (most recent call last):File "class/ssh_terminal.py", line 30, in import pandas as pdModuleNotFoundError: No module named 'pandas'During 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 2529, in wsgi_app response = self.full_dispatch_request()File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/app.py", line 1825, in full_dispatch_request rv = self.handle_user_exception(e)File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/app.py", line 1823, in full_dispatch_request rv = self.dispatch_request()File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/app.py", line 1799, in dispatch_request return self.ensure_sync(self.view_functions)(**view_args)File "/www/server/panel/BTPanel/__init__.py", line 455, in xterm import ssh_terminalFile "class/ssh_terminal.py", line 33, in import pandas as pdModuleNotFoundError: No module named 'pandas'
[*]很抱歉,面板运行时意外发生错误,请尝试按以下顺序尝试解除此错误:
[*]修复方案一:在[首页]右上角点击修复面板,并退出面板重新登录。尝试点击修复
[*]修复方案二:如上述尝试未能解除此错误,请截图此窗口到宝塔论坛发贴寻求帮助, 论坛地址:https://www.bt.cn/bbs
您好,您使用SSH工具连接服务器命令行,执行下面命令安装下pandas模块然后重新访问看看是否正常呢:
btpip install pandas 谢花郎 发表于 2024-1-9 11:08
您好,您使用SSH工具连接服务器命令行,执行下面命令安装下pandas模块然后重新访问看看是否正常呢:
...
如何查看服务器的账号密码,我不知道我们账号密码,之前都是用宝塔链接的 宝塔用户_brfvss 发表于 2024-1-9 11:16
如何查看服务器的账号密码,我不知道我们账号密码,之前都是用宝塔链接的 ...
服务器的默认基本是root账户,如果忘记登录账户密码,可以在服务器运营商那边进行重置。
谢花郎 发表于 2024-1-9 11:18
服务器的默认基本是root账户,如果忘记登录账户密码,可以在服务器运营商那边进行重置。
...
root@armbian:~# btpip install pandas
Collecting pandas
Using cached pandas-1.3.5-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (10.7 MB)
ERROR: Exception:
Traceback (most recent call last):
File "/www/server/panel/pyenv/lib/python3.7/site-packages/pip/_internal/cli/base_command.py", line 180, in exc_logging_wrapper
status = run_func(*args)
File "/www/server/panel/pyenv/lib/python3.7/site-packages/pip/_internal/cli/req_command.py", line 245, in wrapper
return func(self, options, args)
File "/www/server/panel/pyenv/lib/python3.7/site-packages/pip/_internal/commands/install.py", line 378, in run
reqs, check_supported_wheels=not options.target_dir
File "/www/server/panel/pyenv/lib/python3.7/site-packages/pip/_internal/resolution/resolvelib/resolver.py", line 96, in resolve
collected.requirements, max_rounds=limit_how_complex_resolution_can_be
File "/www/server/panel/pyenv/lib/python3.7/site-packages/pip/_vendor/resolvelib/resolvers.py", line 546, in resolve
state = resolution.resolve(requirements, max_rounds=max_rounds)
File "/www/server/panel/pyenv/lib/python3.7/site-packages/pip/_vendor/resolvelib/resolvers.py", line 427, in resolve
failure_causes = self._attempt_to_pin_criterion(name)
File "/www/server/panel/pyenv/lib/python3.7/site-packages/pip/_vendor/resolvelib/resolvers.py", line 239, in _attempt_to_pin_criterion
criteria = self._get_updated_criteria(candidate)
File "/www/server/panel/pyenv/lib/python3.7/site-packages/pip/_vendor/resolvelib/resolvers.py", line 230, in _get_updated_criteria
self._add_to_criteria(criteria, requirement, parent=candidate)
File "/www/server/panel/pyenv/lib/python3.7/site-packages/pip/_vendor/resolvelib/resolvers.py", line 173, in _add_to_criteria
if not criterion.candidates:
File "/www/server/panel/pyenv/lib/python3.7/site-packages/pip/_vendor/resolvelib/structs.py", line 156, in __bool__
return bool(self._sequence)
File "/www/server/panel/pyenv/lib/python3.7/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 155, in __bool__
return any(self)
File "/www/server/panel/pyenv/lib/python3.7/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 143, in <genexpr>
return (c for c in iterator if id(c) not in self._incompatible_ids)
File "/www/server/panel/pyenv/lib/python3.7/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 44, in _iter_built
for version, func in infos:
File "/www/server/panel/pyenv/lib/python3.7/site-packages/pip/_internal/resolution/resolvelib/factory.py", line 287, in iter_index_candidate_infos
hashes=hashes,
File "/www/server/panel/pyenv/lib/python3.7/site-packages/pip/_internal/index/package_finder.py", line 890, in find_best_candidate
candidates = self.find_all_candidates(project_name)
File "/www/server/panel/pyenv/lib/python3.7/site-packages/pip/_internal/index/package_finder.py", line 831, in find_all_candidates
page_candidates = list(page_candidates_it)
File "/www/server/panel/pyenv/lib/python3.7/site-packages/pip/_internal/index/sources.py", line 134, in page_candidates
yield from self._candidates_from_page(self._link)
File "/www/server/panel/pyenv/lib/python3.7/site-packages/pip/_internal/index/package_finder.py", line 795, in process_project_url
page_links = list(parse_links(index_response))
File "/www/server/panel/pyenv/lib/python3.7/site-packages/pip/_internal/index/collector.py", line 223, in wrapper_wrapper
return list(fn(page))
File "/www/server/panel/pyenv/lib/python3.7/site-packages/pip/_internal/index/collector.py", line 236, in parse_links
data = json.loads(page.content)
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 None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
WARNING: There was an error checking the latest version of pip.
谢花郎 发表于 2024-1-9 11:08
您好,您使用SSH工具连接服务器命令行,执行下面命令安装下pandas模块然后重新访问看看是否正常呢:
...
这个版本需要多少版本的pip 宝塔用户_brfvss 发表于 2024-1-9 13:25
这个版本需要多少版本的pip
用下面命令修复试试:
mv /www/server/panel/pyenv /www/backup/pyenv_bak
curl https://download.bt.cn/install/update_panel.sh|bash 谢花郎 发表于 2024-1-9 14:03
用下面命令修复试试:
运行完后宝塔进不了了 谢花郎 发表于 2024-1-9 14:03
用下面命令修复试试:
root@armbian:~# /etc/init.d/bt default
==================================================================
BT-Panel default info!
==================================================================
外网面板地址: http://1.196.102.44:9999/mainpanel
内网面板地址: http://192.168.5.11:9999/mainpanel
Traceback (most recent call last):
File "/www/server/panel/tools.py", line 20, in <module>
import public, time, json
File "/www/server/panel/class/public.py", line 13, in <module>
import json,os,sys,time,re,socket,importlib,binascii,base64,string,psutil
ModuleNotFoundError: No module named 'psutil'
password: ********
Warning:
If you cannot access the panel,
release the following port (8888|888|80|443|20|21) in the security group
注意:初始密码仅在首次登录面板前能正确获取,其它时间请通过 bt 5 命令修改密码
宝塔用户_brfvss 发表于 2024-1-9 15:54
root@armbian:~# /etc/init.d/bt default
=========================================================== ...
论坛私信我提供下SSH登录信息,然后帖子内回复我下。 谢花郎 发表于 2024-1-9 16:00
论坛私信我提供下SSH登录信息,然后帖子内回复我下。
我的是内网ssh 谢花郎 发表于 2024-1-9 16:00
论坛私信我提供下SSH登录信息,然后帖子内回复我下。
私信了. 谢花郎 发表于 2024-1-9 16:00
论坛私信我提供下SSH登录信息,然后帖子内回复我下。
咋办 我都进不下去了 谢花郎 发表于 2024-1-9 16:00
论坛私信我提供下SSH登录信息,然后帖子内回复我下。
微信客服帮我解决好了
先执行这个
mv /www/server/panel/pyenv /root/
在执行这个
curl -sSO http://download.bt.cn/install/install_panel.sh && bash install_panel.sh
这个大重置好用
页:
[1]