Code Deploy Stuck for 30 mins on afterInstall hook

0

So, I set up bitbucket pipelines this morning for a wordpress-php website. I have a afterInstall script which changes the permissions & user of wordpress directories etc.

The problem is when the deployment starts, it took only 9 seconds for install step. but on afterInstall step, the code deploy stuck for nearly 30 mins, and then it reached to last step.

and when the deployment ends, on bitbucket it says Failed, but my latest code is successfully deployed on servers. my zip folder is of 138MB

Why the code deploy process stucks at afterInstall. there is nothing showing up in code deploy logs of that specific ec2 instance on which deployment is running.

1 Answer
0

Hello there,

With AfterInstall – you can use this deployment lifecycle event for tasks such as configuring your application or changing file permissions.

You can check the script you might be executing in this deployment hook. Also please check the logs at below location for more details and to find out the reason behind the 30 minutes wait time or if script is getting executed successfully?

 /opt/codedeploy-agent/deployment-root/{deployment-group-id}/{deployment-id}/logs/scripts.log

If you still need further help, I would suggest you to please reach out to us with a premium support case. We’ll be more than happy to assist you with this case.

AWS
SUPPORT ENGINEER
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions