Skip to content
CitexNode
All guides

Cron jobs, logs and diagnosis

Recurring tasks by URL or command, reading runtime logs, and what the check after every build finds.

3 min read

Cron jobs

A cron job runs at fixed times. In the Cron jobs tab, you create one with New cron job:

  • Name,
  • Schedule (cron, Europe/Berlin), or a preset such as "Every 5 minutes", "Hourly" or "Daily at 3:00",
  • What should happen?: Call an address on your site, with Path and Method (GET or POST), for example /cron/cleanup, or Run a command in the container.

A call to an address comes from inside, not over the internet, with the header X-CitexNode-Cron. It may take up to 60 seconds, and never more than one runs at a time. Status and duration of the recent runs are under Runs. Now starts a run immediately; Pause and Resume stop the cron job or let it continue.

After 10 failures in a row we pause a cron job and send you an email.

Logs

Build logs are on every build. In the Logs tab, the Runtime logs show what your app prints while it runs: errors, crashes, your own output. They refresh every 10 seconds; Reload fetches them right away. We redact credentials in the lines.

Diagnosis

After every build we call your address like a browser would. We follow redirects and keep cookies. If the check finds a problem, a notice appears in the Overview under Controls: "The last check found a problem". Possible causes:

  • Redirect loop: the site redirects in a circle. With PHP it is usually an .htaccess, see PHP settings.
  • Server error: the app answers with 5xx. The cause is in the logs.
  • Start page not found: / returns 404; often index.html is missing or the root directory is wrong.
  • Timeout: no answer within 15 seconds.
  • Certificate: the site is not cleanly reachable over HTTPS.

The build stays live anyway. The check only warns.

Error pages

If your app does not answer at all, we show our own page instead of a browser error: "Being deployed" on the first build, "The app is not responding right now" after a crash, and "Project paused" when you have stopped it.