0

I'm working on Magento Cloud version, but I'm having an error with 502 Bad Gateway on nginx.

502 Bad Gateway
nginx/1.9.15

My question is that how to check the nginx log on Docker local environment?

1

502 error

nginx upstream not available. you need to check nginx proxy / php block in configuration.

nginx php upstream wrong port defined, socket permissions, upstream not running, firewall blocking,

error log you can see in nginx config:

https://docs.nginx.com/nginx/admin-guide/monitoring/logging/#error_log https://nginx.org/en/docs/ngx_core_module.html?#error_log

error_log /path/to/folder/with/error.log;
| improve this answer | |
  • Did you work on Cloud version with Docker on local? – Khoa TruongDinh Dec 13 '19 at 3:16
  • how does that help you ?? – MagenX Dec 13 '19 at 9:58
  • 1
    just go to container and check log, but the problem in upstream misconfiguration. – MagenX Dec 13 '19 at 9:59
  • Oh, how to check it in the container? – Khoa TruongDinh Dec 13 '19 at 10:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.