I created a job that automates certain processes on a web site that was lacking an API using the symfony/panther package in Laravel.
When I manually run the command from the command line, it always works as expected.
When I run it thru the scheduler, it always fails:
$schedule->command('reports:get-latest')->dailyAt('02:00')->withoutOverlapping();
This is the error it fails with:
Could not start chrome. Exit code: 1 (General error). Error output: /system.slice/cron.service is not a snap cgroup
I've searched for this error, but have found nothing specific related to this scenario that might cause it to fail only when run by the Laravel scheduler.
I installed the Chrome driver both using composer require --dev dbrekelmans/bdi and apt-get install chromium-chromedriver on the AWS Ubuntu instance I'm running it on.