Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed deployment DownloadBundle events with error "No such file or directory - getcwd" #384

Open
TomZhuPlanetart opened this issue Nov 30, 2023 · 1 comment

Comments

@TomZhuPlanetart
Copy link

Deployment failed during Download bundle event : with unknown error "No such file or directory - getcwd"

It's not a duplicate issue of #255, the error is different.

Our production server encountered this issue today.

$ sudo lsof -p 650
COMMAND PID USER   FD      TYPE             DEVICE  SIZE/OFF      NODE NAME
ruby    650 root  cwd       DIR              259,3         6 205521082 /opt/codedeploy-agent/deployment-root/bc3648ae-4408-4e76-9ff2-66603cd21741/d-0G43URW03/deployment-archive (deleted)
ruby    650 root  rtd       DIR              259,3       257        96 /
ruby    650 root  txt       REG              259,3     68480  13134719 /usr/bin/ruby

If we check the codedeploy-agent with lsof, we can find the cwd has changed to the directory of a past deployment which has been deleted. This deployment was created 3 days ago.

Version: 1.6.0-49

Restarting the codedeploy service resolved the problem.

@psavides-aws
Copy link
Contributor

A commit is put into 1.7 which is intended to prevent this: 5a01a6d

track 1.7 release here: #388

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants