1

Topic: 502 Bad Gateway with SOGo

======== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.8 MARIADB edition.
- Linux/BSD distribution name and version: Ubuntu 18.04 LTS
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MariaDB
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? Yes
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Hi,
Fresh installation on Ubuntu 18.04, iredadmin and roundcube works fine, but when I'm trying to access SOGo at https://mydomain.net/SOGo I'm getting "502 Bad Gateway" error.

This is in /var/log/nginx/error.log nginx log file(real addresses obfuscated):

2018/05/19 18:45:22 [error] 16416#16416: *2 connect() failed (111: Connection refused) while connecting to upstream, client: 12.34.56.789, server: _, request: "GET /SOGo HTTP/1.1", upstream: "http://127.0.0.1:20000/SOGo", host: "mydomain.net"

Thanks for help!

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: 502 Bad Gateway with SOGo

OK, did some digging and now I see what the problem is:
Installer didn't install SOGo because there are no SOGo packages for 18.04 yet…

3

Re: 502 Bad Gateway with SOGo

Help push SOGo team to package for 18.04:
https://sogo.nu/bugs/view.php?id=4459

4

Re: 502 Bad Gateway with SOGo

@ZhangHuangbin @lukov

I have the same issue, on Ubuntu 16.04. I've manually installed the sogo package, and there's a login prompt instead of a "bad gateway" now. How do I configure it further? How does iredmail configure it (or should have configured it)?