Errors / checked October 9, 2026

errors in crontab file, can't install.

The error

Terminal output after saving crontab -e, usually with a line like "/tmp/crontab.XXXX":1: bad minute just above it.

Quick fix

  1. Answer y to "Do you want to retry the same edit?" and look at the line number in the message.
  2. Check that the line has exactly five time fields before the command: minute, hour, day of month, month, day of week.
  3. Paste the five fields into the cron expression explainer to see which one is invalid and when the schedule would run.

Replace a crontab curl line with a hosted schedule

Why this happens

cron validates every line when you save. "bad minute", "bad hour" and similar mean that field has a value out of range (minute 0-59, hour 0-23, day 1-31, month 1-12, weekday 0-7) or a stray character, often a sixth field copied from a seconds-based format such as Quartz or node-cron.

Other solutions

  • Environment variables (FOO=bar) are allowed on their own lines, but a missing field on a job line shifts everything left and fails.
  • If the job is only a curl call to a URL, a hosted scheduler avoids editing crontab on a server at all.

Check a schedule before you deploy it: the cron expression explainer shows the next 10 run times.

Have the URL called on schedule, with retries

RunLater calls your URL on a cron schedule or at an exact time, in your timezone, retries failed calls with backoff and logs each response, so a timeout or a 5xx shows up in a log instead of disappearing.

Start a 14-day trialStarter is $15/month for 250 scheduled requests and 25,000 runs. Cancel before day 14 and you pay nothing.

Related errors