Mailspring: ENOSPC Error Causes Mailspring To Crash

Created on 15 Jan 2018  路  5Comments  路  Source: Foundry376/Mailspring

Are there any related issues?

I'd think it in the ballpark of this previous, now closed error: https://github.com/Foundry376/Mailspring/issues/14
...

What operating system are you using?

Ubuntu 17.10
...

What version of Mailspring are you using?

Version 1.0.12-amd64
...

--

List of extensions installed include

  • Clipboard
  • Themes
  • Panel OSD
  • Top Icons Plus
  • Frippery Move Clock
  • Media Player Indicator
  • Openweather
    ...
Is the issue related to a specific email provider (Gmail, Exchange, etc.)?

No.
...

Is the issue reproducible with a particular attachment, message, signature, etc?

N/A
...

--

Feature Request?
N/A
error_mailspring_enospc

...

Most helpful comment

Try increasing your ionotify limit as per: https://github.com/guard/listen/wiki/Increasing-the-amount-of-inotify-watchers

to set limit temporarily and check it works:

sudo sysctl fs.inotify.max_user_watches=524288
sudo sysctl -p

If that works, set the new limit permanently:

echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf
sudo sysctl -p

All 5 comments

ENOSPC = no space on your device. Do you have enougth space on your disk or environment?

Hi there,

Yes. I've got about 90 GB of disk free. The problem seems to have something do with this path /usr/share/mailspring/resources/app.asar.unpacked/mailsync.bin But I have exactly no idea why the error is a lack of space.

this is simply a error due to lack of space and maybe due to the failure in the resource location

Try increasing your ionotify limit as per: https://github.com/guard/listen/wiki/Increasing-the-amount-of-inotify-watchers

to set limit temporarily and check it works:

sudo sysctl fs.inotify.max_user_watches=524288
sudo sysctl -p

If that works, set the new limit permanently:

echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf
sudo sysctl -p

Confirm that snap run mailspring failed to launch any window, logging ENOSPC errors for watch keymap.json instead, and sudo sysctl fs.inotify.max_user_watches=65536 fixed it.

The default per-user limit on total inotify watches appears to be 8k on Ubuntu 18.04 Bionic, which doesn't seem to be enough.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

KristerV picture KristerV  路  3Comments

liam-wiltshire picture liam-wiltshire  路  3Comments

purefan picture purefan  路  3Comments

scooby picture scooby  路  3Comments

dgattey picture dgattey  路  3Comments