2

I'm a beginner in Symfony and I have e few problems when I run my command

symfony server:start

I searched before asking you, but I couldn't resolve my problems. These are my errors on the terminal. (I am on Mac)

Uncaught PHP Exception Doctrine\DBAL\Exception\ConnectionException:
   "An exception occurred in driver: SQLSTATE[08006] [7] server closed the connection unexpectedly
    This probably means the server terminated abnormally before or while processing the request."
at ./Documents/mySymfony/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractPostgreSQLDriver.php line 88

Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\NotFoundHttpException: "No route found for "GET /""
 at ./Documents/mySymfony/vendor/symfony/http-kernel/EventListener/RouterListener.php line 136

For your information, I also did

symfony server:ca:install
Laurenz Albe
  • 209,280
  • 17
  • 206
  • 263
Jenn
  • 21
  • 1
  • 2
  • Does this answer your question? ["psql: could not connect to server: Connection refused" Error when connecting to remote database](https://stackoverflow.com/questions/32439167/psql-could-not-connect-to-server-connection-refused-error-when-connecting-to) – John Apr 20 '21 at 11:35
  • I already saw it but i don't find this path. – Jenn Apr 20 '21 at 12:18
  • 1
    I suggest separating your issue. 1st, check postgresql database server is up, 2nd check symfony framework works properly when disable database configuration. If there is no issue in 1,2, then problem might exists in symfony postgres library. Please add 1st,2nd step result in your question. – John Apr 21 '21 at 05:06
  • problem solved. I had to comment my postgresql line and choose the mysql one – Jenn Apr 22 '21 at 15:41

0 Answers0