Uploaded image for project: 'TrueNAS'
  1. TrueNAS
  2. NAS-105239

Cron job fails because of permission issue, marked "success" anyway.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done (View Workflow)
    • Priority: Low
    • Resolution: Complete
    • Affects Version/s: 11.3-U1, 12.0-ALPHA1
    • Fix Version/s: 11.3-U2, 12.0-ALPHA1
    • Component/s: Tasks
    • Labels:
      None

      Description

      When a cron job fails because a permission issue on the script it has to run, the task is marked successful anyway in the UI tasks list. Only the task log and any email sent (if configured) will warn the user the task actually has failed . i.e.:

      Log:

      /bin/sh: /mnt/main/private/admin/scripts/retrieve_db_backups.sh: Permission denied
      Executed CronTask - /mnt/main/private/admin/scripts/retrieve_db_backups.sh: /bin/sh: /mnt/main/private/admin/scripts/retrieve_db_backups.sh: Permission denied

      Email:

      /bin/sh: /mnt/main/private/admin/scripts/retrieve_db_backups.sh: Permission denied

      I believe the task should be marked as failed anyway, since it hasn't been run.

        Attachments

          Attachments

            JEditor

              Activity

                People

                Assignee:
                waqar Waqar Ahmed
                Reporter:
                ldsandon Luigi Sandon
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: