Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-81804

Moodle fail to connect to pgbouncer > 1.20

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 4.1.11, 4.5, 4.5.4, 5.0
    • Database SQL/XMLDB

      Pgbouncer after 1.20 added support for some `options` parameters, including the ones that Moodle send by default. But it does not support it in the form Moodle sends (e.g. --client_encoding=utf8). It needs to be sent in the following form: `-c client_encoding=utf8`.

      We noticed this because our Moodle platform stopped working after upgrading pgbouncer.

      Setting `$CFG->dboptions['dbhandlesoptions'] = true` would solve the problem, but as the 2 parameters set by Moodle (client_encoding=utf8 and standard_conforming_strings=on) are supported by pgbouncer 1.20+, a better fix would be to replace the `--key=val` by `-c key=val` variant. 

        1. fix-pgbouncer.patch
          0.9 kB
          MARCOS DOS SANTOS DE OLIVEIRA

            Unassigned Unassigned
            marcosdossantosdeoliveira MARCOS DOS SANTOS DE OLIVEIRA
            Luca Bösch Luca Bösch
            Votes:
            3 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 5 minutes
                5m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.