Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
upstream timed out (110: Connection timed out) while reading response header from upstream
Since a while I’m experiencing 501 timeouts on my DO hosted WP website.
/var/log/nginx/error.log and I’ve gotten about two errors per minute (they stopped all of the sudden and my website is online again since).
The logs contain a bunch of lines which boil down to these two:
connect() to unix:/var/run/php/php7.2-fpm.sock failed (11: Resource temporarily unavailable) while connecting to upstream,client: [REDACTED], server: [REDACTED].com, request: "POST /xmlrpc.php HTTP/1.0", upstream: "fastcgi://unix:/var/run/php/php7.2-fpm.sock:", host: "[REDACTED]" upstream timed out (110: Connection timed out) while reading response header from upstream, client: [REDACTED], server: [REDACTED].com, request: "POST /wp-cron.php?doing_wp_cron=1585826903.9321999549865722656250 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.2-fpm.sock", host: "[REDACTED].com", referrer: "https://[REDACTED].com/wp-cron.php?doing_wp_cron=1585826903.9321999549865722656250"
Any suggestions on how track down what is going on?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×