Cannot start Local wp site

What issue or error are you experiencing?

I’m unable to start a site. I get the error message as seen in the screenshot. It also says that mailpit is missing. I tried instructions to get it reinstalled, but starting up Local again doesn’t re-install mailpit. It says it will be reinstalled the next time I start a site, but I can’t restart a site.

Scherm­afbeelding 2025-08-27 om 10.04.16


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

Install site: ok, stop site: ok. Restart site: error.


System Details

  • Local Version: Version 9.2.7+6877

  • Operating System (OS) and OS version: Mac OS 13.7.6 (22H625) (Intel)


Local Logs

Attach your Local Logs here (Help Doc - Retrieving Local’s Log)

local-lightning-verbose.log (143.0 KB)

local-lightning.log (54.3 KB)


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.

Thanks for this report, @Joost. You can try:

  1. Removing Mailpit to force Local to copy a fresh version for you.
  1. Editing your sites.json to ensure your site is running the latest version of Mailpit (step 3 onwards):

Hi @nickc , thanks for the reply. I already tried the first solution. There isn’t a mailpit folder in the first place in the folder lighting-services. It also isn’t reproduced after restarting Local.

I also looked at the second solution. In the json file, the mailpit version already is 1.24.1. Which is the latest version I think.

Any other ideas?

Is it just one site you can’t restart, @Joost?

If so, you can try recreating it by zipping the site folder and importing it into Local with drag and drop, as described here:

https://localwp.com/help-docs/getting-started/how-to-import-a-wordpress-site-into-local/#restore-local-site-from-site-files

@nickc It’s both sites. I’m now trying to delete and re-install local itself.

@Joost Try reimporting both sites? It might be quicker than a reinstall.

@nickc I already did a full reinstall, with restarting my mac before starting the new install. I uninstalled the old installation following the instructions. After the new install (and before making a site) I checked if the Mailpit folder was present. It wasn’t. After making a site, the mailpit folder was not produced.

The first start of the website isn’t a problem. The problem only occurs after stopping the website and then restarting it. I get the same error message.

Thanks for trying that, @Joost. I haven’t been able to reproduce this so far.

I’ll DM you for a copy of your sites.json in case there’s anything there that’s unusual.

Fixed via DM by:

  1. Taking a backup of sites.json by duplicating it as sites-backup.json (on macOS this is at ~/Library/Application Support/Local/sites.json).

  2. Editing sites.json to change blocks like this in each site:

          "mailpit": {
            "name": "mailpit",
            "version": "1.24.1",
            "type": "lightning"
          },
    

    To look like this:

          "mailpit": {
            "name": "mailpit",
            "version": "1.24.1",
            "type": "lightning",
            "ports": { "WEB": [], "SMTP": [] }
          },
    
  3. Restarting Local.

The problem is that the new version doesn’t install Mailpit in the support path at all — no matter how often you restart.
You need to install an older version first and then upgrade.

Check out my post for details:
Fix: Mailpit not starting in Local — seed with 9.2.5, then upgrade