Nginx server timeout error

Hello All,
  We have one ERPNext setup (cgi version) on client server (Wale Nigeria). We have customized csv upload feature for one custom doctype . 
  It was working fine for 1000 records  ( with and without 'update' feature) 

  On same server there are other WSGI setup.

  Few days back you might be installed New setup (vector.xbs360.com).
   
  Yesterday client tries to upload csv (300 records with update feature ) in our old set up, it shows following error.

<html>
<head><title>504 Gateway Time-out</title></head>
<body bgcolor="white">
<center><h1>504 Gateway Time-out</h1></center>
<hr><center>nginx/1.0.15</center>
</body>
</html>

Please suggest.

Thanks and Regards,
Gangadhar kadam
  



Note:

 

If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un...@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/435ba41d-dcdf-4e80-8d9a-7b20ce9e7e8b%40googlegroups.com.

    For more options, visit https://groups.google.com/groups/opt_out.

Hi Gangadhar,

Currently gunicorn will timeout out after two minutes. We can
definitely increase the timeout value but it has to be a reasonable
value.

Also, how have you deployed the changes? We’ve installed a utility
called webnotes-agent which handles running of scheduler and
deployments (ie pulling code, restarted worker processes and
gunicorn).

On Fri, Feb 28, 2014 at 10:35 AM, gangadhar kadam em...@gmail.com wrote:

Hello All,
We have one ERPNext setup (cgi version) on client server (Wale Nigeria).
We have customized csv upload feature for one custom doctype .
It was working fine for 1000 records ( with and without ‘update’ feature)

On same server there are other WSGI setup.

Few days back you might be installed New setup (vector.xbs360.com).

Yesterday client tries to upload csv (300 records with update feature ) in
our old set up, it shows following error.

504 Gateway Time-out

504 Gateway Time-out


nginx/1.0.15

Please suggest.

Thanks and Regards,
Gangadhar kadam


Note:

If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much
    information as you can. Please see it from the point of view of the person
    receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send
    only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do
    not send images as attachments. Links are good. Same goes for any file you
    are going to send.

End of Note

You received this message because you are subscribed to the Google Groups
“ERPNext Developer Forum” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to erpnext-developer-forum+un...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/erpnext-developer-forum/435ba41d-dcdf-4e80-8d9a-7b20ce9e7e8b%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Pratik
erpnext

Hi Gangadhar,

On Fri, Feb 28, 2014 at 10:35 AM, gangadhar kadam em...@gmail.com wrote:

Hello All,
We have one ERPNext setup (cgi version) on client server (Wale Nigeria).
We have customized csv upload feature for one custom doctype .
It was working fine for 1000 records ( with and without ‘update’ feature)

On same server there are other WSGI setup.

Few days back you might be installed New setup (vector.xbs360.com).

Yesterday client tries to upload csv (300 records with update feature ) in
our old set up, it shows following error.

504 Gateway Time-out

504 Gateway Time-out


nginx/1.0.15

Please suggest.

Thanks and Regards,
Gangadhar kadam

Timeout values can be increased by passing “-t number_of_seconds” to
gunicorn and setting proxy_read_timeout in nginx config. For the rest,
I’ve sent a personal email to you.


Note:

If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much
    information as you can. Please see it from the point of view of the person
    receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send
    only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do
    not send images as attachments. Links are good. Same goes for any file you
    are going to send.

End of Note

You received this message because you are subscribed to the Google Groups
“ERPNext Developer Forum” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to erpnext-developer-forum+un...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/erpnext-developer-forum/435ba41d-dcdf-4e80-8d9a-7b20ce9e7e8b%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Thanks,

Pratik
erpnext

Hello Pratik,
Thanks for your support.

I tried to upload the csv file, it displayed the timeout error less than a minute.

Should I increase R time to 210 sec? will it be fine?
Should i open the nginx.conf file and change the values of parameters?

We have deployed the changes few month ago.

Thanks and Regards,
Gangadhar kadam


On 28 February 2014 11:04, Pratik Vyas <pd...@gmail.com> wrote:
Hi Gangadhar,

Currently gunicorn will timeout out after two minutes. We can
definitely increase the timeout value but it has to be a reasonable
value.

Also, how have you deployed the changes? We've installed a utility
called webnotes-agent which handles running of scheduler and
deployments (ie pulling code, restarted worker processes and
gunicorn).

On Fri, Feb 28, 2014 at 10:35 AM, gangadhar kadam <em...@gmail.com> wrote:
> Hello All,
> We have one ERPNext setup (cgi version) on client server (Wale Nigeria).
> We have customized csv upload feature for one custom doctype .
> It was working fine for 1000 records ( with and without 'update' feature)
>
> On same server there are other WSGI setup.
>
> Few days back you might be installed New setup (vector.xbs360.com).
>
> Yesterday client tries to upload csv (300 records with update feature ) in
> our old set up, it shows following error.
>
> <html>
> <head><title>504 Gateway Time-out</title></head>
> <body bgcolor="white">
> <center><h1>504 Gateway Time-out</h1></center>
> <hr><center>nginx/1.0.15</center>
> </body>
> </html>
>
> Please suggest.
>
> Thanks and Regards,
> Gangadhar kadam
>
>
> --
> Note:
>
> If you are posting an issue,
> 1. We should be able to replicate it at our end. So please give us as much
> information as you can. Please see it from the point of view of the person
> receiving the communication.
> 2. Paste your code at http://pastebin.com or http://gist.github.com and send
> only the URL via email
> 3. For sending images, use http://imgur.com or other similar services. Do
> not send images as attachments. Links are good. Same goes for any file you
> are going to send.
>
> End of Note
> ---
> You received this message because you are subscribed to the Google Groups
> "ERPNext Developer Forum" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to erpnext-developer-forum+un...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/erpnext-developer-forum/435ba41d-dcdf-4e80-8d9a-7b20ce9e7e8b%40googlegroups.com.

> For more options, visit https://groups.google.com/groups/opt_out.






--
Pratik
erpnext



--
Thanks & Regards,
Mr.Gangadhar N.Kadam.
Cell: +91 9960066444
Software Engineer,
New Indictrans Technologies Pvt. Ltd., Pune


P SAVE TREES - Please consider the environment before printing this email.

SAVE ENERGY - My monitor is off whenever I am away from my desk. I am helping prevent global warming by reducing consumption of power... ARE YOU?