为了能快速了解并处理您的问题,请提供以下基础信息:
9.0.2
ubuntu 20
执行修改面板密码,出现很奇怪的报错。这个错误是在“更新BT版本”之后出现的,很奇怪。我到了报错的py源码中看,貌似是储存密码用的db是空的的原因?因为有个 select where (user_id = 1) 出来的是空的结果。另外执行 bt 14 也会报错。
root@[手动打码]:~# bt 5 =============================================== 正在执行(5)... =============================================== 请输入新的面板密码:123456 Traceback (most recent call last): File "/www/server/panel/tools.py", line 1352, in <module> bt_cli(clinum) File "/www/server/panel/tools.py", line 1050, in bt_cli set_panel_pwd(input_pwd.strip(), True) File "/www/server/panel/tools.py", line 159, 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 3625, in password_salt return md5(md5(password + '_bt.cn') + salt) TypeError: can only concatenate str (not "list") to str
*********** ***分割线*** ***********
root@[手动打码]:~# bt 14 =============================================== 正在执行(14)... =============================================== ================================================================== BT-Panel default info! ================================================================== 外网面板地址: [手动打码] 内网面板地址: [手动打码] Traceback (most recent call last): File "/www/server/panel/tools.py", line 1325, in <module> set_panel_username() File "/www/server/panel/tools.py", line 572, in set_panel_username print('username: ' + username) TypeError: can only concatenate str (not "list") to str
password: ******** Warning: If you cannot access the panel, release the following port (8888|888|80|443|20|21) in the security group 注意:初始密码仅在首次登录面板前能正确获取,其它时间请通过 bt 5 命令修改密码 ================================================================== |