Installation

error adding questions errors

error adding questions errors

by pb math -
Number of replies: 15

Hello (again)

I am getting a error whenever I try to add certain questions, eg calc, diff, defn, (first question) when I try to add it to a homework I get a pause follwoed by:

259 setmaker.js: /webwork2/instructorXMLHandler: timeout

Randomly I tried a question from statics and that added fine, but more often than not the maths ones always return the above. I don't see anything obvious in the error logs

xmlrpcCall to getProblemTags returned no result for
[Sun Apr 25 11:53:08.746535 2021] [perl:error] [pid 44616] [client 86.45.239.6:55202] [/webwork2/instructorXMLHandler] xmlrpcCall to getProblemTags returned no result for \n * in>
There were a lot of errors
Errors:
 500 read timeout at /opt/webwork/webwork2/lib/WebworkClient.pm line 302.

 End Errors
xmlrpcCall to getProblemTags returned no result for
[Sun Apr 25 11:53:08.753939 2021] [perl:error] [pid 44617] [client 86.45.239.6:55204] [/webwork2/instructorXMLHandler] xmlrpcCall to getProblemTags returned no result for \n * in>
Subroutine TEX redefined at (eval 1619) line 1690, <MACROFILE> chunk 1.
Subroutine TEX redefined at (eval 1836) line 1690, <MACROFILE> chunk 1.
Subroutine TEX redefined at (eval 2138) line 1690, <MACROFILE> chunk 1.
Subroutine TEX redefined at (eval 2042) line 1690, <MACROFILE> chunk 1.
Subroutine TEX redefined at (eval 2333) line 1690, <MACROFILE> chunk 1.
Subroutine TEX redefined at (eval 2624) line 1690, <MACROFILE> chunk 1.
Subroutine TEX redefined at (eval 2912) line 1690, <MACROFILE> chunk 1.
Subroutine TEX redefined at (eval 3204) line 1690, <MACROFILE> chunk 1.
Subroutine TEX redefined at (eval 3492) line 1690, <MACROFILE> chunk 1.
Subroutine TEX redefined at (eval 3765) line 1690, <MACROFILE> chunk 1.
Subroutine TEX redefined at (eval 4038) line 1690, <MACROFILE> chunk 1.
Subroutine TEX redefined at (eval 4311) line 1690, <MACROFILE> chunk 1.
Subroutine TEX redefined at (eval 4585) line 1690, <MACROFILE> chunk 1.
Subroutine TEX redefined at (eval 4864) line 1690, <MACROFILE> chunk 1.
Subroutine TEX redefined at (eval 5137) line 1690, <MACROFILE> chunk 1.
Subroutine TEX redefined at (eval 5410) line 1690, <MACROFILE> chunk 1.
Subroutine TEX redefined at (eval 5683) line 1690, <MACROFILE> chunk 1.
Subroutine TEX redefined at (eval 5956) line 1690, <MACROFILE> chunk 1.
Subroutine TEX redefined at (eval 6229) line 1690, <MACROFILE> chunk 1.
Subroutine TEX redefined at (eval 6502) line 1690, <MACROFILE> chunk 1.
Subroutine TEX redefined at (eval 6775) line 1690, <MACROFILE> chunk 1.
Subroutine install_problem_grader redefined at (eval 6845) line 2.
Subroutine TEX redefined at (eval 7083) line 1690, <MACROFILE> chunk 1.
Subroutine install_problem_grader redefined at (eval 7153) line 2.
Subroutine TEX redefined at (eval 7391) line 1690, <MACROFILE> chunk 1.
Subroutine install_problem_grader redefined at (eval 7461) line 2.
Subroutine TEX redefined at (eval 7699) line 1690, <MACROFILE> chunk 1.
Subroutine install_problem_grader redefined at (eval 7769) line 2.
There were a lot of errors
There were a lot of errors
Errors:
 500 read timeout at /opt/webwork/webwork2/lib/WebworkClient.pm line 302.

 End Errors
Errors:

there are some similar questions like this, but their fixes didnt help me, at least as far as I could follow them.

My server is : http://euclid.webworkmaths.net/webwork2/

In reply to pb math

Re: error adding questions errors

by Robert Mařík -

Did you set correctly URL of the server in the configuration files?

I can see: Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at about:blank. (Reason: CORS request not http).

And remember to change the admin password :)



In reply to Robert Mařík

Re: error adding questions errors

by pb math -
Yes, the server address is correct in site.conf and localOverrides
Not sure what Cross-Origin is about ?
I have the default passwords left, as it not in use for anyone at the moment, once I actually get it working everything will be changed.
In reply to pb math

Re: error adding questions errors

by Robert Mařík -

Sorry for an advice which turned out not to be useful. This is probably not the source of the problems. Just checked my server with the same error message but the problems can be added with no problems.


In reply to Robert Mařík

Re: error adding questions errors

by pb math -
No worries, its odd every so often I can add a problem and no issues but most of time when I click add it hangs and i get that message. It's a fresh amazon AWI install , weird basically unusable currently.
In reply to pb math

Re: error adding questions errors

by Alex Jordan -

Can you give a sample of specific file paths of problems where this happens? You did say "eg calc, diff, defn, (first question)" and for me, that leads to:

Library/Wiley/setAnton_Section_3.2/Anton3_2Q54a.pg

But I can't be sure that our OPLs are the same and you would get the same problem file. If it is that problem, it uses the Wiley macro library littleneck.pl, which uses problemRandomize.pl. And iirc there was something about timing out that had something to do with problemRandomize.pl. Anyway, it would be worth seeing if the problems for which this happens for you have something in common (like using problemRandomize.pl, for example).

In reply to Alex Jordan

Re: error adding questions errors

by pb math -
Hi Alex,
Of course, so I just tried, OPL -> Lin Alg -> matrices->rank and the first question (says rank is always 3) " Library/Rochester/setLinearAlgebra3Matrices/ur_Ch1_3_2.pg", I click to add this to a homework, stalls and I get "259 setmaker.js: /webwork2/instructorXMLHandler: timeout"

Any help appreciated.
In reply to pb math

Re: error adding questions errors

by Robert Mařík -

What about to add the following line to the configuration file?

$permissionLevels{modify_tags} = "nobody";



In reply to Robert Mařík

Re: error adding questions errors

by pb math -
Hi Robert,
Just added, $permissionLevels{modify_tags} = "nobody"; to the end of site.conf, rebooted same issue so no change. I am using the AWI image so im guessing its something that I did, otherwise everyone with the AWI image would be having this issue?
In reply to pb math

Re: error adding questions errors

by Robert Mařík -
May I try to create course your server?
In reply to Robert Mařík

Re: error adding questions errors

by pb math -
Hi Robert,
Feel free, everything is as default
http://euclid.webworkmaths.net/webwork2/
In reply to pb math

Re: error adding questions errors

by Robert Mařík -

I created the course "rm".

Created test, tried to add question. Got the error and the server became unresponsive.

After short time I returned, used the file manager to modify course.conf (see the last line).

Then returned to the Library browser and added three questions. The problem did not occur. The HW now has 4 problems, the first two problems are equal. It seems that on the first attempt, the problem has been added and then the system became unresponsive.

Perhaps this is the way how to remove this problem. Anyway, it would be great to find out why do you get such a behavior. Did you run OPL-update after the installation ?

In reply to Robert Mařík

Re: error adding questions errors

by pb math -

Wow interesting, and thank you.

So after installing I ran, apt update and upgrade thats all, I never ran the OPL update, will try tonight/tomorrow and report back

In reply to pb math

Re: error adding questions errors

by Robert Mařík -

Not sure if it is necessary, I do not know what is inside the Amazon preconfigured machine. But it is worth to try.

In reply to Robert Mařík

Re: error adding questions errors

by pb math -

Hi Robert,

So logged in and updated everything following the instructions : https://webwork.maa.org/wiki/WeBWorK_2.15_Ubuntu_Server_20.04_LTS_Amazon_Machine_Image#Checking_for_and_Installing_Hotfixes

I tried to update OPL, using OPL-update, but that script is not there or command not found. Anyways rebooted my server and the issue still is there, apart from that course you created - I guess I will just band aid that as the solution to the courses I need.

Thanks again for the help.

In reply to pb math

Re: error adding questions errors

by Ervin Jelvos -

Did you set correctly URL of the server in the configuration files?

I can see: Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at about:blank. (Reason: CORS request not http).

And remember to change the admin password :)