ENCODE-DCC/encoded

mod-wsgi crashing during data upload

Parul-Kudtarkar opened this issue · 4 comments

Hi developers,

Our portal is based off encode code base, recently we got following error during data upload -
Script timed out before returning headers: wsgi
I was wondering if you have encountered the mod-wsgi crashing during data upload? Do you have different wsgi.conf for the server that handles data-upload and indexing?

Thank you for your help in advance!
Parul

hitz commented

@Parul-Kudtarkar thanks for the message. Not sure what script you are using for data upload? Are you POSTing remotely or using something like loadxl.py (script run on the server locally).
We don't have a wsgi.conf specifically.... do you mean apache.conf in /etc/? That probably has some stuff you don't need.
We also run everything though an nginx proxy, but not sure that's relevant.

Sometimes you can run methods remotely that go for >5 minutes or whatever your apache timeout is, I think that will cause that kind of error.

@hitz thanks for helping with the issue.
For data upload our data manger uses Gsubmitter(POSTing remotely). Indeed, these uploads can take over 5 minutes, that is the default time in apache conf.

Thank you very much,
Parul Kudtarkar

hitz commented

I think you could try setting it to 10-15 minutes. Are they uploading data files? or attachments?

@hitz They are uploading files from our local server. I think increasing apache2 timeout is a quick strategy for us to resolve this issue. Thank you very much!