• Debian 11 is approaching its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.80 will be the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

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
[email protected]
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
[email protected]
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
[email protected]
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