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.

shell-init: error retrieving current directory: getcwd:

Discussion in 'General Discussion' started by ronanc, May 14, 2014.

  1. ronanc

    ronanc Registered

    Joined:
    May 15, 2013
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi after an dc migration my customers cant exec crontabs/cronjobs

    i currently receiving email erros of my whmcs schedule like this:

    shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
    No input file specified.

    When i copy the crontab line and run direct on putty, runs fine, but on crontab i get this erros

    shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
    No input file specified.

    How can i fix this?
    Thanks in advance!
    Ronan
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Could you elaborate on what the specific cron job does or it's specific contents? How does it appear in cPanel or in the /var/spool/cron/user file?

    Thank you.
     
  3. Jay Asher

    Jay Asher Member

    Joined:
    Feb 1, 2015
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi,

    I'm running Centos 6.6 WHM 11.48.0 (build 11)

    There was a cpanel update that happened on my server on Monday evening. I think I started getting these messages since that update, but I don't know if something else triggered it. Starting Monday evening, every time cron runs on one of the accounts (15 minutes) I get an email with the following message:
    shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
    No input file specified.

    The cron job that is being called is:
    */15 * * * * php -f /home/[username]/public_html/cron.php

    I have not made any updates to the site in at least a week. In fact, this has been working fine since about 2011, but something has recently changed. Trying to find the problem but no luck so far.

    thanks
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    This is typically caused by deleted, but not removed, virtfs mounted directory for the account. Please post the output from the following command:

    Code:
    grep deleted /proc/mounts | grep $username
    Thank you.
     
Loading...

Share This Page