Have you changed the root password for MariaDB/MySQL?
This error can’t be solved by executing the command below. Nonetheless, if you have changed the MariaDB/MySQL, you must add that root password in the file “/etc/vitalpbx/database.conf” on the section “main,” and then execute the command.
vitalpbx build-db
If the command above doesn’t work for you, then you must do a full update.
apt clean all
apt update
apt upgrade -y
Keep in mind that all the commands must be executed using the root privileges.