Bt-Panel Type error: cannot concatenate ‘STR’ and ‘nonetype’ objects

[root@dapao~]# bt 14

================================================================== BT-Panel default info!

Bt-Panel-URL: http://192.168.1.80:8888/5a99a0b7 Traceback (most recent call last): File “/www/server/panel/tools.py”, line 564, in <module> set_panel_username() File “/www/server/panel/tools.py”, line 351, in set_panel_username print(‘username: ‘ + username) TypeError: cannot concatenate ‘str’ and ‘NoneType’ objects

password: 59cc2424 Warning: If you cannot access the panel, release the following port (8888|888|80|443|20|21) in the security group

Bt-Panel-URL: http://192.168.1.80:8888/5a99a0b7 Traceback (most recent call last): File “/www/server/panel/tools.py”, line 564, in <module> set_panel_username() File “/www/server/panel/tools.py”, line 351, in set_panel_username print(‘username: ‘ + username) TypeError: cannot concatenate ‘str’ and ‘NoneType’ objects

Solution: In 6.9.29 after this version (including) added to increase the automatic backup of the panel configuration information within 15 days, so when due to their own misuse, or change the python, installation of software is a destructive operation of the panel, etc., you can restore through this backup, restore steps: 1, the existing pagoda is located in the file to make a backup (to prevent the automatic backup has (to prevent the automatic backup has errors that lead to secondary damage to the existing panel) cp -rp /www/server/panel/data /www/backup/data_btpanel_back_20190925
/www/backup/data_btpanel_back_20190925 (personal habit, with the date as the backup suffix, subsequent to which you can quickly find when you have done the operation) 2. \cp -rp /www/backup/panel/2019-09-23/data/* /www/ server/panel/data/ (\cp is not prompted before overwriting files -r recursive copy of all files below the target directory [including files in the secondary folder], -p is to retain the directory and file attributes of the source file) After the operation is complete, execute the next bt 14 will display the correct panel information, (do not use the default password, please use the modified panel password to log in)

Similar Posts: