I have issue while codedeploy stage it is telling that 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. What I should to resolve this
Hello Sir, I have deployed my code in the same way , deployement is successfull however while trying to access the site, error is thrown as "502 Bad Gateway" Please can you suggest me what should I check?
Great video! Green pipeline. However my app isn’t up and running because the codedeployagent logs tell me that all the files in the scripts folder were not executable. I’ve already added permissions in the appspec file and also when I check in the ec2 instance scripts directory myself I can see the files are executable. Do you have any suggestions what could be causing the issue here?
@@CodeWithMuh From the codedeploy agent logs I can see that I'm getting this error for all scripts: InstanceAgent::Plugins::CodeDeployPlugin::HookExecutor: Script at specified location: scripts/clean_instance is not executable. Trying to make it executable. I used AWS linux 2023 instead of ubuntu and adjusted all commands accordingly to AWS linux. Apparently I can't share links in comments so can't show my repo unfortunately. Please let me know if you know what could cause this issue? I've set permissions in the appspec file to 777 and can see manually in the ec2 instance that the files are executable which is strange.
The adopted teaching method is this video is quite impressive and helpful but the method when reproduced does not lead to success. A 502 Bad Request (nginx error) was returned. This shows the described nginx and gunicorn configurations seem specific to the hosted app by the author and does not work for other Django apps deployed on an AWS EC2 instance. The author can make a complimentary (Part 2) video to this that explains each lines of the nginx and gunicorn configuration files so that they can be easily adapted to any Django app Having said that, I wish to thank you for the good work. It is very helpful.
About Nginx and Gunicorn, You have to make sure paths are correct, like your project name, you have to replace it with your project name, as well as the folder name where your setting.py file is. When you do not replace/update these things, then you get into trouble. Still, if someone needs help they can reach me on LinkedIn.
Can you please make a video on django,postgres, docker, nginx,gunicorn deployment with any ci cd pipeline like Jenkins and terraform. Thanks in advance
@@CodeWithMuh when i check gunicorn's status, it gives the error that "Failed at step EXEC spawning /home/ubuntu/env/bin/gunicorn: No such file or directory"
You have to check all files. Also security groups. You are making mistake somewhere. That's why issue is coming. Post your question on Facebook group: i will sechdule a call to help group link is given in video description
1. ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-1D4mn_rO2cM.html , you can do ssh to your instance as well, just follow this Video, 2. OR ssh to your instance az explained in video. 3. You can also add migrations commands in start_app.sh file as well.
Hellow sir i can following in your videos pipeline three stages competed successfully but i got 502 bad gateway error and iam configure nginx config properly and add security groups http, https, ssh but not working
hey guy!! first of all, thanks for your video. Next i have a problem when i follow your step in video. My build stage have an error, that is "Error while executing command: pip3 install -r requirements.txt. Reason: exit status 1". Help me pls.
@@CodeWithMuh when build failed, i check the phase details. the phase error name PRE_BUILD and the full context is "COMMAND_EXECUTION_ERROR: Error while executing command: pip3 install -r requirements.txt. Reason: exit status 1"
hello sir I got this error please tell me how to solve the error [Container] 2023/06/11 08:15:56 Waiting for agent ping [Container] 2023/06/11 08:15:58 Waiting for DOWNLOAD_SOURCE [Container] 2023/06/11 08:15:59 Phase is DOWNLOAD_SOURCE [Container] 2023/06/11 08:15:59 CODEBUILD_SRC_DIR=/codebuild/output/src332977926/src [Container] 2023/06/11 08:15:59 Phase complete: DOWNLOAD_SOURCE State: FAILED [Container] 2023/06/11 08:15:59 Phase context status code: YAML_FILE_ERROR Message: YAML file does not exist