Skip to content

Reports of database issues - aborted connections and (hopefully) small amounts of data loss + a possible fix using the new DBD::MariaDB Perl database driver #1157

@taniwallach

Description

@taniwallach

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions