502 Bad Gateway, PHP won't start

This is my story too. A box I created last week works fine. A different box I created today hits the same bad gateway on vagrant up.

@nickrttn, my /var/log/syslog looks like yours.

I’m going to look at GitHub and see if I can pull the previous version of trellis and test it again. I will post again shortly to let you know what I find out

A couple of mine (with example.dev subbed in):

2016/05/09 21:13:14 [error] 1272#1272: *2 connect() to unix:/var/run/php-fpm-wordpress.sock failed (111: Connection refused) while connecting to upstream, client: 192.168.50.1, server: example.dev, request: "GET / HTTP/2.0", upstream: "fastcgi://unix:/var/run/php-fpm-wordpress.sock:", host: "example.dev"
2016/05/09 21:13:14 [error] 1272#1272: *2 connect() to unix:/var/run/php-fpm-wordpress.sock failed (111: Connection refused) while connecting to upstream, client: 192.168.50.1, server: example.dev, request: "GET /favicon.ico HTTP/2.0", upstream: "fastcgi://unix:/var/run/php-fpm-wordpress.sock:", host: "example.dev", referrer: "https://example.dev/"

the last release was 28 days ago. So it doesn’t seem like a recent update would be causing this

I just updated ubuntu today. Is everyone else up to date or using an older version?

Probably an upstream issue… see https://github.com/oerdnj/deb.sury.org/issues/341

4 Likes

I let the App Store install an update of Command Line Tools for Xcode (OS X 10.11) during the weekend—could that matter?

He doesn’t seem to have a solution yet on this. I am checking the info that he recommends to check now.

After checking: I get the same result that he talks about.

As long as you open Xcode and accept the terms it usually doesn’t cause issues.

1 Like

Just wanted to throw my hat in the ring and say that I’m experiencing the exact same issue. Is there a way to specify a version of PHP to use in order to avoid this kind of thing in the future?

I have tried everything that I can think of and still nothing will work for me. I just copied a trellis install that I know is working and when I re configure the files and run vagrant up again I get the same issue.

I tried setting up the basic example.com site. I did not change anything and ran vagrant up with the same result.

I just went through the same steps as you and can confirm that things are broken, beyond a doubt, right now. The only consolation I have is that it’s apparently not my own fault this time :grin:

1 Like

What version of ubuntu are you using

I grabbed the latest copy of Trellis and Bedrock, so Ubuntu 14.04.4 LTS

I’m at a stand still right now. I have been trying to figure this out all day.

As I mentioned earlier, this is an upstream issue. This will not work at all until it’s resolved by the maintainers of the PHP PPA. At that point you will have to re-provision your server with the updated PPA when it’s fixed.

Similar scenario happened within the past month.

@ben already posted what the problem is: 502 Bad Gateway, PHP won't start

I’m sorry but there’s no real solution right now if you provisioned a server while this has been broken. We’re mostly at the mercy of the PPA provider.

I know you don’t have a timeframe on this. But when this happened before how long did it take before it was fixed.

Getting the 502 Bad Gateway error on development on a fresh install.

The site I setup last week still works fine.

Not trying to imply that anyone on the Roots team is at fault! Apologies if that’s how it came across. Just wanting to provide another data point so that others know they are not alone on this issue.