aws / aws/aws-codedeploy-agent
Failed deployment DownloadBundle events with error "No such file or directory - getcwd"
まだ誰も着手していません。
- 主要言語
- Rust
- スター
- 337
- フォーク
- 196
- 平均マージ
- 10時間 54分
- マージ済み PR(30日)
- 4
説明
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.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
この issue では、失敗した DownloadBundle イベントと、process cwd になっている削除済みの deployment-archive が特定されています。まず、そのイベントの処理と deployment ディレクトリの削除方法を追跡してください。getcwd の失敗を再現または調査し、その後、削除された deployment によって、サービスを再起動しなければ agent が使用不能な状態にならないことを確認してください。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- aws, ruby
- 領域
- cloud, devops
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100