See: https://webwork.maa.org/moodle/mod/forum/discuss.php?d=4958
Original symptom were rare cases of students getting the error Unable to retrieve your permissions, perhaps due to a collision between your request and that of another user (or possibly unfinished request of yours).
That same symptom on my server led to my attempt at patching some of the LTI code at: #1150 and the discussion there got into the issue of the DB logs reporting warnings like
2020-11-09 5:21:50 16 [Warning] Aborted connection 16 to db: 'webwork' user: 'webworkWrite' host: '172.22.0.4' (Got timeout reading communication packets)
@dlglin reported in the forum thread that he encountered such problems when his site tried to use a new externally hosted database.
Based on some preliminary tests, it seems that using the newer DBD::MariaDB database driver instead of the older DBD:mysql may help resolve this problem.
Using the new driver requires making some changes to the WW code, as explained in #1150 (comment). Changes to allow initial testing are pretty minimal.
Packages are available for several Linux distributions:
Some comments about building the driver on CentOS 7 are in perl5-dbi/DBD-MariaDB#150
See: https://webwork.maa.org/moodle/mod/forum/discuss.php?d=4958
Original symptom were rare cases of students getting the error
Unable to retrieve your permissions, perhaps due to a collision between your request and that of another user (or possibly unfinished request of yours).That same symptom on my server led to my attempt at patching some of the LTI code at: #1150 and the discussion there got into the issue of the DB logs reporting warnings like
@dlglin reported in the forum thread that he encountered such problems when his site tried to use a new externally hosted database.
Based on some preliminary tests, it seems that using the newer
DBD::MariaDBdatabase driver instead of the olderDBD:mysqlmay help resolve this problem.Using the new driver requires making some changes to the WW code, as explained in #1150 (comment). Changes to allow initial testing are pretty minimal.
Packages are available for several Linux distributions:
but not for CentOS/RHEL.
Some comments about building the driver on CentOS 7 are in perl5-dbi/DBD-MariaDB#150