I'm using cloud instance provided by the workshop for week 6. This time i'm able to run the week 6 exercise easily until i encountered an error. I have already executed this command also,
docker run -e USE_ASTRA='true' -p 5000:5000 astra-backend:my-image docker run -e USE_ASTRA='true' -e BASE_ADDRESS='http://localhost:5000/api' -p 3000:3000 astra-ui:my-image
Now when i execute this command i get an error,
kubectl -n my-app port-forward pods/astra-backend 5000:5000 & kubectl -n my-app port-forward pods/astra-ui 3000:3000 &
Error Displayed on my cloud terminal. I even tried to run the localhost on 5000 & 3000 but the site can't be reached.
Unable to listen on port 5000: Listeners failed to create with the following errors: [unable to create listener: Error listen tcp4 127.0.0.1:5000: bind: address already in use unable to create listener: Error listen tcp6 [::1]:5000: bind: address already in use] error: unable to listen on any of the requested ports: [{5000 5000}] Unable to listen on port 3000: Listeners failed to create with the following errors: [unable to create listener: Error listen tcp4 127.0.0.1:3000: bind: address already in use unable to create listener: Error listen tcp6 [::1]:3000: bind: address already in use] error: unable to listen on any of the requested ports: [{3000 3000}] // Even localhost:5000 and localhost:3000 sites are not able to be reached !
How could i solve the error. Do i have to start from the first? If so, can i do it once again with the same instance or do i have to get another one ? (considering the 24 hours time, clock is ticking...).
Kindly acknowledge ASAP.
Any help would be very much appreciable. :)