I just created a full directory backup in cpanel, downloaded that then connected to cyberpanel server via sftp using root credentials. (I have latest whm/cpanel)
uploaded backup in folder /home/backup
then run this script through ssh as root user
/usr/local/CyberCP/bin/python /usr/local/CyberCP/plogical/cPanelImporter.py --path /home/backup/
in log file got this error
Extracting main cPanel archive file: /home/backup/mydomain.tar.gz
/home/backup/mydomain.tar.gz successfully extracted.
Creating main account from archive file: /home/backup/mydomain.tar.gz
Detected main domain for this file is: mydomain.com.
Finding PHP version for mydomain.com.
PHP version of mydomain.com is PHP 5.6.
Finding Server Admin email for mydomain.com.
Server Admin email for mydomain.com is [email protected].
Calling core to create mydomain.com.
Websites matching query does not exist.
Failed to create main site mydomain.com from archive file: /home/backup/mydomain.tar.gz
I have also updated mysql root passwords in both locations
/etc/cyberpanel/mysqlPassword
/usr/local/CyberCP/CyberCP/settings.py
/home/cyberpanel/.my.cnf (This file does not exists by default)
Then restarted maridb, mysql and ls server
I have fresh cyberpanel installation with everything updated.