# Error Router

**URL:** <https://community.localwp.com/t/error-router/15759>\
**Category:** Support\
**Created:** [December 2, 2019, 12:34am UTC](https://community.localwp.com/t/error-router/15759 "2019-12-02T00:34:20Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bjoboy69](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/bjoboy69/32/9013_2.png) [@Bjoboy69](https://community.localwp.com/u/Bjoboy69)\
**Post date:** [December 2, 2019, 12:34am UTC](https://community.localwp.com/t/error-router/15759/1 "2019-12-02T00:34:20Z")

</div>

Hello,

i’m a new user of Local by flywheel.  
If i want to start this program i get error: ‘Heads up locals router is having trouble starting, View the router file for more details’.

Is there anything i can do to fix these error?

Greetings Bjorn

---

<div class="post-metadata">

**Author:** ![Maggie](https://avatars.discourse-cdn.com/v4/letter/m/9d8465/32.png) [@Maggie](https://community.localwp.com/u/Maggie)\
**Post date:** [December 2, 2019, 11:31am UTC](https://community.localwp.com/t/error-router/15759/2 "2019-12-02T11:31:26Z")

</div>

Hi Bjorn,  
I am having the same issue after I updated Mac OS. Did you ever figure this out?  
Thanks!  
Maggie

---

<div class="post-metadata">

**Author:** ![Bjoboy69](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/bjoboy69/32/9013_2.png) [@Bjoboy69](https://community.localwp.com/u/Bjoboy69)\
**Post date:** [December 2, 2019, 3:21pm UTC](https://community.localwp.com/t/error-router/15759/3 "2019-12-02T15:21:14Z")

</div>

Hi Maggie,

No, i dont figure this out yet.

Greetings

---

<div class="post-metadata">

**Author:** ![nejatpolat](https://avatars.discourse-cdn.com/v4/letter/n/c89c15/32.png) [@nejatpolat](https://community.localwp.com/u/nejatpolat)\
**Post date:** [December 3, 2019, 10:38am UTC](https://community.localwp.com/t/error-router/15759/4 "2019-12-03T10:38:36Z")

</div>

Hello.  
I have the same problem. Heads-up! message. I tried so many things and disabled all the security settings. Mine is an iMac OS Majove V.10.14.6.  
I attached the log file. I would really appreciate if anybody could help me.

Best wishes

[local-lightning.log](https://community.localwp.com/uploads/short-url/5LZFHCKcuhGDMjmG8bRdUjV1VZ2.log) (43.6 KB)

---

<div class="post-metadata">

**Author:** ![nejatpolat](https://avatars.discourse-cdn.com/v4/letter/n/c89c15/32.png) [@nejatpolat](https://community.localwp.com/u/nejatpolat)\
**Post date:** [December 3, 2019, 10:52am UTC](https://community.localwp.com/t/error-router/15759/5 "2019-12-03T10:52:40Z")

</div>

Hello again,

I have just solved the problem. This may help others too. In the log file which I attached above, there was a line:  
Library/Application Support/Local/run/router/nginx/logs/error.log" failed (13: Permission denied)  
I located that error.log file. Right click the file, Get info, when the file info box opens, go down to Sharing & Permissions, change the Privilege from Read Only to Read & Write.  
That’s it.

---

<div class="post-metadata">

**Author:** ![Bjoboy69](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/bjoboy69/32/9013_2.png) [@Bjoboy69](https://community.localwp.com/u/Bjoboy69)\
**Post date:** [December 4, 2019, 11:51pm UTC](https://community.localwp.com/t/error-router/15759/6 "2019-12-04T23:51:06Z")

</div>

Is this only for mac or is it for windows too?  
Cause i can’t find the error log file.

---

<div class="post-metadata">

**Author:** ![nejatpolat](https://avatars.discourse-cdn.com/v4/letter/n/c89c15/32.png) [@nejatpolat](https://community.localwp.com/u/nejatpolat)\
**Post date:** [December 5, 2019, 9:48am UTC](https://community.localwp.com/t/error-router/15759/7 "2019-12-05T09:48:53Z")

</div>

This is for mac. Open Finder. Click “Go” tab. When you press ‘option’ key on the keyboard, you’ll see ‘Library’ appears. Choose Library and follow the path on the previous post.

---

<div class="post-metadata">

**Author:** ![Bjoboy69](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/bjoboy69/32/9013_2.png) [@Bjoboy69](https://community.localwp.com/u/Bjoboy69)\
**Post date:** [December 5, 2019, 12:39pm UTC](https://community.localwp.com/t/error-router/15759/8 "2019-12-05T12:39:35Z")

</div>

I don’t have mac.

But thanks for helping

---

<div class="post-metadata">

**Author:** ![ben.turner](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/ben.turner/32/5366_2.png) [@ben.turner](https://community.localwp.com/u/ben.turner)\
**Post date:** [March 19, 2020, 4:56pm UTC](https://community.localwp.com/t/error-router/15759/9 "2020-03-19T16:56:10Z")

</div>

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.`

 ![image](https://us1.discourse-cdn.com/flex019/uploads/lwpforums/original/2X/d/dd0c4e5b935c37e0f1f3dc959c0798549c0ab3c6.jpeg)

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](https://localwp.com/community/t/how-do-i-retrieve-locals-log-file/3720?u=ben.turner) ) – You’ll see errors that look something like this:

```auto
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:

```auto
cd ~/Library/Application\ Support/Local/run/router/nginx/logs
sudo chown <your-computer-username> error.log

```

 ![image](https://us1.discourse-cdn.com/flex019/uploads/lwpforums/original/2X/5/5d5c2c96bb921ceb7bd08b876048da8659fdbfb2.jpeg)

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

---

<div class="post-metadata">

**Author:** ![system](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/system/32/1_2.png) [@system](https://community.localwp.com/u/system)\
**Post date:** [August 25, 2020, 6:37pm UTC](https://community.localwp.com/t/error-router/15759/10 "2020-08-25T18:37:56Z")

</div>

Closed on August 25, 2020, 6:37pm UTC


