[SOLVED] Bad gateway after fresh installation

Infos:

  • 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
    nginx/1.12.2

/var/log/nginx/zammad.error.log:
2019/07/19 09:21:49 [crit] 11725#0: *4 connect() to 127.0.0.1:3000 failed (13: Permission denied) while connecting to upstream, client: 192.168.123.82, server: 10.10.1.92, request: “GET / HTTP/1.1”, upstream: “http://127.0.0.1:3000/”, host: “10.10.1.92”

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.