I was investigating a bug where my GenieACS server was crashing at night (supervisor gave up on restarting because it was crashing too often). After recompiling the server to disable minification I was able to pinpoint the bug in a call to the clearTasks.
The bug was about an id being in an incorrect format. I logged the offending Id in question and got the response: [ ‘boot_check’ ]
That name being familiar i decided to look into my provisions and saw this:
Looking at the code I saw that channels with a prefix ‘task_’ are expected to have a valid mongodb uuid (which boot_check clearly is not).
Removing the task_ quickly solved the problem. This problem can be prevented by validating the channel name before saving it. I can submit a pull request if needed.