Skip to main content

AWS CodeDeploy events don't start issue

Issue

The code deploy events keep hanging in the pending status without starting. 


AWS CodeDeploy events don't start issue

Possible Reasons

1. CodeDeploy agent not installed? Make sure to install the CodeDeploy agent in the EC2 instance (If you are using EC2 instances to deploy the application)

Refer to the documentation for the CodeDeploy agent installation.

2. Is the code deploy service role properly created?

Make sure to check the proper permissions for the service role that you have used for the code deploy service role. 

https://docs.aws.amazon.com/codedeploy/latest/userguide/getting-started-create-service-role.html

3. Make sure the IAM instance profile is properly created

https://docs.aws.amazon.com/codedeploy/latest/userguide/getting-started-create-iam-instance-profile.html

4. Is the code deploy endpoint command endpoint reachable? 

For each region, there is a CodeDeploy command endpoint. Make sure that you can reach the command endpoint from your EC2 instance. 

eg: for us-east-1

ping codedeploy.us-east-1.amazonaws.com

5. Check the CodeDeploy agent logs and deployment logs.

less /var/log/aws/codedeploy-agent/codedeploy-agent.log

less /opt/codedeploy-agent/deployment-root/deployment-group-ID/deployment-ID/logs/scripts.log

https://docs.aws.amazon.com/codedeploy/latest/userguide/deployments-view-logs.html













Comments

Popular posts from this blog

VLC skins

It's been a while from my first blog post, so today I thought to make a blog post about skins in VLC player. I think you all are familiar with VLC player if not, here's the link for the website www.videolan.org/vlc/index.htm l In brief, VLC player is a free and opensource player that can play almost all the types of media formats. Even though it is a such a nice player, it looks kind of old and rusty, like the windows classic look. But you can make it prettier by just adding some new skins to it.  You can download skins for the player from here http://www.videolan.org/vlc/skins.php Then place the downloaded skin file (.vlt file) in the " skin " folder in the installation directory.           eg:- in windows:    C:\Program Files\VideoLAN\VLC\skins           or in linux systems:  ~/.local/share/vlc/skins Then, open the VLC player and go to the preferences. ...

Java, how to create a list with a single element

 I wanted to create a Java List with a single element. Yet, I wanted to add more elements later. So, I was looking for a couple of ways to do this. So far there are multiple elegant ways to create a list with a single element with a one-liner. Not so much for a modifiable list though. Here's what I gathered so far. Followings are a few ways of creating a list with strictly a single entry. Can't add more elements. 1. Collections.singletonList() This returns an immutable list that cannot be modified or add more elements. // An immutable list containing only the specified object. List<String> oneEntryList = Collections. singletonList ( "one" ) ; oneEntryList.add( "two" ) ; // throws UnsupportedOperationException 2.  Arrays.asList() This returns a fixed-size list consisting of the number of elements provided as arguments. The number of elements provided would be an array hence the size is fixed to the length of the array. // Returns a fixed-size list List...

Facebook videos are too loud

Not sure if it is only me, but as of this writing, I find some of the Facebook videos are too loud compared with other websites or players on the machine. Whenever I play a video, I usually turn the volume down. Then whenever there's an ad, it screams in my ears. Same when I play the next video, the former adjusted volume level doesn't stick. This could be a bug in FB, so I even suggested a feature improvement.  As a solution, I found this chrome plugin. Sound and video fixes for Facebook Don't know who developed it, but the dude has fixed one of Facebook's problems, and many thanks to the developer. I might as well help him out as it is an open-source project. No more screaming videos!