I need help on this bro,, I ssh--connect the terminal from power shell as it was blank and accessed the web01 through PS. the when i install flask,, the path is not the default i think. i get this warning after installation. ARNING: The script flask is installed in '/home/ubuntu/.local/bin' which is not on PATH.%0D%0A Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location. please what to do? Thank you in advance while waiting
HI, I was deferred now I'm doing this task again. I asked for new sever okay, so will I have to do all the work of ssh from 0x0B-ssh to now scratch for this app -sever to work?
run this command `lsof -i -P -n`, It will show all the active ports, Look for the one with port 5000 check the pid section, there will be a number copy it and run, `kill {Number}` where {Number} is the number you copied. ie kill 928
I had the same problem. One of the projects required us to run a datadog-agent on our server, which listens on port 5000. If killing the process does not work, try running the command: sudo systemctl stop datadog-agent When you want to run the agent again: sudo systemctl start datadog-agent
i hv figure out some error i requested for new server but my code configuration have direct ip address so i will correct that now but please reply do i nee to create a branch for flask file from airbnb_clone_v2 and call it app-server before running the script or not
@@opeoluwaadeyeri I finally was able to get the IP, but now it's giving me permission denied (publickey). I generated my bublic key on puttygen and I did save it on my profile
Some of the tasks require that we reconfigure some existing files to match certain requirements, I did not want to mess up code on the main branch, so i created a new branch and updated all files that are needed. so that branch is tailored to the specifications of this particular project. You can simply leave the script as is and Use my code in your server to complete the task, If you update the script and change my username to yours, You would have to create a new branch on your repo also and update required files.
Okay I used the same branch on my end and the first tag weren’t checking Just to understand does the script make those required changes on the files ? I’m not quite sure that it does So we’re supposed to manually make the file changes yes ?
Yea we are supposed to manually update the files, So in order to make it automated, I already made those changes in my repository on a different branch, so as soon as i change branch to that app-server branch, it automatically fetches the updated files from my repo.
Hi so i dd exactly what you did my i didn't get the last message switched to the new branch although i have added new branch will that affect the output
@@FunmilayoFayemi It's usually due to a conflict with installation, Get a new server complete the ssh task and do the application server again. Should work
Serving Flask app '0-hello_route' * Debug mode: off Address already in use Port 5000 is in use by another program. Either identify and stop that program, or start the server with a different port. after running this command `lsof -i -P -n` i get this COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME gunicorn 2823229 ubuntu 5u IPv4 1668899 0t0 TCP *:5002 (LISTEN) gunicorn 2823243 ubuntu 5u IPv4 1668899 0t0 TCP *:5002 (LISTEN) i cant see the program ruuing on port 500
Man Excellent work on the 'magic script' hahaha🤣... That is a world class build in automation!!!
😅😎
Thank you. this was very helpful
i think u don't get much credit as u deserve and honestly I appreciate you brother...
ofcourse he don't get credit. how can i achieve this kind of knowledge
I need help on this bro,, I ssh--connect the terminal from power shell as it was blank and accessed the web01 through PS. the when i install flask,, the path is not the default i think. i get this warning after installation.
ARNING: The script flask is installed in '/home/ubuntu/.local/bin' which is not on PATH.%0D%0A Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
please what to do? Thank you in advance while waiting
@@CappyAlemayehu I don't fully understand the error. If you could send a screenshot via email to this email opeoluwa@adeyeri.tech
@@opeoluwaadeyeri sure
what about advanced task did you did it sir
HI, I was deferred now I'm doing this task again. I asked for new sever okay, so will I have to do all the work of ssh from 0x0B-ssh to now scratch for this app -sever to work?
Just the ssh and you can continue this
@opeoluwaadeyeri hi my task 0 doesn't run as the example. Error says port 5000 is used by another program, couldn't resolve this. Help!
run this command `lsof -i -P -n`, It will show all the active ports, Look for the one with port 5000 check the pid section, there will be a number copy it and run, `kill {Number}` where {Number} is the number you copied. ie kill 928
After That run the script again
I had the same problem. One of the projects required us to run a datadog-agent on our server, which listens on port 5000. If killing the process does not work, try running the command: sudo systemctl stop datadog-agent
When you want to run the agent again:
sudo systemctl start datadog-agent
i can log in my webserver Permission denied (publickey)
thank for this tutorial but the place of git checkout server i have error "error: pathspec 'app-server' did not match any file(s) known to git"
What did you change in the script
i change only the github path my name
how do i create the branch and what will be inside of the branch
i hv figure out some error i requested for new server but my code configuration have direct ip address so i will correct that now but please reply do i nee to create a branch for flask file from airbnb_clone_v2 and call it app-server before running the script or not
i figure out some error do i need to create a new branch name app-server in airbnb clonev2 please reply
Hi my task 5 is not checking completely.. I followed the script and task 0 to 4 they check but task 5 two check are red
This issue is associated with conflicting configurations on nginx, Easiest fix is to get a new server.
oga the branch stuff will be name app-server
Mines, I don't have the IP Adress. It's like i have to generate it but I don't know how to
You would have to get a new server
@@opeoluwaadeyeri I finally was able to get the IP, but now it's giving me permission denied (publickey). I generated my bublic key on puttygen and I did save it on my profile
do i need to also change my branch? it's not in the requirements
I didn't checkout to a new branch because I didn't understand why, now nothing checks, please assist
Some of the tasks require that we reconfigure some existing files to match certain requirements, I did not want to mess up code on the main branch, so i created a new branch and updated all files that are needed. so that branch is tailored to the specifications of this particular project. You can simply leave the script as is and Use my code in your server to complete the task, If you update the script and change my username to yours, You would have to create a new branch on your repo also and update required files.
Okay I used the same branch on my end and the first tag weren’t checking
Just to understand does the script make those required changes on the files ?
I’m not quite sure that it does
So we’re supposed to manually make the file changes yes ?
Also, thanks for even responding
Yea we are supposed to manually update the files, So in order to make it automated, I already made those changes in my repository on a different branch, so as soon as i change branch to that app-server branch, it automatically fetches the updated files from my repo.
Hello, is there a way i can privately communicate with you. I have a serious problem that I can think you can help me with
Yea, Send an email here. adeyeriopeoluwa05@gmail.com
@@opeoluwaadeyeri hi my checker for task 2 and zero are red what could be the issue
Make sure you have the required files and README in your repo
Hi so on the script u created, wer there's your repos i put my repos, right?
Hi so i dd exactly what you did my i didn't get the last message switched to the new branch although i have added new branch will that affect the output
uffffff Thankkkkk youuu brooo!!!
I want 0x14mysql réplication task that you say in the last video
Still waiting you boss
This is now available, you can check it out!
@@felicitya.9077 Thanks but before video i did it alone
Mine doesnt work even though i did everything
@@FunmilayoFayemi It's usually due to a conflict with installation, Get a new server complete the ssh task and do the application server again. Should work
@@opeoluwaadeyeri I got a new server but I have done the ssh task before, do I need to redo all over again
Serving Flask app '0-hello_route'
* Debug mode: off
Address already in use
Port 5000 is in use by another program. Either identify and stop that program, or start the server with a different port.
after running this command `lsof -i -P -n` i get this
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
gunicorn 2823229 ubuntu 5u IPv4 1668899 0t0 TCP *:5002 (LISTEN)
gunicorn 2823243 ubuntu 5u IPv4 1668899 0t0 TCP *:5002 (LISTEN)
i cant see the program ruuing on port 500
try using netstat command as well to identify the process associated with port 5000 in your infrastructure
specifically: sudo netstat -tulnp | grep 5000
@@Low-key657 tcp 0 0 localhost:5000 0.0.0.0:* LISTEN 446/agent
I killed the process and it worked. thank you big time