Request Error 502

After installing new local site for staging purposes when I hit the 'Admin" I received 'Request Error 502 '. Revealed Local Router’s Logs with the message as follows:

2020/05/06 18:20:54 [error] 18360#15888: *54 connect() failed (10061: No connection could be made because the target machine actively refused it) while connecting to upstream, client: ::1, server: ccaarc.local, request: “GET /wp-admin/?cache-buster=1025 HTTP/1.1”, upstream: “http://127.0.0.1:10006/wp-admin/?cache-buster=1025”, host: “ccaarc.local”
2020/05/06 18:20:57 [error] 18360#15888: *54 connect() failed (10061: No connection could be made because the target machine actively refused it) while connecting to upstream, client: ::1, server: ccaarc.local, request: “GET /favicon.ico HTTP/1.1”, upstream: “http://127.0.0.1:10006/favicon.ico”, host: “ccaarc.local”, referrer: “http://ccaarc.local/wp-admin/?cache-buster=1025
What is the problem?
Thank you in advance.

1 Like

I’m experiencing the exact same thing. Nginx error page.
Everything works fine until I login. The actual request works, but something is wrong after that. I can tell because I get the adminbar if I return to home. But I can’t get into wp-admin.

Running latest version of local (5.4?) and PHP 7.4 on Ubuntu. Changed nginx-config to “{{root}}/web” since I’m using bedrock. Nothing else customized.

I think the problem happens either in php-fpm itself or in Nginx passing the request upstream.

Seems to work on Windows.

What versions/OS are you using?

For me I got it working by downgrading PHP to 7.3.5 :+1:

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.