[RESOLVED] Job queue do nothing

Discussion in 'ISPConfig 3 Priority Support' started by sweetromain, Sep 22, 2017.

  1. sweetromain

    sweetromain New Member HowtoForge Supporter

    Hello,
    Before everything else I'm french so sorry for my syntax. Since yesterday, after add sleep time to folder and db verification before go to next. No job is executed, and so they are stacked. At beginning, I thought is because 1 job is bugged but not at all, because I skip by incrementing in server.updated but after I have added 1 new FTP user, the job is freezed. I don't know how identify problem.
    Can you help me please ?
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

  3. sweetromain

    sweetromain New Member HowtoForge Supporter

    Okay I say nothing, job are executed but very slowly. So I change my question, why is so slowly after force skip job ?
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    It depends on which changes you are writing. For example when you write website changes and used Tools > Resync and resynced all the websites, then the config for each site will be written and tested and tis will take some time. Onaother possibility is that your server has a high load which slows down
     
  5. sweetromain

    sweetromain New Member HowtoForge Supporter

    But many of option like resync are disable. I've an other question, who is the owner of server.sh ?
    Because in cron log, the last date from September 21 2017, and my cron service is active. So why cron doesn't run server.sh every minute?
    PS :
    crontab -l
    * * * * * /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
     
    Last edited: Sep 25, 2017
  6. HSorgYves

    HSorgYves Active Member

    Root is the owner of the file and it's root who should run the cronjob. Post the output of:
    tail -n 20 /var/log/ispconfig/cron.log
     
  7. till

    till Super Moderator Staff Member ISPConfig Developer

    And you might want to try to restart the cron daemon or the complete server.
     
  8. sweetromain

    sweetromain New Member HowtoForge Supporter

    [email protected]:~# tail -n 20 /var/log/ispconfig/cron.log
    jeudi 21 septembre 2017, 09:33:01 (UTC+0200) Included cronjob_purge_mailboxes from /usr/local/ispconfig/server/lib/classes/cron.d/600-purge_mailboxes.inc.php -> will now run job.
    jeudi 21 septembre 2017, 09:33:01 (UTC+0200) Called run() for class cronjob_purge_mailboxes
    jeudi 21 septembre 2017, 09:33:01 (UTC+0200) Job has schedule: 30 23 * * *
    jeudi 21 septembre 2017, 09:33:01 (UTC+0200) Called onPrepare() for class cronjob_purge_mailboxes
    jeudi 21 septembre 2017, 09:33:01 (UTC+0200) Called onBeforeRun() for class cronjob_purge_mailboxes
    jeudi 21 septembre 2017, 09:33:01 (UTC+0200) Jobs next run is 2017-09-21 23:30:00
    jeudi 21 septembre 2017, 09:33:01 (UTC+0200) Date compare of 1506029400 and 1505979181 is -1
    jeudi 21 septembre 2017, 09:33:01 (UTC+0200) Called onCompleted() for class cronjob_purge_mailboxes
    jeudi 21 septembre 2017, 09:33:01 (UTC+0200) run job (cronjob_purge_mailboxes) done.
    jeudi 21 septembre 2017, 09:33:01 (UTC+0200) Included cronjob_letsencrypt from /usr/local/ispconfig/server/lib/classes/cron.d/900-letsencrypt.inc.php -> will now run job.
    jeudi 21 septembre 2017, 09:33:01 (UTC+0200) Called run() for class cronjob_letsencrypt
    jeudi 21 septembre 2017, 09:33:01 (UTC+0200) Job has schedule: 0 3 * * *
    jeudi 21 septembre 2017, 09:33:01 (UTC+0200) Called onPrepare() for class cronjob_letsencrypt
    jeudi 21 septembre 2017, 09:33:01 (UTC+0200) Called onBeforeRun() for class cronjob_letsencrypt
    jeudi 21 septembre 2017, 09:33:01 (UTC+0200) Jobs next run is 2017-09-22 03:00:00
    jeudi 21 septembre 2017, 09:33:01 (UTC+0200) Date compare of 1506042000 and 1505979181 is -1
    jeudi 21 septembre 2017, 09:33:01 (UTC+0200) Called onCompleted() for class cronjob_letsencrypt
    jeudi 21 septembre 2017, 09:33:01 (UTC+0200) run job (cronjob_letsencrypt) done.
    jeudi 21 septembre 2017, 09:33:01 (UTC+0200) 21.09.2017-09:33 - DEBUG - Remove Lock: /usr/local/ispconfig/server/temp/.ispconfig_cron_lock
    jeudi 21 septembre 2017, 09:33:01 (UTC+0200) finished.



    [email protected]:~# service cron status
    ● cron.service - Regular background program processing daemon
    Loaded: loaded (/lib/systemd/system/cron.service; enabled)
    Active: active (running) since lun. 2017-09-25 10:01:11 CEST; 1min 34s ago
    Docs: man:cron(8)
    Main PID: 27150 (cron)
    CGroup: /system.slice/cron.service
    └─27150 /usr/sbin/cron -f

    sept. 25 10:01:11 myUrl systemd[1]: Started Regular background program processing daemon.
    sept. 25 10:01:11 myUrl cron[27150]: (CRON) INFO (pidfile fd = 3)
    sept. 25 10:01:11 myUrl cron[27150]: (getmail) WRONG FILE OWNER (crontabs/getmail)
    sept. 25 10:01:11 myUrl cron[27150]: (root) WRONG FILE OWNER (crontabs/root)
    sept. 25 10:01:11 myUrl cron[27150]: (CRON) INFO (Skipping @reboot jobs -- not system startup)
    sept. 25 10:02:01 myUrl CRON[27157]: pam_unix(cron:session): session opened for user root by (uid=0)
    sept. 25 10:02:01 myUrl CRON[27158]: (root) CMD (/usr/local/rtm/bin/rtm 12 > /dev/null 2> /dev/null)
    sept. 25 10:02:01 myUrl CRON[27157]: pam_unix(cron:session): session closed for user root


    [email protected]:~# tail -n 20 /var/log/syslog
    Sep 25 10:03:07 myID postfix/smtpd[27253]: connect from unknown[115.127.8.85]
    Sep 25 10:03:09 myID postfix/smtpd[27253]: disconnect from unknown[115.127.8.85]
    Sep 25 10:04:01 myID CRON[27262]: (root) CMD (/usr/local/rtm/bin/rtm 12 > /dev/null 2> /dev/null)
    Sep 25 10:05:01 myID pure-ftpd: ([email protected]) [INFO] New connection from 194.247.31.144
    Sep 25 10:05:01 myID pure-ftpd: ([email protected]) [ERROR] altlog /var/log/pure-ftpd/transfer.log: Permission denied
    Sep 25 10:05:01 myID pure-ftpd: ([email protected]) [INFO] PAM_RHOST enabled. Getting the peer address
    Sep 25 10:05:01 myID CRON[27310]: (root) CMD (/usr/local/rtm/bin/rtm 12 > /dev/null 2> /dev/null)
    Sep 25 10:05:09 myID pure-ftpd: ([email protected]) [WARNING] Authentication failed for user [[email protected]domaine.fr]
    Sep 25 10:05:09 myID pure-ftpd: ([email protected]) [INFO] Logout.
    Sep 25 10:06:01 myID CRON[27353]: (root) CMD (/usr/local/rtm/bin/rtm 12 > /dev/null 2> /dev/null)
    Sep 25 10:06:29 myID postfix/anvil[27255]: statistics: max connection rate 1/60s for (smtp:115.127.8.85) at Sep 25 10:03:07
    Sep 25 10:06:29 myID postfix/anvil[27255]: statistics: max connection count 1 for (smtp:115.127.8.85) at Sep 25 10:03:07
    Sep 25 10:06:29 myID postfix/anvil[27255]: statistics: max cache size 1 at Sep 25 10:03:07
    Sep 25 10:06:47 myID postfix/smtpd[27401]: connect from unknown[189.207.84.203]
    Sep 25 10:06:48 myID postfix/smtpd[27401]: disconnect from unknown[189.207.84.203]
    Sep 25 10:07:01 myID CRON[27405]: (root) CMD (/usr/local/rtm/bin/rtm 12 > /dev/null 2> /dev/null)
    Sep 25 10:08:01 myID CRON[27461]: (root) CMD (/usr/local/rtm/bin/rtm 12 > /dev/null 2> /dev/null)
    Sep 25 10:08:03 myID crontab[27503]: (root) LIST (root)
    Sep 25 10:09:01 myID CRON[27516]: (root) CMD (/usr/local/rtm/bin/rtm 12 > /dev/null 2> /dev/null)
    Sep 25 10:09:01 myID CRON[27517]: (root) CMD ( [ -x /usr/lib/php5/sessionclean ] && /usr/lib/php5/sessionclean)
     
    Last edited: Sep 25, 2017
  9. till

    till Super Moderator Staff Member ISPConfig Developer

    Use the command:

    crontab -e

    as root user to edit the root crontab, add a # in front of the server.sh cronjob. save the crontab and exit the crontab editor. Then redo the steps and remove the # again. This should force cron to reread this job.
     
  10. sweetromain

    sweetromain New Member HowtoForge Supporter

    Okay thanks a lot, it's reworks.
     

Share This Page