job queue not processing

Discussion in 'General' started by pecka33, Dec 30, 2022.

  1. pecka33

    pecka33 Member

    Hello,

    i am using latest debian with latest ispconfig. I tried to add cron job via ispconfig. After 15-20 minutes there was still job queue to create ssh user but nothing happened. At all i did reboot of my server.
    After that i have a problem - in ispconfig system logs are not sync with my server logs. Looks like cron does not works.
    For example before
    Code:
    grep CRON /var/log/syslog
    
    Code:
    Dec 30 18:26:01 host CRON[12182]: (root) CMD (/usr/local/ispconfig/server/server.sh 2>&1 | while read line; do echo `/bin/date` "$line" >> /var/log/ispconfig/cron.log; done)
    Dec 30 18:27:01 host CRON[12207]: (root) CMD (/usr/local/ispconfig/server/cron.sh 2>&1 | while read line; do echo `/bin/date` "$line" >> /var/log/ispconfig/cron.log; done)
    Dec 30 18:27:01 host CRON[12208]: (root) CMD (/usr/local/ispconfig/server/server.sh 2>&1 | while read line; do echo `/bin/date` "$line" >> /var/log/ispconfig/cron.log; done)
    Dec 30 18:28:01 host CRON[12240]: (root) CMD (/usr/local/ispconfig/server/cron.sh 2>&1 | while read line; do echo `/bin/date` "$line" >> /var/log/ispconfig/cron.log; done)
    Dec 30 18:28:01 host CRON[12241]: (root) CMD (/usr/local/ispconfig/server/server.sh 2>&1 | while read line; do echo `/bin/date` "$line" >> /var/log/ispconfig/cron.log; done)
    Dec 30 18:29:01 host CRON[12267]: (root) CMD (/usr/local/ispconfig/server/cron.sh 2>&1 | while read line; do echo `/bin/date` "$line" >> /var/log/ispconfig/cron.log; done)
    xxxx
    after that only

    Code:
    Dec 30 18:32:18 host cron[12506]: (CRON) INFO (pidfile fd = 3)
    Dec 30 18:32:18 host cron[12506]: (CRON) INFO (Skipping @reboot jobs -- not system startup)
    Dec 30 18:35:01 host CRON[12607]: (getmail) CMD (/usr/local/bin/run-getmail.sh > /dev/null 2>> /dev/null)
    Dec 30 18:39:01 host CRON[12658]: (root) CMD (  [ -x /usr/lib/php/sessionclean ] && if [ ! -d /run/systemd/system ]; then /usr/lib/php/sessionclean; fi)
    Dec 30 18:40:01 host CRON[12948]: (getmail) CMD (/usr/local/bin/run-getmail.sh > /dev/null 2>> /dev/null)
    Dec 30 18:45:01 host CRON[13035]: (getmail) CMD (/usr/local/bin/run-getmail.sh > /dev/null 2>> /dev/null)
    Dec 30 18:50:01 host CRON[13112]: (getmail) CMD (/usr/local/bin/run-getmail.sh > /dev/null 2>> /dev/null)
    Dec 30 18:55:01 host CRON[13198]: (getmail) CMD (/usr/local/bin/run-getmail.sh > /dev/null 2>> /dev/null)
    Dec 30 19:00:01 host CRON[13235]: (getmail) CMD (/usr/local/bin/run-getmail.sh > /dev/null 2>> /dev/null)
    Dec 30 19:05:01 host CRON[13303]: (getmail) CMD (/usr/local/bin/run-getmail.sh > /dev/null 2>> /dev/null)
    Dec 30 19:09:01 host CRON[13427]: (root) CMD (  [ -x /usr/lib/php/sessionclean ] && if [ ! -d /run/systemd/system ]; then /usr/lib/php/sessionclean; fi)
    Dec 30 19:10:01 host CRON[13672]: (getmail) CMD (/usr/local/bin/run-getmail.sh > /dev/null 2>> /dev/null)
    Dec 30 19:15:01 host CRON[13706]: (getmail) CMD (/usr/local/bin/run-getmail.sh > /dev/null 2>> /dev/null)
    Dec 30 19:17:01 host CRON[13757]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
    Dec 30 19:20:01 host CRON[13783]: (getmail) CMD (/usr/local/bin/run-getmail.sh > /dev/null 2>> /dev/null)
    Dec 30 19:25:01 host CRON[13836]: (getmail) CMD (/usr/local/bin/run-getmail.sh > /dev/null 2>> /dev/null)
    Dec 30 19:30:01 host CRON[13909]: (getmail) CMD (/usr/local/bin/run-getmail.sh > /dev/null 2>> /dev/null)
    Dec 30 19:35:01 host CRON[13987]: (getmail) CMD (/usr/local/bin/run-getmail.sh > /dev/null 2>> /dev/null)
    Dec 30 19:39:01 host CRON[14166]: (root) CMD (  [ -x /usr/lib/php/sessionclean ] && if [ ! -d /run/systemd/system ]; then /usr/lib/php/sessionclean; fi)
    Dec 30 19:40:01 host CRON[14390]: (getmail) CMD (/usr/local/bin/run-getmail.sh > /dev/null 2>> /dev/null)
    Dec 30 19:45:01 host CRON[14438]: (getmail) CMD (/usr/local/bin/run-getmail.sh > /dev/null 2>> /dev/null)
    Dec 30 19:49:17 host cron[14592]: (CRON) INFO (pidfile fd = 3)
    Dec 30 19:49:17 host cron[14592]: (CRON) INFO (Skipping @reboot jobs -- not system startup)
    Dec 30 19:50:01 host CRON[14607]: (getmail) CMD (/usr/local/bin/run-getmail.sh > /dev/null 2>> /dev/null)
    
    What should i check?

    In my crontab are

    Code:
    # DO NOT EDIT THIS FILE - edit the master and reinstall.
    # (crontab.txt installed on Tue Nov 22 15:01:57 2022)
    # (Cron version -- $Id: crontab.c,v 2.13 1994/01/17 03:20:37 vixie Exp $)
    43 0 * * * "/root/.acme.sh"/acme.sh --cron --home "/root/.acme.sh" > /dev/null
    * * * * * /usr/local/ispconfig/server/server.sh 2>&1 | while read line; do echo `/bin/date` "$line" >> /var/log/ispconfig/cron.log; done
    * * * * * /usr/local/ispconfig/server/cron.sh 2>&1 | while read line; do echo `/bin/date` "$line" >> /var/log/ispconfig/cron.log; done
    30 23 * * * /usr/local/ispconfig/server/scripts/handle_mailbox_soft_deleted.sh &> /dev/null
     
  2. pecka33

    pecka33 Member

    At all i edit file for cron root user in /var/spool/cron/crontabs

    Can be this problem? How can i fix it?
     
  3. pecka33

    pecka33 Member

    Here another output
    Code:
    root@host:~# ls -al /etc/cron.d
    total 28
    drwxr-xr-x   2 root root 4096 Dec 12 18:31 .
    drwxr-xr-x 100 root root 4096 Dec 30 18:21 ..
    -rw-r--r--   1 root root  281 Mar 21  2020 amavisd-new
    -rw-r--r--   1 root root  201 Jun  7  2021 e2scrub_all
    -rw-r--r--   1 root root  712 May 11  2020 php
    -rw-r--r--   1 root root  102 Feb 22  2021 .placeholder
    -rw-r--r--   1 root root  253 Nov 18  2021 roundcube-core
    
    Probably any problem with rwxr-xr-x 2 root root 4096 Dec 12 18:31 . or drwxr-xr-x 100 root root 4096 Dec 30 18:21 .. ? Because last log in ispconfig is from 18:30
     
  4. pecka33

    pecka33 Member

    I solved the problem. I forgot to add new line after my last cronjob.
     
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    If you want to add a root cronjob manually, use crontab command:

    crontab -e

    instead of editing files in /var/spool/cron/crontabs
     

Share This Page