-
-
Notifications
You must be signed in to change notification settings - Fork 165
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incompatible with sql_mode=only_full_group_by error when searching for problems to assign. #2651
Comments
Please give more details. What do you mean "when searching for problems to assign for homework from problem database"? What are you doing in the user interface to cause the issue? |
Here is what they are trying to do:
Library Browser•Subject (select one)• Chapter (select one)• Section (select one) •View Problems.
Also, Add All adds nothing.
On Jan 7, 2025, at 10:29 AM, Glenn Rice ***@***.***> wrote:
Please give more details. What do you mean "when searching for problems to assign for homework from problem database"? What are you doing in the user interface to cause the issue?
—
Reply to this email directly, view it on GitHub<#2651 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AKCBRHRT4JNEOC7GPBLMQZD2JPXEFAVCNFSM6AAAAABUX5YVXGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNZVGU3TQNJZGI>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
CAUTION: This email originated from outside of KSU. Use caution replying or supplying information, clicking links, or opening attachments. If you suspect the message is fraudulent, report it using the Phishing Alert Button<https://uits.kennesaw.edu/ocs/phish-market/report.php> or forward the message to ***@***.******@***.***>
|
It sounds like you need to update your OPL database. You may need to run the |
Hi Glenn,
I did run the following but I am still getting the same error.
Does everything look good below?
Tharrow
================================================================================================
***@***.***:/opt/webwork/webwork2/bin# ./OPL-update
Downloading the latest OPL release.
Found OPL METADATA release v2024-08-14.
Downloaded release archive, now extracting.
fatal: detected dubious ownership in repository at '/opt/webwork/libraries/webwork-open-problem-library'
To add an exception for this directory, call:
git config --global --add safe.directory /opt/webwork/libraries/webwork-open-problem-library
fatal: detected dubious ownership in repository at '/opt/webwork/libraries/webwork-open-problem-library'
To add an exception for this directory, call:
git config --global --add safe.directory /opt/webwork/libraries/webwork-open-problem-library
Switching OPL clone in /opt/webwork/libraries/webwork-open-problem-library/ to new branch of release tag v2024-08-14.
fatal: detected dubious ownership in repository at '/opt/webwork/libraries/webwork-open-problem-library'
To add an exception for this directory, call:
git config --global --add safe.directory /opt/webwork/libraries/webwork-open-problem-library
Restoring OPL tables from release database dump.
OPL path seems to be /opt/webwork/libraries/webwork-open-problem-library/
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.
Done.
***@***.***:/opt/webwork/webwork2/bin# git config --global --add safe.directory /opt/webwork/libraries/webwork-open-problem-library
***@***.***:/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: 1834, done.
remote: Counting objects: 100% (252/252), done.
remote: Compressing objects: 100% (93/93), done.
remote: Total 1834 (delta 214), reused 159 (delta 159), pack-reused 1582 (from 2)
Receiving objects: 100% (1834/1834), 1.48 MiB | 16.15 MiB/s, done.
Resolving deltas: 100% (900/900), completed with 21 local objects.
From https://github.com/openwebwork/webwork-open-problem-library
04cf8b7013..0998152923 main -> origin/main
* [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/FortLewis/DiffEq/2-Higher-order/04-Mechanical-vibrations/Lebl-2-4-02.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/
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.
Done.
…-------------------------------------------------------------------------------------------------------------------------------------------------------
It sounds like you need to update your OPL database. You may need to run the OPL-update script.
—
Reply to this email directly, view it on GitHub<#2651 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AKCBRHRGTFE4L3EFSLNG7RD2JQRT7AVCNFSM6AAAAABUX5YVXGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNZWGA2DEOBYHE>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
CAUTION: This email originated from outside of KSU. Use caution replying or supplying information, clicking links, or opening attachments. If you suspect the message is fraudulent, report it using the Phishing Alert Button<https://uits.kennesaw.edu/ocs/phish-market/report.php> or forward the message to ***@***.******@***.***>
|
You will need to run the OPL-update script as the user that owns the /opt/webwork/libraries/webwork-open-problem-library directory. |
Hi Glenn,
It won’t run at all as the webwork user. The permissions are such that we have to run everything as root which has worked well for us in the past.
We just recently upgraded to 2.19 and everything was working well before the upgrade.
Tharrow
From: Glenn Rice ***@***.***>
Date: Tuesday, January 7, 2025 at 4:31 PM
To: openwebwork/webwork2 ***@***.***>
Cc: Tharrow Pegues ***@***.***>, Author ***@***.***>
Subject: [EXTERNAL] Re: [openwebwork/webwork2] Incompatible with sql_mode=only_full_group_by error when searching for problems to assign. (Issue #2651)
You will need to run the OPL-update script as the user that owns the /opt/webwork/libraries/webwork-open-problem-library directory.
—
Reply to this email directly, view it on GitHub<#2651 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AKCBRHXDX62WQMH7U4FFSTL2JRBRZAVCNFSM6AAAAABUX5YVXGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNZWGI2TONBRGA>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
CAUTION: This email originated from outside of KSU. Use caution replying or supplying information, clicking links, or opening attachments. If you suspect the message is fraudulent, report it using the Phishing Alert Button<https://uits.kennesaw.edu/ocs/phish-market/report.php> or forward the message to ***@***.******@***.***>
|
What version of WeBWorK did you upgrade from? |
2.18 we were running before..
From: Glenn Rice ***@***.***>
Date: Tuesday, January 7, 2025 at 5:20 PM
To: openwebwork/webwork2 ***@***.***>
Cc: Tharrow Pegues ***@***.***>, Author ***@***.***>
Subject: [EXTERNAL] Re: [openwebwork/webwork2] Incompatible with sql_mode=only_full_group_by error when searching for problems to assign. (Issue #2651)
What version of WeBWorK did you upgrade from?
—
Reply to this email directly, view it on GitHub<#2651 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AKCBRHUP24R5SEEPU3BYRKT2JRHIRAVCNFSM6AAAAABUX5YVXGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNZWGMZTOOBQGY>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
CAUTION: This email originated from outside of KSU. Use caution replying or supplying information, clicking links, or opening attachments. If you suspect the message is fraudulent, report it using the Phishing Alert Button<https://uits.kennesaw.edu/ocs/phish-market/report.php> or forward the message to ***@***.******@***.***>
|
I don't know how you were able to run the OPL-update script as a user other than the owner of the /opt/webwork/libraries/webwork-open-problem-library before. Even with WeBWorK 2.18 that would have been needed. That was a change by |
There is a legacy opl script that I think we have used in the past. Is this an option?
From: Glenn Rice ***@***.***>
Date: Tuesday, January 7, 2025 at 5:29 PM
To: openwebwork/webwork2 ***@***.***>
Cc: Tharrow Pegues ***@***.***>, Author ***@***.***>
Subject: [EXTERNAL] Re: [openwebwork/webwork2] Incompatible with sql_mode=only_full_group_by error when searching for problems to assign. (Issue #2651)
I don't know how you were able to run the OPL-update script as a user other than the owner of the /opt/webwork/libraries/webwork-open-problem-library before. Even with WeBWorK 2.18 that would have been needed. That was a change by git, not by WeBWorK, and that change was made years ago. Well before Ubuntu 22.04 was released (the version of Ubuntu for the docker build with 2.18). This is what the fatal: detected dubious ownership in repository errors are about.
—
Reply to this email directly, view it on GitHub<#2651 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AKCBRHRCSZOIRKUR7P7C6JT2JRIM3AVCNFSM6AAAAABUX5YVXGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNZWGM2TANZRGI>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
CAUTION: This email originated from outside of KSU. Use caution replying or supplying information, clicking links, or opening attachments. If you suspect the message is fraudulent, report it using the Phishing Alert Button<https://uits.kennesaw.edu/ocs/phish-market/report.php> or forward the message to ***@***.******@***.***>
|
Yes, you can still use that. It is OPL-update-legacy. |
I started it about 1 hour ago so it will take a minute. I will follow up with you tomorrow good or bad.
School started this week so it is critical. 😊 TYSVM!!
From: Glenn Rice ***@***.***>
Date: Tuesday, January 7, 2025 at 5:40 PM
To: openwebwork/webwork2 ***@***.***>
Cc: Tharrow Pegues ***@***.***>, Author ***@***.***>
Subject: [EXTERNAL] Re: [openwebwork/webwork2] Incompatible with sql_mode=only_full_group_by error when searching for problems to assign. (Issue #2651)
Yes, you can still use that. It is OPL-update-legacy.
—
Reply to this email directly, view it on GitHub<#2651 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AKCBRHTP7V5P5BBN6NCA6KD2JRJT7AVCNFSM6AAAAABUX5YVXGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNZWGM3DENRVGM>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
CAUTION: This email originated from outside of KSU. Use caution replying or supplying information, clicking links, or opening attachments. If you suspect the message is fraudulent, report it using the Phishing Alert Button<https://uits.kennesaw.edu/ocs/phish-market/report.php> or forward the message to ***@***.******@***.***>
|
The legacy script will take at least 10 minutes to complete. That is with a fast computer. Good luck. |
Hi Glenn,
It’s still not working..
***@***.***:/opt/webwork/webwork2/bin# ./OPL-update-legacy
using utf8mb4
using character set utf8mb4 to build OPL database
using libraryRoot /opt/webwork/libraries/webwork-open-problem-library/OpenProblemLibrary
using contribRoot /opt/webwork/libraries/webwork-open-problem-library/Contrib
WEBWORK_ROOT /opt/webwork/webwork2
Library version is 2.5; using OPLtables!
Mysql database reinitialized.
Reading in textbook data from Textbooks in the library /opt/webwork/libraries/webwork-open-problem-library/OpenProblemLibrary.
Reading in OPL taxonomy from Taxonomy2 in the library /opt/webwork/libraries/webwork-open-problem-library/OpenProblemLibrary.
Saved taxonomy to /opt/webwork/webwork2/htdocs/DATA/tagging-taxonomy.json.
Converting data from tagged pgfiles into mysql.
Number of files processed:
100 200 300 400 500 600 700 800 900 1000
1100 1200 1300 1400 1500 1600 1700 1800 1900 2000
2100 2200 2300 2400 2500 2600 2700 2800 2900 3000
3100 3200 3300 3400 3500 3600 3700 3800 3900 4000
4100 4200 4300 4400 4500 4600 4700 4800 4900 5000
5100 5200 5300 5400 5500 5600 5700 5800 5900 6000
6100 6200 6300 6400 6500 6600 6700 6800 6900 7000
7100 7200 7300 7400 7500 7600 7700 7800 7900 8000
8100 8200 8300 8400 8500 8600 8700 8800 8900 9000
9100 9200 9300 9400 9500 9600 9700 9800 9900 10000
10100 10200 10300 10400 10500 10600 10700 10800 10900 11000
11100 11200 11300 11400 11500 11600 11700 11800 11900 12000
12100 12200 12300 12400 12500 12600 12700 12800 12900 13000
13100 13200 13300 13400 13500 13600 13700 13800 13900 14000
14100 14200 14300 14400 14500 14600 14700 14800 14900 15000
15100 15200 15300 15400 15500 15600 15700 15800 15900 16000
16100 16200 16300 16400 16500 16600 16700 16800 16900 17000
17100 17200 17300 17400 17500 17600 17700 17800 17900 18000
18100 18200 18300 18400 18500 18600 18700 18800 18900 19000
19100 19200 19300 19400 19500 19600 19700 19800 19900 20000
20100 20200 20300 20400 20500 20600 20700 20800 20900 21000
21100 21200 21300 21400 21500 21600 21700 21800 21900 22000
22100 22200 22300 22400 22500 22600 22700 22800 22900 23000
23100 23200 23300 23400 23500 23600 23700 23800 23900 24000
24100 24200 24300 24400 24500 24600 24700 24800 24900 25000
25100 25200 25300 25400 25500 25600 25700 25800 25900 26000
26100 26200 26300 26400 26500 26600 26700 26800 26900 27000
27100 27200 27300 27400 27500 27600 27700 27800 27900 28000
28100 28200 28300 28400 28500 28600 28700 28800 28900 29000
29100 29200 29300 29400 29500 29600 29700 29800 29900 30000
30100 30200 30300 30400 30500 30600 30700 30800 30900 31000
31100 31200 31300 31400 31500 31600 31700 31800 31900 32000
32100 32200 32300 32400 32500 32600 32700 32800 32900 33000
33100 33200 33300 33400 33500 33600 33700 33800 33900 34000
34100 34200 34300 34400 34500 34600 34700 34800 34900 35000
35100 35200 35300 35400 35500 35600 35700 35800 35900 36000
36100 36200 36300 36400 36500 36600 36700 36800 36900 37000
37100 37200 37300 37400 37500 37600
Invalid subject Calculus
File /opt/webwork/libraries/webwork-open-problem-library/Contrib/SLU/excelcalculus/rqPRQ/PRQ1Q1.pg
Invalid subject Calculus
File /opt/webwork/libraries/webwork-open-problem-library/Contrib/SLU/excelcalculus/rqPRQ/PRQ1Q2.pg
Invalid subject Calculus
File /opt/webwork/libraries/webwork-open-problem-library/Contrib/SLU/excelcalculus/rqPRQ/PRQ1Q3.pg
Invalid subject Calculus
File /opt/webwork/libraries/webwork-open-problem-library/Contrib/SLU/excelcalculus/rqPRQ/PRQ2Q1.pg
Invalid subject Calculus
File /opt/webwork/libraries/webwork-open-problem-library/Contrib/SLU/excelcalculus/rqPRQ/PRQ2Q2.pg
Invalid subject Calculus
File /opt/webwork/libraries/webwork-open-problem-library/Contrib/SLU/excelcalculus/rqPRQ/PRQ2Q3.pg
Invalid subject Calculus
File /opt/webwork/libraries/webwork-open-problem-library/Contrib/SLU/excelcalculus/ch7/sec8/ch7.sec8.q1.pg
37700
Invalid subject Calculus
File /opt/webwork/libraries/webwork-open-problem-library/Contrib/SLU/excelcalculus/ch7/sec8/ch7.sec8.q2.pg
Invalid subject Calculus
File /opt/webwork/libraries/webwork-open-problem-library/Contrib/SLU/excelcalculus/ch7/sec8/ch7.sec8.q3.pg
Invalid subject Calculus
File /opt/webwork/libraries/webwork-open-problem-library/Contrib/SLU/excelcalculus/ch7/sec8/ch7.sec8.q4.pg
Invalid subject Calculus
File /opt/webwork/libraries/webwork-open-problem-library/Contrib/SLU/excelcalculus/ch7/sec7/ch7.sec7.q1.pg
Invalid subject Calculus
File /opt/webwork/libraries/webwork-open-problem-library/Contrib/SLU/excelcalculus/ch7/sec7/ch7.sec7.q2.pg
Invalid subject Calculus
File /opt/webwork/libraries/webwork-open-problem-library/Contrib/SLU/excelcalculus/ch7/sec7/ch7.sec7.q3.pg
Invalid subject Calculus
File /opt/webwork/libraries/webwork-open-problem-library/Contrib/SLU/excelcalculus/ch7/sec7/ch7.sec7.q4.pg
Invalid subject Calculus
File /opt/webwork/libraries/webwork-open-problem-library/Contrib/SLU/excelcalculus/ch7/sec7/ch7.sec7.q5.pg
Invalid subject Calculus
File /opt/webwork/libraries/webwork-open-problem-library/Contrib/SLU/excelcalculus/ch7/sec7/ch7.sec7.q6.pg
Invalid subject Calculus
File /opt/webwork/libraries/webwork-open-problem-library/Contrib/SLU/excelcalculus/ch7/sec7/ch7.sec7.q7.pg
Invalid subject Calculus
File /opt/webwork/libraries/webwork-open-problem-library/Contrib/SLU/excelcalculus/ch7/sec7/ch7.sec7.q8.pg
Invalid subject Calculus
File /opt/webwork/libraries/webwork-open-problem-library/Contrib/SLU/excelcalculus/ch7/sec6/ch7.sec6.q1.pg
Invalid subject Calculus
File /opt/webwork/libraries/webwork-open-problem-library/Contrib/SLU/excelcalculus/ch7/sec6/ch7.sec6.q2.pg
Invalid subject Calculus
File /opt/webwork/libraries/webwork-open-problem-library/Contrib/SLU/excelcalculus/ch7/sec6/ch7.sec6.q3.pg
Invalid subject Calculus
File /opt/webwork/libraries/webwork-open-problem-library/Contrib/SLU/excelcalculus/ch7/sec6/ch7.sec6.q4.pg
Invalid subject Calculus
File /opt/webwork/libraries/webwork-open-problem-library/Contrib/SLU/excelcalculus/ch7/sec6/ch7.sec6.q5.pg
Invalid subject Calculus
File /opt/webwork/libraries/webwork-open-problem-library/Contrib/SLU/excelcalculus/ch7/sec6/ch7.sec6.q6.pg
Invalid chapter Integration
File /opt/webwork/libraries/webwork-open-problem-library/Contrib/SLU/excelcalculus/ch7/sec5/ch7.sec5.q1.pg
Invalid subject Calculus
File /opt/webwork/libraries/webwork-open-problem-library/Contrib/SLU/excelcalculus/ch7/sec5/ch7.sec5.q10.pg
Invalid chapter Integration
File /opt/webwork/libraries/webwork-open-problem-library/Contrib/SLU/excelcalculus/ch7/sec5/ch7.sec5.q11.pg
Invalid subject Calculus
File /opt/webwork/libraries/webwork-open-problem-library/Contrib/SLU/excelcalculus/ch7/sec5/ch7.sec5.q12.pg
Invalid chapter Integration
File /opt/webwork/libraries/webwork-open-problem-library/Contrib/SLU/excelcalculus/ch7/sec5/ch7.sec5.q13.pg
Invalid chapter Integration
File /opt/webwork/libraries/webwork-open-problem-library/Contrib/SLU/excelcalculus/ch7/sec5/ch7.sec5.q14.pg
Invalid chapter Integration
File /opt/webwork/libraries/webwork-open-problem-library/Contrib/SLU/excelcalculus/ch7/sec5/ch7.sec5.q15.pg
Invalid subject Calculus
File /opt/webwork/libraries/webwork-open-problem-library/Contrib/SLU/excelcalculus/ch7/sec5/ch7.sec5.q16.pg
Invalid chapter Integration
File /opt/webwork/libraries/webwork-open-problem-library/Contrib/SLU/excelcalculus/ch7/sec5/ch7.sec5.q17.pg
Invalid subject Calculus
File /opt/webwork/libraries/webwork-open-problem-library/Contrib/SLU/excelcalculus/ch7/sec5/ch7.sec5.q18.pg
Invalid chapter Integration
File /opt/webwork/libraries/webwork-open-problem-library/Contrib/SLU/excelcalculus/ch7/sec5/ch7.sec5.q19.pg
Invalid subject Calculus
File /opt/webwork/libraries/webwork-open-problem-library/Contrib/SLU/excelcalculus/ch7/sec5/ch7.sec5.q2.pg
Invalid subject Calculus
File /opt/webwork/libraries/webwork-open-problem-library/Contrib/SLU/excelcalculus/ch7/sec5/ch7.sec5.q20.pg
Invalid chapter Integration
File /opt/webwork/libraries/webwork-open-problem-library/Contrib/SLU/excelcalculus/ch7/sec5/ch7.sec5.q21.pg
Invalid subject Calculus
File /opt/webwork/libraries/webwork-open-problem-library/Contrib/SLU/excelcalculus/ch7/sec5/ch7.sec5.q22.pg
Invalid chapter Integration
File /opt/webwork/libraries/webwork-open-problem-library/Contrib/SLU/excelcalculus/ch7/sec5/ch7.sec5.q23.pg
Invalid chapter Integration
File /opt/webwork/libraries/webwork-open-problem-library/Contrib/SLU/excelcalculus/ch7/sec5/ch7.sec5.q24.pg
Invalid chapter Integration
File /opt/webwork/libraries/webwork-open-problem-library/Contrib/SLU/excelcalculus/ch7/sec5/ch7.sec5.q3.pg
Invalid subject Calculus
File /opt/webwork/libraries/webwork-open-problem-library/Contrib/SLU/excelcalculus/ch7/sec5/ch7.sec5.q4.pg
Invalid subject Calculus
File /opt/webwork/libraries/webwork-open-problem-library/Contrib/AlfredUniv/AUCI/chapter1/lesson1/quiz/question4.pg
Invalid subject Calculus
File /opt/webwork/libraries/webwork-open-problem-library/Contrib/AlfredUniv/AUCI/chapter1/lesson1/quiz/question5.pg
Invalid chapter WeBWorK Tutorial
File /opt/webwork/libraries/webwork-open-problem-library/Contrib/AlfredUniv/AUCI/chapter1/intro/quiz/basicoperations.pg
Invalid chapter WeBWorK Tutorial
File /opt/webwork/libraries/webwork-open-problem-library/Contrib/AlfredUniv/AUCI/chapter1/intro/quiz/exponents.pg
Invalid chapter WeBWorK Tutorial
File /opt/webwork/libraries/webwork-open-problem-library/Contrib/AlfredUniv/AUCI/chapter1/intro/quiz/inputtingarithmetic.pg
.
.
.
1,000 of similar errors like the ones about but for others….
.
.
.
.
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.
Done.
From: Glenn Rice ***@***.***>
Date: Tuesday, January 7, 2025 at 5:48 PM
To: openwebwork/webwork2 ***@***.***>
Cc: Tharrow Pegues ***@***.***>, Author ***@***.***>
Subject: [EXTERNAL] Re: [openwebwork/webwork2] Incompatible with sql_mode=only_full_group_by error when searching for problems to assign. (Issue #2651)
The legacy script will take at least 10 minutes to complete. That is with a fast computer. Good luck.
—
Reply to this email directly, view it on GitHub<#2651 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AKCBRHTA2AS5CJEY6V64ZXD2JRKTXAVCNFSM6AAAAABUX5YVXGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNZWGM3TEMZQGE>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
CAUTION: This email originated from outside of KSU. Use caution replying or supplying information, clicking links, or opening attachments. If you suspect the message is fraudulent, report it using the Phishing Alert Button<https://uits.kennesaw.edu/ocs/phish-market/report.php> or forward the message to ***@***.******@***.***>
|
It seems the problem is your database settings. You have |
In the database execute |
Ok, I will give it a try in our test environment and let you know. Thanks!
On Jan 8, 2025, at 8:04 AM, Glenn Rice ***@***.***> wrote:
In the database execute SELECT @@sql_mode. That will show the modes that you have enabled. In your case it will list ONLY_FULL_GROUP_BY. Find your database configuration file (on Ubuntu this is typically /etc/mysql/conf.d/mysql.cnf) and remove that option from the sql_mode setting (or add a sql_mode setting that doesn't have that option if needed) from the [mysqld] section.
—
Reply to this email directly, view it on GitHub<#2651 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AKCBRHTC3VU7SOLUOOWT2XD2JUO5VAVCNFSM6AAAAABUX5YVXGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNZXGYZDIMZUGQ>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
CAUTION: This email originated from outside of KSU. Use caution replying or supplying information, clicking links, or opening attachments. If you suspect the message is fraudulent, report it using the Phishing Alert Button<https://uits.kennesaw.edu/ocs/phish-market/report.php> or forward the message to ***@***.******@***.***>
|
Hi Glenn,
I tried it in test and just made the change to the actively running database and it worked just fine.
I tried the same to production and it did not work but I had to run the OPL-Update-Legacy on the test machine.
It took many hours and I got tons of error messages about each subject. It’s in the email I sent you this morning.
Is that normal?
Many Thanks!
Tharrow Pegues
From: Glenn Rice ***@***.***>
Date: Wednesday, January 8, 2025 at 8:04 AM
To: openwebwork/webwork2 ***@***.***>
Cc: Tharrow Pegues ***@***.***>, Author ***@***.***>
Subject: [EXTERNAL] Re: [openwebwork/webwork2] Incompatible with sql_mode=only_full_group_by error when searching for problems to assign. (Issue #2651)
In the database execute SELECT @@sql_mode. That will show the modes that you have enabled. In your case it will list ONLY_FULL_GROUP_BY. Find your database configuration file (on Ubuntu this is typically /etc/mysql/conf.d/mysql.cnf) and remove that option from the sql_mode setting (or add a sql_mode setting that doesn't have that option if needed) from the [mysqld] section.
—
Reply to this email directly, view it on GitHub<#2651 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AKCBRHTC3VU7SOLUOOWT2XD2JUO5VAVCNFSM6AAAAABUX5YVXGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNZXGYZDIMZUGQ>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
CAUTION: This email originated from outside of KSU. Use caution replying or supplying information, clicking links, or opening attachments. If you suspect the message is fraudulent, report it using the Phishing Alert Button<https://uits.kennesaw.edu/ocs/phish-market/report.php> or forward the message to ***@***.******@***.***>
|
Yes, the messages about invalid subjects and chapters are normal. Those are caused by problems that are not correctly tagged in Contrib. |
Production is working again as well. TYSVM!!
On Jan 8, 2025, at 3:36 PM, Glenn Rice ***@***.***> wrote:
Yes, the messages about invalid subjects and chapters are normal. Those are caused by problems that are not correctly tagged in Contrib.
—
Reply to this email directly, view it on GitHub<#2651 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AKCBRHR5ANPFEHZLBQTC2ML2JWD6NAVCNFSM6AAAAABUX5YVXGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNZYGYYTCOJXG4>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
CAUTION: This email originated from outside of KSU. Use caution replying or supplying information, clicking links, or opening attachments. If you suspect the message is fraudulent, report it using the Phishing Alert Button<https://uits.kennesaw.edu/ocs/phish-market/report.php> or forward the message to ***@***.******@***.***>
|
Running ww_version: 2.19 in Docker environment.
Getting an error when searching for problems to assign for homework from problem database.
DBD::mysql::db selectall_arrayref failed: Expression #2 of SELECT list is not in GROUP BY clause and
contains nonaggregated column 'webwork.pgf.morelt_id' which is not functionally dependent on columns in
GROUP BY clause; this is incompatible with sql_mode=only_full_group_by at
/opt/webwork/webwork2/lib/WeBWorK/Utils/ListingDB.pm line 339.
334: dbc.DBchapter_id = dbsc.DBchapter_id AND
335: dbsc.DBsection_id = pgf.DBsection_id AND
336: p.path_id = pgf.path_id
337: $extrawhere $kw_where $group_by";
338:
339: $pg_file_ref = $dbh->selectall_arrayref($query, {}, @select_parameters, @keyword_parameters);
340: }
341:
342: return $pg_file_ref->[0][0] if $amcounter;
343:
344: my @results;
The text was updated successfully, but these errors were encountered: