Skip to content

Bad cron expression causes crash and failure to start #1199

@nrjohnstone

Description

@nrjohnstone

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

While editing the ARP scheduled scan cron expression I fat fingered the config and did not leave a space between the next *

The scanning and loading of the plugins is not robust and this was causing a crash loop where it just continuosly tried to load the plugins.

Should probably be a bit more robust and at least handle bad manually entered values better (maybe overwrite with a default and error message in the case of the cron schedule?)

Expected Behavior

Either stop me entering bad values (cron expressions in particular) or handle bad ones better, maybe by just raising a warning and reverting to the default.

At the very least, don't crash the entire plugin loading sequence and don't loop forever trying to reload a hard error that needs fixing manually.

Steps To Reproduce

Screw up the cron expression for ARP plugin

app.conf

docker-compose.yml

What installation are you running?

Production (netalertx)

app.log

No response

Debug 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Docker 🐋Docker relatedbug 🐛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