I just upgraded to WebWork version 2.19 and I'm getting the following error when I select the Library Browser menu item
DBD::mysql::db selectall_arrayref failed: Unknown column 'pgf.libraryroot' in 'field list' at /opt/webwork/webwork2/lib/WeBWorK/DB/Schema/NewSQL/Std.pm line 930.
And the associated context
925: warn(
926: "It looks like the database is missing a column. You may need to upgrade your course tables. If this is the admin course then you will need to upgrade the admin tables using the upgrade_admin_db.pl script."
927: );
928: }
929:
930: die $errmsg;
931: }
932: }
933:
934: sub DESTROY {
935: }
I did run the update_admin_db.pl script as part of the upgrade and successfully updated all the courses. I also ran OPL-update script with the following results:
/opt/webwork/webwork2/bin$ OPL-update
Downloading the latest OPL release.
Found OPL METADATA release v2024-08-14.
Downloaded release archive, now extracting.
remote: Enumerating objects: 17517, done.
remote: Counting objects: 100% (8045/8045), done.
remote: Compressing objects: 100% (2494/2494), done.
remote: Total 17517 (delta 5615), reused 7878 (delta 5488), pack-reused 9472 (from 1)
Receiving objects: 100% (17517/17517), 557.57 MiB | 77.81 MiB/s, done.
Resolving deltas: 100% (9515/9515), completed with 1060 local objects.
From https://github.com/openwebwork/webwork-open-problem-library
* [new branch] main -> origin/main
* [new tag] v2022-05-30 -> v2022-05-30
* [new tag] v2022-08-15 -> v2022-08-15
* [new tag] v2022-4-15 -> v2022-4-15
* [new tag] v2023-04-30 -> v2023-04-30
* [new tag] v2024-08-13 -> v2024-08-13
* [new tag] v2024-08-14 -> v2024-08-14
Switching OPL clone in /opt/webwork/libraries/webwork-open-problem-library/ to new branch of release tag v2024-08-14.
error: Your local changes to the following files would be overwritten by checkout:
OpenProblemLibrary/Rochester/setTrig03FunctionsRightAngle/srw6_2_11.pg
OpenProblemLibrary/Rochester/setTrig03FunctionsRightAngle/srw6_2_3.pg
OpenProblemLibrary/Rochester/setTrig03FunctionsRightAngle/srw6_2_7.pg
OpenProblemLibrary/UVA-Stew5e/setUVA-Stew5e-C05S04-IndefInts/5-4-07.pg
Please commit your changes or stash them before you switch branches.
Aborting
Restoring OPL tables from release database dump.
OPL path seems to be /opt/webwork/libraries/webwork-open-problem-library/
ERROR 1046 (3D000) at line 22: No database selected
Removing temporary files.
Done!
Using WeBWorK root: /opt/webwork/webwork2
Using library root: /opt/webwork/libraries/webwork-open-problem-library/OpenProblemLibrary
Using contrib root: /opt/webwork/libraries/webwork-open-problem-library/Contrib
Saved OPL set definition list to /opt/webwork/webwork2/htdocs/DATA/library-set-defs.json.
Saved Contrib set definition list to /opt/webwork/webwork2/htdocs/DATA/contrib-set-defs.json.
Updating Library Statistics.
Importing statistics for 21 courses.
1 2 3 4 5 6 7 8 9 10
11 12 13 14 15 16 17 18 19 20
21
You may want to run load-OPL-global-statistics.pl to update the global statistics data.
If this is being run by OPL-update, that will be done automatically.
Loading global statistics (if possible).
ERROR 1046 (3D000) at line 22: No database selected
Sharing aggregated statistics
WeBWorK and the Open Problem Library (OPL) are provided freely under an
open-source license. We ask that you share your OPL usage statistics for
the benefit of all who use WeBWorK. The following information will be shared
with the WeBWorK community if you agree:
* a list of OPL problems that have been used on your server, with
the following statistics for each:
* the total number of users who attempted the problem
* the average number of attempts made per user on the problem
* the average completion percentage for each user who attempted the problem
Share OPL usage statistics with the WeBWorK community [Y/N]:
I suspect the problem is the error: No database selected but I don't know where I should be looking to fix the issue. Any guidance would be much appreciated