Skip to content

Endless loop with incorrect cron format, GUI doesn't work so you can't correct it easily #1306

@tinmansc

Description

@tinmansc

Is there an existing issue for this?

The issue occurs in the following browsers. Select at least 2.

  • Firefox
  • Chrome
  • Edge
  • Safari (unsupported) - PRs welcome
  • N/A - This is an issue with the backend

Current Behavior

I managed to put my NetAlertX running in Home Assistant into an infinite loop today by a simple typeo. In the cron settings for the MQTT scanner, i put the schedule to "/30 * * * *" and it just started hanging the GUI. The home page would load, but that's about it. When I looked at the log file it was spewing the same series of lines over and over and over. I don't actually have the log anymore, but it was starting the scanners and bombed when it got to the MQTT scanner over and over. The GUI didn't work correctly so I was unable to quickly correct it. i had to figure out how to edit the file in the docker container to fix it once i realized what the logs were telling me.

Expected Behavior

If the format of my schedule is incorrect, don't assign it and warn user.

Steps To Reproduce

No response

Relevant app.conf settings

docker-compose.yml

What installation are you running?

Home Assistant fa (full-access addon)

Debug or Trace enabled

  • I have read and followed the steps in the wiki link above and provided the required debug logs and the log section covers the time when the issue occurs.

Relevant app.log section

  PASTE LOG HERE. Using the triple backticks preserves format. 

Docker Logs

  PASTE DOCKER LOG HERE. Using the triple backticks preserves format. 

Metadata

Metadata

Assignees

No one assigned

    Labels

    Home Assistant 🏠Installed as an Home Assistant addonbug 🐛Something isn't workingnext release/in dev image 🚀This is coming in the next release or was already released if the issue is Closed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions