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 Andrew Parker -
Number of replies: 3

> 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!