Forums | Mahara Community

Support /
Brightspace Mahara - nonrecoverable error


MarionMacDonald's profile picture
Posts: 198

12 August 2022, 22:47

Good morning

I'm trying to get the Brightspace Mahara integration working and I think I'm almost there but not quite.  I've followed the instructions here https://manual.mahara.org/en/21.10/external/lti_brightspace.html?highlight=module+submissions# and I've had the settings checked by D2L.  What happens is that when I use the Mahara QuickLink from Existing Activities, I am asked to log in and then a popup window appears but it has some buttons, no content.  It's the standard BS Existing Activities window.

If I go by way of External Learning Tools to create a link to Mahara and then click on the link, I'm asked to log in and I land in Mahara with a "nonrecoverable error".

I've been given the logs and against my IP address at the appropriate time, there is "-" 408 575 and "-" 408 5256   I can't see anything else and I don't know what this means, apart from 'request timeout'.

Regards

Marion

Kristina Hoeppner's profile picture
Posts: 4717

16 August 2022, 16:14

Hi Marion,

What do you have in the Mahara error log at the time the nonrecoverable error occurs? There should be more information as we are only not displaying that on screen. If you are being asked to log in, it sounds like it doesn't send a LTI parameter along. Stepping through things one by one carefully might need to be done to see what's going on. There are lots of screens in Brightspace where things are set up and links are named. Please also make sure that you are on the latest stable code of 21.10. We did fix a deep linking issue in Mahara 21.10.1.

Cheers

Kristina

MarionMacDonald's profile picture
Posts: 198

19 August 2022, 1:27

Hello Kristina

Here are the logs our host have provided.  We are on v 21.10.3

Regards, Marion

 

[Thu Aug 18 13:52:16.215686 2022] [php7:notice] [pid 26380]  [WAR] 10 (module/lti_advantage/lib/lti-1-3-php-library/lti/LTI_Message_Launch.php:243) Undefined index: state, referer: https://OurHost.com/
[Thu Aug 18 13:52:16.215817 2022] [php7:notice] [pid 26380]  Call stack (most recent first):, referer: https://OurHost.com/
[Thu Aug 18 13:52:16.215860 2022] [php7:notice] [pid 26380]    * log_message(string(size 22), integer, true, true, string(size 124), integer) at /u0/webroot/virtual/OurMaharaSite.com/www/lib/errors.php:515, referer: https://OurHost.com/
[Thu Aug 18 13:52:16.215897 2022] [php7:notice] [pid 26380]    * error(integer, string(size 22), string(size 124), integer, array(size 0)) at /u0/webroot/virtual/OurMaharaSite.com/www/module/lti_advantage/lib/lti-1-3-php-library/lti/LTI_Message_Launch.php:243, referer: https://OurHost.com/
[Thu Aug 18 13:52:16.216008 2022] [php7:notice] [pid 26380]    * IMSGlobal\\LTI\\LTI_Message_Launch->validate_state() at /u0/webroot/virtual/OurMaharaSite.com/www/module/lti_advantage/lib/lti-1-3-php-library/lti/LTI_Message_Launch.php:83, referer: https://OurHost.com/
[Thu Aug 18 13:52:16.216061 2022] [php7:notice] [pid 26380]    * IMSGlobal\\LTI\\LTI_Message_Launch->validate() at /u0/webroot/virtual/OurMaharaSite.com/www/module/lti_advantage/home.php:27, referer: https://OurHost.com/
[Thu Aug 18 13:52:16.216087 2022] [php7:notice] [pid 26380]  , referer: https://OurHost.com/
[Thu Aug 18 13:52:16.216216 2022] [php7:notice] [pid 26380]  [WAR] 10 (module/lti_advantage/lib/lti-1-3-php-library/lti/LTI_Message_Launch.php:243) Undefined index: state, referer: https://OurHost.com/
[Thu Aug 18 13:52:16.216255 2022] [php7:notice] [pid 26380]  Call stack (most recent first):, referer: https://OurHost.com/
[Thu Aug 18 13:52:16.216278 2022] [php7:notice] [pid 26380]    * log_message(string(size 22), integer, true, true, string(size 124), integer) at /u0/webroot/virtual/OurMaharaSite.com/www/lib/errors.php:515, referer: https://OurHost.com/
[Thu Aug 18 13:52:16.216311 2022] [php7:notice] [pid 26380]    * error(integer, string(size 22), string(size 124), integer, array(size 0)) at /u0/webroot/virtual/OurMaharaSite.com/www/module/lti_advantage/lib/lti-1-3-php-library/lti/LTI_Message_Launch.php:243, referer: https://OurHost.com/
[Thu Aug 18 13:52:16.216358 2022] [php7:notice] [pid 26380]    * IMSGlobal\\LTI\\LTI_Message_Launch->validate_state() at /u0/webroot/virtual/OurMaharaSite.com/www/module/lti_advantage/lib/lti-1-3-php-library/lti/LTI_Message_Launch.php:83, referer: https://OurHost.com/
[Thu Aug 18 13:52:16.216414 2022] [php7:notice] [pid 26380]    * IMSGlobal\\LTI\\LTI_Message_Launch->validate() at /u0/webroot/virtual/OurMaharaSite.com/www/module/lti_advantage/home.php:27, referer: https://OurHost.com/
[Thu Aug 18 13:52:16.216443 2022] [php7:notice] [pid 26380]  , referer: https://OurHost.com/
[Thu Aug 18 13:52:16.217299 2022] [php7:notice] [pid 26380]  [WAR] 10 (lib/errors.php:530) [IMSGlobal\\LTI\\LTI_Exception]: State not found at /u0/webroot/virtual/OurMaharaSite.com/www/module/lti_advantage/lib/lti-1-3-php-library/lti/LTI_Message_Launch.php:245, referer: https://OurHost.com/
[Thu Aug 18 13:52:16.217349 2022] [php7:notice] [pid 26380]  Call stack (most recent first):, referer: https://OurHost.com/
[Thu Aug 18 13:52:16.217386 2022] [php7:notice] [pid 26380]    * exception(object(IMSGlobal\\LTI\\LTI_Exception)) at Unknown:0, referer: https://OurHost.com/
[Thu Aug 18 13:52:16.217455 2022] [php7:notice] [pid 26380]  , referer: https://OurHost.com/ 

 

Kristina Hoeppner's profile picture
Posts: 4717

06 September 2022, 15:16

Hi Marion,

We haven't seen this issue and I set up LTI Advantage on a Mahara 21.10 and Mahara 22.04 without any problems on sites that didn't hadn't been connected to Brightspace before. Therefore, I can only think right now that there is a parameter missing from your setup. I can't troubleshoot that without going through the setup steps to verify them.

Best,

Kristina

Kristina Hoeppner's profile picture
Posts: 4717

07 September 2022, 10:51

Hi Marion,

We've done some more digging and could only replicate the problem on the current 'main' branch which has additional changes. Our standard Mahara 21.10 did not exhibit the problem. We could resolve the issue on 'main' by changing 'instancename' to 'authname' in the LTI call. For Mahara 21.10, you can find that on line 372.

In 'main' we have the possibility to rename the instance name and thus we need to change it to look for the authname as that is persistent. It is not possible to change the instance name on the interface and that change is not on 21.10. However, can you please check if by any chance your web services auth was renamed in the database from 'webservice' to something else? If so, changing 'instancename' to 'authname' in the code should resolve the issue. If it wasn't renamed, can you still please change the code and test it? Since we can't replicate the problem on our instances, we can't test this ourselves.

Thank you

Kristina

MarionMacDonald's profile picture
Posts: 198

07 September 2022, 21:07

Hello Kristina

Thank you so much for looking into this.  I really appreciate it.  I have passed your response on to our host and will see what they say.

Regards, Marion

MarionMacDonald's profile picture
Posts: 198

22 September 2022, 3:01

Hello Kristina

This is the response I've had from our Mahara host in relation to your suggestion:

As Mahara has found a potential fault with regard to the core code and database for Mahara, they would need to provide a code change in order for us to change this (i.e. change the DB table column header themselves and test it).

Regards

Marion

Kristina Hoeppner's profile picture
Posts: 4717

22 September 2022, 16:33

Hi Marion,

We hadn't found a fault in Mahara 21.10 because Mahara core doesn't exhibit the problem. We only suspect where the problem might lie based on a similar issue we had run into in not yet released code where we fixed the issue as far as I know, but that code isn't available on your server and thus can't be the cause of the problem. I provided information on what to check, but your provider has not yet confirmed what's actually in the database. If your provider would like us to troubleshoot the issue, we can do that on a consulting basis as we can't help any further without more information and we could only get more information by having access to the site and the server.

Thank you

Kristina

MarionMacDonald's profile picture
Posts: 198

30 September 2022, 22:20

Hello Kristina

In relation to your reply on 7 September, I've been sent the attached screenshot and the question is if this is what you refer to?

Thanks for your help.

Regards, Marion

  • auth_instance.png
Kristina Hoeppner's profile picture
Posts: 4717

04 October 2022, 15:40

Hi Marion,

One of our devs had another look and noticed that in the lti_advantage home.php file it looks to call the 'validate()' function that he saw in the error log output where it wants to set the lti_cache value as $CFG->dataroot . '/temp' Could the issue be that this directory is not writable by the weberver (www-data, httpd etc)?

Cheers

Kristina

 

12 results