Author Topic: upstream timed out (110: Connection timed out) - Getting it frequently  (Read 1640 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Hi all,

I am getting the following errors every now and then on my WordPress site.

Code: [Select]
2023/05/09 12:00:45 [error] 9507#9507: *628 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 103.154.154.179, server: whocalled.au, request: "POST /wp-admin/admin-ajax.php HTTP/1.1", upstream: "fastcgi://unix:/opt/alt/php-fpm80/usr/var/sockets/nobody.sock", host: "whocalled.au", referrer: "https://whocalled.au/wp-admin/post.php?post=85931400&action=edit"
2023/05/09 12:01:05 [error] 9506#9506: *633 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 207.136.12.25, server: whocalled.au, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/opt/alt/php-fpm80/usr/var/sockets/nobody.sock", host: "whocalled.au", referrer: "https://www.google.com.au/"
2023/05/09 12:02:45 [error] 9507#9507: *649 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 103.154.154.179, server: whocalled.au, request: "POST /wp-admin/admin-ajax.php HTTP/1.1", upstream: "fastcgi://unix:/opt/alt/php-fpm80/usr/var/sockets/nobody.sock", host: "whocalled.au", referrer: "https://whocalled.au/wp-admin/post.php?post=1162424&action=edit"
2023/05/09 12:03:45 [error] 9505#9505: *655 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 103.154.154.179, server: whocalled.au, request: "POST /wp-admin/admin-ajax.php HTTP/1.1", upstream: "fastcgi://unix:/opt/alt/php-fpm80/usr/var/sockets/nobody.sock", host: "whocalled.au", referrer: "https://whocalled.au/wp-admin/post.php?post=85931400&action=edit"
2023/05/09 12:05:04 [error] 9505#9505: *655 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 103.154.154.179, server: whocalled.au, request: "GET /landline/0735207691/ HTTP/1.1", upstream: "fastcgi://unix:/opt/alt/php-fpm80/usr/var/sockets/nobody.sock", host: "whocalled.au", referrer: "https://whocalled.au/landline/0735207691/"
2023/05/09 12:05:51 [error] 9507#9507: *686 connect() to unix:/opt/alt/php-fpm80/usr/var/sockets/nobody.sock failed (11: Resource temporarily unavailable) while connecting to upstream, client: 110.142.158.81, server: whocalled.au, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/opt/alt/php-fpm80/usr/var/sockets/nobody.sock:", host: "whocalled.au", referrer: "https://www.google.com/"
2023/05/09 12:05:55 [error] 9508#9508: *688 connect() to unix:/opt/alt/php-fpm80/usr/var/sockets/nobody.sock failed (11: Resource temporarily unavailable) while connecting to upstream, client: 45.64.58.134, server: whocalled.au, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/opt/alt/php-fpm80/usr/var/sockets/nobody.sock:", host: "whocalled.au", referrer: "https://www.google.com/"
2023/05/09 12:05:57 [error] 9508#9508: *688 connect() to unix:/opt/alt/php-fpm80/usr/var/sockets/nobody.sock failed (11: Resource temporarily unavailable) while connecting to upstream, client: 2001:8003:d803:f000:c880:7b5c:48e3:ae3e, server: whocalled.au, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/opt/alt/php-fpm80/usr/var/sockets/nobody.sock:", host: "whocalled.au", referrer: "https://www.google.com.au/"
2023/05/09 12:05:58 [error] 9507#9507: *686 connect() to unix:/opt/alt/php-fpm80/usr/var/sockets/nobody.sock failed (11: Resource temporarily unavailable) while connecting to upstream, client: 35.225.82.182, server: whocalled.au, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/opt/alt/php-fpm80/usr/var/sockets/nobody.sock:", host: "whocalled.au"
2023/05/09 12:06:10 [error] 9508#9508: *688 connect() to unix:/opt/alt/php-fpm80/usr/var/sockets/nobody.sock failed (11: Resource temporarily unavailable) while connecting to upstream, client: 172.105.190.118, server: whocalled.au, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/opt/alt/php-fpm80/usr/var/sockets/nobody.sock:", host: "whocalled.au"
2023/05/09 12:06:13 [error] 9480#9480: *693 connect() to unix:/opt/alt/php-fpm80/usr/var/sockets/nobody.sock failed (11: Resource temporarily unavailable) while connecting to upstream, client: 120.17.148.100, server: whocalled.au, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/opt/alt/php-fpm80/usr/var/sockets/nobody.sock:", host: "whocalled.au", referrer: "https://www.google.com.au/"
2023/05/09 12:06:17 [error] 9508#9508: *688 connect() to unix:/opt/alt/php-fpm80/usr/var/sockets/nobody.sock failed (11: Resource temporarily unavailable) while connecting to upstream, client: 103.154.154.179, server: whocalled.au, request: "GET /business-listings/score-debt-collection/ HTTP/1.1", upstream: "fastcgi://unix:/opt/alt/php-fpm80/usr/var/sockets/nobody.sock:", host: "whocalled.au", referrer: "https://scoredebtcollection.com.au/"
2023/05/09 12:06:18 [error] 9505#9505: *696 connect() to unix:/opt/alt/php-fpm80/usr/var/sockets/nobody.sock failed (11: Resource temporarily unavailable) while connecting to upstream, client: 202.153.219.106, server: whocalled.au, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/opt/alt/php-fpm80/usr/var/sockets/nobody.sock:", host: "whocalled.au", referrer: "https://www.google.com/"
2023/05/09 12:06:23 [error] 9505#9505: *655 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 66.249.70.200, server: whocalled.au, request: "GET /mobile/0400005696/ HTTP/1.1", upstream: "fastcgi://unix:/opt/alt/php-fpm80/usr/var/sockets/nobody.sock", host: "whocalled.au"
2023/05/09 12:06:43 [error] 9505#9505: *696 connect() to unix:/opt/alt/php-fpm80/usr/var/sockets/nobody.sock failed (11: Resource temporarily unavailable) while connecting to upstream, client: 143.42.97.213, server: whocalled.au, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/opt/alt/php-fpm80/usr/var/sockets/nobody.sock:", host: "whocalled.au"
2023/05/09 12:06:45 [error] 9505#9505: *696 connect() to unix:/opt/alt/php-fpm80/usr/var/sockets/nobody.sock failed (11: Resource temporarily unavailable) while connecting to upstream, client: 172.104.109.161, server: whocalled.au, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/opt/alt/php-fpm80/usr/var/sockets/nobody.sock:", host: "whocalled.au"
2023/05/09 12:06:45 [error] 9505#9505: *696 connect() to unix:/opt/alt/php-fpm80/usr/var/sockets/nobody.sock failed (11: Resource temporarily unavailable) while connecting to upstream, client: 45.33.100.21, server: whocalled.au, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/opt/alt/php-fpm80/usr/var/sockets/nobody.sock:", host: "whocalled.au"
2023/05/09 12:06:47 [error] 9481#9481: *682 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 1.200.58.189, server: whocalled.au, request: "GET /mobile/0406907272/ HTTP/1.1", upstream: "fastcgi://unix:/opt/alt/php-fpm80/usr/var/sockets/nobody.sock", host: "whocalled.au"
2023/05/09 12:06:47 [error] 9507#9507: *684 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 2001:8004:4532:b9f4:a148:4edb:cf85:4b0f, server: whocalled.au, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/opt/alt/php-fpm80/usr/var/sockets/nobody.sock", host: "whocalled.au", referrer: "https://www.google.com/"
2023/05/09 12:06:50 [error] 9480#9480: *693 connect() to unix:/opt/alt/php-fpm80/usr/var/sockets/nobody.sock failed (11: Resource temporarily unavailable) while connecting to upstream, client: 172.105.169.250, server: whocalled.au, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/opt/alt/php-fpm80/usr/var/sockets/nobody.sock:", host: "whocalled.au"

Any tips or recommendations?

Offline
*****
Increase your timeouts so it isn't so finicky about upstream connection delays:
Code: [Select]
fastcgi_read_timeout 540;
proxy_connect_timeout 3000s;
proxy_send_timeout   3000;
proxy_read_timeout   3000;