Hey everyone!
I just encountered this after finally upgrading to MacOS Catalina and thought I would share the solution.
Symptoms
When you open Local and try to start a site, you’ll likely see a banner across the top indicating that Local's router is having trouble starting.
If you examine the local (which you can find by following the steps in this forum post:
How do I retrieve Local's log file? - FAQ - Local Community ) – You’ll see errors that look something like this:
2020/03/19 09:26:58 [emerg] 22206#0: open() \"/Users/benjamin/Library/Application Support/Local/run/router/nginx/logs/error.log\" failed (13: Permission denied)
Fix (MacOS)
If you navigate to where the error points you, you’ll likely notice that the permissions have somehow changed so that root
owns the error.log
file. The fix is to change the ownership of that file and then click the “Retry” button within Local.
I did this using a terminal and this command:
cd ~/Library/Application\ Support/Local/run/router/nginx/logs
sudo chown <your-computer-username> error.log
Once that ownership has changed, click the “Retry” button within Local to start the router.
Fix (Windows)
I haven’t reproduced this in Windows, but I imagine the steps would be similar. To summarize:
- Navigate to where Local stores the
router
configuration. - Update the ownership or permissions of the
error.log
file so that they are more permissive