Erro to deploy a code using AWS codedeploy Too few healthy instances / Signature not yet current:



AWS codedeploy

The overall deployment failed because too many individual instances failed deployment, too few healthy instances are available for deployment, or some instances in your deployment group are experiencing problems.




The solution:
1) check the service log
sudo tail -f /var/log/aws/codedeploy-agent/codedeploy-agent.log

I found this in my log Signature not yet current:


2) Check the machine services
 sudo service codedeploy-agent status
3) check the machine time
sudo service ntp status

4) Update the codedeploy
sudo /opt/codedeploy-agent/bin/install auto


5)sudo apt install chrony
6) add in /etc/chrony/chrony.conf the 
server 169.254.169.123 prefer iburst
7)
sudo /etc/init.d/chrony restart

8)
sudo chronyc -a makestep
9)check the service
chronyc sources -v
and
chronyc tracking


Make a deploy and check the log.





Popular posts from this blog

Remote Server returned '550 5.2.3 RESOLVER.RST.RecipSizeLimit; message too large for this recipient'

Haproxy error inconsistencies between private key and certificate loaded from PEM file

Porque a centralização de arquivos?