【已解答】windows 2008 安装后 获取登陆信息报错
为了能快速了解并处理您的问题,请提供以下基础信息:面板、插件版本:Windows面板 8.2.2
系统版本:
windows server 2008 R2 Datacenter
问题描述:
相关截图(日志、错误):
安装后,bt default 报错,已经通过bt 17 升级到最新版本; 尝试过重启面板、服务器,依旧有这报错
Traceback (most recent call last):
File "tools.py", line 793, in <module>
set_panel_username()
File "tools.py", line 155, in set_panel_username
print('username: ' + username)
TypeError: can only concatenate str (not "list") to str
bt 6 修改用户名报错
Traceback (most recent call last):
File "tools.py", line 803, in <module>
bt_cli(clinum)
File "tools.py", line 492, in bt_cli
set_panel_username(input_user.strip())
File "tools.py", line 147, in set_panel_username
sql.table('users').where('id=?', (1,)).setField('username', use
File "C:\BtSoft\panel/class\db.py", line 355, in setField
return self.save(keyName,(keyValue,))
File "C:\BtSoft\panel/class\db.py", line 528, in save
self.__DB_CONN.text_factory = str
AttributeError: 'NoneType' object has no attribute 'text_factory'
看起来面板数据库损坏了
看看C:/BtSoft/backup/panel目录下有没有备份文件
先重命名原来的C:/BtSoft/panel/data/default.db,为default_bak.db
再将备份目录解压出来的文件C:/BtSoft/backup/panel/xxxxxxxx/data/default.db复制到C:/BtSoft/panel/data/
重启面板
若是没有备份文件,则尝试重命名default.db,为default_bak.db,重新覆盖安装一下
这个之前的数据需要重新创建
		页: 
[1]