宝塔用户_dyeaoy 发表于 2026-6-4 17:17:05

【已解答】面板无法登录

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

系统版本:
Alibaba Cloud Linux 3.2104 LTS 64位
问题描述:
无法登录一直提示密码错误,在终端执行bt,修改密码会报错,估计是不能修改成功。
相关截图(日志、错误):请输入新的面板密码:xxxxxTraceback (most recent call last):File "/www/server/panel/tools.py", line 1685, in <module>    bt_cli(clinum)File "/www/server/panel/tools.py", line 1338, in bt_cli    set_panel_pwd(input_pwd.strip(), True)File "/www/server/panel/tools.py", line 167, in set_panel_pwd    result = public.M('users').where('id=?', (1,)).setField('password', public.password_salt(public.md5(password), uid=1))File "/www/server/panel/class/public.py", line 3770, in password_salt    return md5(md5(password + '_bt.cn') + salt)TypeError: can only concatenate str (not "list") to str

宝塔用户_dyeaoy 发表于 2026-6-4 17:18:14

补充:执行bt 14也会报错
Traceback (most recent call last):
File "/www/server/panel/tools.py", line 1642, in <module>
    set_panel_username()
File "/www/server/panel/tools.py", line 581, in set_panel_username
    print('username: ' + username)
TypeError: can only concatenate str (not "list") to str

大炮运维V587 发表于 2026-6-5 14:12:23

宝塔用户_dyeaoy 发表于 2026-6-4 17:18
补充:执行bt 14也会报错
Traceback (most recent call last):
File "/www/server/panel/tools.py", line ...

您好,您的面板使用的数据库损坏了,可以看下 /www/backup/panel 目录下 看看之前的备份有没有,有的话使用其他日期的备份进行还原
页: [1]
查看完整版本: 【已解答】面板无法登录