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

Can't run cron manually from Site Administration > Notifications

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 3.9
    • Fix Version/s: 3.9
    • Component/s: Tasks
    • Testing Instructions:
      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.
    • Affected Branches:
      MOODLE_39_STABLE
    • Fixed Branches:
      MOODLE_39_STABLE
    • Pull Master Branch:
    • Sprint:
      3.9 release work board

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mathewmay Mathew May
              Reporter:
              michael-milette Michael Milette
              Peer reviewer:
              Jake Dallimore
              Integrator:
              Andrew Nicols
              Tester:
              Anna Carissa Sadia
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                15/Jun/20

                  Time Tracking

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