Scheduler.lock error

Hi -

Been receiving the following errors every minute to asterisk@:

To: asterisk
Subject: Cron <asterisk@braden-Macmini> [ -x /var/www/html/admin/modules/dashboard/scheduler.php ] && /var/www/html/admin/modules/dashboard/scheduler.php
Content-Type: text/plain; charset=ANSI_X3.4-1968
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/home/asterisk>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=asterisk>

Whoops\Exception\ErrorException: fopen(/var/run/asterisk/scheduler.lock): failed to open stream: No such file or directory in file /var/www/html/admin/modules/dashboard/scheduler.php on line 23
Stack trace:
  1. Whoops\Exception\ErrorException->() /var/www/html/admin/modules/dashboard/scheduler.php:23
  2. Whoops\Run->handleError() :0
  3. fopen() /var/www/html/admin/modules/dashboard/scheduler.php:23

Line 23 calls for
$fh = fopen($lockfile, "a");

of which $lockfile is defined as

$lockfile = \FreePBX::Config()->get('ASTRUNDIR')."/scheduler.lock";

from the email it appears that the scheduler.lock should be in /var/run/asterisk/scheduler.lock

I think the problem is that ASTRUNDIR = /var/run/asterisk but there is no /var/run/asterisk on my system.

Any advice why this may be?

EDIT: Nevermind, I’m an idiot. Asterisk wasn’t running… (duh!) after a reboot it hadn’t started automatically.

Can you file a bug and include that it was related to asterisk not running. This should be handled more gratefully