benjaminjonard / koillection

Koillection is a self-hosted service allowing users to manage any kind of collections.
https://github.com/koillection/koillection/wiki
MIT License
604 stars 27 forks source link

dbport error in Symphony with the default config #1203

Open mouarflenoob opened 2 weeks ago

mouarflenoob commented 2 weeks ago

Hello everyone, I get this error when I start the docker container in Portainer :

doctrine:migrations:migrate [--write-sql [WRITE-SQL]] [--dry-run] [--query-time] [--allow-no-migration] [--all-or-nothing [ALL-OR-NOTHING]] [--configuration CONFIGURATION] [--em EM] [--conn CONN] [--] [<version>]

**** 1/11 - Make sure /uploads folders exist ****

**** 2/11 - Create the symbolic link for the /uploads folder ****

**** 3/11 - Setting env variables ****

**** 4/11 - Migrate the database ****

11:16:54 CRITICAL  [console] Error thrown while running command "'doctrine:migration:migrate' --no-interaction --allow-no-migration --env=prod". Message: "Non-numeric env var "DB_PORT" cannot be cast to int." ["exception" => Symfony\Component\DependencyInjection\Exception\RuntimeException { …},"command" => "'doctrine:migration:migrate' --no-interaction --allow-no-migration --env=prod","message" => "Non-numeric env var "DB_PORT" cannot be cast to int."]

In EnvVarProcessor.php line 264:

  Non-numeric env var "DB_PORT" cannot be cast to int.

I used the default config and the default .env file with the default port : 5432 I looked in the issues and didn't find a similar issue. Do you have any idea ?