HTTP 500 Errors on Admin AJAX call

I’m getting this error in my ngnix logs when performing a task using the ThreeWP Broadcast plugin:

2017/02/24 18:34:45 [error] 43#0: *1 connect() to unix:/var/run/php-fpm.sock failed (111: Connection refused) while connecting to upstream, client: 172.17.0.1, server: ~^(.*)\.local\.devsite\.org$, request: "POST /master/wp-admin/admin-ajax.php HTTP/1.0", upstream: "fastcgi://unix:/var/run/php-fpm.sock:", host: "local.devsite.org", referrer: "http://local.devsite.org/master/wp-admin/admin.php?page=threewp_broadcast_queue"

PHP: 7.0.3
WordPress 4.7.2

Not sure when it started, but recently updated Local by Flywheel, so wondering if it is related. If not, any thoughts on what might be causing this?

Thanks!

Have you tried restarting the site?

Also, are there any errors in the PHP-FPM error log?

Hey @clay,

Yes, I restared, no change.

I did have an error in the PHP-FPM log:

[24-Feb-2017 17:56:04] WARNING: [pool www] server reached pm.max_children setting (5), consider raising it

And change the www.config to increase the pm.max_children based on an article I found. Here is what I have now:

pm.max_children = 160
pm.start_servers = 20
pm.min_spare_servers = 20
pm.max_requests = 500

Since making that change, I’m not getting any errors in the php logs.

1 Like