Zauberstack documentation
  • Getting started
    • Introduction
    • Installation
    • Project structure (coming soon)
    • Useful commands (coming soon)
    • Getting updates (coming soon)
  • Backend server
    • Tech stack
    • Scripts
    • CLI Tools (coming soon)
    • Authentication (coming soon)
    • Roles and Permissions (coming soon)
    • GraphQL (coming soon)
    • Error handling (coming soon)
    • Emails (coming soon)
    • File uploads (coming soon)
    • Configuration (coming soon)
    • Tests (coming soon)
    • Database management (coming soon)
  • Zauberweb - Webapp
    • Ingredients
    • Scripts
  • Deployment
    • Preparing the server
    • Configure Gitlab
    • Troubleshooting
  • Recipes
    • Update dependencies
    • Test Stripe locally
    • Working with docker
  • Zauberweb - Marketing Website
    • Ingredients (coming soon)
Powered by GitBook
On this page
  1. Deployment

Troubleshooting

Creating a 10GB Swapfile on VPS

To resolve out-of-memory issues during resource-intensive operations like yarn install, follow these steps to create and enable a 10GB swapfile:

  1. Create the swapfile:

sudo fallocate -l 10G /swapfile

  1. Set correct permissions:

sudo chmod 600 /swapfile

  1. Set up the swap area:

sudo mkswap /swapfile

  1. Enable the swap:

sudo swapon /swapfile

  1. Make the swap permanent by adding it to /etc/fstab:

echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab

  1. Verify the swap is active:

sudo swapon --show

After completing these steps, your system should have an additional 10GB of swap space available. This should help prevent out-of-memory errors during resource-intensive operations like building your project. Note: Consider rebooting your VPS to ensure all changes take effect, although the swap should be immediately available after step 4.

PreviousConfigure GitlabNextUpdate dependencies

Last updated 8 months ago