Skip to content
Advertisement

Symfony 5 Fast Track: Database access error

I’m trying to go through the aforementioned tutorial, but I get stuck on the stage between Step 7 and 9 – when the database goes into action. On local server I get

JavaScript

and while on my deployment server everything seems to work good when reading the database: https://akodg6sfgq-gijxpyj6oxpig.eu.s5y.io/admin/ and entering the conference, when I enter a comment https://akodg6sfgq-gijxpyj6oxpig.eu.s5y.io/admin?crudAction=new&crudControllerFqcn=App%5CController%5CAdmin%5CCommentCrudController&menuIndex=2&referrer=https%3A%2F%2Fakodg6sfgq-gijxpyj6oxpig.eu.s5y.io%2Fadmin%3FcrudAction%3Dindex%26crudControllerFqcn%3DApp%255CController%255CAdmin%255CCommentCrudController%26menuIndex%3D2%26signature%3DGrbeBTskRKkJuU_MbS0do5B1M2XowgfTuOLaqpPQl4M%26submenuIndex%3D-1&signature=Rre3TFXH2NDeRLj9W-LKo6RJXR1fbvm37Cu8H04gfQM&submenuIndex=-1it hits me with

JavaScript

I don’t know if these two are parts of the same problem, but it coincides.

My .env configuration:

JavaScript

.symfony.cloud.yaml:

JavaScript

services.yaml:

JavaScript

Docker-compose ps returns:

JavaScript

and its configuration is:

JavaScript

Any ideas? It started after entering API endpoints in the controllers. Basically any access to database. I don’t want to go further until I resolve this.

Advertisement

Answer

Thank you – the username and password were correct. it appears the database has given me the wrong port info. I’ve run the “symfony run psql” and conninfo and got the proper port

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement