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

Refers to:

  • Plesk 12.5 for Linux
  • Plesk 11.0 for Linux
  • Plesk 11.5 for Linux
  • Plesk 12.0 for Linux

Created:

2016-11-16 13:09:16 UTC

Modified:

2016-12-21 20:04:28 UTC

0

Was this article helpful?


Have more questions?

Submit a request

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

Symptoms

Scheduled task created under the example.com domain ( Websites & Domains > Scheduled Tasks , for example example is a system user) is not working.

Upon cron test the following error appears:

No such file or directory

Cause

Access to the server over SSH with system user's credentials was set as chrooted ( Websites & Domains > Web Hosting Access ).

Resolution

  1. Check the shell that is being used by example system user:

    # grep SHELL /var/spool/cron/example
    SHELL=/usr/local/psa/bin/chrootsh

    According to the above output chrooted shell is being used.

  2. 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 ).

  3. If the command that is used in scheduled task is not presented in the chrooted environment you have two choices:

    a. Extend chrooted environment with additional commands.

    To do that please follow the instruction described here #213416489 .

    b. Change users environment to /bin/bash instead of /bin/bash (chrooted) .

    To do that go to Domains > example.com > Websites & Domains > Web Hosting Access

Have more questions? Submit a request
Please sign in to leave a comment.