"Access denied for user 'root'@'localhost' (using password: YES)")

OLS support for version 22 was included like 2 months ago making it a new development in the CyberPanel ecosystem. I would not recommend any of my clients to use ubuntu 22 + cyberpanel because of unknown issues esp if you are running mission critical apps and systems.

Kindly use an ubuntu 20.04 image or CyberPanel | DigitalOcean Marketplace 1-Click App instead.

Follow this thread CyberPanel support for Ubuntu 22 - #20 by Wizard-of-FOSS @usmannasir says

“CyberPanel is now functional with Ubuntu 22, but its not production ready yet”