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

[Help needed] Exit status code 255 #223

Closed
sagrawal-code opened this issue Mar 24, 2021 · 2 comments
Closed

[Help needed] Exit status code 255 #223

sagrawal-code opened this issue Mar 24, 2021 · 2 comments

Comments

@sagrawal-code
Copy link

Hello

My deployment (running ecs-deploy via CodeBuild) has started failing since last week with exit status code 255 (no explicit change from me; I do get the latest master version of ecs-deploy on each build though). There is no error message. It deploys fine if I run the same command (using the same image etc.) locally.

I looked at the script and couldn't find anywhere where the exit status code can be 255. If someone can point me to a direction where I can look in order to debug this issue it will be very helpful.

@sagrawal-code
Copy link
Author

  • I was able to gain shell access to Codebuild via AWS Session Manager as described in this article:https://dev.to/glnds/how-to-debug-and-trace-problems-in-aws-codebuild-1cgl
  • I discovered that aws ecs commands are failing because of a version conflict between the boto libraries (boto3 and botocore) installed by awscli and the ones which were being installed by the application's test runner for running unit tests.
  • I upgraded the boto3 package in the application's requirements file.
  • This removed the version conflict and the aws ecs command and hence, ecs-deploy was able to run successfully again.

It might be good to have a "--debug" flag to ecs-deploy which returns the debug output of a failed awscli command.

Thank you!

@jybaek
Copy link

jybaek commented Apr 15, 2021

@sagrawal-code Saved me from hell. Thanks.

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

No branches or pull requests

2 participants