ISPsystem.com Forums

ISPsystem.com Forums (http://forum.ispsystem.com//index.php)
-   General technical discussion (http://forum.ispsystem.com//forumdisplay.php?f=8)
-   -   Modify conf file to correct: upstream timed out (http://forum.ispsystem.com//showthread.php?t=2522)

onet 02-11-2016 08:35 AM

Modify conf file to correct: upstream timed out
 
Hello,

I have an error with my configuration, when I try to import a xml from a Envato them (Wordpress installation). My account is configured in Nginx + phpfpm. I can upload the file (I have to change the max post size, but it's work). But when the system is processing the installation, I get this error:

2016/02/11 07:20:40 [error] 1206#0: *1 upstream timed out (110: Connection timed out) while reading upstream, client: 109.190.131.92, server: igsup.net, request: "POST /wp-admin/admin.php?import=wordpress&step=2 HTTP/1.1", upstream: "fastcgi://unix:/var/www/php-fpm/igsup.sock:", host: "igsup.net", referrer: "http://igsup.net/wp-admin/admin.php?import=wordpress&step=1&_wpnonce=2fd421d 709"

Somebody know what I have to change, to correct this? I don't find the right file conf.

Regards.
Olivier

fly 02-12-2016 01:04 AM

Hello,

Try to add proxy_read_timeout 300; to nginx configuration. It should helps.

onet 02-15-2016 07:18 PM

Hi,

tx for your answer. I've try it, without good news :(

cat /etc/nginx/nginx.conf :
Code:

http {
    log_format ispmgrnode '$server_name $request_length $bytes_sent';
    include      /etc/nginx/mime.types;
    default_type  application/octet-stream;

    log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
                      '$status $body_bytes_sent "$http_referer" '
                      '"$http_user_agent" "$http_x_forwarded_for"';

    access_log  /var/log/nginx/access.log  main;

    sendfile        on;
    #tcp_nopush    on;

    keepalive_timeout  65;

    client_max_body_size 200M;
    #gzip  on;

    include /etc/nginx/conf.d/*.conf;
        include /etc/nginx/vhosts/*/*;
        server {
                server_name localhost;
        disable_symlinks if_not_owner;
        include /etc/nginx/vhosts-includes/*.conf;
        location @fallback {
                error_log /dev/null crit;
                proxy_pass http://127.0.0.1:8080;
                proxy_redirect http://127.0.0.1:8080 /;
                proxy_set_header Host $host;
                proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
                proxy_set_header X-Forwarded-Proto $scheme;
                proxy_read_timeout 300;
        }
        listen 80;
        listen 164.132.75.178:80 default_server;
        }
        server {
                server_name localhost;
        disable_symlinks if_not_owner;
        include /etc/nginx/vhosts-includes/*.conf;
        location @fallback {
                error_log /dev/null crit;
                proxy_pass http://127.0.0.1:8080;
                proxy_redirect http://127.0.0.1:8080 /;
                proxy_set_header Host $host;
                proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
                proxy_set_header X-Forwarded-Proto $scheme;
                proxy_read_timeout 300;
        }
        add_header Strict-Transport-Security "max-age=31536000;";
        listen 164.132.75.178:443 default_server;
        ssl on;
        ssl_certificate "/usr/local/mgr5/etc/nginx_certs/default_srv.crtca";
        ssl_certificate_key "/usr/local/mgr5/etc/nginx_certs/default_srv.key";
        ssl_ciphers HIGH:!RC4:!aNULL:!eNULL:!MD5:!EXPORT:!EXP:!LOW:!SEED:!CAMELLIA:!IDEA:!PSK:!SRP:!SSLv2;
        ssl_prefer_server_ciphers on;
        ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
        }
}

Or do you think about an other nginx.conf file? I also try:
vim /etc/nginx/conf.d/igsup.net.conf
Code:

proxy_connect_timeout 300;
proxy_send_timeout 300;
proxy_read_timeout 300;
send_timeout 300;
fastcgi_buffers 8 256k;
fastcgi_buffer_size 512k;

But nothing. After 60s, I have the error. Like the timeout is not change...

Akram 02-22-2017 10:10 PM

Hi Support Team,

I too getting almost similar warning.

2017/02/23 01:33:51 [warn] 5194#5194: *326 an upstream response is buffered to a temporary file /var/cache/nginx/proxy_temp/1/04/0000000041 while reading upstream, client: ip address, server: xyz.com, request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:8080/", host: "www.xyz.com"

Kindly provide me steps to fix this warnings.

fly 02-28-2017 08:34 AM

Could you please write to us via support area (my.ispsystem.com). We need to connect to a server via ssh to figure it out.


All times are GMT +2. The time now is 01:35 AM.

Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2024, vBulletin Solutions, Inc.