shell-init: error while upgrading AMP or running manual backup on CLI
Issue : We may see errors in command line when we are upgrading the server or running manual amp backup like
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Resolution : You can safely ignore these messages, these are not error messages but a warning messages. The upgrade or backup will successfully finish.
However, the error/warning messages states that its not able to locate the (cwd) current working directory, so it happens because you’re still in the check directory which doesn’t exist anymore. Go to another directory, and you’ll see the warnings are gone.
Should fix this error