• 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 Daemon Messages: Root not found

repa

New Pleskian
Hi,

since today i get the follwoing e-mails every 15 minutes:

Cron <root@xyz> root [ -x /usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find /var/lib/php5/ -depth -mindepth 1 -maxdepth 1 -type f -cmin +$(/usr/lib/php5/maxlifetime) ! -execdir fuser -s {} 2>/dev/null \; -delete

/bin/sh: 1: root: not found

and
Cron <root@xyt> root [ -x /opt/psa/admin/sbin/backupmng ] && /opt/psa/admin/sbin/backupmng >/dev/null 2>&1
/bin/sh: 1: root: not found

Anyone get the same errors?
 
Check your cron syntax. If you are making changes in a local cron file using crontab -e, the job entry should contain 6 fields (not the username) like this:

* * * * * /home/command.sh

A wrong entry like this:

* * * * * root /home/command.sh

would cause cron to interpret "root" as a command.

The syntax "* * * * * root /home/command.sh" is valid for system crontab file /etc/crontab.
 
Hi Igor,

we have not made any modification to cron on this machine!

the cron looks like this:

cat plesk-backup-manager
8,23,38,53 * * * * /opt/psa/admin/sbin/backupmng && /opt/psa/admin/sbin/backupmng >/dev/null 2>&1

cat php5
# /etc/cron.d/php5: crontab fragment for php5
# This purges session files older than X, where X is defined in seconds
# as the largest value of session.gc_maxlifetime from all your php.ini
# files, or 24 minutes if not defined. See /usr/lib/php5/maxlifetime

# Look for and purge old sessions every 30 minutes
09,39 * * * * /usr/lib/php5/maxlifetime && -d /var/lib/php5 && find /var/lib/php5/ -depth -mindepth 1 -maxdepth 1 -type f -cmin +$(/usr/lib/php5/maxlifetime) ! -execdir fuser -s {} 2>/dev/null \; -delete
 
Any hint? More Jobs are coming every day, very strange!

Cron <root@xyz> list [ -x /usr/lib/mailman/cron/disabled ] && /usr/lib/mailman/cron/disabled
/bin/sh: 1: list: not found
 
Back
Top