WeBWorK Main Forum

Random timeouts during an assessment

Random timeouts during an assessment

by Tony Box -
Number of replies: 1
Hi All,

A couple of years ago, I posted a similar problem to what I'm having right now.

Randomly during assignments, students will hit a submit button or try to view a question and their page load will time out. If they hit the back button and resubmit again, it will work (this occasionally takes a few tries). I've also notice this timeout issue randomly happen when trying to log in to a course.

Here's what the error logs look like upon one of these occurrences (sorry for the log dump!)

[Fri Aug 02 01:02:08 2013] [warn] [client 10.10.1.80] [/webwork2/Sum13BUS505/quiz_mode/DQ_0731,v1/] Timeout after processing this problem for 60 seconds. Check for infinite loops in problem source., referer: https://webwork.up.edu/webwork2/Sum13BUS505/quiz_mode/DQ_0731,v1/
[Fri Aug 02 01:02:08 2013] [error] [client 10.10.1.80] [/webwork2/Sum13BUS505/quiz_mode/DQ_0731,v1/] Software caused connection abort at /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator/GatewayQuiz.pm line 2088.\n * in WeBWorK::ContentGenerator::GatewayQuiz::body called at line 152 of /opt/webwork/webwork2/lib/WeBWorK/Template.pm\n * in WeBWorK::Template::template called at line 491 of /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator.pm\n * in WeBWorK::ContentGenerator::content called at line 195 of /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator.pm\n * in WeBWorK::ContentGenerator::go called at line 353 of /opt/webwork/webwork2/lib/WeBWorK.pm, referer: https://webwork.up.edu/webwork2/Sum13BUS505/quiz_mode/DQ_0731,v1/:Apache2 IO flush: (103) Software caused connection abort at -e line 0
[Fri Aug 02 01:07:23 2013] [warn] [client 10.10.1.80] [/webwork2/Sum13BUS505/quiz_mode/DQ_0731,v1/] Timeout after processing this problem for 60 seconds. Check for infinite loops in problem source., referer: https://webwork.up.edu/webwork2/Sum13BUS505/quiz_mode/DQ_0731,v1/
[Fri Aug 02 01:07:23 2013] [error] [client 10.10.1.80] [/webwork2/Sum13BUS505/quiz_mode/DQ_0731,v1/] Software caused connection abort at /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator/GatewayQuiz.pm line 2088.\n * in WeBWorK::ContentGenerator::GatewayQuiz::body called at line 152 of /opt/webwork/webwork2/lib/WeBWorK/Template.pm\n * in WeBWorK::Template::template called at line 491 of /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator.pm\n * in WeBWorK::ContentGenerator::content called at line 195 of /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator.pm\n * in WeBWorK::ContentGenerator::go called at line 353 of /opt/webwork/webwork2/lib/WeBWorK.pm, referer: https://webwork.up.edu/webwork2/Sum13BUS505/quiz_mode/DQ_0731,v1/ :Apache2 IO flush: (103) Software caused connection abort at -e line 0Subroutine fact redefined at (eval 38409) line 240, <MACROFILE> chunk 1.
Subroutine fact redefined at (eval 38896) line 240, <MACROFILE> chunk 1.
Subroutine fact redefined at (eval 39134) line 240, <MACROFILE> chunk 1.
Subroutine fact redefined at (eval 39372) line 240, <MACROFILE> chunk 1.
Subroutine fact redefined at (eval 1791) line 240, <MACROFILE> chunk 1.
Subroutine max redefined at (eval 2019) line 58, <MACROFILE> chunk 1.
Subroutine min redefined at (eval 2019) line 72, <MACROFILE> chunk 1.
Subroutine fact redefined at (eval 2019) line 240, <MACROFILE> chunk 1.
Use of uninitialized value in concatenation (.) or string at (eval 2043) line 2.
Use of uninitialized value in concatenation (.) or string at (eval 2043) line 2.
Use of uninitialized value in concatenation (.) or string at (eval 2043) line 2.
Use of uninitialized value in concatenation (.) or string at (eval 2277) line 2.
Use of uninitialized value in concatenation (.) or string at (eval 2277) line 2.
Use of uninitialized value in concatenation (.) or string at (eval 2277) line 2.
[Fri Aug 02 09:28:27 2013] [error] [client 10.10.1.80] File does not exist: /var/www/html/robots.txt
Use of uninitialized value in substitution (s///) at /opt/webwork/webwork2/lib/Apache/WeBWorK.pm line 321.
[Fri Aug 02 09:31:02 2013] [error] [client 10.10.1.80] [/webwork2/S13MTH201D/] Failed to initialize course environment: Could not evaluate global environment file /opt/webwork/webwork2/conf/global.conf: Can't locate object method "get" via package "APR::Table" at /opt/webwork/webwork2/lib/Apache/WeBWorK.pm line 74.\n\n
Subroutine min redefined at (eval 28615) line 72, <MACROFILE> chunk 1.

Michael Gage responded to my previously posted question here: http://webwork.maa.org/moodle/mod/forum/discuss.php?d=2552

I've restarted apache and the webserver multiple times with no luck. Is there any way to verify that all of the perl modules are properly loaded? I don't get any error messages upon restart of either the server or apache. We've got a final exam coming up this next week in WeBWorK and now it decides to act all wonky! Argh!

Thanks for any suggestions!

Tony
In reply to Tony Box

Re: Random timeouts during an assessment

by Gavin LaRose -
Hi Tony,

I haven't seen the timeout issues, but the other error description, in particular, the error Can't locate object method "get" via package "APR::Table" and things working when resubmitting, we were at some point seeing.

Doing a quick search, I'm seeing forum discussions at http://webwork.maa.org/moodle/mod/forum/discuss.php?d=2646, http://webwork.maa.org/moodle/mod/forum/discuss.php?d=2513 and http://webwork.maa.org/moodle/mod/forum/discuss.php?d=2292.

We were seeing this issue sporadically with RHEL 5, and it disappeared when we upgraded our servers to RHEL 6. This would be consistent with there being some inconsistency in Perl modules used by WeBWorK.

This isn't a solution, but hopefully adds some discussion that might prompt finding one.

Gavin