Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

504 Gateway Time-out while exporting all responses

  • alpaalpa
  • alpaalpa's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 days 2 hours ago #270781 by alpaalpa
Please help us help you and fill where relevant:
LimeSurvey version: LimeSurvey Community Edition Version 6.14.2+250610 
Own server or LimeSurvey Cloud: Own server / Aliyun Linux / nginx/1.20.1 / PHP Version 7.4.33
Survey theme/template: irrelevant ls_line (extends from fruity)
==================
I have a survey with many output columns (about 100) and over 14,000 responses.  For reason I don't want to explain, my connection to the server is not the best (it is close to the survey takers).  When I'm trying to export the resonses, I get the error message:

504 Gateway Time-out

the web server is nginx/1.20.1, PHP Version 7.4.33

The message came up roughly around 60 seconds after I click the 'export' button.

I have tried to to the following parameters in nginx.conf
    proxy_connect_timeout 300s;
    proxy_send_timeout 300s;
    proxy_read_timeout 300s;
    send_timeout 300s;
And in /etc/php-fpm.d/www.conf
  request_terminate_timeout = 300s

And didn't seem to work (or maybe I didn't put in the correct section of the nginx.conf

Has anyone seen this and is there a solution?  Somewhere, there should be a 60s timer that I need to change.


 

Please Log in to join the conversation.

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 day 21 hours ago - 1 day 21 hours ago #270785 by holch
It most probably is due to limits in your PHP configuration.

This could be different limits:
- Maximum execution time
- Maximum variable constraints
- Maximum file size that the script can generate
- etc.

Maximum execution time and max_vars being the most probable in my opinion.

You might be able to work around this by exporting responses in batches and not all 14k at the same time.

Help us to help you!
  • Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
  • Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.
Last edit: 1 day 21 hours ago by holch.

Please Log in to join the conversation.

Moderators: holchtpartner

Lime-years ahead

Online-surveys for every purse and purpose