• 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 error

S

spirit28

Guest
After upgrading to version 8.1 I receive an error concerning a cron-job daily:

/bin/sh: /usr/local/psa/psa/run-parts.sh: No such file or directory
 
Change all crontabs from
/usr/local/psa/psa/run-parts.sh
to:
/usr/local/psa/bin/run-parts.sh
 
Originally posted by society
Change all crontabs from
/usr/local/psa/psa/run-parts.sh
to:
/usr/local/psa/bin/run-parts.sh

Thanks.
 
But dirs:
/etc/psa/plesk-cron.daily
/etc/psa/plesk-cron.weekly
/etc/psa/plesk-cron.monthly
don't really exists =(
Code:
3       0       *       *       *       /usr/local/psa/bin/run-parts.sh /etc/psa/plesk-cron.daily
15      0       *       *       7       /usr/local/psa/bin/run-parts.sh /etc/psa/plesk-cron.weekly
25      1       1       *       *       /usr/local/psa/bin/run-parts.sh /etc/psa/plesk-cron.monthly
 
>execute : crontab -e
And?

run-parts.sh
Code:
#!/bin/sh

DIR="$1"
if [ -z "$DIR" ]; then
        echo "Usage: $0 <directory>"
        exit 1
fi

for prg in "$DIR"/*; do
        if ! [ -x "$prg" ]; then
                continue
        fi

        if $prg; then
                echo "*** $prg Completed ***"
        else
                status=$?
                echo "*** $prg Failed (code=$status) ***"
        fi
done

BUT
Dir /etc/psa/plesk-cron.daily isn't exist.
Dir /etc/psa/plesk-cron.weekly isn't exist.
Dir /etc/psa/plesk-cron.monthly isn't exist.


my crontab:

Code:
18,48   *       *       *       *       /usr/local/drweb/update/update.pl >/dev/null 2>&1
0       1       *       *       1       /usr/local/psa/libexec/modules/watchdog/cp/secur-check
0       1       *       *       1       /usr/local/psa/libexec/modules/watchdog/cp/send-report weekly
10      1       *       *       *       /usr/local/psa/libexec/modules/watchdog/cp/clean-sysstats
15      1       *       *       *       /usr/local/psa/libexec/modules/watchdog/cp/pack-sysstats day
15      1       *       *       1       /usr/local/psa/libexec/modules/watchdog/cp/pack-sysstats week
15      1       1       *       *       /usr/local/psa/libexec/modules/watchdog/cp/pack-sysstats month
15      1       1       *       *       /usr/local/psa/libexec/modules/watchdog/cp/pack-sysstats year
20      1       *       *       *       /usr/local/psa/libexec/modules/watchdog/cp/clean-events
0       3       *       *       7       /usr/local/psa/libexec/modules/watchdog/cp/clean-reports
47      *       *       *       *       /usr/sbin/ntpdate -b -s 85.21.143.65 > /dev/null 2>&1
3       0       *       *       *       /usr/local/psa/bin/run-parts.sh /etc/psa/plesk-cron.daily
15      0       *       *       7       /usr/local/psa/bin/run-parts.sh /etc/psa/plesk-cron.weekly
25      1       1       *       *       /usr/local/psa/bin/run-parts.sh /etc/psa/plesk-cron.monthly
 
Originally posted by 3a-informatique
this crontab is correct

But, what will doing this jobs?
Code:
3       0       *       *       *       /usr/local/psa/bin/run-parts.sh /etc/psa/plesk-cron.daily
15      0       *       *       7       /usr/local/psa/bin/run-parts.sh /etc/psa/plesk-cron.weekly
25      1       1       *       *       /usr/local/psa/bin/run-parts.sh /etc/psa/plesk-cron.monthly
it must execute all scripts in this dirs, but dirs aren't exist

Code:
# cd /etc/psa/plesk-cron.daily
/etc/psa/plesk-cron.daily: No such file or directory.
 
Originally posted by gromith
change it to /etc/psa/plesk-cron.daily/50plesk.daily.sh

# cd /etc/psa/plesk-cron.daily
/etc/psa/plesk-cron.daily: No such file or directory.
 
Same here.
Don't have /etc/psa/plesk-cron.daily/

But i have /etc/cron.daily/50plesk.daily.sh

I think u use Debian 3.1?
 
Back
Top