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

【已完成】下载PHP时面板运行时发生错误! ValueError: invalid...

发表在 Linux面板2023-7-29 23:37 [复制链接] 3 848

为了能快速了解并处理您的问题,请提供以下基础信息:
面板、插件版本:8.0.1
系统版本:ubuntu
问题描网站一键部署下载PHP时弹出

相关截图(日志、错误):
出错了,面板运行时发生错误!ValueError: invalid literal for int() with base 10: 'NaN'REQUEST_DATE: 2023-07-29 15:28:43 PAN_VERSION: 8.0.1  OS_VERSION: Ubuntu 22.04.2 LTS x86_64(Py3.7.8) REMOTE_ADDR: 58.255.160.153 REQUEST_URI: POST /plugin?action=install_pluginREQUEST_FORM: {'sName': 'php-5.6', 'version': '5.6', 'min_version': '40', 'type': 'NaN'}  USER_AGENT: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36 Edg/115.0.1901.183Traceback (most recent call last):  File "/www/server/panel/BTPanel/__init__.py", line 2015, in publicObject    res = run_obj.run(toObject, defs, get)  File "/www/server/panel/BTPanel/__init__.py", line 1962, in run    result = getattr(toObject, get.action)(get)  File "class/panelPlugin.py", line 796, in install_plugin    if int(get.type) > 4: get.type = '0'ValueError: invalid literal for int() with base 10: 'NaN'自动修复后未解决,以下是错误日志File "/www/server/panel/pyenv/lib/python3.7/site-packages/urllib3/connectionpool.py", line 337, in _raise_timeout    self, url, "Read timed out. (read timeout=%s)" % timeout_valueurllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='www.bt.cn', port=443): Read timed out. (read timeout=60)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 115, 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 59, in request    return session.request(method=method, url=url, **kwargs)  File "/www/server/panel/pyenv/lib/python3.7/site-packages/requests/sessions.py", line 587, in request    resp = self.send(prep, **send_kwargs)  File "/www/server/panel/pyenv/lib/python3.7/site-packages/requests/sessions.py", line 701, in send    r = adapter.send(request, **kwargs)  File "/www/server/panel/pyenv/lib/python3.7/site-packages/requests/adapters.py", line 578, in send    raise ReadTimeout(e, request=request)requests.exceptions.ReadTimeout: HTTPSConnectionPool(host='www.bt.cn', port=443): Read timed out. (read timeout=60)[2023-07-29 14:59:48][DEBUG] - 更新成功.[2023-07-29 14:59:48][DEBUG] - 缓存更新失败: 软件列表格式不正确,已尝试修复,请重试![2023-07-29 14:59:48][DEBUG] - 开始更新消息json...[2023-07-29 14:59:49][DEBUG] - 更新消息json成功[2023-07-29 14:59:53][DEBUG] - Traceback (most recent call last):  File "class/public.py", line 6279, in rsa_decrypt    decrypted_data = cipher_private.decrypt(res, None)  File "/www/server/panel/pyenv/lib/python3.7/site-packages/Crypto/Cipher/PKCS1_v1_5.py", line 174, in decrypt    raise ValueError("Ciphertext with incorrect length (not %d bytes)" % k)ValueError: Ciphertext with incorrect length (not 128 bytes)[2023-07-29 15:01:00][DEBUG] - 更新成功.[2023-07-29 15:02:31][DEBUG] - Traceback (most recent call last):  File "/www/server/panel/pyenv/lib/python3.7/site-packages/urllib3/connection.py", line 175, 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 358, in connect    conn = self._new_conn()  File "/www/server/panel/pyenv/lib/python3.7/site-packages/urllib3/connection.py", line 182, in _new_conn    % (self.host, self.timeout),urllib3.exceptions.ConnectTimeoutError: (<urllib3.connection.HTTPSConnection object at 0x7fa9ad0deb90>, '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 499, 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 574, 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/get_plugin_remarks (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fa9ad0deb90>, '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 115, 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 59, in request    return session.request(method=method, url=url, **kwargs)  File "/www/server/panel/pyenv/lib/python3.7/site-packages/requests/sessions.py", line 587, in request    resp = self.send(prep, **send_kwargs)  File "/www/server/panel/pyenv/lib/python3.7/site-packages/requests/sessions.py", line 701, in send    r = adapter.send(request, **kwargs)  File "/www/server/panel/pyenv/lib/python3.7/site-packages/requests/adapters.py", line 553, in send    raise ConnectTimeout(e, request=request)requests.exceptions.ConnectTimeout: HTTPSConnectionPool(host='www.bt.cn', port=443): Max retries exceeded with url: /api/panel/get_plugin_remarks (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fa9ad0deb90>, 'Connection to www.bt.cn timed out. (connect timeout=6)'))[2023-07-29 15:03:09][DEBUG] - 更新成功.



使用道具 举报 只看该作者 回复
发表于 2023-7-30 11:01:29 | 显示全部楼层
您好!这个报错信息是因为您的服务器无法连接我司节点引起的,您可以在命令行执行以下命令,修复下连接我司节点
  1. wget https://download.bt.cn/tools/auto_node.sh&& bash auto_node.sh
复制代码


命令执行完成后再执行下前面的操作,如果还是提示连接不上节点,
还麻烦您在命令行逐行执行以下命令, 然后将命令执行结果截图发一下。
  1. ping -c 5 www.bt.cn
  2. curl https://api.bt.cn
  3. curl www.baidu.com
  4. curl -s -m 5 http://download.bt.cn/tools/btcheck.sh|bash
  5. history | grep sh
复制代码

平-C 5 www.bt.cn 卷曲 https://api.bt.cn 卷曲 www.baidu.com curl -s -m 5 http://download.bt.cn/tools/btcheck.sh|bash 历史 |格雷普·什 平-C: command not found 卷曲: command not found 卷...   发表于 2023-7-30 13:23
使用道具 举报 回复 支持 反对
发表于 2023-7-30 14:07:13 | 显示全部楼层
搞定了wget [url]https://download.bt.cn/tools/auto_node.sh这个之后有行了
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

企业版年付运维跟进群

普通问题处理

论坛响应时间:72小时

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

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

紧急问题处理

论坛响应时间:10分钟

问题处理方式:1对1处理(优先)

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

工作时间:晚班:18:00 - 24:00

立即付费处理

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

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