• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Cron issue

MichCo

New Pleskian
Hi,

I turn on OpenSuse 12.1 with plesk. I've a problem with crontab domains.

My cron in plesk:

10 * * * * php -f /srv/www/vhosts/mydomain.tld/httpdocs/cron.php

When i check in SSH with account user ("bin/sh" access on SSH), the command 'crontab -l' the result it's good. But the cron do not launch....

I've checked if cron is running with root access and is running....

Why crontab for my domains do not launch?


Thanks


PS: sorry for my bad english :(
 
No change :(


look Below:

With SSH user acces
Code:
~> cat /etc/crontab
SHELL=/bin/sh
PATH=/usr/bin:/usr/sbin:/sbin:/bin:/usr/lib/news/bin
MAILTO=root
#
# check scripts in cron.hourly, cron.daily, cron.weekly, and cron.monthly
#
-*/15 * * * *   root  test -x /usr/lib/cron/run-crons && /usr/lib/cron/run-crons >/dev/null 2>&1

Code:
~> crontab -l
# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (crontabSgvpKK installed on Wed Nov 28 14:13:39 2012)
# (Cronie version 4.2)
SHELL=/bin/sh
MAILTO=email@myemail.com
2      *       *       *       *       /usr/bin/php -f /srv/www/vhosts/domain.tld/httpdocs/cron.php
2       *       *       *       *       php -f /srv/www/vhosts/domain.tld/httpdocs/cron.php

With root SSH:
Code:
~ # crontab -u userdomain -l
# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (crontabSgvpKK installed on Wed Nov 28 14:13:39 2012)
# (Cronie version 4.2)
SHELL=/bin/sh
MAILTO=email@myemail.com
10      *       *       *       *       /usr/bin/php -f /srv/www/vhosts/domain.tld/httpdocs/cron.php
2       *       *       *       *       php -f /srv/www/vhosts/domain.tld/httpdocs/cron.php

Code:
~ # ps -ef | grep cron
root      2486     1  0 13:52 ?        00:00:00 /usr/sbin/cron -n
root      6530  6431  0 14:21 pts/0    00:00:00 grep --color=auto cron

Code:
~ # service cron status
redirecting to systemctl
cron.service - Command Scheduler
          Loaded: loaded (/lib/systemd/system/cron.service; enabled)
          Active: active (running) since Wed, 28 Nov 2012 13:52:06 +0100; 35min ago
        Main PID: 2486 (cron)
          CGroup: name=systemd:/system/cron.service
                  â 2486 /usr/sbin/cron -n
 
Last edited:
Code:
# /usr/local/psa/admin/sbin/crontabmng get userdomain
# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (crontabhbzCUF installed on Wed Nov 28 15:09:31 2012)
# (Cronie version 4.2)
SHELL=/bin/sh
MAILTO=email@myemail.com
2       *       *       *       *       /usr/bin/php -f /srv/www/vhosts/domain.tld/httpdocs/cron.php
2       *       *       *       *       php -f /srv/www/vhosts/domain.tld/httpdocs/cron.php

I've tried to execute but no effect:
Code:
~ # /usr/local/psa/bin/server_pref -u -crontab-secure-shell /bin/sh
SUCCESS: Server preferences are successfully updated
 
Last edited:
Back
Top