The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

user cron failing after upgrade to PHP 5.5

Discussion in 'General Discussion' started by jimlongo, Nov 19, 2014.

  1. jimlongo

    jimlongo Well-Known Member

    Joined:
    Mar 20, 2008
    Messages:
    145
    Likes Received:
    2
    Trophy Points:
    18
    Hi, I have a cron job that I have run for years. Since upgrading to PHP 5.5 it is failing with the error message Fatal Error Unable to create lock file: Bad file descriptor (9)

    In the cron logs I see this entry when the job runs.
    Code:
    Nov 19 11:54:01 vps crond[24397]: (xyz) RELOAD (/var/spool/cron/xyz)
    Nov 19 11:54:01 vps crond[24397]: (tmp.XXXXrf9rnA) ORPHAN (no passwd entry)
    The actual cronjob is a php script run by the command
    Code:
    /usr/local/cpanel/bin/cpuwatch 8 php _BUscripts/scriptname.php
    I don't know when the command changed, I'm sure it was originally entered as /usr/bin/php _BUscripts/scriptname.php - but I've tried both and still the same errors.

    I'm using the PHP 5 Handler suphp and Apache suEXEC is ON.
     
  2. jimlongo

    jimlongo Well-Known Member

    Joined:
    Mar 20, 2008
    Messages:
    145
    Likes Received:
    2
    Trophy Points:
    18
    I found that the crontab for this user had the SHELL="/usr/local/cpanel/bin/jailshell", when I changed it to SHELL="/bin/bash" the job proceeded without error.

    I don't see any difference in the packages between this account and others that have the SHELL="/bin/bash"

    I administer all these accounts, is there any security implication here?
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page