Quantcast
Channel: Support & Bugs - Matomo forums
Viewing all articles
Browse latest Browse all 5706

Cannot connect to the database: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: No address associated with hostname

$
0
0

@millij wrote:

Here is the error I found from the logs :

2017/03/28 12:41:31 [error] 2443#2443: *191751 FastCGI sent in stderr: "PHP message: Error in Piwik: Cannot connect to the database: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: No address associated with hostname This may be a temporary issue, try refreshing the page. If the problem persists please contact your Piwik administrator" while reading response header from upstream, client: 106.51.22.185, server: analytics.admavin.com, request: "POST / HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.0-fpm.sock:", host: "analytics.admavin.com", referrer: "https://analytics.admavin.com/"

We are running the piwik server behind Nginx and it stopped working all of a sudden.
Note: There are other services running in the same machine which are able to connect to the db successfully.

Any sort of help is appreciated.
Thanks

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 5706

Trending Articles