Welcome to the LimeSurvey Community Forum

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

504 after survey submission with participants/tokens table

  • QuoTil
  • QuoTil's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 7 months ago #173369 by QuoTil
Hi folx,

We're experiencing a major issue after the update to 3.14:

If it is a closed survey with participants/ tokens the submission of the survey ends with a 504. The user never reaches the "Completed View". This LS-behavior is not seen when the survey is open to everybody (without participants table).

Immediate help is needed.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 7 months ago #173388 by DenisChenu
504 : Gateway Time-out

Check your webserver log, can be different things …

Try to activate debug mode, and try with a little survey.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
  • QuoTil
  • QuoTil's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 7 months ago - 5 years 7 months ago #173392 by QuoTil
Code:
2018/09/03 15:32:29 [error] 19940#19940: *4751 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 10.1.0.27, server: domain, request: "GET /index.php?r=admin/survey/sa/getAjaxMenuArray&surveyid=522165&YII_CSRF_TOKEN=YWFBOWZxUU9NWjdWMFFaTE41azY5eDRmY0FKTE9nNUiwiO1Q6P-cAP8onXWStshcU4Aoem1d58mtI2NP0EG7tA%3D%3D&position=collapsed HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.0-fpm.sock", host: "myDomain", referrer: "https://myDomain/index.php?r=admin/tokens/sa/browse/surveyid/522165"

Any idea?
Last edit: 5 years 7 months ago by QuoTil.
The topic has been locked.
More
5 years 7 months ago #173401 by jelo

QuoTil wrote: We're experiencing a major issue after the update to 3.14:

1. Which version was used before the update to 3.14?
2. Nginx error. Can you post nginx.conf and tell us a bit about your setup. You can click on the version number at the bottom of your LimeSurvey installation to get systeminfos.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
  • QuoTil
  • QuoTil's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 7 months ago #173416 by QuoTil
My apologies.

DevOps did cut off the email configuration (server/firewall-side). It seems that this blocked the completion of the survey. As much as I could see the debug mode did not report this as an error - which would be nice. Also maybe it would be an option to let LS complete a tokenized survey even if the email configuration fails.

Anyway. Sorry again and thank you for your great work.
The topic has been locked.
More
5 years 7 months ago #173417 by jelo

QuoTil wrote: Also maybe it would be an option to let LS complete a tokenized survey even if the email configuration fails.

That might be the case. I guess you wanted to get an email after each completed survey sent to you? To me this looks like a timing issue. The email couldn't be sent and is causing a delay (still room for improvement for LS devs). The NGINX timeout is lower than the delay caused by LimeSurvey handling the email error.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The following user(s) said Thank You: QuoTil
The topic has been locked.
  • QuoTil
  • QuoTil's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 7 months ago #173420 by QuoTil

I guess you wanted to get an email after each completed survey sent to you?

Yes indeed.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 7 months ago #173428 by DenisChenu

jelo wrote: (still room for improvement for LS devs).

No, because it can be easily fixed with a good mail server.
You can use your own server as a relay, mail is send by your server but it take really less time to send via PHP

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
More
5 years 7 months ago #173453 by jelo

DenisChenu wrote:

jelo wrote: (still room for improvement for LS devs).

No, because it can be easily fixed with a good mail server.
You can use your own server as a relay, mail is send by your server but it take really less time to send via PHP

No room for improvement, really? The error handling, when a survey is submitted and an email is triggered for the admin, might not slow down the submitting itself.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 7 months ago #173460 by holch

No room for improvement, really? The error handling, when a survey is submitted and an email is triggered for the admin, might not slow down the submitting itself.


It might, but it shouldn't. ;-)

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
More
5 years 7 months ago #173465 by jelo

holch wrote: It might, but it shouldn't. ;-)

This comes from trying to be more polite ;-)


When a mail cannot be sent, the submitprocess should continue. Without having a task queue a bit difficult to implement. Experience of survey respondent is more import than a missing email for the LS user.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 7 months ago #173466 by holch

Experience of survey respondent is more import than a missing email for the LS user.


Agreed.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose