When trying to Router mode to Site Domains I get the message “Heads up! Local’s router is having trouble starting” Looking at the logs I’m getting bind() to 0.0.0.0:80 failed (13: Permission denied)
I’ve tried to correct nginx capabilities manually using setcap but no change. Localhost works find but I’d prefer to use Site Domains if possible. This hasn’t been a problem in the past. Started happening a couple of versions ago.
What steps can be taken to replicate the issue? Feel free to include screenshots, videos, etc
Switching router mode to Site Domains and starting a site.
System Details
Local Version:
Version 8.0.0+6475
Operating System (OS) and OS version:
Ubuntu 23.04
Security Reminder
Local does a pretty good job of scrubbing private info from the logs and the errors it produces, however there’s always the possibility that something private can come through. Because these are public forums, always review the screenshots you are sharing to make sure there isn’t private info like passwords being displayed.
Usually this means there is a port conflict going on, or something is blocking Local. This could be antivirus, firewall or security related. It could also be competing developer applications if you’re also using something like XAMP or MAMP.
Hi @coded_chris - One of the devs reminded me we had a user come in with the same issues recently. There is some more insight and debug steps at the link below:
Hey @Nick-B cheers. I went through that one a while back but no luck. I did notice that on the 7.1.2 after switching router modes I would get the dialogue box asking for root permissions but on the new versions it didn’t seem to come up. I tried seeting them manually with setcap but no luck there either.
Sure thing @nickc
1.
-rwxr-xr-x 1 root root 14648 Jun 7 23:55 /usr/sbin/getcap
2.
total 36
drwxrwxr-x 9 chris chris 4096 Oct 14 12:28 .
drwx------ 19 chris chris 4096 Oct 31 16:45 …
drwxr-xr-x 4 chris chris 4096 Oct 11 20:05 mailhog-1.0.0+3
drwxr-xr-x 5 chris chris 4096 Oct 11 20:05 mariadb-10.4.10+4
drwxr-xr-x 6 chris chris 4096 Oct 11 20:06 mysql-8.0.16+6
drwxr-xr-x 6 chris chris 4096 Oct 11 20:06 nginx-1.16.0+7
drwxr-xr-x 7 chris chris 4096 Oct 14 12:28 php-8.1.22+1
drwxr-xr-x 7 chris chris 4096 Oct 11 20:06 php-8.1.23+0
drwxrwxr-x 7 chris chris 4096 Oct 11 20:23 php-8.2.10+1
No directory found for 3 + 4 but if I do 1.16.0+7 I get
/home/chris/.config/Local/lightning-services/nginx-1.16.0+7/bin/linux/sbin/nginx cap_net_bind_service=ep