server.sh | jobqueue | cron

Discussion in 'General' started by dinakar, Oct 15, 2017.

  1. dinakar

    dinakar New Member

    Hello

    Am running ISPConfig Version: 3.1dev on Ubuntu 16.04.

    Recently, i added a cronjob for a website(OSTicket) hosted within ISPConfig. Since it was not running, i edited the cron entry manually in /etc/cron.d and changed shell and permissions. It ran good as scheduled, but the changes made to the server though the admin console stopped working. The red alert never dissapears and the the job queue is not processed.

    When i run the following command manually, all pending queue is processed.
    $sudo /usr/local/ispconfig/server/server.sh

    Can someone help what could have gone wrong and how to restore automatic processing of job queues / changes.

    thanks
     
  2. dinakar

    dinakar New Member

    i see crontab listing is empty for root in this server and when i compared it to a working server with same configuration, i see the below..
    root@whm01:/home/ispconfig# 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
    root@whm01:/home/ispconfig#

    will adding these to the problematic server's cron solve the issue?

    thanks
     
  3. till

    till Super Moderator Staff Member ISPConfig Developer

    yes
     
  4. dinakar

    dinakar New Member

    Thank you till. All back to normal now. OSTicket fetch script cron is still an issue and i will post a different thread if required.
     

Share This Page