Increasing Remote Control Timeout Settings?

More
1 month 3 weeks ago #220929 by duvemyster
Is there a way to increase remote control timeout settings?

The particular case is a php report that queries multiple surveys with LSRC2. However, sometime it needs more than 30 seconds to finish processing, which results in a 504 gateway time-out error.

The php maximum execution time has been extended beyond 30 seconds in both locations, however the 504 error still presents itself after 30 seconds. Is there another setting that can be adjusted that is specific to remote control?

Please Log in to join the conversation.

More
1 month 2 weeks ago #220953 by DenisChenu
$session->expire = time() + (int) Yii::app()->getConfig('iSessionExpirationTime',ini_get('session.gc_maxlifetime'));
github.com/LimeSurvey/LimeSurvey/blob/c8...ntrol_handle.php#L55

But default are at 2 hours : github.com/LimeSurvey/LimeSurvey/blob/c8...ig-defaults.php#L641

Then : you update it yourself maybe ?
 

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.

Please Log in to join the conversation.

More
1 month 2 weeks ago #220968 by duvemyster
Thank you. $config is not set at all in my config file. I will test adding this when it is not in use.

My config file is only 66 lines long and does not contain any $config[] settings. The origination of this limesurvey installation dates way back (to 2.x I think), though has been maintained via comfort update since comfort update became available. Would you recommend that I walk through the latest default file carefully and ensure everything referenced there is included?

Please Log in to join the conversation.

More
1 month 2 weeks ago #220969 by DenisChenu
config is always set

At same level than 'debug' => 0.

Else : LimeSurvey version and buildnumber ?

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.

Please Log in to join the conversation.

More
1 month 2 weeks ago - 1 month 2 weeks ago #220974 by duvemyster
'debug'=>0
3.27.19+210928
Show phpInfo confirms session.gc_maxlifetime local value of 7200

Should I add the following line to config.php?
$config['iSessionExpirationTime'] = 7200;
Last edit: 1 month 2 weeks ago by duvemyster. Reason: code

Please Log in to join the conversation.

More
1 month 2 weeks ago #220977 by DenisChenu
How : it's npot related to PHP session , but nginx issue

easycloudsupport.zendesk.com/hc/en-us/ar...-Timeout-using-Nginx

Not related to LimeSurvye here but your API caller webserver.

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.

Please Log in to join the conversation.

More
1 month 2 weeks ago #221014 by duvemyster

Please Log in to join the conversation.

More
1 month 2 weeks ago #221115 by duvemyster
In this case 30 seconds limitation is hardcoded into the load balancer. So maybe an exec function in the background writing its status, with a loading bar displayed that checks status then proceed to a completion page once it is finished...?

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now