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

Shutdown handler is not called when php-fpm receives SIGTERM

XMLWordPrintable

      If you send the SIGTERM signal to php-fpm, the shutdown handler is not called and the processes will just be killed.

      This means any running requests will not release their session locks and will receive the "Cannot obtain session lock for sid: ..." error the next time they try to use the site.

      When running your Moodle setup using kubernetes as an example, you send these signals to downscale the amount of pods. This causes users to receive a session lock preventing them from using their current session for the duration until it is automatically expired.

            frederikmillingpytlick Frederik Milling Pytlick
            frederikmillingpytlick Frederik Milling Pytlick
            Andrew Lyons Andrew Lyons
            Huong Nguyen Huong Nguyen
            Ron Carl Alfon Yu Ron Carl Alfon Yu
            Votes:
            4 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours, 33 minutes
                2h 33m

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