Topic: Nginx Timeout - Tried to resolve it several times but cant stop it
==== Required information ====
- iRedMail version: 0.9
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): mySQL
- Web server (Apache or Nginx): Nginx
- Linux/BSD distribution name and version: Centos 6
- Related log if you're reporting an issue:
====
I keep getting Nginx timeout when trying to upload contacts. I tried to address the issue serveral ways by increasing :-
1. max_execution_time in php.ini (set to 300) = /etc/php.ini
2. request_terminate_timeout (set to 300) = /etc/php-fpm.d/www.conf
3. fastcgi_read_timeout
4. proxy_read_timeout (set to 300) = /etc/nginx/nginx.conf
Appreciate if someone could tell me how did the fix their problem. Below is what my error reads like.
Thanks
Kevin
2015/04/27 05:45:59 [emerg] 7173#0: unknown directive "proxy_read_timeout:" in /etc/nginx/nginx.conf:18
2015/04/27 05:47:55 [error] 7196#0: *7 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 171.98.205.179, server: _, request: "POST /mail/?_task=addressbook&_action=import HTTP/1.1", upstream: $
2015/04/27 05:53:36 [error] 7250#0: *1 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 171.98.205.179, server: _, request: "POST /mail/?_task=addressbook&_action=import HTTP/1.1", upstream: $
2015/04/27 05:55:31 [error] 7250#0: *10 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 171.98.205.179, server: _, request: "POST /mail/?_task=addressbook&_action=import HTTP/1.1", upstream:$
2015/04/27 05:58:31 [error] 7250#0: *13 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 171.98.205.179, server: _, request: "POST /mail/?_task=addressbook&_action=import HTTP/1.1", upstream:$
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.