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

Cron task issue with Send report schedules (core_reportbuilder\task\send_schedules),Invalid user

XMLWordPrintable

      Getting this in a 4.1 site:

      f0709e5c8ef3:24556 2023-11-23 17:04:37 Scheduled task failed: Send report schedules (core_reportbuilder\task\send_schedules),Invalid user
      f0709e5c8ef3:24556 2023-11-23 17:04:37 Debug info:
      f0709e5c8ef3:24556 2023-11-23 17:04:37 SELECT id FROM {user} WHERE id = ? AND deleted = ?
      f0709e5c8ef3:24556 2023-11-23 17:04:37 [array (
      f0709e5c8ef3:24556 2023-11-23 17:04:37   0 => 279,
      f0709e5c8ef3:24556 2023-11-23 17:04:37   1 => 0,
      f0709e5c8ef3:24556 2023-11-23 17:04:37 )]
      f0709e5c8ef3:24556 2023-11-23 17:04:37 Backtrace:
      f0709e5c8ef3:24556 2023-11-23 17:04:37 * line 1630 of /lib/dml/moodle_database.php: call to moodle_database->get_record_select()
      f0709e5c8ef3:24556 2023-11-23 17:04:37 * line 6706 of /lib/accesslib.php: call to moodle_database->get_record()
      f0709e5c8ef3:24556 2023-11-23 17:04:37 * line 173 of /reportbuilder/classes/local/helpers/schedule.php: call to context_user::instance()
      f0709e5c8ef3:24556 2023-11-23 17:04:37 * line 91 of /reportbuilder/classes/task/send_schedule.php: call to core_reportbuilder\local\helpers\schedule::get_schedule_report_file()
      f0709e5c8ef3:24556 2023-11-23 17:04:37 * line 59 of /reportbuilder/classes/task/send_schedules.php: call to core_reportbuilder\task\send_schedule->execute()
      f0709e5c8ef3:24556 2023-11-23 17:04:37 * line 263 of /lib/cronlib.php: call to core_reportbuilder\task\send_schedules->execute()
      f0709e5c8ef3:24556 2023-11-23 17:04:37 * line 167 of /admin/cli/scheduled_task.php: call to cron_run_inner_scheduled_task()

      I've confirmed the user was deleted, this task should gracefully ignore it and move on and if needed clean up records behind it.

            pholden Paul Holden
            brendanheywood Brendan Heywood
            Carlos Castillo Carlos Castillo
            David Carrillo David Carrillo
            CiBoT CiBoT
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

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

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