- Posts: 60
- Thank you received: 6
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Increasing Remote Control Timeout Settings?
- duvemyster
- Topic Author
- Offline
- Senior Member
Less
More
2 years 5 months ago #220929
by duvemyster
Increasing Remote Control Timeout Settings? was created 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?
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?
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13935
- Thank you received: 2551
2 years 5 months ago #220953
by DenisChenu
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.
Replied by DenisChenu on topic Increasing Remote Control Timeout Settings?
Code:
$session->expire = time() + (int) Yii::app()->getConfig('iSessionExpirationTime',ini_get('session.gc_maxlifetime'));
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.
The topic has been locked.
- duvemyster
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 60
- Thank you received: 6
2 years 5 months ago #220968
by duvemyster
Replied by duvemyster on topic Increasing Remote Control Timeout Settings?
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?
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?
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13935
- Thank you received: 2551
2 years 5 months ago #220969
by DenisChenu
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.
Replied by DenisChenu on topic Increasing Remote Control Timeout Settings?
config is always set
At same level than 'debug' => 0.
Else : LimeSurvey version and buildnumber ?
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.
The topic has been locked.
- duvemyster
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 60
- Thank you received: 6
2 years 5 months ago - 2 years 5 months ago #220974
by duvemyster
Replied by duvemyster on topic Increasing Remote Control Timeout Settings?
'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?
3.27.19+210928
Show phpInfo confirms session.gc_maxlifetime local value of 7200
Should I add the following line to config.php?
Code:
$config['iSessionExpirationTime'] = 7200;
Last edit: 2 years 5 months ago by duvemyster. Reason: code
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13935
- Thank you received: 2551
2 years 5 months ago #220977
by DenisChenu
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.
Replied by DenisChenu on topic Increasing Remote Control Timeout Settings?
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.
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.
The topic has been locked.
- duvemyster
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 60
- Thank you received: 6
2 years 5 months ago #221014
by duvemyster
Replied by duvemyster on topic Increasing Remote Control Timeout Settings?
Thanks.
The topic has been locked.
- duvemyster
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 60
- Thank you received: 6
2 years 5 months ago #221115
by duvemyster
Replied by duvemyster on topic Increasing Remote Control Timeout Settings?
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...?
The topic has been locked.