1

Topic: Nginx problems? (web & activesync)

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.5-1
- Linux/BSD distribution name and version: CentOS 7
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? No
- Related log if you're reporting an issue:

/var/log/nginx/error.log

2016/11/08 09:21:08 [error] 21232#0: *111 connect() failed (111: Connection refused) while connecting to upstream, client: 196.32.193.38, server: sandeka.tiangola.co.ao, request: "POST /Microsoft-Server-ActiveSync?Cmd=Ping&User=benone.marcos%40tiangola.co.ao&DeviceId=androidc207686065&DeviceType=Android HTTP/1.1", upstream: "http://127.0.0.1:20000/SOGo/Microsoft-S … pe=Android", host: "sandeka.tiangola.co.ao"

2016/11/08 09:25:16 [error] 21232#0: *288 connect() failed (111: Connection refused) while connecting to upstream, client: 196.32.193.38, server: sandeka.tiangola.co.ao, request: "GET /SOGo HTTP/1.1", upstream: "http://127.0.0.1:20000/SOGo", host: "sandeka.tiangola.co.ao", referrer: "http://sandeka.tiangola.co.ao/"
====

Hello all,

I'm getting the above error from nginx when trying to access the service using activesync and when accessing the web interface (SOGo).
IMAP/SMTP work fine with thunderbird.

Can I, please, get some advise on the actions to resolve this?

Thanks,
--
Benone

----

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

2

Re: Nginx problems? (web & activesync)

Seems that SOGo is stopped and Nginx cannot access it.Try to restart SOGo with:

service sogod restart

Please tell us if this fixes the problem.

3

Re: Nginx problems? (web & activesync)

brix wrote:

Seems that SOGo is stopped and Nginx cannot access it.Try to restart SOGo with:

service sogod restart

Please tell us if this fixes the problem.

Hi brix. Thanks for your quick reply.

The command above didn't work. So, sogod is not starting, but I couldn't find the reason so far:

sudo systemctl restart sogod
Job for sogod.service failed because the control process exited with error code. See "systemctl status sogod.service" and "journalctl -xe" for details.

sudo systemctl status sogod
● sogod.service - SOGo is a groupware server
   Loaded: loaded (/usr/lib/systemd/system/sogod.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Tue 2016-11-08 10:12:22 WAT; 8s ago
  Process: 24663 ExecStart=/usr/sbin/sogod -WOWorkersCount ${PREFORK} -WOPidFile /var/run/sogo/sogo.pid -WOLogFile /var/log/sogo/sogo.log (code=exited, status=1/FAILURE)

systemd[1]: Starting SOGo is a groupware server...
systemd[1]: sogod.service: control process exited, code=exited status=1
systemd[1]: Failed to start SOGo is a groupware server.
systemd[1]: Unit sogod.service entered failed state.
systemd[1]: sogod.service failed.


The sogo log file is empty.

4

Re: Nginx problems? (web & activesync)

Also got this from "sudo journalctl -xe"

sogod[25067]: 2016-11-08 04:23:45.601 sogod[25067:25067] File NSDictionary.m: 672. In -[NSDictionary initWithContentsOfFile:] Contents of file '/etc/sogo/sogo.c
sogod[25067]: <0x0x7ffa831162a0[SOGoStartupLogger]> Cannot read configuration from '/etc/sogo/sogo.conf'. Aborting
systemd[1]: sogod.service: control process exited, code=exited status=1
systemd[1]: Failed to start SOGo is a groupware server.

The configuration file is there with permission 0400 sogo:sogo

5

Re: Nginx problems? (web & activesync)

Resolved:

sudo plparse /etc/sogo/sogo.conf
Parsing '/etc/sogo/sogo.conf' - Parse failed  - Parse failed at line 34 (char 1159) - unexpected character (wanted ';' or '}')

line 34: SOGoHelpURL = 'https://support.mail.co.ao';

should be using " ";

All is good now smile

Thanks.