[SOLVED] Bad gateway after fresh installation


  • Used Zammad version: 3.1.0
  • Used Zammad installation source: rpm
  • Operating system: CentOS 7.6.1810
  • Browser + version: Chrome 75

Expected behavior:

  • After installation zammad website should be reachable

Actual behavior:

  • 502 Bad Gateway

2019/07/19 09:21:49 [crit] 11725#0: *4 connect() to failed (13: Permission denied) while connecting to upstream, client:, server:, request: “GET / HTTP/1.1”, upstream: “”, host: “”

Steps to reproduce the behavior:

  • install elasticsearch
  • install zammad
  • edit /etc/nginx/conf.d/zammad.conf*

Please ensure that the Zammad- and postgresql (?)-service both are running.
If Zammad looks like it’s running, just try to run zammad run rails c - if something is wrong there, it’ll proberbly tell you what it does dislike.

Also ensure that no firewall is fishing on localhost.

postgresql is running.

zammad run rails c → no errrors

whats the problem with “Permission denied” in /var/log/nginx/zammad.error.log?

Might be SELinux or a firewall.
This post might help you:

Thanks - it was an SELinux issue.

solution was:
setsebool -P httpd_can_network_connect 1

1 Like

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