1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

domain scheduled tasks dont run

Discussion in 'Plesk 10.x for Linux Issues, Fixes, How-To' started by 105547111, Feb 22, 2011.

  1. 105547111

    105547111 Silver Pleskian

    32
    30%
    Joined:
    Jul 13, 2006
    Messages:
    643
    Likes Received:
    2
    New install

    Only root scheduled tasks run

    The domains they dont do anything at all

    Any idea?
     
  2. 105547111

    105547111 Silver Pleskian

    32
    30%
    Joined:
    Jul 13, 2006
    Messages:
    643
    Likes Received:
    2
    okay its permissions...

    My scripts want to use commands that seem forbidden like date...

    If I run them as root, they are owned by root :(

    I tried su as root back to the domain owner but it fails.

    Damn what a pain. I have to rewrite all my scripts to run as root, and then chown the files and reset the chcon as well :(

    Why is this changed from plesk 9.x, they used to work.

    Here is an example:

    mkdir -p /var/www/vhosts/domain.com/httpdocs/images/archive/$(date +%F)

    I changed to

    mkdir -p httpdocs/images/archive/$(date +%F)

    result:

    /bin/mkdir: /bin/mkdir: cannot execute binary file


    then tried (as root):

    su - domainuser date

    -: date: No such file or directory

    :(
     
  3. CoreyC

    CoreyC New Pleskian

    16
    60%
    Joined:
    Jun 1, 2010
    Messages:
    22
    Likes Received:
    0
    Check your shell, you might not be running what you think.
     
Loading...