宝塔新春特惠活动,企业版1099元/年,送SSL证书,最高立减2万元!查看活动
当前位置:论坛首页 > Linux面板 > 求助

【待反馈】无法执行面板更新命令,面板密码无论如何更...

发表在 Linux面板4 天前 [复制链接] 7 74

为了能快速了解并处理您的问题,请提供以下基础信息:
面板、插件版本:

当前版本为老版本 7.x
系统版本:

ubuntu 22.04.5 LTS 美国阿里云
问题描述:

无论如何更改密码都提示密码错误(bt 后 5,6 都使用了),无法进入面板;也无法执行 curl https://download.bt.cn/install/update_panel.sh|bash 更新面板
相关截图(日志、错误):
=====================================
开始升级宝塔Linux面板,请稍候...
=====================================
--2025-03-27 14:31:22-- https://download.bt.cn/install/public.sh
Resolving download.bt.cn (download.bt.cn)... 128.1.164.196
Connecting to download.bt.cn (download.bt.cn)|128.1.164.196|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5745 (5.6K) [application/octet-stream]
Saving to: ‘/tmp/bt_tmp_file.temp’
/tmp/bt_tmp_file.temp 100%[====================================================================>] 5.61K --.-KB/s in 0s
2025-03-27 14:31:22 (5.39 GB/s) - ‘/tmp/bt_tmp_file.temp’ saved [5745/5745]
正在选择下载节点...
main: line 57: [: !=: unary operator expected
main: line 59: [: !=: unary operator expected
main: line 61: [: !=: unary operator expected
https://pypi.org/simple
--2025-03-27 14:31:26-- https://dg2.bt.cn/install/update/LinuxPanel-%3Chtml%3E%0D
Resolving dg2.bt.cn (dg2.bt.cn)... 128.1.164.196
Connecting to dg2.bt.cn (dg2.bt.cn)|128.1.164.196|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2025-03-27 14:31:26 ERROR 404: Not Found.
--2025-03-27 14:31:26-- http://%3Chead%3E%3Ctitle%3E404/

使用道具 举报 只看该作者 回复
发表于 4 天前 | 显示全部楼层
做好快照,覆盖安装一下
使用道具 举报 回复 支持 反对
发表于 4 天前 | 显示全部楼层
找到 if s_username != post.username or userInfo['password'] != password: 把用户名验证屏蔽了才进去面板,密码验证对的,用户名称被算法处理过不对了。

进去后软件列表无法获取更新,好像所有云服务接口都不正常,请求超时。
hosts已经加上
128.1.164.196 www.bt.cn api.bt.cn download.bt.cn dg1.bt.cn dg2.bt.cn
使用道具 举报 回复 支持 反对
发表于 4 天前 | 显示全部楼层
curl 域名不通,为什么

curl -v https://api.bt.cn
*   Trying 128.1.164.196:443...
* Connected to api.bt.cn (128.1.164.196) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
*  CAfile: /etc/ssl/certs/ca-certificates.crt
*  CApath: /etc/ssl/certs
* TLSv1.0 (OUT), TLS header, Certificate Status (22):
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* TLSv1.2 (IN), TLS header, Certificate Status (22):
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.2 (IN), TLS header, Certificate Status (22):
* TLSv1.2 (IN), TLS handshake, Certificate (11):
* TLSv1.2 (IN), TLS header, Certificate Status (22):
* TLSv1.2 (IN), TLS handshake, Server key exchange (12):
* TLSv1.2 (IN), TLS header, Certificate Status (22):
* TLSv1.2 (IN), TLS handshake, Server finished (14):
* TLSv1.2 (OUT), TLS header, Certificate Status (22):
* TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
* TLSv1.2 (OUT), TLS header, Finished (20):
* TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.2 (OUT), TLS header, Certificate Status (22):
* TLSv1.2 (OUT), TLS handshake, Finished (20):
* TLSv1.2 (IN), TLS header, Finished (20):
* TLSv1.2 (IN), TLS header, Certificate Status (22):
* TLSv1.2 (IN), TLS handshake, Finished (20):
* SSL connection using TLSv1.2 / ECDHE-RSA-CHACHA20-POLY1305
* ALPN, server accepted to use h2
* Server certificate:
*  subject: C=CN; ST=\U5E7F\U4E1C\U7701; O=\U5E7F\U4E1C\U5821\U5854\U5B89\U5168\U6280\U672F\U6709\U9650\U516C\U53F8; CN=*.bt.cn
*  start date: Sep 23 00:00:00 2024 GMT
*  expire date: Oct 24 23:59:59 2025 GMT
*  subjectAltName: host "api.bt.cn" matched cert's "*.bt.cn"
*  issuer: C=CN; O=sslTrus; CN=sslTrus (RSA) OV CA
*  SSL certificate verify ok.
* Using HTTP2, server supports multiplexing
* Connection state changed (HTTP/2 confirmed)
* Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
* TLSv1.2 (OUT), TLS header, Supplemental data (23):
* TLSv1.2 (OUT), TLS header, Supplemental data (23):
* TLSv1.2 (OUT), TLS header, Supplemental data (23):
* Using Stream ID: 1 (easy handle 0x55e87f8b99f0)
* TLSv1.2 (OUT), TLS header, Supplemental data (23):
> GET / HTTP/2
> Host: api.bt.cn
> user-agent: curl/7.81.0
> accept: */*
>
* TLSv1.2 (IN), TLS header, Supplemental data (23):
* Connection state changed (MAX_CONCURRENT_STREAMS == 128)!
* TLSv1.2 (OUT), TLS header, Supplemental data (23):
* TLSv1.2 (IN), TLS header, Supplemental data (23):
* TLSv1.2 (IN), TLS header, Supplemental data (23):
< HTTP/2 504
< server: nginx
< date: Fri, 28 Mar 2025 03:44:57 GMT
< content-type: text/html
< content-length: 160
<
<html>
<head><title>504 Gateway Time-out</title></head>
<body>
<center><h1>504 Gateway Time-out</h1></center>
<hr><center>nginx</center>
</body>
</html>
* Connection #0 to host api.bt.cn left intact

使用道具 举报 回复 支持 反对
发表于 4 天前 | 显示全部楼层
阿珂 发表于 2025-3-28 11:26
做好快照,覆盖安装一下

不是不想尝试,你看错误是bt请求直接不通,连更新到9.5的脚本都无法运行
使用道具 举报 回复 支持 反对
发表于 4 天前 | 显示全部楼层
本帖最后由 auooru 于 2025-3-28 11:45 编辑

还有,覆盖安装的官方方法是什么?直接使用 wget -O install.sh https://download.bt.cn/install/install-ubuntu_6.0.sh && sudo bash install.sh ?
看到覆盖安装会重置数据,不考虑了,现在是如何解决访问bt云端接口不正常的问题?
使用道具 举报 回复 支持 反对
发表于 4 天前 | 显示全部楼层
翻遍论坛后发现这个修复访问命令才是可行的。麻烦能不能弄个好点的故障排查文档。

curl -k -sSO https://download.bt.cn/tools/auto_node.sh && bash auto_node.sh
使用道具 举报 回复 支持 反对
发表于 4 天前 | 显示全部楼层
您好,刚才我司同事已经解答了,使用覆盖方式
命令
  1. mv  /www/server/panel/pyenv /www/backup/pyenv_backup
复制代码

然后到官网复制安装命令,然后执行即可

这种覆盖不会对网站有影响,只是对面板进行了重新安装,您网站数据库插件都是还在的
覆盖后面板密码是会变的,重新修改一下就行
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

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

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

紧急运维服务

响应时间:3分钟

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

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

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

立即付费处理

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

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