Brieflyn
Navigation Menu
Home › Tutorials & How-To › How to Fix Laravel Cron Not Running in 2026 Today

How to Fix Laravel Cron Not Running in 2026 Today

How to Fix Laravel Cron Not Running in 2026 Today
By Brieflyn Editorial Team • Published: August 17, 2026 • 15 min read (2,962 words) • 33 views
Struggling with Laravel Cron Not Running in 2026? This guide shows how to diagnose cron paths, PHP binaries, and use custom schedulers to get running reliably.

Fixing Laravel Cron Not Running issues on a server terminal in 2026

Laravel Cron Not Running is one of those stubborn production bugs that drains engineering hours because the symptoms look like a code defect when they are almost always an environment problem. If your scheduled tasks silently stopped firing, the root cause usually lives outside your application: a stale PHP binary path, a paused daemon, a missing working directory, or a subtle lock file created by withoutOverlapping(). This guide walks you through the exact diagnostic path I use when a client reports their queue or report generator stopped running, with the commands, snippets, and mental model that actually resolve it.

Overview: What Causes Laravel Cron Not Running?

The Laravel scheduler is a thin wrapper over your operating system's cron daemon. A single crontab entry fires php artisan schedule:run every minute, and the framework decides which defined tasks are due. When that pipeline breaks, the cause is almost always one of three categories: the cron daemon never runs, the cron entry is malformed, or Laravel silently skips tasks because of overlapping locks, dead workers, or missing environment variables.

Common Symptoms

  • Scheduled commands fire in php artisan schedule:list but never produce side effects in production.
  • Email digests, billing reports, or queue warmers stop running after a server migration or PHP upgrade.
  • Laravel logs are empty even though the cron entry exists.
  • Tasks run once after a manual php artisan schedule:run then never again.

Immediate Checks

Before you change any code, run these three checks in order:

  1. Verify the cron daemon is alive: systemctl status crond on systemd boxes, or service crond status on older init systems.
  2. Confirm a crontab entry actually exists for the right user: crontab -l.
  3. Test the artisan invocation by hand from the project root: php artisan schedule:run. If it errors, the problem is in Laravel, not cron.

Quick Fix Summary

Definition: A cron job is a scheduled task that the operating system runs automatically at specified intervals. In Laravel, only one cron entry is required: it calls schedule:run every minute, and the framework dispatches the rest.

For 80% of stuck setups, the fix is replacing the relative PHP path with the absolute binary, adding cd /path/to/app before the artisan call, and making sure storage/ and bootstrap/cache/ are writable by the cron user.

Why It Matters in 2026: Modern DevOps & Serverless Trends

A man jogging along a path with wind turbines in the background, set against a beautiful sunrise.
Photo by Quang Nguyen Vinh via Pexels. Laravel Cron Not Running Technology.

Reliable scheduling has become a load-bearing piece of the deployment story. A broken cron in 2026 no longer just means a delayed email; it can break billing reconciliation, webhook retries, and compliance-driven cleanup jobs that regulators expect to run nightly.

Continuous Delivery Impact

Modern CI/CD pipelines push to production dozens of times per day. If a release silently breaks the cron context (for example, by changing the PHP version in .env but not updating the crontab path), your next deploy can quietly take down every scheduled job. Add a post-deploy smoke test that runs php artisan schedule:list and writes the result to your observability stack. If a task disappears, you catch it in minutes, not after a Monday morning customer complaint.

Cloud Scheduler Alternatives

On managed platforms like AWS, GCP, and Laravel Vapor, the operating system cron is replaced by a platform-native scheduler (Cloud Scheduler, EventBridge, or Vapor's queue ticks). These services do not read your server's crontab; they call an HTTPS endpoint. If you migrated to one of these platforms and your Laravel cron is not running, the old crontab is irrelevant. You need to wire a scheduler to hit a route that calls Artisan::call('schedule:run'), per the official Laravel 12 scheduling docs.

Security Implications

A cron entry that runs as root, or that sources a world-writable .env, is a privilege escalation waiting to happen. In 2026, the secure pattern is a dedicated deploy user owning the application directory, a cron entry running as that user, and a read-only .env for the web server. Pair this with file integrity monitoring so you get alerted if someone tampers with bootstrap/cache/, where Laravel's scheduler lock files live.

Prerequisites & Environment Checklist

Before troubleshooting, gather these facts. Without them you are guessing.

PHP Binary Path

Run which php from a shell as the cron user. Cron does not inherit your interactive shell's PATH, so php in a crontab often resolves to nothing. Capture the absolute path, typically /usr/bin/php or /opt/cpanel/ea-php81/root/usr/bin/php on managed hosts, and use it in your entry.

Laravel Version

Confirm whether you are on Laravel 12.x, 11.x, or older. The scheduler API has been stable for years, but the location of schedule definitions changed in Laravel 11: tasks now live in routes/console.php by default instead of App\Console\Kernel. If you are debugging an app that recently upgraded, the missing schedule definitions are often the real culprit behind a Laravel cron not running.

Cache & Queue Drivers

Overlapping locks are stored in your configured cache. If your cache driver is database and the connection is broken, withoutOverlapping() will silently skip every job. Switch to file temporarily to isolate the issue, or confirm the cache table exists and the DB user can write to it.

Docker & Virtualization

Cron inside a Docker container is a known footgun. Most base images do not include a running cron daemon. Either bake one in with a RUN apt-get install -y cron and a supervisor entry, or run your scheduler as the container's PID 1. The same applies to Kubernetes: you need a dedicated CronJob resource, not a crontab on a pod.

Classic Cron Setup: The Traditional Approach

Yellow block letters spelling 'error' on a vibrant pink background, capturing a playful message.
Photo by Ann H via Pexels. Laravel Cron Not Running Concept.

The traditional approach is a single user crontab entry. Edit it with crontab -e per Hostinger's cron reference, and add one line that changes to your project directory and invokes the scheduler.

crontab Entry Syntax

The canonical entry looks like this:

* * * * * cd /home/forge/example.com && /usr/bin/php artisan schedule:run >> /dev/null 2>&1

Five timing fields define when the job fires. The command begins with cd to the application root so that relative paths inside your scheduled tasks resolve correctly. The >> /dev/null 2>&1 redirect silences output, but for debugging, point it to a log file instead.

Permission & Ownership

The cron user must own (or at least be able to write to) storage/ and bootstrap/cache/. On shared hosting, run the host's "Fix File Ownership" tool. On Forge or Ploi, this is handled automatically when the deploy user is created. Wrong ownership is the silent killer: the cron fires, Laravel tries to write a lock, the write fails, and the job is skipped with no error in your inbox.

Logging & Debugging

Replace the discard redirect with a real log target for the first 24 hours of a new schedule:

* * * * * cd /home/forge/example.com && /usr/bin/php artisan schedule:run >> /home/forge/example.com/storage/logs/cron.log 2>&1

Then tail -f storage/logs/cron.log. You will see every run, every dispatch, and every stack trace. Once you trust the pipeline, you can swap the redirect back to /dev/null or wire up a real log aggregator.

Alternative Scheduler: php artisan schedule:run-cronless

The cronless approach replaces the operating system daemon with a long-running PHP process. The cronless-schedule package from Laravel News wraps Laravel's scheduler in an event loop, so you get sub-minute frequencies and zero cron configuration.

Long-Running PHP Process

Start it with:

php artisan schedule:run-cronless

By default it checks for due tasks every minute. Pass a frequency to run faster:

php artisan schedule:run-cronless --frequency=5

This runs every five seconds, which is how you schedule sub-minute jobs like a websocket heartbeat or a live notification dispatch.

ReactPHP Integration

Under the hood, the package uses ReactPHP's event loop. That means the process stays alive cheaply, idling on I/O until the next tick. It is a much lighter footprint than a node-cron container, and because the loop is single-threaded, you do not need to worry about overlapping executions of the scheduler itself.

Docker Compose Example

Here is a minimal service definition for a containerized Laravel app:

services:
 app:
 build: .
 command: php artisan serve --host=0.0.0.0 --port=8000
 scheduler:
 build: .
 command: php artisan schedule:run-cronless --frequency=30
 restart: unless-stopped
 depends_on:
 - app

The scheduler container restarts on crash, has no cron dependency, and survives container restarts. The catch: the process never ends by itself, so you need a process supervisor (Docker's restart policy, systemd, or Kubernetes liveness probes) to keep it healthy.

Debugging the Cron Daemon

When schedule:run works by hand but the cron entry does nothing, the problem lives in the operating system layer.

Checking crond Status

On modern Linux, systemctl status crond tells you if the daemon is running. On a fresh VPS, it sometimes is not enabled. Enable and start it with sudo systemctl enable --now crond. On macOS, cron is deprecated in favor of launchd; for local Laravel work, the cronless scheduler is the cleaner path.

System Logs

Every cron execution leaves a trail in /var/log/cron on RHEL-family systems or /var/log/syslog on Debian. Grep for your command to confirm it is being attempted. If you see the trigger but no output, the issue is inside the command. If you do not see the trigger, the entry never matched.

Cron.allow / Cron.deny

These files in /etc/ explicitly permit or block users. If your deploy user is listed in cron.deny, every entry silently fails. The same applies to PAM access controls and SELinux policies on hardened servers. Always check /etc/cron.allow first, then /etc/cron.deny.

Environment Variables

Cron runs with a near-empty environment. PATH, HOME, and your application-specific variables are not set unless you declare them in the crontab or source .env explicitly. Add this near the top of the crontab for a quick fix:

PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
* * * * * cd /home/forge/example.com && /usr/bin/php artisan schedule:run

For Laravel specifically, schedule:run will load .env from the working directory, but only if the working directory is correct. The cd at the start of the command is what makes that magic happen.

Laravel's withoutOverlapping() & Silent Skips

Developers often blame the cron daemon when the real culprit is withoutOverlapping(). This method creates a lock file (in cache or file storage) to prevent a previous run of the same task from overlapping the next.

How It Works

When a scheduled task starts, Laravel checks for a lock. If the lock exists and has not expired, the task is silently skipped. The default lock lifetime is the task's own expected duration, but if the previous run crashed without releasing the lock, every subsequent run is skipped until the lock expires or is cleared.

Common Misconfigurations

The most frequent misconfiguration is using file as the cache driver on a server with read-only storage or a full disk. The lock write fails silently, Laravel treats the task as already overlapping, and the job never runs. Switching to redis or database often fixes this.

Bypass Strategies

For tasks that absolutely must run every minute, use runInBackground() so the scheduler returns immediately and the lock is released faster. For one-off recovery, run php artisan cache:clear to drop the lock file. For permanent safety, monitor for stale locks with the ScheduledTaskFailed event, which fires when a task is skipped due to overlap.

Pros & Cons: Traditional vs Cronless

Neither approach is universally better. The right choice depends on your deployment topology, your team size, and your tolerance for debugging operating system quirks.

Dimension Traditional Cron Cronless Scheduler
Performance Negligible per-minute overhead; daemon sleeps between checks. Persistent PHP process holds memory; uses ReactPHP loop for low CPU.
Resource Usage One entry per app, fires once per minute. One process per app, runs indefinitely.
Reliability Depends on the OS cron daemon staying up. Depends on a process supervisor (systemd, Docker, K8s).
Maintenance Edit crontab per server; path and env can drift. Define tasks in code, restart container on deploy.
Sub-minute Tasks Not possible without nested workarounds. Native via --frequency=5.

The traditional approach wins on simplicity for a single VPS. The cronless approach wins on consistency across containers, serverless platforms, and developer machines.

Common Mistakes & Troubleshooting Checklist

Run through this list whenever you take over a project whose cron is acting up. It catches the majority of real-world incidents.

Wrong PHP Path

Confirm with which php as the cron user. A common Hostinger-specific path is /opt/alt/php81/usr/bin/php, which is invisible to which if you are SSH'd in as a different user. Update the crontab accordingly.

Missing .env Entries

If a task uses Mail::send or any external API, the missing MAIL_MAILER or QUEUE_CONNECTION will cause a silent failure inside the scheduled job, even though the scheduler ran successfully. Test the task with php artisan reports:generate; echo "Exit code: $?" to see the real error.

Cache Locking Issues

Switch your cache driver temporarily to confirm whether the lock is the issue. Clear the cache and watch the next run.

Permission Errors

On shared hosting, the Hostinger file ownership reset tool restores correct permissions in one click. On custom servers, chown -R deploy:www-data storage bootstrap/cache and chmod -R 775 on those directories is the standard recipe.

Who Is This Best For? Persona Table

Different teams need different solutions. Use this table to pick the right scheduler for your situation.

Target Persona Recommended Option Key Reason & Real-World Benefit
Small Startup Traditional crontab One VPS, one app, one crontab line. Lowest moving parts, easiest to hand off to a junior dev.
Enterprise Platform-native scheduler (Cloud Scheduler, EventBridge) + Crontinel monitoring Decouples scheduling from compute, survives autoscaling, and feeds existing observability tools.
Docker Enthusiast Cronless scheduler in a dedicated container No cron daemon inside the image, predictable restarts, and a clean Compose file.
Serverless Dev Cronless scheduler or scheduled HTTP trigger calling schedule:run Lambda and Vapor have no OS cron; the schedule must be triggered by the platform.

Frequently Asked Questions

Common reasons include an incorrect cron entry path, missing PHP binary, wrong working directory, insufficient file permissions, or the cron daemon itself being stopped. Verify the cron syntax, test php artisan schedule:run manually, and check /var/log/cron for errors.

No comments yet. Be the first to share your technical feedback!

Leave Technical Feedback / Discussion

B

Brieflyn Editorial Team

Senior cybersecurity researchers, DevOps engineers, and technical editors at Brieflyn.

EXPERTISE: CYBERSECURITY, CLOUD INFRASTRUCTURE, & SOFTWARE SYSTEMS

Related Guides & Documentation