ScriptTimedOut

Open
#78 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
aws, shell
Domain
cloud, devops

Research direction

Start with scripts/deregister_from_elb.sh and scripts/common_functions.sh at line 96, then reproduce the CodeDeploy BeforeInstall event using the shown failure output. Check how the aws command is invoked in that deployment environment; done means explaining the timeout and identifying the required repository or deployment change.

Written by the indexing model from the issue text.

Description

Hello,
I'm trying to use the scripts into elb-v2 folder for a solution with codedeploy and and ALB.
But i receive a timeout to the BeforeInstall event with this output:

Error Code
ScriptTimedOut
Script Name
scripts/deregister_from_elb.sh
Message
Script at specified location: scripts/deregister_from_elb.sh failed to complete in 360 seconds
Log Tail

[stderr]aws --region eu-central-1 autoscaling describe-auto-scaling-instances --instance-ids i-0004630d2544ec616 --output text --query AutoScalingInstances[0].AutoScalingGroupName
[stderr] * 4 failure(s), retrying in 29 second(s)
[stderr]/opt/codedeploy-agent/deployment-root/385c8c99-acfe-4642-b6f4-45bc2db579cb/d-MWAP9TGMQ/deployment-archive/scripts/common_functions.sh: line 96: aws: command not found
[stderr]aws --region eu-central-1 autoscaling describe-auto-scaling-instances --instance-ids i-0004630d2544ec616 --output text --query AutoScalingInstances[0].AutoScalingGroupName
[stderr] * 5 failure(s), retrying in 63 second(s)
[stderr]/opt/codedeploy-agent/deployment-root/385c8c99-acfe-4642-b6f4-45bc2db579cb/d-MWAP9TGMQ/deployment-archive/scripts/common_functions.sh: line 96: aws: command not found
[stderr]aws --region eu-central-1 autoscaling describe-auto-scaling-instances --instance-ids i-0004630d2544ec616 --output text --query AutoScalingInstances[0].AutoScalingGroupName
[stderr] * 6 failure(s), retrying in 120 second(s)
[stderr]/opt/codedeploy-agent/deployment-root/385c8c99-acfe-4642-b6f4-45bc2db579cb/d-MWAP9TGMQ/deployment-archive/scripts/common_functions.sh: line 96: aws: command not found
[stderr]aws --region eu-central-1 autoscaling describe-auto-scaling-instances --instance-ids i-0004630d2544ec616 --output text --query AutoScalingInstances[0].AutoScalingGroupName
[stderr] * 7 failure(s), retrying in 120 second(s)
[stderr]/opt/codedeploy-agent/deployment-root/385c8c99-acfe-4642-b6f4-45bc2db579cb/d-MWAP9TGMQ/deployment-archive/scripts/common_functions.sh: line 96: aws: command not found
[stderr]aws --region eu-central-1 autoscaling describe-auto-scaling-instances --instance-ids i-0004630d2544ec616 --output text --query AutoScalingInstances[0].AutoScalingGroupName
[stderr] * 8 failure(s), retrying in 120 second(s)

What I mistake?
Thanks

Dominant language
Shell
Stars
639
Forks
777
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from aws-samples/aws-codedeploy-samples

All issues in aws-samples/aws-codedeploy-samples

Similar issues

More Shell/Bash issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.