Joplin installation fails with some "Out of memory: wasm memory"

What type of hardware are you using: Raspberry Pi 3, 4+
What YunoHost version are you running: 12.0.10
What app is this about: joplin

Describe your issue

The hardware target is a Raspberry Pi 4 with 8GB RAM

I just try to install joplin yunohost app with the CLI command:

sudo yunohost app install joplin

It runs but, at some point, it stales. After 15 minutes waiting, I stop the process with “Ctrl-c”

Looking at logfile, I see a bunch of lines ending with “Out of memory: wasm memory”

Besides that, my Yunohost raspberrypi server is working well
If you have any idea …

Thanks

Share relevant logs or error messages

see log : https://paste.yunohost.org/raw/natavomoke

Hi llo94,

Welcome to the forums!

That seems clear enough, of course.

At the start of all the wasm-memory lines, you can find:

2025-01-25 14:50:25,224: DEBUG - ➤ YN0000: ┌ Resolution step
2025-01-25 14:50:31,926: DEBUG - ➤ YN0000: └ Completed in 6s 700ms
2025-01-25 14:50:31,930: DEBUG - ➤ YN0000: ┌ Fetch step
2025-01-25 14:52:11,073: DEBUG - ➤ YN0001: │ Error: Couldn't allocate enough memory
2025-01-25 14:52:11,074: DEBUG -     at ZipFS.allocateBuffer ([worker eval]:1:40632)
(...)
2025-01-25 14:53:31,568: DEBUG - failed to compile wasm module: RangeError: WebAssembly.Instance(): Out of memory: wasm memory

Even though your RPi comes with 8GB of RAM, Joplin already eats 4GB while installing. It seems like it is just too much.

  • Do you have any swap available?
  • Are many other apps already installed?
  • Is the server busy with other things, adding to the load?

You could use free -h or htop to keep an eye on memory usage.

To add some swap on the fly, you could run

$ sudo fallocate -l 1024M /swapfile && chmod 600 /swapfile && mkswap /swapfile && swapon /swapfile

with your chosen value instead of 1024 for the size of the swap file.

Good luck!

1024 won’t be enough. I have tested it a while ago and had to add more swap.
You can try [Joplin] Call for testers!

Thanks for the help and tips. I don’t have enough free time these days, I will try to increase memory soon.

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