1 00:00:00,330 --> 00:00:01,163 ‫So now let's talk 2 00:00:01,163 --> 00:00:03,330 ‫about troubleshooting on CodeDeploy. 3 00:00:03,330 --> 00:00:04,980 ‫In case you have a deployment, 4 00:00:04,980 --> 00:00:06,450 ‫and then you get a deployment error 5 00:00:06,450 --> 00:00:08,730 ‫of invalid signature exception, 6 00:00:08,730 --> 00:00:10,200 ‫because the signature has expired, 7 00:00:10,200 --> 00:00:12,570 ‫and there is a time reference in this, 8 00:00:12,570 --> 00:00:14,850 ‫well, it's because CodeDeploy is trying to deploy 9 00:00:14,850 --> 00:00:17,100 ‫and then we get a signature exception. 10 00:00:17,100 --> 00:00:19,920 ‫This is an issue, because we have a time issue, 11 00:00:19,920 --> 00:00:23,640 ‫and this comes from missing accurate time references. 12 00:00:23,640 --> 00:00:24,473 ‫So what does it mean? 13 00:00:24,473 --> 00:00:27,120 ‫Well, we need to make sure that the time on CodeDeploy, 14 00:00:27,120 --> 00:00:28,860 ‫which is a time of AWS, 15 00:00:28,860 --> 00:00:31,530 ‫and the time on your EC2 instances, 16 00:00:31,530 --> 00:00:33,840 ‫which is whatever time you set it to be, 17 00:00:33,840 --> 00:00:37,410 ‫and it can be matching an external server for example. 18 00:00:37,410 --> 00:00:38,640 ‫So if your EC2 instance 19 00:00:38,640 --> 00:00:41,070 ‫or your servers do not have the correct time, 20 00:00:41,070 --> 00:00:43,260 ‫then CodeDeploy is going to reject 21 00:00:43,260 --> 00:00:44,910 ‫the deployment altogether. 22 00:00:44,910 --> 00:00:46,710 ‫This is because time is very important. 23 00:00:46,710 --> 00:00:49,530 ‫So the simple answer to fixing this is to make sure 24 00:00:49,530 --> 00:00:51,750 ‫that your EC2 instance is connected 25 00:00:51,750 --> 00:00:55,860 ‫to correct time server that is in sync with AWS. 26 00:00:55,860 --> 00:00:58,740 ‫If you also have deployment issues on EC2 instances, 27 00:00:58,740 --> 00:01:00,330 ‫they failed for whatever reason, 28 00:01:00,330 --> 00:01:03,780 ‫you have log files available on your EC2 instance. 29 00:01:03,780 --> 00:01:07,860 ‫So under the slash O-P-T CodeDeploy agent folder, 30 00:01:07,860 --> 00:01:11,400 ‫you will find the logs of the agent. 31 00:01:11,400 --> 00:01:12,510 ‫Okay, that's it for this lecture. 32 00:01:12,510 --> 00:01:13,740 ‫I hope you liked it. 33 00:01:13,740 --> 00:01:15,723 ‫And I will see you in the next lecture.