H
H
hesy2019-04-15 10:42:57
PHP
hesy, 2019-04-15 10:42:57

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"

Where to look to solve this error?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Melkij, 2019-04-15
@melkij

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?

Is the DBMS running at the specified address? On this port?

E
eugenyg, 2019-04-16
@eugenyg

not on the topic of the question
180.20.10.1 - but in Japan, are they aware that they should raise the base for you at this address?
please use specially reserved addresses
10.0.0.0 - 10.255.255.255
172.16.0.0 - 172.31.255.255
192.168.0.0 - 192.168.255.255

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question