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

【待反馈】宝塔无法更新,无法添加 python 项目等等

发表在 Linux面板2024-8-25 10:25 [复制链接] 3 488

为了能快速了解并处理您的问题,请提供以下基础信息:
面板、插件版本:免费版 [url=]8.0.1[/url]

系统版本:CentOS 7.9.2009 x86_64(Py3.7.9)

问题描述:无法更新,无法添加 python 项目等等

相关截图(日志、错误):[2024-08-25 10:22:16][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)  File "/www/server/panel/pyenv/lib/python3.7/site-packages/gevent/_socketcommon.py", line 613, in connect    self._wait(self._write_event)  File "src/gevent/_hub_primitives.py", line 317, in gevent._gevent_c_hub_primitives.wait_on_socket  File "src/gevent/_hub_primitives.py", line 322, in gevent._gevent_c_hub_primitives.wait_on_socket  File "src/gevent/_hub_primitives.py", line 313, in gevent._gevent_c_hub_primitives._primitive_wait  File "src/gevent/_hub_primitives.py", line 314, in gevent._gevent_c_hub_primitives._primitive_wait  File "src/gevent/_hub_primitives.py", line 46, in gevent._gevent_c_hub_primitives.WaitOperationsGreenlet.wait  File "src/gevent/_hub_primitives.py", line 46, in gevent._gevent_c_hub_primitives.WaitOperationsGreenlet.wait  File "src/gevent/_hub_primitives.py", line 55, in gevent._gevent_c_hub_primitives.WaitOperationsGreenlet.wait  File "src/gevent/_waiter.py", line 154, in gevent._gevent_c_waiter.Waiter.get  File "src/gevent/_greenlet_primitives.py", line 61, in gevent._gevent_c_greenlet_primitives.SwitchOutGreenletWithLoop.switch  File "src/gevent/_greenlet_primitives.py", line 61, in gevent._gevent_c_greenlet_primitives.SwitchOutGreenletWithLoop.switch  File "src/gevent/_greenlet_primitives.py", line 65, in gevent._gevent_c_greenlet_primitives.SwitchOutGreenletWithLoop.switch  File "src/gevent/_gevent_c_greenlet_primitives.pxd", line 35, in gevent._gevent_c_greenlet_primitives._greenlet_switchsocket.timeout: timed outDuring 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 0x7f6a78c36990>, '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 0x7f6a78c36990>, '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 "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 0x7f6a78c36990>, 'Connection to www.bt.cn timed out. (connect timeout=6)'))

使用道具 举报 只看该作者 回复
发表于 2024-8-26 11:32:23 | 显示全部楼层
您好,您这个情况应该改是连接超时导致了
您这边ping www.bt.cn看是否能通呢,
其次,更新前是否有做快照呢,机器有没有做hosts解析到官网的操作呢,有的话取消掉
使用道具 举报 回复 支持 反对
发表于 2024-8-27 21:56:03 | 显示全部楼层
运维技术阿闯 发表于 2024-8-26 11:32
您好,您这个情况应该改是连接超时导致了
您这边ping www.bt.cn看是否能通呢,
其次,更新前是否有做快照呢 ...

屏幕截图 2024-08-27 215503.png


不通
使用道具 举报 回复 支持 反对
发表于 2024-8-28 09:48:16 | 显示全部楼层

您好,您看我回复您的话,看一下您hosts文件中有没有解析到官网的操作,以及是否可以ping www.baidu.com

其次,机器是否有公网ip
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

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

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

紧急运维服务

响应时间:3分钟

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

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

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

立即付费处理

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

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