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

Issue Scheduled Task created under the domain fails: "No such file or directory"

alli81

New Pleskian
Hi, i have the sam problem wrote here:
Scheduled Task created under the domain fails: "No such file or directory"
(when run a crontab i receive "not such file or directory")

If i run this command:
grep SHELL /var/spool/cron/mywebsite

I receive:
SHELL=/usr/local/psa/bin/chrootsh

The guide tell me:
Find the specific set of utilities available in the chrooted environment by default in the ${HTTPD_VHOSTS_D}/chroot directory hierarchy ( HTTPD_VHOSTS_D is defined in /etc/psa/psa.conf ).

But i not undestand really what i need to do

Can you help me?
(i have plesk 11)
 
First, find your ${HTTPD_VHOSTS_D} variable. For example:

# grep HTTPD_VHOSTS_D /etc/psa/psa.conf
HTTPD_VHOSTS_D /var/www/vhosts

Then find your chrooted environment ${HTTPD_VHOSTS_D}/chroot:

# ll /var/www/vhosts/chroot
total 20
lrwxrwxrwx 1 root root 7 Sep 11 05:24 bin -> usr/bin
drwxr-xr-x 2 root root 4096 Sep 11 05:23 dev
drwxr-xr-x 2 root root 4096 Sep 11 05:24 etc
lrwxrwxrwx 1 root root 7 Sep 11 05:24 lib -> usr/lib
lrwxrwxrwx 1 root root 9 Sep 11 05:24 lib64 -> usr/lib64
lrwxrwxrwx 1 root root 8 Sep 11 05:24 sbin -> usr/sbin
drwxrwxrwt 2 root root 4096 Sep 11 05:23 tmp
drwxr-xr-x 6 root root 4096 Sep 11 05:23 usr
drwxr-xr-x 3 root root 4096 Sep 11 05:23 var

Now you can use commands from your chrooted dirs like /var/www/vhosts/chroot/bin/ or /var/www/vhosts/chroot/usr/bin/ for your scheduled tasks.
 
Back
Top