WeBWorK Main Forum

The library browser not showing content properly

The library browser not showing content properly

by Alexander Gavrilyuk -
Number of replies: 4

The IT department at my university has installed WebWork (running it in a Docker container on an EC2 instance in AWS). However, I've found that WebWork does not generate math images in the library browser, though it displays them correctly in the homework sets.

I found this discussion: https://webwork.maa.org/moodle/mod/forum/discuss.php?d=8124

It suggests the issue might be related to SSL certificates. However, removing the AWS SSL certificate did not resolve the problem, and the issue persists on the unsecured site. What else could be causing this? Thanks!

Image preview

In reply to Alexander Gavrilyuk

Re: The library browser not showing content properly

by Danny Glin -

It looks like you attached an image, but it isn't showing.

Here are a couple of things to check:

  1. Make sure that $server_root_url is set properly in site.conf (i.e. http if you are not using SSL, and https if you are).
  2. Make sure that you have run 'npm ci' in both /opt/webwork/webwork2/htdocs and /opt/webwork/pg/htdocs
  3. Check your browser console to see if there are any error messages.  If so, please report them in this thread.
In reply to Danny Glin

Re: The library browser not showing content properly

by Alexander Gavrilyuk -
Thanks! Yes, I pasted an image of the browser console in my post; I am now attaching it as a file.
I forgot to mention that this issue did not occur on my iPad, but it did on two different computers and a smartphone.

Attachment thumbnail_image.png
In reply to Alexander Gavrilyuk

Re: The library browser not showing content properly

by Danny Glin -
Those error messages appear to be showing a timeout, which makes me suspect that this has to do with the server not responding to requests. The fact that the behaviour is not consistent makes me wonder if it has something to do with the fact that the library browser loads each problem separately, and the concurrent requests are somehow overwhelming your server.

Have you adjusted any of the settings in webwork.mojolicious.yml? If there are not enough workers to serve requests then you might see behaviour like this? Also, is there anything in the webwork log (/opt/webwork/webwork2/logs/webwork2.log) that relates to these errors?
In reply to Danny Glin

Re: The library browser not showing content properly

by Alexander Gavrilyuk -
I forwarded your suggestions to the IT team and they were able to resolve the issue.
It appeared to be a bunch of problems, not a single one (port forwarding, the $server_root_url value, SSL).
Thank you so much!!