question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Period not parsed correctly "...is an unknown value" "schedule name is unknown"

See original GitHub issue

Hi - I am having an issue where the period config doesn’t be seem to be read properly. The schedule and period is as below

      {
         "RetainRunning": false,
         "Enforced": true,
         "Hibernate": false,
         "Description": "Day to day office hours of eem including holidays",
         "ConfiguredInStack": "arn:aws:cloudformation:...stack/....",
         "StopNewInstances": true,
         "Periods": [
            "eem-office-hours-incl-holidays-21-period-0011",
            "eem-office-hours-incl-holidays-21-period-0001",
            "eem-office-hours-incl-holidays-21-period-0003",
            "eem-office-hours-incl-holidays-21-period-0002",
            "eem-office-hours-incl-holidays-21-period-0009",
            "eem-office-hours-incl-holidays-21-period-0012",
            "eem-office-hours-incl-holidays-21-period-0004",
            "eem-office-hours-incl-holidays-21-period-0008",
            "eem-office-hours-incl-holidays-21-period-0005",
            "eem-office-hours-incl-holidays-21-period-0010",
            "eem-office-hours-incl-holidays-21-period-0006",
            "eem-office-hours-incl-holidays-21-period-0007"
         ],
         "Timezone": "Europe/Berlin",
         "Type": "schedule",
         "Name": "eem-office-hours-incl-holidays-21"
      }
{
         "Description": "July, Schedule eem-office-hours-incl-holidays-21 period 7, do not delete or update manually",
         "Monthdays": [
            "1-31"
         ],
         "Months": [
            "7"
         ],
         "Weekdays": [
            "mon-fri"
         ],
         "Begintime": "07:15",
         "Endtime": "18:30",
         "Type": "period",
         "Name": "eem-office-hours-incl-holidays-21-period-0007"
      }

And in CloudWatchEventHandler cloudwatch logs I see this ERROR : "1-31" is an unknown value

In my rds cloudwatch log I also see WARNING : Skipping instance RDS:.... in region eu-central-1 for account ....., schedule name "eem-office-hours-incl-holidays-21" is unknown

Do you know what might be wrong here?

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:9

github_iconTop GitHub Comments

2reactions
Nico-DBcommented, Feb 5, 2021

@e-power : Hi, we are facing some kind of a similar issue. When defining MonthDays which exceeds 27, you are not able to define it as a range. For example the following does not work:

---
AWSTemplateFormatVersion: '2010-09-09'
Parameters:
  ServiceTokenSchedule:
    Description: Token
    Type: String
Resources:
  FeoAUUTC:
    Type: Custom::ServiceInstanceSchedule
    Properties:
      Description: FeoAUUTC
      ServiceToken: !Ref ServiceTokenSchedule
      Enforced: 'True'
      Timezone: Europe/Berlin
      Periods:
      - Description: Feo AU Up April
        Months: apr
        MonthDays: 6-30

This does work:

---
AWSTemplateFormatVersion: '2010-09-09'
Parameters:
  ServiceTokenSchedule:
    Description: Token
    Type: String
Resources:
  FeoAUUTC:
    Type: Custom::ServiceInstanceSchedule
    Properties:
      Description: FeoAUUTC
      ServiceToken: !Ref ServiceTokenSchedule
      Enforced: 'True'
      Timezone: Europe/Berlin
      Periods:
      - Description: Feo AU Up April
        Months: apr
        MonthDays: 6-27,28,29,30

I know that this is a bug since a long time. What´s new for me is that in the passed the Cloudformation-Stack failed to create and told me that 30 is an unknown value. Which it does not anymore. Is it possible to either fix this issue or hand over the error back to cloudformation again?

0reactions
praveeniscommented, Feb 23, 2021

Hi @e-power ,

we will update the documentation in the upcoming release.

Thanks, Praveen

Read more comments on GitHub >

github_iconTop Results From Across the Web

Period not parsed correctly "...is an unknown value" "schedule ...
Hi - I am having an issue where the period config doesn't be seem to be read properly. The schedule and period is...
Read more >
amazon web services - Issue with AWS Instance Scheduler
I can query all schedules using the CLI and listed within the response but when retrieving the schedule by name then it cannot...
Read more >
Azure AD Connect is not working correctly after an automatic ...
Discusses an issue in which Azure AD Connect is only partially upgraded or the password synchronization and the password writeback features ...
Read more >
Troubleshoot UNKNOWN classification in AWS Glue
When I parse a fixed-width .dat file with a built-in classifier, my AWS Glue crawler classifies the file as UNKNOWN.
Read more >
Loading CSV data from Cloud Storage | BigQuery
When you load CSV or JSON data, values in DATE columns must use the dash ... a row that are not present in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found