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

Can't run cron manually from Site Administration > Notifications

XMLWordPrintable

    • MOODLE_39_STABLE
    • MOODLE_39_STABLE
    • Hide

      Requirements:

      • Fresh Moodle install
      • Config cronclionly set to false

      Testing:

      1. Visit /admin/index.php
      2. Confirm you see "The admin/cron.php script script has never been run and should run every 1 min."
      3. Confirm "admin/cron.php script" is a link
      4. Click the link
      5. Ensure the cron runs
      6. Navigate back to /admin/index.php
      7. Confirm you see "The admin/cron.php script has not been run for <variable amount of time> and should run every 1 min."

      Note: step 7. the variable amount of time is not relevant to the test and is based upon how quickly you navigate back to the admin page.

      Show
      Requirements: Fresh Moodle install Config cronclionly  set to false Testing: Visit /admin/index.php Confirm you see "The admin/cron.php script script has never been run and should run every 1 min." Confirm "admin/cron.php script" is a link Click the link Ensure the cron runs Navigate back to /admin/index.php Confirm you see "The admin/cron.php script has not been run for <variable amount of time> and should run every 1 min." Note: step 7. the variable amount of time is not relevant to the test and is based upon how quickly you navigate back to the admin page.
    • 3.9 release work board

      Even though I disabled Cron execution via command line only and have no cron password for remote access set in Site Administration > Site security settings,

      the "admin/cli/cron.php" does not turn into a link in Site Administration > Notifications in Moodle 3.9 BETA in the 2020-06-07 release.

      This is an important feature for developers who have many instances of Moodle running locally and don't necessarily want to have cron running all the time or only want to run it on demand. It is also an important feature for administrators who may not have cron configured properly yet but want to run it manually.

      From the Moodle 3.8 docs on https://docs.moodle.org/38/en/Cron:

      2. If, for some reason, you cannot run the CLI script there is the web based script. Note that this is now deprecated and may be removed in future versions. This needs to be run from a web browser and will be accessed via a web url something like http://your.moodle.site/admin/cron.php. You can find command line based web browser (e.g. wget) so the final command may look like /usr/bin/wget http://your.moodle.site/admin/cron.php This has the advantage that it can be run from anywhere. If you can't get cron to work on your machine it can be run somewhere else.

      I can only assume that the inability to run cron from the Notification page must have something to do with the deprecation of the web based script.

      This is going to be a MAJOR ROADBLOCK for us. We have Moodle running in a container pod environment where it is not possible to setup cronjobs. Our only option is to have an external browser (wget in our case) run the Moodle cron job.

      Please address this issue before the launch of Moodle 3.9 as we are planning on being early adopters.

            mathewmay Mathew May
            michael-milette Michael Milette
            Jake Dallimore Jake Dallimore
            Andrew Lyons Andrew Lyons
            Anna Carissa Sadia Anna Carissa Sadia
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved:

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

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