# Error: 61: Connection refused

**URL:** <https://community.localwp.com/t/error-61-connection-refused/40221>\
**Category:** Support\
**Tags:** mac\
**Created:** [November 29, 2023, 6:28pm UTC](https://community.localwp.com/t/error-61-connection-refused/40221 "2023-11-29T18:28:51Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mar2](https://avatars.discourse-cdn.com/v4/letter/m/f9ae1b/32.png) [@Mar2](https://community.localwp.com/u/Mar2)\
**Post date:** [November 29, 2023, 6:28pm UTC](https://community.localwp.com/t/error-61-connection-refused/40221/1 "2023-11-29T18:28:51Z")

</div>

### What issue or error are you experiencing?

I can no longer access my site, both the WP admin and the front end links aren’t working. I opened the error logs and I continuously get this error:

2023/11/23 15:01:59 [error] 88070#0: \*27 kevent() reported that connect() failed (61: Connection refused) while connecting to upstream, client: ::1, server: triumfhouse2.local, request: “GET /wp-content/uploads/2023/05/FOOTER\_NEW\_COLORSBOTT0.75-2048x687.png HTTP/1.1”, upstream: “[http://127.0.0.1:10014/wp-content/uploads/2023/05/FOOTER\_NEW\_COLORSBOTT0.75-2048x687.png](http://127.0.0.1:10014/wp-content/uploads/2023/05/FOOTER_NEW_COLORSBOTT0.75-2048x687.png)”, host: “triumfhouse2.local”

I also get a notification from local that “this site’s Wordpress URL does not match the host set in Local” and when I click the fix button this pop up appears:

2023/11/23 15:01:59 [error] 88070#0: \*27 kevent() reported that connect() failed (61: Connection refused) while connecting to upstream, client: ::1, server: triumfhouse2.local, request: “GET /wp-content/uploads/2023/05/FOOTER\_NEW\_COLORSBOTT0.75-2048x687.png HTTP/1.1”, upstream: “[http://127.0.0.1:10014/wp-content/uploads/2023/05/FOOTER\_NEW\_COLORSBOTT0.75-2048x687.png](http://127.0.0.1:10014/wp-content/uploads/2023/05/FOOTER_NEW_COLORSBOTT0.75-2048x687.png)”, host: “triumfhouse2.local”

but no solution is given and I can’t edit any of the other database details in local.

Thanks,

* * *

### What steps can be taken to replicate the issue? Feel free to include screenshots, videos, etc

## I created a new blank site that works fine so it doesn’t seem to be a Wordpress issue.

### System Details

- **Local Version:** Version 8.1.0+6514

- **Operating System (OS) and OS version:**  
MacOS  
13.0.1 (22A400)  
Apple M1 Pro

* * *

### Local Logs

Attach your Local Logs here ([Help Doc - Retrieving Local’s Log](https://localwp.com/help-docs/troubleshooting/retrieving-locals-log-file/))

 ![Screenshot 2023-11-29 at 10.28.36 AM](https://us1.discourse-cdn.com/flex019/uploads/lwpforums/original/3X/0/5/052fd264dd35bfa3af6f4d8ff58a75d91207d94b.png)

* * *

_ **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.

---

<div class="post-metadata">

**Author:** ![Nick-B](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/nick-b/32/16140_2.png) [@Nick-B](https://community.localwp.com/u/Nick-B)\
**Post date:** [November 29, 2023, 6:46pm UTC](https://community.localwp.com/t/error-61-connection-refused/40221/2 "2023-11-29T18:46:35Z")

</div>

If you create a new, blank site in Local can you access that okay? If you can, then you may want to try reimporting the site getting the errors. The steps would look like this:

- Locate the site files on your machine, and save a copy of them to your desktop. If you click `Go to Site Folder` under your site name it should take you right to where they are located.
- Once you have those copied, completely delete the site from Local
- Restart Local/your machine
- Reimport the site back into Local. You can refer here on how to [Restore from only Local site files](https://localwp.com/help-docs/getting-started/how-to-import-a-wordpress-site-into-local/#restore-local-site-from-site-files)

---

<div class="post-metadata">

**Author:** ![Mar2](https://avatars.discourse-cdn.com/v4/letter/m/f9ae1b/32.png) [@Mar2](https://community.localwp.com/u/Mar2)\
**Post date:** [November 30, 2023, 5:30pm UTC](https://community.localwp.com/t/error-61-connection-refused/40221/3 "2023-11-30T17:30:04Z")

</div>

Thanks Nick, yes when I create a blank site I can access it okay.

I followed the steps to reimport the site, but I still get an error. I have 403 error when I click the site link, and this error in the logs: Xdebug: [Step Debug] Could not connect to debugging client. Tried: localhost:9003 (fallback through xdebug.client\_host/xdebug.client\_port) ☹

---

<div class="post-metadata">

**Author:** ![Nick-B](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/nick-b/32/16140_2.png) [@Nick-B](https://community.localwp.com/u/Nick-B)\
**Post date:** [November 30, 2023, 6:30pm UTC](https://community.localwp.com/t/error-61-connection-refused/40221/4 "2023-11-30T18:30:26Z")

</div>

Can you share your full local logs here for us? There are some different ways to access and share Local Logs. For us to be able to troubleshoot thoroughly, please click the `Download Local Logs` button from the `Support` tab in Local. This will generate a zip archive that contains the Local log along with some other diagnostic information to help quickly zero in on any issues that Local is encountering.

---

<div class="post-metadata">

**Author:** ![Mar2](https://avatars.discourse-cdn.com/v4/letter/m/f9ae1b/32.png) [@Mar2](https://community.localwp.com/u/Mar2)\
**Post date:** [November 30, 2023, 6:51pm UTC](https://community.localwp.com/t/error-61-connection-refused/40221/5 "2023-11-30T18:51:09Z")

</div>

Here are the logs:  
[local-logs.zip](https://community.localwp.com/uploads/short-url/2cNlr16HrBua5MYouevbuPCX9oK.zip) (46.7 KB)

---

<div class="post-metadata">

**Author:** ![Nick-B](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/nick-b/32/16140_2.png) [@Nick-B](https://community.localwp.com/u/Nick-B)\
**Post date:** [November 30, 2023, 7:11pm UTC](https://community.localwp.com/t/error-61-connection-refused/40221/6 "2023-11-30T19:11:08Z")

</div>

Based on the logs it looks like there might be a port conflict occurring. Here are some steps to help us identify and address this:

- Stop all sites that are running in Local

- Force quit Local

- (If using Mac) Run the command `lsof -nP -iTCP -sTCP:LISTEN`

- (If using Windows) Run the command `netstat -ano`

What you’ll be looking for here is to see when sites are stopped and Local is properly shut down if there are still programs running on ports 80 and 443. These may be conflicting with Local or the system may be reporting Local is still running.

Once you run that command you should see a list of listening ports. If you see a particular program making use of those ports, you can then kill that process by running `sudo kill -9 XXX` where XXX is the PID number of that process. (On Windows you will use `taskkill /F /pid XXX` where XXX is the PID number of that process)

There are also some more details around this and other troubleshooting steps at this link if needed: [Stopping Whatever Is Listening On Port 80](https://localwp.com/help-docs/advanced/router-mode/#stopping-whatever-is-listening-on-port-80).

Keep us posted!

---

<div class="post-metadata">

**Author:** ![Mar2](https://avatars.discourse-cdn.com/v4/letter/m/f9ae1b/32.png) [@Mar2](https://community.localwp.com/u/Mar2)\
**Post date:** [December 4, 2023, 9:09pm UTC](https://community.localwp.com/t/error-61-connection-refused/40221/7 "2023-12-04T21:09:05Z")

</div>

I don’t see any programs using the ports in the list. When I opened local again I got this error at the top about the database location:

 ![Screenshot 2023-12-04 at 1.06.37 PM](https://us1.discourse-cdn.com/flex019/uploads/lwpforums/original/3X/0/2/0200e5ab1a973f43b58a83d3294e5415c9ad8872.png)

---

<div class="post-metadata">

**Author:** ![Nick-B](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/nick-b/32/16140_2.png) [@Nick-B](https://community.localwp.com/u/Nick-B)\
**Post date:** [December 5, 2023, 2:17pm UTC](https://community.localwp.com/t/error-61-connection-refused/40221/8 "2023-12-05T14:17:24Z")

</div>

In order to refresh here and start with a clean slate could you give the below troubleshooting steps a try?

- Export any sites that you have on Local and save them to a folder somewhere on your computer. [Backup a Local Site - Local](https://localwp.com/help-docs/getting-started/how-to-backup-a-local-site/)

- [Fully uninstall Local from your computer.](https://localwp.com/help-docs/troubleshooting/uninstalling-local/)

- Install the latest version of Local on this [link.](https://localwp.com/releases/)

- Once installed, please restart the computer.

- When the computer is restarted and turned on, close any applications that automatically run in the background (AntiVirus, Firewall, and other Developer applications included).

- Reimport any backed up site that was previously having issues [Import/Export a WordPress Site - Local](https://localwp.com/help-docs/getting-started/how-to-import-a-wordpress-site-into-local/#restore-local-site-from-site-files)

- Check and see if the issue still persists. If so, please provide us with an updated log. [Retrieving Local’s Log File](https://localwp.com/help-docs/troubleshooting/retrieving-locals-log-file/)

Keep us posted and we’d be happy to help further!

---

<div class="post-metadata">

**Author:** ![Mar2](https://avatars.discourse-cdn.com/v4/letter/m/f9ae1b/32.png) [@Mar2](https://community.localwp.com/u/Mar2)\
**Post date:** [January 2, 2024, 10:26pm UTC](https://community.localwp.com/t/error-61-connection-refused/40221/9 "2024-01-02T22:26:59Z")

</div>

Hello, I tried this solution twice and still am unable to open the site. Here are the logs:  
[local-lightning-verbose0.log](https://community.localwp.com/uploads/short-url/taeqGyxQDMtX5s0HSjFPAqgURuM.log) (424.2 KB)  
[local-details.json](https://community.localwp.com/uploads/short-url/vABJnPPjxzqqXQWhtJ2HXvJdPMl.json) (721 Bytes)  
[error.log](https://community.localwp.com/uploads/short-url/xzfUkKTDYJvdkLC8isqODjUS5My.log) (187.6 KB)

---

<div class="post-metadata">

**Author:** ![Nick-B](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/nick-b/32/16140_2.png) [@Nick-B](https://community.localwp.com/u/Nick-B)\
**Post date:** [January 3, 2024, 2:15pm UTC](https://community.localwp.com/t/error-61-connection-refused/40221/10 "2024-01-03T14:15:35Z")

</div>

Can you detail some more what errors or issues you’re still seeing?

If you create a new, blank site in Local what error do you get?

If you try to reimport a former site what happens?

If you change your Router Mode to Localhost are you able to proceed? Preferences\>Advanced\>Router Mode\>Localhost

Please share screenshots or a short video if that helps!

---

<div class="post-metadata">

**Author:** ![Mar2](https://avatars.discourse-cdn.com/v4/letter/m/f9ae1b/32.png) [@Mar2](https://community.localwp.com/u/Mar2)\
**Post date:** [January 3, 2024, 6:20pm UTC](https://community.localwp.com/t/error-61-connection-refused/40221/11 "2024-01-03T18:20:08Z")

</div>

> [@Nick-B](#):
>
> Can you detail some more what errors or issues you’re still seeing?

This is what it says in the local panel:

 ![image](https://us1.discourse-cdn.com/flex019/uploads/lwpforums/original/3X/5/e/5e269b3fd08d756230bed53802482caa087a8381.png)

I get a 404 error whenever I try to open the WP admin and a 403 error when I try to open the site.

If I create a new site with the same default settings I have when I import my current site everything works as expected.

After I created the new site, the old site wasn’t able to complete stopping and I had to force quit local and when I reopened it and tried to start the site I got this error:

 ![image](https://us1.discourse-cdn.com/flex019/uploads/lwpforums/original/3X/a/1/a1928d9452c0fd22820aea962537b9ba22705caf.jpeg)

---

<div class="post-metadata">

**Author:** ![Nick-B](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/nick-b/32/16140_2.png) [@Nick-B](https://community.localwp.com/u/Nick-B)\
**Post date:** [January 3, 2024, 6:36pm UTC](https://community.localwp.com/t/error-61-connection-refused/40221/12 "2024-01-03T18:36:59Z")

</div>

I’m glad you were able to create a new site and that works as expected. That’s a good sign! Can you try reimporting the site that isn’t working now and see if the errors persist? Or did you try that already and got the error?

---

<div class="post-metadata">

**Author:** ![Mar2](https://avatars.discourse-cdn.com/v4/letter/m/f9ae1b/32.png) [@Mar2](https://community.localwp.com/u/Mar2)\
**Post date:** [January 3, 2024, 7:46pm UTC](https://community.localwp.com/t/error-61-connection-refused/40221/13 "2024-01-03T19:46:13Z")

</div>

I still get the same things as before when I import the zip file. This is the error it gives me right away:

 ![image](https://us1.discourse-cdn.com/flex019/uploads/lwpforums/original/3X/a/5/a526ff058e41f36310eebcb11bd9d021c34359fd.png)

---

<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:** [April 2, 2024, 7:46pm UTC](https://community.localwp.com/t/error-61-connection-refused/40221/14 "2024-04-02T19:46:58Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
