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

【已完成】面板直接打不开了

发表在 Linux面板2024-1-6 15:30 [复制链接] 22 2541

发表于 2024-1-6 16:42:29 | 显示全部楼层

重启面板和重启服务器效果一样,都是重启后可以打开页面,过一两分钟就又打不开了;
而且打开页面后,不显示数据;
应该是哪个连接不畅通导致的,可以反应以下检查下接口或者连接什么的接通率怎么样。。。
使用道具 举报 回复 支持 反对
发表于 2024-1-6 16:51:35 | 显示全部楼层
宝塔用户_zgkbap 发表于 2024-1-6 16:42
重启面板和重启服务器效果一样,都是重启后可以打开页面,过一两分钟就又打不开了;
而且打开页面后,不 ...

bt 22 日志截图看下
使用道具 举报 回复 支持 反对
发表于 2024-1-6 16:57:34 | 显示全部楼层
阿珂 发表于 2024-1-6 16:51
bt 22 日志截图看下

运行日志结果如下:
File "/www/server/panel/pyenv/lib/python3.7/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/www/server/panel/pyenv/lib/python3.7/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/www/server/panel/pyenv/lib/python3.7/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/www/server/panel/pyenv/lib/python3.7/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/www/server/panel/pyenv/lib/python3.7/site-packages/urllib3/connection.py", line 177, in _new_conn
    % (self.host, self.timeout),
urllib3.exceptions.ConnectTimeoutError: (<urllib3.connection.HTTPSConnection object at 0x7ff0e8ae1b50>, 'Connection to www.bt.cn timed out. (connect timeout=6)')

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/www/server/panel/pyenv/lib/python3.7/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/www/server/panel/pyenv/lib/python3.7/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/www/server/panel/pyenv/lib/python3.7/site-packages/urllib3/util/retry.py", line 573, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.bt.cn', port=443): Max retries exceeded with url: /api/panel/updateLinux (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7ff0e8ae1b50>, 'Connection to www.bt.cn timed out. (connect timeout=6)'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/www/server/panel/class/http_requests.py", line 104, in post
    result = requests.post(url,data,timeout=timeout,headers=headers,verify=verify)
  File "/www/server/panel/pyenv/lib/python3.7/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/www/server/panel/pyenv/lib/python3.7/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/www/server/panel/pyenv/lib/python3.7/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/www/server/panel/pyenv/lib/python3.7/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/www/server/panel/pyenv/lib/python3.7/site-packages/requests/adapters.py", line 504, in send
    raise ConnectTimeout(e, request=request)
requests.exceptions.ConnectTimeout: HTTPSConnectionPool(host='www.bt.cn', port=443): Max retries exceeded with url: /api/panel/updateLinux (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7ff0e8ae1b50>, 'Connection to www.bt.cn timed out. (connect timeout=6)'))

\n
[2024-01-06 16:53:15][DEBUG] - Traceback (most recent call last):
  File "/www/server/panel/pyenv/lib/python3.7/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/www/server/panel/pyenv/lib/python3.7/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/www/server/panel/pyenv/lib/python3.7/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
socket.timeout: timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/www/server/panel/pyenv/lib/python3.7/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/www/server/panel/pyenv/lib/python3.7/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/www/server/panel/pyenv/lib/python3.7/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/www/server/panel/pyenv/lib/python3.7/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/www/server/panel/pyenv/lib/python3.7/site-packages/urllib3/connection.py", line 177, in _new_conn
    % (self.host, self.timeout),
urllib3.exceptions.ConnectTimeoutError: (<urllib3.connection.HTTPSConnection object at 0x7fbaaf826690>, 'Connection to www.bt.cn timed out. (connect timeout=6)')

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/www/server/panel/pyenv/lib/python3.7/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/www/server/panel/pyenv/lib/python3.7/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/www/server/panel/pyenv/lib/python3.7/site-packages/urllib3/util/retry.py", line 573, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.bt.cn', port=443): Max retries exceeded with url: /api/v2/user/wx_web/send_template_msg_v2 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fbaaf826690>, 'Connection to www.bt.cn timed out. (connect timeout=6)'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/www/server/panel/class/http_requests.py", line 104, in post
    result = requests.post(url,data,timeout=timeout,headers=headers,verify=verify)
  File "/www/server/panel/pyenv/lib/python3.7/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/www/server/panel/pyenv/lib/python3.7/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/www/server/panel/pyenv/lib/python3.7/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/www/server/panel/pyenv/lib/python3.7/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/www/server/panel/pyenv/lib/python3.7/site-packages/requests/adapters.py", line 504, in send
    raise ConnectTimeout(e, request=request)
requests.exceptions.ConnectTimeout: HTTPSConnectionPool(host='www.bt.cn', port=443): Max retries exceeded with url: /api/v2/user/wx_web/send_template_msg_v2 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fbaaf826690>, 'Connection to www.bt.cn timed out. (connect timeout=6)'))

[2024-01-06 16:53:21][DEBUG] - Traceback (most recent call last):
  File "/www/server/panel/class/msg/wx_account_msg.py", line 326, in send_msg_v2
    x = json.loads(resp)
  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
使用道具 举报 回复 支持 反对
发表于 2024-1-6 17:35:13 | 显示全部楼层
ping www.bt.cn -w 3
看下连接的是哪个节点
使用道具 举报 回复 支持 反对
发表于 2024-1-6 17:48:23 | 显示全部楼层
阿珂 发表于 2024-1-6 17:35
ping www.bt.cn -w 3
看下连接的是哪个节点

结果如下:
PING www.bt.cn (42.157.129.124) 56(84) bytes of data.

--- www.bt.cn ping statistics ---
3 packets transmitted, 0 received, 100% packet loss, time 2000ms

(因为我的是香港服务器,所以我之前在面板节点那里选择了香港节点,一直使用的都很好,就是进行下午出现打不开页面的现象,而且是登录界面都打不开)
使用道具 举报 回复 支持 反对
发表于 2024-1-6 19:22:33 | 显示全部楼层
本帖最后由 宝塔用户_ygwqxu 于 2024-1-6 19:25 编辑

总结一下这次情况,我的也是像楼主这样8.0.4,面板登录不显示,
首先执行bt 1 ,这操作后,页面显示就可以登录到控制面板了,
但是负载状态,cup使用率等数据不显示。。。
然后再执行bt 16,提心吊胆很紧张的升级到8.0.5后。。。。
我的宝塔可以正常使用了了。。。  
使用道具 举报 回复 支持 反对
发表于 2024-1-6 19:50:20 | 显示全部楼层
宝塔用户_ygwqxu 发表于 2024-1-6 19:22
总结一下这次情况,我的也是像楼主这样8.0.4,面板登录不显示,
首先执行bt 1 ,这操作后,页面显示就可以 ...

看了你的贴子,我在考虑要不要跟你一样,也bt 16以下升级了试试看,我的服务器没什么大的项目,全是一些简单站点,只要能够保障网站正常运营就好了
使用道具 举报 回复 支持 反对
发表于 2024-1-9 15:01:13 | 显示全部楼层
清理一下hosts:
  1. sed -i "/bt.cn/d" /etc/hosts
复制代码

不行的话,bt 16 修复一下面板
使用道具 举报 回复 支持 反对
12
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

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

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

紧急运维服务

响应时间:3分钟

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

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

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

立即付费处理

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

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