Problem with Nginx & Wordpress - Publishing posts stalled

I'm experiencing an odd error (well at least for me). I have a Nginx/Suhosin installation with Wordpress that have worked good in several years. Yesterday I noticed a strange error where Wordpress stalls when I try to publish a post. The Nginx error log reveals:

2013/08/28 15:23:33 [error] 6308#0: *42850 upstream timed out (110: Connection timed out) while reading response header from upstream, client: [ip], server: [servername], request: "POST /wp-cron.php?doingwpcron=1377695913.8097970485687255859375 HTTP/1.0", upstream: "fastcgi://127.0.0.1:9000", host: "domain"

I have increased the PHP Memory limit to 512MB and fastcgireadtimeout to 300. But the problem seems to remain. Any suggestions?

2 Replies

Do you have any plugins that connect to remote services? It could be one of them is hanging while trying to connect, it's the wordpress scheduled task runner that's hanging.

Thank you for your reply. Since the problem only occurred during publishing posts, I looked into the wordpress ping list. And there was the source of the problem… After I removed some of them, it is working good now.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct