Welcome to the LimeSurvey Community Forum

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

Cloudflare 524 when save the survey for resume later

  • rizkiheryandi
  • rizkiheryandi's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 1 month ago #176244 by rizkiheryandi
Hello :D

I got cloudflare 524 when save the survey partially for resume later

I using cloudflare for my production limesurvey, and using Flexible SSL with force SSH and always SS activate in settings

There's no error except of this one in production

But, although it's created cloudflare 524, but the credential for resume later was saved, and i can use it

So the problem is,

1. it's show CloudFlare 524 instead of success message
2. Email was unsent



For info :

1. Save the survey partially for resume later is working great in my localhost, and the email was sent
2. I using mailgun for SMTP for localhost and production too


What i have done :

1. Turn off the SSL in cloudflare, but still there's no affect
2. Turn on debug in automation email to "always" but i don't understand how the debug system is working :|, beacause there's no debug message appear in my screen and i don't know where's the log file of email debugging system
3. Change SMTP encryption to "off" and "ssl", but "TLS" not yet

That's all

Help me please, i will very appreciate for your help :D

Thanks :D
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
6 years 1 month ago - 6 years 1 month ago #176245 by DenisChenu
Ouch … need tracking what happen here …

Maybe starting to log what's happen …

Starting by tracking error , update config.php file
Code:
// Uncomment the following line if you need table-based sessions
    // 'session' => array (
      // 'class' => 'application.core.web.DbHttpSession',
      // 'connectionID' => 'db',
      // 'sessionTableName' => '{{sessions}}',
    // ),
    'log' => array(
        'routes' => array(
          'fileError' => array(
            'class' => 'CFileLogRoute',
            'levels' => 'info,warning, error',
            'except' => 'exception.CHttpException.404',
 
          ),
          'fileVardump' => array(
            'class' => 'CFileLogRoute',
            'categories' => 'vardump', // tracevar function
            'logFile' => 'dump.log',
          ),
        )
    ),
    'urlManager' => array(
Here : a file was created (if error happen) in tmp/runtime name application.log. See if you have something when it happen.

If nothing are shown : must hack code and add some tracevar (then dump.log is updated), starting by here : github.com/LimeSurvey/LimeSurvey/blob/4d...timeHelper.php#L1026

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
Last edit: 6 years 1 month ago by DenisChenu. Reason: CFileLogRoute
The topic has been locked.
  • rizkiheryandi
  • rizkiheryandi's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 1 month ago #176247 by rizkiheryandi
Replied by rizkiheryandi on topic Cloudflare 524 when save the survey for resume later

rizkiheryandi wrote: Hello :D

I got cloudflare 524 when save the survey partially for resume later

I using cloudflare for my production limesurvey, and using Flexible SSL with force SSH and always SS activate in settings

There's no error except of this one in production

But, although it's created cloudflare 524, but the credential for resume later was saved, and i can use it

So the problem is,

1. it's show CloudFlare 524 instead of success message
2. Email was unsent



For info :

1. Save the survey partially for resume later is working great in my localhost, and the email was sent
2. I using mailgun for SMTP for localhost and production too


What i have done :

1. Turn off the SSL in cloudflare, but still there's no affect
2. Turn on debug in automation email to "always" but i don't understand how the debug system is working :|, beacause there's no debug message appear in my screen and i don't know where's the log file of email debugging system
3. Change SMTP encryption to "off" and "ssl", but "TLS" not yet

That's all

Help me please, i will very appreciate for your help :D

Thanks :D


Typo here, i means "and using Flexible SSL with Automatic HTTPS Rewrites and Always Use HTTPS in enable mode"
The topic has been locked.
  • rizkiheryandi
  • rizkiheryandi's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 1 month ago #176248 by rizkiheryandi
Replied by rizkiheryandi on topic Cloudflare 524 when save the survey for resume later

DenisChenu wrote: Ouch … need tracking what happen here …

Maybe starting to log what's happen …

Starting by tracking error , update config.php file

Code:
// Uncomment the following line if you need table-based sessions
    // 'session' => array (
      // 'class' => 'application.core.web.DbHttpSession',
      // 'connectionID' => 'db',
      // 'sessionTableName' => '{{sessions}}',
    // ),
    'log' => array(
        'routes' => array(
          'fileError' => array(
            'class' => 'CFileLogRoute',
            'levels' => 'info,warning, error',
            'except' => 'exception.CHttpException.404',
 
          ),
          'vardump' => array(
            'class' => 'CWebLogRoute',
            'categories' => 'vardump', // tracevar function
            'logFile' => 'dump.log',
          ),
        )
    ),
    'urlManager' => array(
Here : a file was created (if error happen) in tmp/runtime name application.log. See if you have something when it happen.

If nothing are shown : must hack code and add some tracevar (then dump.log is updated), starting by here : github.com/LimeSurvey/LimeSurvey/blob/4d...timeHelper.php#L1026


Ok, i will try it ASAP :D
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
6 years 1 month ago #176251 by DenisChenu
I update the code , i made an error review vardump part …

(and please don't quote all pots each time …)

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
The topic has been locked.
  • rizkiheryandi
  • rizkiheryandi's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 2 days ago #177604 by rizkiheryandi
Replied by rizkiheryandi on topic Cloudflare 524 when save the survey for resume later
I have tried this sir

And i got this message in application.log

[warning] [application] Failed to set unsafe attribute "settings" of "Tutorial".

I don't undestand with that message
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
6 years 2 days ago #177610 by DenisChenu
Yes, i have same issue : i don't care since i don't care of tutorials. But it's not related to your issue …

error 524 from cloudfare hide the real error … since we can get real error … no way to fix it.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
The topic has been locked.
  • rizkiheryandi
  • rizkiheryandi's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 11 months ago #177994 by rizkiheryandi
Replied by rizkiheryandi on topic Cloudflare 524 when save the survey for resume later
Ok, i'll try to remove cludlfare, and test it wihout cloudflare for debuging
The following user(s) said Thank You: DenisChenu
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose