Installation

WW 2.17 on Ubuntu 22.04 server Library Browser Error

Re: WW 2.17 on Ubuntu 22.04 server Library Browser Error

by Chris Jolly -
Number of replies: 6
Running the "metadata release" script and "OPL-update" script using "sudo -e" and the full path to the script resulted in some different results that now allow the library browser to work. I am now getting some errors clicking on some of the different buttons.


In reply to Chris Jolly

Re: WW 2.17 on Ubuntu 22.04 server Library Browser Error

by Danny Glin -

This is probably an artifact of running some of the scripts as root.

Most likely you can just delete the folder at /opt/webwork/libraries/webwork-open-problem-library/OpenProblemLibrary/fileFetch.H1nftW.  That folder was probably created as a temporary location for downloaded files.  It's worth looking to see what's in that folder to make sure that it doesn't look like anything important.

In reply to Danny Glin

Re: WW 2.17 on Ubuntu 22.04 server Library Browser Error

by Chris Jolly -
There is actually not a file or folder with that name in that path. Also noticed I'm getting a similar error in the Hmwk Sets editor:

Can't opendir(/opt/webwork/libraries/webwork-open-problem-library/OpenProblemLibrary/FileFetch.H1nftW): Permission denied
at /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator/Instructor.pm line 699.
In reply to Chris Jolly

Re: WW 2.17 on Ubuntu 22.04 server Library Browser Error

by Andrew Parker -

> resulted in some different results

Can you please share what results you received from running the `download-OPL-metadata-release`? 

In reply to Andrew Parker

Re: WW 2.17 on Ubuntu 22.04 server Library Browser Error

by Chris Jolly -

Sure thing!

Found OPL METADATA release v2022-05-30.

Downloaded release archive, now extracting.

Restoring OPL tables from release database dump.

OPL path seems to be /opt/webwork/libraries/webwork-open-problem-library/

WARNING: Forcing protocol to  TCP  due to option specification. Please explicitly state intended protocol.

Removing temporary files.

Done!

In reply to Chris Jolly

Re: WW 2.17 on Ubuntu 22.04 server Library Browser Error

by Chris Jolly -
I also get a similar error as above if I try to run OPL-update without sudo -E to the full path:

Can't opendir(/opt/webwork/libraries/webwork-open-problem-library/OpenProblemLibrary/FileFetch.H1nftW): Permission denied
at /opt/webwork/webwork2/bin/generate-OPL-set-def-lists.pl line 62.
In reply to Chris Jolly

Re: WW 2.17 on Ubuntu 22.04 server Library Browser Error

by Chris Jolly -
I have found a workaround that I am happy with given how seldom OPL-update is run. 

Here is the upshot:
  • The OPL-update was not running correctly unless it was being run as sudo -E.
  • Doing so created a FileFetch directory under the courses folder that could not be accessed by anyone other than root.
  • Manually resassigning ownership and setting permissions to 755 resolved my errors.
  • Since we only run the OPL-update script between semesters, I am happy to document the workaround and use it in perpetuity.

Thanks to all who chimed in, it was very helpful!