## WeBWorK Problems

by Aung Linn -
Number of replies: 5
I am having following errors in apache error.log file. There are some courses not updating the Grades back to Canvas LTI. Could anyone direct me what do I have to do?

Thanks.

[Wed Aug 30 16:45:13.502463 2017] [perl:error] [pid 6128] [client 76.14.31.100:35313] An error occurred while trying to update grades via LTI: Global $r object is not available. Set:\n\tPerlOptions +GlobalRequest\nin httpd.conf at /usr/share/perl/5.18/CGI.pm line 363.\n\n, referer: https://webwork.smccd.edu/webwork2/CSM_M222Chen/Angle_sum_identities/2/ Unable to update LMS grade. Error: failure at /opt/webwork/webwork2/lib/WeBWorK/Authen/LTIAdvanced/SubmitGrade.pm line 275. [Wed Aug 30 17:03:02.269456 2017] [perl:error] [pid 6245] [client 76.14.31.100:42539] An error occurred while trying to update grades via LTI: Global$r object is not available. Set:\n\tPerlOptions +GlobalRequest\nin httpd.conf at /usr/share/perl/5.18/CGI.pm line 363.\n\n, referer: https://webwork.smccd.edu/webwork2/CSM_M222Chen/Angle_sum_identities/3/

### Re: LTI Grade Update Error

by Michael Gage -
I have suspicion that this might be a reference to some failure in a particular question.  Does this failure always happen? Does it happen only on certain questions? Can you construct a simple 1 question homework set where this fails and a one question homework set where it succeeds?  That may help with the debugging.

### Re: LTI Grade Update Error

by Aung Linn -
As for now, it is happening to one specific course for some students. It was syncing correctly last week.

Are there any maximum limits for the mass syncing? The course has 41 students at the moment and about 30 students got their grades synced.

The LTIGradeMode is set as homework at course.conf (course level). If I turn on LTIGradeOnSubmit, the sync is working when submitting answers but there are random errors that saying could not authorize. So, I turn off LTIGradeOnSubmit.

To test the homeworks sets, I created a new course with the problem course template and added the Homework Sets to the new course. The Grade Sync is working for the new course and all 7 homework sets and questions.

Few months ago, I upgraded WW version from 2.10 to 2.12 to integrate with Canvas. Do you think the old courses could be problem for the new version? I upgraded all old courses and only harmless warning "extra column "published" for older course" left on upgrade courses page. The webwork is currently on Ubuntu 14 server.

### Re: LTI Grade Update Error

by Andrew Ruether -
I had a similar-sounding problem, also on version 2.12, and posted a possible solution in the WeBWorK issue tracker: https://github.com/openwebwork/webwork2/issues/811

- Andrew

### Re: LTI Grade Update Error

by Sean Fitzpatrick -
We've been getting the exact same error you've referenced on GitHub in our Apache logs. As far as I can tell, student grades are still being updated, so I've ignored the errors.
Our sever is set to do a daily mass update, and yet we get this error in the Apache log throughout the day. I'm not sure if this is because maybe grades are reported serially (I know this is the case for other LTI connections we use).

In any case, I'd appreciate hearing whether this change has made things better, or if any new problems have arisen as a result. Ultimately my main concern is that grades get passed to the correct students each day. I checked the students whose IDs showed up in the error logs today, and all of them have the grades they should in our LMS, so it seems to be working in spite of the error messages.