Answer the question
In order to leave comments, you need to log in
What does this error say?
Is there a problem with the database connection or an error in the package itself?
2019/04/15 07:10:53 [error] 13#13: *18 FastCGI sent in stderr: "PHP message: PHP Warning: pg_connect(): Unable to connect to PostgreSQL server: could not connect to server: Connection refused
Is the server running on host "180.20.10.1" and accepting
TCP/IP connections on port 45433? in /var/www/public/index.php on line 154
PHP message: PHP Fatal error: Uncaught InvalidArgumentException: A connection must either be a resource. in /var/www/vendor/stowarzyszenie-wiosna/monolog-pg/src/PGHandler/PGHandler.php:43
Stack trace:
#0 /var/www/public/index.php(157): PGHandler\PGHandler->__construct(false, 'history', 100, false)
#1 {main}
thrown in /var/www/vendor/stowarzyszenie-wiosna/monolog-pg/src/PGHandler/PGHandler.php on line 43" while reading response header from upstream, client: 180.20.0.1, server: _, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.2-fpm.sock:", host: "localhost"
Answer the question
In order to leave comments, you need to log in
They ask you directly where to look and what to do:
Is the server running on host "180.20.10.1" and accepting
TCP/IP connections on port 45433?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question