error cannot read properties of undefined (reading 'MAILPIT') at mailpitservice.start this error is occurning in localwp

What issue or error are you experiencing?

error cannot read properties of undefined (reading ‘MAILPIT’) at mailpitservice.start this error is occurning in localwp

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)


ERROR1
ERROR2

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 @fahadyasin - thanks for using Local!

In order to help, we need some more information about your machine and the version of Local. Can you provide:
Your Local version
Your Operating System (OS) and OS version
A copy of your Local logs

When did this error occur? Were you upgrading/downgrading Local versions?

1 Like

Hi there, did you manage to solve the issue? I’m running into the same problem. I’ve got an old PC, 32-bit system, Windows 10. I checked the lightning services/mailpit/bin folder and found that mailpit.exe is win64. Maybe this is why it won’t start. Can this be resolved or do I need to upgrade?

Thank you for adding to the report with you PC’s spec, @keithan. That does explain why Local can’t start Mailpit.

Mailpit does not offer a 32-bit version that Local can use. If you’re using 32-bit Windows (others can see how to check if they’re not sure), you can either upgrade to 64-bit Windows (I appreciate this is not easy and may require a new PC) or downgrade to a version of Local below 8.3.1. I’m sorry not to be able to offer an easier solution.

If you decide to downgrade from Local 8.3.1 to an older version of Local and you have existing sites, you will need to replace mailpit with mailhog in your sites.json file like this:

  1. Open the Windows File Explorer.
  2. Make sure you have enabled “show hidden items”.
  3. Browse to This PC → [your hard drive] → Users → [your username] → AppData → Roaming → Local.
  4. Make a backup of the sites.json file (it might just appear as ‘sites’) by duplicating it as sites-backup.json or similar.
  5. Open sites.json in a text editor.
  6. Find and replace ‘mailpit’ with ‘mailhog’.
  7. Find and replace ‘1.12.1’ with ‘1.0.0’.
  8. Save the file and restart Local.

You don’t need to do the above if you downgrade and have no existing sites in Local.

DEVICE INFO
Windows specification

Device name DESKTOP-4F28EAT
Processor Intel(R) Core™ i5 CPU M 460 @ 2.53GHz 2.53 GHz
Installed RAM 6.00 GB (2.92 GB usable)
Device ID E5BC14C1-A138-4063-A150-DED9C99BD4B7
Product ID 00330-80000-00000-AA440
System type 32-bit operating system, x64-based processor
Pen and touch No pen or touch input is available for this display

Thanks for sharing your system spec, @fahadyasin.

Since you’re using 32-bit Windows, you’ll need to either downgrade Local or upgrade to 64-bit Windows as described in the previous post above.

local version:Version 9.0.1+6673
os win 10 enterprise x86
local-lightning.log (8.1 KB)

Hello @abdulahad -

Have you had a chance to walk through @nickc’s post?

Are you using 32-bit Windows?

Sam

Thank you for your response
I shall do so

2 Likes