password authentication failed #415
-
Hi all and proceeded with as soon as I try to run I recieve fatal errors: `Marcel@DXP2800-FD3A:/volume1/docker/solidtime$ docker compose exec scheduler php artisan migrate --force [previous exception] [object] (PDOException(code: 7): SQLSTATE[08006] [7] connection to server at "database" (192.168.80.3), port 5432 failed: FATAL: password authentication failed for user "solidtime" at /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:66) In Connection.php line 825: SQLSTATE[08006] [7] connection to server at "database" (192.168.80.3), port 5432 failed: FATAL: password authentication failed for user "solidtime" (Connection: pgsql, SQL: select exists (select 1 from pg_class c, pg_namespace n where n.nspname = 'public' and c.relname = 'migrations' and c.relkind in ('r', 'p') and n.oid = c.relnamespace)) In Connector.php line 66: SQLSTATE[08006] [7] connection to server at "database" (192.168.80.3), port 5432 failed: FATAL: password authentication failed for user "solidtime" any clue? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi, did you manage to solve your problem? If yes, how? :) |
Beta Was this translation helpful? Give feedback.
-
Please make sure that the password for the database in the |
Beta Was this translation helpful? Give feedback.
Please make sure that the password for the database in the
.env
andlaravel.env
is the same and you set the password before the first start of the containers since the database container creates the database with the given credentials only it doesn't already exist. If you are at the beginning of the setup you can do a clean start for the database withdocker composer down --volumes
(WARNING: this deletes the database!)