US: 1-941-4621-069
  
Cyprus: 3-572-2052-781

Go Back   ISPsystem.com Forums > ISPmanager > General technical discussion


Reply
 
Thread Tools
Old 02-11-2016, 08:35 AM   #1
Junior Member
 
Join Date: Feb 2016
Posts: 2
onet is on a distinguished road
Default 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
onet is offline   Reply With Quote
Old 02-12-2016, 01:04 AM   #2
ISPsystem team
 
Join Date: Jun 2013
Posts: 233
fly is on a distinguished road
Default

Hello,

Try to add proxy_read_timeout 300; to nginx configuration. It should helps.
fly is offline   Reply With Quote
Old 02-15-2016, 07:18 PM   #3
Junior Member
 
Join Date: Feb 2016
Posts: 2
onet is on a distinguished road
Default

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...
onet is offline   Reply With Quote
Old 02-22-2017, 10:10 PM   #4
Junior Member
 
Join Date: Feb 2017
Posts: 1
Akram is on a distinguished road
Default

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.
Akram is offline   Reply With Quote
Old 02-28-2017, 08:34 AM   #5
ISPsystem team
 
Join Date: Jun 2013
Posts: 233
fly is on a distinguished road
Default

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.
fly is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 11:35 PM.