Welcome! Log In Create A New Profile

Advanced

Error: "connect() to unix:/run/php/php7.1-fpm-domain.pro.sock failed (11: Resource temporarily unavailable) while connecting to upstream, client:"

November 13, 2023 12:56PM
The server with Debian has nginx/1.23.1 and php7.1-fpm. At times of peak loads, sometimes errors like:

2023/10/23 19:02:25 [error] 30071#30071: *18086042 connect() to unix:/run/php/php7.1-fpm-domain.pro.sock failed (11: Resource temporarily unavailable) while connecting to upstream, client: 1.2.3.4, server: domain.pro, request: "GET /url HTTP/2.0", upstream: "fastcgi://unix:/run/php/php7.1-fpm-domain.pro.sock:", host: "domain.pro", referrer: "https://yandex.ru/"

In /etc/sysctl.conf I set

net.core.somaxconn = 20000
net.core.netdev_max_backlog = 65535

before that it was 128 and 200, respectively. But a week later these errors appeared again, restarting nginx and php-fpm helps. What else can be done to avoid these errors, since the site is not accessible and a 502 error is displayed? The variables above were increased by another 2 times.
Subject Author Posted

Error: "connect() to unix:/run/php/php7.1-fpm-domain.pro.sock failed (11: Resource temporarily unavailable) while connecting to upstream, client:"

nitsik November 13, 2023 12:56PM

Re: Error: "connect() to unix:/run/php/php7.1-fpm-domain.pro.sock failed (11: Resource temporarily unavailable) while connecting to upstream, client:"

akanksha.gogar January 20, 2024 09:41AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 160
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready