Checklist
I have read intro post: About the Installation Issues category
I have read the tutorials, help and searched for similar issues
I provide relevant information about my server (component names and versions, etc.)
I provide a copy of my logs and healthcheck
I describe the steps I have taken to trouble shoot the problem
I describe the steps on how to reproduce the issue
Hello, We have a community edition installed on an Ubuntu ec2 and recently the page was not loading properly. So i restarted the EC2 which has a public IP that changed after restart. We use a friendly DNS name ( hosted zone in Route 53) after the public Ip changed I have updated the Route53 entry pointing to new IP. when I reach the URL i see Internal server error. The nginx process is up and so does mysql
Health Check
sudo -H -u www-data bash -c “/var/www/passbolt/bin/cake passbolt healthcheck” www-data
____ __ ____
/ __ \____ _____ ____/ /_ ____ / / /_
/ /_/ / __ `/ ___/ ___/ __ \/ __ \/ / __/
/ ____/ /_/ (__ |__ ) /_/ / /_/ / / /
/_/ \__,_/____/____/_.___/\____/_/\__/
Open source password manager for teams
---------------------------------------------------------------
Healthcheck shell.....Exception: SQLSTATE[HY000] [1045] Access denied for user 'vault'@'localhost' (using password: YES) in [/var/www/passbolt/vendor/cakephp/cakephp/src/Database/Driver.php, line 92]
this server was setup by my teammate who is no longer with the company. I am able to see the password for the user “vault” and the database name is “pb” . host is 127.0.0.1
In /var/www/passbolt/config/passbolt.php the ip is not hardcoded, its the friendly dns that is in the config
when I try to get in to the mysql as root i get error
sudo mysql
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
also tried login as below still error
mysql -u passboltadmin -p passboltdb -h 127.0.0.1
Enter password:
ERROR 1045 (28000): Access denied for user 'passboltadmin'@'localhost' (using password: NO)
In the error.log it says the auth failed for user vault to the database
when i try the password thats in passbolt.php i get the same error
mysql -u vault -p -h localhost pb
Enter password:
ERROR 1045 (28000): Access denied for user 'vault'@'localhost' (using password: YES)
systemctl status mysqld
● mariadb.service - MariaDB 10.1.48 database server
Loaded: loaded (/lib/systemd/system/mariadb.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2023-05-23 19:55:13 UTC; 20h ago
Docs: man:mysqld(8)
https://mariadb.com/kb/en/library/systemd/
Main PID: 1009 (mysqld)
Status: "Taking your SQL requests now..."
Tasks: 28 (limit: 2342)
CGroup: /system.slice/mariadb.service
└─1009 /usr/sbin/mysqld
May 23 19:55:12 ip-172-31-38-210 mysqld[1009]: 2023-05-23 19:55:12 139977202973824 [Note] /usr/sbin/mysqld (mysqld 10.1.48-MariaDB-0ubuntu0.18.04.1) starting as process 1009 ...
May 23 19:55:13 ip-172-31-38-210 /etc/mysql/debian-start[1048]: Upgrading MySQL tables if necessary.
May 23 19:55:13 ip-172-31-38-210 systemd[1]: Started MariaDB 10.1.48 database server.
May 23 19:55:13 ip-172-31-38-210 /etc/mysql/debian-start[1052]: /usr/bin/mysql_upgrade: the '--basedir' option is always ignored
May 23 19:55:13 ip-172-31-38-210 /etc/mysql/debian-start[1052]: Looking for 'mysql' as: /usr/bin/mysql
May 23 19:55:13 ip-172-31-38-210 /etc/mysql/debian-start[1052]: Looking for 'mysqlcheck' as: /usr/bin/mysqlcheck