terra-ops / terra-cli

The Terra Command Line Interface
http://terra.readthedocs.org
GNU General Public License v2.0
48 stars 17 forks source link

Enabled environment started giving nginx 502 bad gateway #93

Closed aschmoe closed 8 years ago

aschmoe commented 8 years ago

Suddenly started getting "nginx 502 bad gateway" on an enabled app I was working with.

  1. e:disable, e:enable did nothing to fix the problem.
  2. SSH'd into the app container
  3. tailed nginx logs, was giving "104: Connection reset by peer) while reading response header from upstream" on every request
  4. restarted nginx service
  5. restarted php5-fpm service

The 502 persisted afterwards, the Drush container was still working the whole time.

Ultimately just deleted the environment and made a new one with same code base, seems to work fine for now.

Any thoughts?

aschmoe commented 8 years ago

Turned out it was a hook_url_outbound_alter() with a dpm in it.

Closing, as clearly not related to terra, except if some better logging were possible.