Missing Mailpit

What issue or error are you experiencing?

HI, I created a small wp site. I quit out of local. The next time I started local I had the error message across the top " Missing Mailpit v1.12. Dont worry well reinstallit next time you start your site." I cannot open the wp site. I get an oh oh error screen shot attached. I have uninstalled local, shut down pc and tried again with fresh installation. I created a simple one page wp site and encountered the same error. I switched off antivirus and still the same problem. Any advice on what to do to solve the problem. Thanks
Local error 3 2024-03-11 154750


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


System Details

  • Local Version:

  • Operating System (OS) and OS version:


Local Logs

Attach your Local Logs here (Help Doc - Retrieving Localā€™s Log)


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.

Hi, @LizW.

Are you running the latest version of Local (8.3.1)? Releases - Local

If youā€™re on the latest, please could you share your Local logs?

Hi Nickc, yes I have the latest version. I`m using windows 11.
local-logs1.zip (42.2 KB)

Thank you for the logs, @LizW!

It looks like Local canā€™t start Mailpit (the service that captures WordPress email for you) because a file Local needs is missing:

file does not exist: %%userDataPath%%\\lightning-services\\mailpit-1.12.1+0\\lib\\main.js"

Local normally copies these files for you when it first starts. You mention that youā€™re using antivirus software, but that youā€™ve disabled it. Itā€™s worth checking:

  • That you restarted Local after disabling antivirus software. (Local only writes the above file when it first launches.)
  • That thereā€™s no other security software running that might prevent Local from writing files. For example, hereā€™s how to configure software like Kapersky Total Security to allow Local to run unrestricted. Changes you make will require a restart of Local.

If that doesnā€™t help, you can try forcing Local to recreate the Mailpit service files like this:

  1. Stop any running sites.
  2. Quit Local.
  3. Open the Windows File Explorer.
  4. Browse to This PC ā†’ [your hard drive] ā†’ Users ā†’ [your username] ā†’ AppData ā†’ Roaming ā†’ Local ā†’ lightning-services.
  5. Delete the folder named ā€˜mailpit-1.12.1+0ā€™.
  6. Make sure antivirus or security software is either disabled or allowing Local to run unrestricted.
  7. Start Local.

Local should recreate the folder named ā€˜mailpit-1.12.1+0ā€™ at This PC ā†’ [your hard drive] ā†’ Users ā†’ [your username] ā†’ AppData ā†’ Roaming ā†’ Local ā†’ lightning-services.

You should then be able to start your site.

If you donā€™t see that mailpit-1.12.1+0 folder after starting Local, it can mean something prevented Local from writing to the directory. It would be worth checking if you have anything else installed that could do this.

Thank you Nickc - you`re a hero! that worked perfectly :smiley:
Regards

1 Like

Great to hear ā€” thanks for letting us know.

@nickc Iā€™m having a similar issue but in macOS.

In my case, the sites seem to run fine but when I click Open Mailpit in Local nothing happens. I get the ā€œMissing Mailpitā€ error every time I boot up Local. If I dismiss the alert and restart the site (without restarting Local), I donā€™t get the error again but Mailpit still doesnā€™t work.

I donā€™t have any antivirus or security software. [feels suddenly very exposed :sweat_smile:] And I tried to delete the folder you mentioned but couldnā€™t find any folders with ā€œmailpitā€ in the name.

This started happening recently right after I installed the Apple Silicon version. Previously had the Intel version on the same machine.

Here are my logs.
local-logs1.zip (1.3 MB)

Please could you try the steps in this post for macOS, @diegovogel?

This started happening recently right after I installed the Apple Silicon version. Previously had the Intel version on the same machine.

The steps above will swap the Intel version of Mailpit for the Apple Silicon version. (Local currently doesnā€™t do that automatically if you switch between macOS architectures, which at least explains the message youā€™re seeing. Sorry for the confusion!)

That worked, thanks a lot!

2 Likes

Weā€™re glad to hear it @diegovogel!

Iā€™ll close this out for now but if you have any other questions or concerns donā€™t hesitate to reach back out. We are always happy to help!