Page MenuHomeDevCentral

Cachet doesn't read password from DB_PASSWORD environment
Closed, WontfixPublic

Description

The command mysql -h$DB_HOST -u$DB_USERNAME -p$DB_PASSWORD $DB_DATABASE works.

storage/logs/laravel-2018-09-08.log
[2018-09-08 19:10:58] production.ERROR: exception 'PDOException' with message 'SQLSTATE[HY000] [1045] Access denied for user 'cachet'@'172.17.0.7' (using password: NO)' in /var/wwwroot/default/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:55
Stack trace:
#0 /var/wwwroot/default/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(55): PDO->__construct('mysql:host=mysq...', 'cachet', NULL, Array)

Related Objects

Event Timeline

dereckson triaged this task as High priority.Sep 8 2018, 19:55
dereckson created this task.

As a workaround, the previous container on Dwellers have been exported and reimported on Equatower.

It works fine, with correct MySQL connectivity.

dereckson claimed this task.

We'll use community-maintained Docker Cachet image instead.