Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make start not working due to "Ports are not available: listen tcp 0.0.0.0:5000: bind: address already in use" #12

Open
MayureshGharat opened this issue May 1, 2022 · 1 comment

Comments

@MayureshGharat
Copy link

I see an error:

=> CACHED [plaidinc/pattern-ngrok:1.0.7 4/6] RUN ngrok --version                                                                              0.0s
 => CACHED [plaidinc/pattern-ngrok:1.0.7 5/6] COPY --chown=ngrok ngrok.yml /home/ngrok/.ngrok2/                                                0.0s
 => CACHED [plaidinc/pattern-ngrok:1.0.7 6/6] COPY entrypoint.sh /                                                                             0.0s

Use 'docker scan' to run Snyk tests against images to find vulnerabilities and learn how to fix them
[+] Running 1/2
 ⠿ Container pattern-af-tutorial-db-1      Running                                                                                             0.0s
 ⠋ Container pattern-af-tutorial-server-1  Starting                                                                                            0.0s
Error response from daemon: Ports are not available: listen tcp 0.0.0.0:5000: bind: address already in use
make: *** [start] Error 1

When I checked which process is using this port:

☁  pattern-af-tutorial [main] ⚡  sudo lsof -i -P -n | grep 5000
ControlCe 34884 mayuresh   21u  IPv4 0x9cd1...      0t0    TCP *:5000 (LISTEN)
ControlCe 34884 mayuresh   22u  IPv6 0x9c...      0t0    TCP *:5000 (LISTEN)
☁  pattern-af-tutorial [main] ⚡  ps aux | grep ControlCe
mayuresh   34918   0.0  0.0 408645776   1776 s001  S+    1:59PM   0:00.00 grep --color=auto --exclude-dir=.bzr --exclude-dir=CVS --exclude-dir=.git --exclude-dir=.hg --exclude-dir=.svn --exclude-dir=.idea --exclude-dir=.tox ControlCe
mayuresh   34884   0.0  0.3 409957152  52384   ??  S     1:58PM   0:00.47 /System/Library/CoreServices/ControlCenter.app/Contents/MacOS/ControlCenter
@brenjt
Copy link

brenjt commented May 2, 2022

Just change the port to something like 5001 in the docker-compose files and in the client/package.json file "proxy": "http://server:5001"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants