• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

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