Translated message

A translation of this page exists in English.

Warning message

This translation is outdated. For the most up-to-date information, please refer to the English version.

cron ジョブがスキップし、'Job execution of per-minute job scheduled for xx:xx delayed into subsequent minute xx:xx Skipping job run' エラーメッセージがログ記録されます

Solution Verified - Updated -

Environment

  • Red Hat Enterprise Linux 5

Issue

  • cron ジョブが何度かスキップし、ログに以下のようなメッセージが記録されます。

       May  3 08:46:01  crond[12709]:(admin) error:Job execution of per-minute job scheduled for 08:45 delayed into
    subsequent minute 08:46.Skipping job run.
    May  3 08:46:01 crond[12709]:CRON (admin) ERROR: cannot set security context
    May  3 08:46:01  crond[12708]:(admin) error:Job execution of per-minute job scheduled for 08:45 delayed into
    subsequent minute 08:46.Skipping job run.
    May  3 08:46:01  crond[12708]:CRON (admin) ERROR: cannot set security context
    

Resolution

このメッセージは、per-minute cron ジョブの設定に 60 秒以上かかると出力されます。

問題を解決するには、システムのネットワークベースのユーザー ID サービスを信頼または回復設定に再構成するか、1 分経つまでスリープするサービスとして cron ジョブを再コード化する必要があります。

Root Cause

cron ジョブは、設定時に必要なユーザーおよびグループ、そして SELinux 情報を取得します。

システム構成がローカル以外のサービス (NIS、LDAP、winbind) のユーザーデータベース情報に依存していると、システムへの負荷が高い場合や、ネットワークの機能が停止した場合や、遠隔のサーバーで問題が発生した場合に、ルックアップが停止してしまう可能性があります。すべてのルックアップで 60 秒以上の遅延が生じると、ログメッセージが出力されジョブは実行されません。

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments