sh: 0: getcwd() failed: No such file or directory
will report this error when executing a command in a directory that did not exist, but which has since been removed, but where certain management tool commands still exist. The above error
is reported
The
method is to change directories.