Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

    If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

    Docker Otter 3.0.13 NewJob w Custom Schedule - Invalid chron expression and EditJob w Remediate Drift - Script is required

    Scheduled Pinned Locked Moved Support
    2 Posts 2 Posters 4 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S Offline
      shiv03_9800
      last edited by shiv03_9800

      (tried docker otter:3.0.14-ci.1) Situation: I want to schedule a job for detect and remediate drift every hour.

      Jobs\Upcoming & Recurring\Create Recurring Job\Remediate Drift on Recurring Basis:

      • Schedule: Custom
      • Run at time: 0 0 * ? * * *
      • [Create Job]

      .1. Description: "Invalid chron expression:".

      1. LogMessage:
        Logged:
        11/04/2021 13:00:39
        Level:
        Error
        Category:
        RecurringJobDispatcherRunner
        Message:
        Unhandled exception: cronExpression cannot be null
        Details:
        System.ArgumentException: cronExpression cannot be null
        at Quartz.CronExpression..ctor(String cronExpression)
        at Inedo.Otter.Service.TaskRunners.RecurringJobDispatcherRunner.GetNextRunTime(DateTimeOffset expectedNow, JobConfiguration jobConfig) in C:\Users\builds\AppData\Local\Temp\InedoAgent\BuildMaster\192.168.44.60\Temp_E156460\Src\src\Otter.Service\TaskRunners\RecurringJobDispatcherRunner.cs:line 78
        at Inedo.Otter.Service.TaskRunners.RecurringJobDispatcherRunner.RunAsync(CancellationToken cancellationToken, Object args) in C:\Users\builds\AppData\Local\Temp\InedoAgent\BuildMaster\192.168.44.60\Temp_E156460\Src\src\Otter.Service\TaskRunners\RecurringJobDispatcherRunner.cs:line 47
        at Inedo.TaskRunner.RunInternalAsync(Object args)

      2. Value (of field Job_Configuration record in table Jobs) wo "CronSchedule":
        <Inedo.Otter.Jobs.JobConfiguration Assembly="OtterCoreEx"><Properties JobType="Configuration" ServerTargeting="RolesAndEnvironment" Simulation="False" Async="True"><ServerNames /><ServerRoleNames><Item>agent</Item></ServerRoleNames><EnvironmentNames /><Variables /></Properties></Inedo.Otter.Jobs.JobConfiguration>

      3. If edit-recurring job:

      • Schedule: "Every day"
      • Run at time: (blank)
      1. Equally for "Run Script on Recurring Basis".

      2. Workaround:

        1. Create with Schedule: "Every day";
        2. Update sql-record in table Jobs with CronSchedule "0 0 * ? * * *".

      .2. Edit-recurring (RemediateDrift Job) - "Script is required".

      1 Reply Last reply Reply Quote 0
      • stevedennisS Offline
        stevedennis inedo-engineer
        last edited by

        Hi @shiv03_9800 , thanks for the detailed report on these!

        We've identified these as OT-440 and OT-441, and they will be fixed in the next Otter maintenance release (3.0.14), scheduled for tomorrow.

        Cheers,
        Steve

        1 Reply Last reply Reply Quote 0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • 1 / 1
        • First post
          Last post
        Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation