After a successful reinstallation and restoring data, a couple of hours latter Cyberpanel and all site is down and an attempt to update got me the error below.
Please note there is no way to know what version is installed but it was the latest.
#########################################################################
[06.08.2023_13-10-45] Install Restic successful.
[06.08.2023_13-10-45] #########################################################################
[06.08.2023_13-10-45] #########################################################################
[06.08.2023_13-10-45] (2002, “Can’t connect to local server through socket ‘/run/mysqld/mysqld.sock’ (2)”)
[06.08.2023_13-10-45] #########################################################################
‘int’ object has no attribute ‘execute’
Traceback (most recent call last):
File “/root/cyberpanel_upgrade_tmp/upgrade.py”, line 842, in applyLoginSystemMigrations
cursor.execute(“UPDATE loginSystem_acl SET config = ‘%s’ where name = ‘admin’” % (Upgrade.AdminACL))
AttributeError: ‘int’ object has no attribute ‘execute’
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/root/cyberpanel_upgrade_tmp/upgrade.py”, line 3072, in
main()
File “/root/cyberpanel_upgrade_tmp/upgrade.py”, line 3068, in main
Upgrade.upgrade(args.branch)
File “/root/cyberpanel_upgrade_tmp/upgrade.py”, line 2976, in upgrade
Upgrade.applyLoginSystemMigrations()
File “/root/cyberpanel_upgrade_tmp/upgrade.py”, line 845, in applyLoginSystemMigrations
import sleep
ModuleNotFoundError: No module named ‘sleep’
above command failed…