Install LanguageTool on an 8 GB RAM server - without OutOfMemory - with Solution

What app is this about, and its version: languagetool 6.6~ynh2
What YunoHost version are you running: 12 and 13
What type of hardware are you using: VPS bought online

Describe your issue

Without enough RAM, the installation process will crash (http error). Workaround add more swap-space.

Solution with the 8 GB swap file:

  1. Create an empty swap file.
    Use fallocate to create a fast file (recommended):
    sudo fallocate -l 8G /swapfile
  2. Set permissions
    For security reasons, make it accessible only to root:
    sudo chmod 600 /swapfile
  3. Format the file as swap space
    sudo mkswap /swapfile
  4. Activate the swap file
    sudo swapon /swapfile
  5. Permanent activation at startup
    Add the line to /etc/fstab so that the swap file is automatically activated after each restart:
    echo ‘/swapfile none swap sw 0 0’ | sudo tee -a /etc/fstab
  6. Check
    Make sure that the swap file is activated correctly:
    free -h
    Or:
    swapon --show

Share relevant logs or error messages

none

2 Likes