Issue Summary
Starting any site shows the Port Conflict error
Troubleshooting Questions
-
Does this happen for all sites in Local, or just one in particular?
All -
Are you able to create a new, plain WordPress site in Local and access it in a Browser?
Not relevant
Replication
Run local 5.1.0. Start any existing site.
After a few seconds, Local will assert that the site has a port conflict error
System Details
-
Which version of Local is being used?
5.1.0 -
What Operating System (OS) and OS version is being used?
macOS 11.2.1
More info:
Looking at what else is on the ports, get this:
rick@ricks-MBP ~ % sudo lsof -i:80; sudo lsof -tnP -i:80 | xargs -n 1 ps -p
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
nginx 93326 rick 11u IPv4 0x1260b17e07d7d497 0t0 TCP *:http (LISTEN)
nginx 93326 rick 12u IPv6 0x1260b17df90271ff 0t0 TCP *:http (LISTEN)
nginx 93327 rick 11u IPv4 0x1260b17e07d7d497 0t0 TCP *:http (LISTEN)
nginx 93327 rick 12u IPv6 0x1260b17df90271ff 0t0 TCP *:http (LISTEN)
PID TTY TIME CMD
93326 ?? 0:00.02 nginx: master process /Applications/Local.app/Contents/Resources/extraResources/lightning-services/nginx-1.16.0+5/bin/darwin/sbin/nginx -c /Users/rick/Library/Application
PID TTY TIME CMD
93327 ?? 0:00.07 nginx: worker process
NOTE: I get this even after quitting Local. If I manually kill those 2 processes the site will launch fine. It seems Local is not releasing ports when quit.
- Attach the Local Log. See this Community Forum post for instructions on how to do so:
- How do I retrieve Local’s Log?
error.log.zip (168.1 KB)
- How do I retrieve Local’s Log?