Back to Article List

Fix Hermes WhatsApp bridge dependencies install stuck

Fix Hermes WhatsApp bridge dependencies install stuck - Fix Hermes WhatsApp bridge dependencies install stuck

The Hermes setup wizard hangs on the line "WhatsApp bridge dependencies" for minutes. Sometimes the spinner spins, sometimes a progress message just sits frozen mid-line. People wait. Some kill it after twenty minutes. The most common cause is npm getting killed by the Linux OOM killer on a low-memory VPS without anyone seeing the kill message.

Why the install stalls

The WhatsApp bridge uses the Baileys library, which pulls in a tree of transitive Node dependencies. The full install allocates a few hundred megabytes of memory while resolving and unpacking modules. On a 1GB VPS or a WSL2 distro with no swap, npm hits the memory ceiling, the kernel kills the npm process, and the Hermes wizard sees no exit signal so it waits indefinitely.

Confirm OOM kill

tail -100 ~/.hermes/logs/install.log
dmesg | tail -50 | grep -i "killed\|oom"

If dmesg shows "Out of memory: Killed process" around the time the wizard stalled, you found the cause.

Fix: add swap, then retry

Swap gives npm more virtual memory. Slower than RAM but it stops the OOM kill. We only need it for the few minutes of npm install, but you can leave it on permanently if you want.

sudo fallocate -l 2G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
free -h

Verify the swap shows up in free -h. Then re-run the WhatsApp setup:

hermes gateway setup whatsapp

Make swap persist across reboots

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

If swap doesn't help: check Node version

Baileys requires Node v18 or v22 LTS. Older Node versions (or weird in-between versions) fail in ways that look like a hang.

node --version
which node

Install correct Node via nvm

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
source ~/.bashrc
nvm install 22
nvm use 22
node --version

Retry the bridge install.

If swap and Node are fine: check disk space

The npm install temp directory needs about 500MB free during resolve.

df -h /tmp /home

Below 1GB free, the install stalls mid-write. Clean up and retry.

What to do if dependencies install but bridge still won't start

The npm install completed but the bridge crashes immediately when Hermes tries to start it. Different failure, similar symptom.

Check the bridge log

tail -50 ~/.hermes/logs/whatsapp-bridge.log

Common bridge startup errors and fixes

  • Missing module: install was partial, reinstall from scratch (see below)
  • Wrong Node binary on PATH: nvm is using one Node but Hermes is calling a different one. Check which node matches what nvm activated.
  • Port 3000 already taken: see our WhatsApp bridge localhost:3000 fix

Clean reinstall of bridge deps

cd ~/.hermes/hermes-agent/scripts/whatsapp-bridge
rm -rf node_modules package-lock.json
npm install --no-audit --no-fund
hermes gateway restart whatsapp

Skipping WhatsApp temporarily

If the bridge install keeps failing and you need to move on, the rest of Hermes works fine without WhatsApp. You can finish the wizard, set up Telegram or Discord first and come back to WhatsApp later.

# skip WhatsApp during wizard or set up another gateway:
hermes gateway setup telegram
hermes gateway setup discord

Our Telegram setup tutorial is the easiest channel to get running while you sort the WhatsApp issue.

Pre-built Docker bridge as an alternative

If the wizard install keeps failing on your setup, running Hermes (and the bridge) in Docker is a workaround. The bridge install runs inside a controlled container environment with the right Node and enough memory allocated.

Full Compose pattern in our Hermes Docker Compose tutorial.

WhatsApp ban-risk worth noting again

Before finishing the WhatsApp setup: Baileys is a reverse-engineered WhatsApp Web client. Not an official API. Meta does ban accounts that look automated. Use a dedicated number, not your personal one. Full caveats in our Hermes Baileys setup.

Memory headroom on the VPS itself

1GB VPS plans are tempting on price but you pay for it in install pain and the agent runs slower in general. 2GB is the floor for production Hermes use. On LumaDock the 2GB tier is the entry point, with higher tiers giving real headroom for Node-heavy bits. Unmetered bandwidth and no setup fees. Setup details in our Hermes Agent complete guide.

Your idea deserves better hosting

24/7 support 30-day money-back guarantee Cancel anytime
Billing Cycle

1 GB RAM VPS

$3.99 Save  25 %
$2.99 Monthly
  • 1 vCPU AMD EPYC
  • 30 GB NVMe storage
  • Unmetered bandwidth
  • IPv4 & IPv6 included IPv6 support is currently unavailable in France, Finland or the Netherlands.
  • 1 Gbps network
  • Firewall management
  • Free server monitoring

2 GB RAM VPS

$5.99 Save  17 %
$4.99 Monthly
  • 2 vCPU AMD EPYC
  • 30 GB NVMe storage
  • Unmetered bandwidth
  • IPv4 & IPv6 included IPv6 support is currently unavailable in France, Finland or the Netherlands.
  • 1 Gbps network
  • Firewall management
  • Free server monitoring

6 GB RAM VPS

$14.99 Save  33 %
$9.99 Monthly
  • 6 vCPU AMD EPYC
  • 70 GB NVMe storage
  • Unmetered bandwidth
  • IPv4 & IPv6 included IPv6 support is currently unavailable in France, Finland or the Netherlands.
  • 1 Gbps network
  • Firewall management
  • Free server monitoring

AMD EPYC VPS.P1

$7.99 Save  25 %
$5.99 Monthly
  • 2 vCPU AMD EPYC
  • 4 GB RAM memory
  • 40 GB NVMe storage
  • Unmetered bandwidth
  • IPv4 & IPv6 included IPv6 support is currently unavailable in France, Finland or the Netherlands.
  • 1 Gbps network
  • Automatic backup included
  • Firewall management
  • Free server monitoring

AMD EPYC VPS.P2

$14.99 Save  27 %
$10.99 Monthly
  • 2 vCPU AMD EPYC
  • 8 GB RAM memory
  • 80 GB NVMe storage
  • Unmetered bandwidth
  • IPv4 & IPv6 included IPv6 support is currently unavailable in France, Finland or the Netherlands.
  • 1 Gbps network
  • Automatic backup included
  • Firewall management
  • Free server monitoring

AMD EPYC VPS.P4

$29.99 Save  20 %
$23.99 Monthly
  • 4 vCPU AMD EPYC
  • 16 GB RAM memory
  • 160 GB NVMe storage
  • Unmetered bandwidth
  • IPv4 & IPv6 included IPv6 support is currently unavailable in France, Finland or the Netherlands.
  • 1 Gbps network
  • Automatic backup included
  • Firewall management
  • Free server monitoring

AMD EPYC VPS.P5

$36.49 Save  21 %
$28.99 Monthly
  • 8 vCPU AMD EPYC
  • 16 GB RAM memory
  • 180 GB NVMe storage
  • Unmetered bandwidth
  • IPv4 & IPv6 included IPv6 support is currently unavailable in France, Finland or the Netherlands.
  • 1 Gbps network
  • Automatic backup included
  • Firewall management
  • Free server monitoring

AMD EPYC VPS.P6

$56.99 Save  21 %
$44.99 Monthly
  • 8 vCPU AMD EPYC
  • 32 GB RAM memory
  • 200 GB NVMe storage
  • Unmetered bandwidth
  • IPv4 & IPv6 included IPv6 support is currently unavailable in France, Finland or the Netherlands.
  • 1 Gbps network
  • Automatic backup included
  • Firewall management
  • Free server monitoring

AMD EPYC VPS.P7

$69.99 Save  20 %
$55.99 Monthly
  • 16 vCPU AMD EPYC
  • 32 GB RAM memory
  • 240 GB NVMe storage
  • Unmetered bandwidth
  • IPv4 & IPv6 included IPv6 support is currently unavailable in France, Finland or the Netherlands.
  • 1 Gbps network
  • Automatic backup included
  • Firewall management
  • Free server monitoring

EPYC Genoa VPS.G1

$4.99 Save  20 %
$3.99 Monthly
  • 1 vCPU AMD EPYC Gen4 AMD EPYC Genoa 4th generation 9xx4 with 3.25 GHz or similar, on Zen 4 architecture.
  • 1 GB DDR5 memory
  • 25 GB NVMe storage
  • Unmetered bandwidth
  • IPv4 & IPv6 included IPv6 support is currently unavailable in France, Finland or the Netherlands.
  • 1 Gbps network
  • Automatic backup included
  • Firewall management
  • Free server monitoring

EPYC Genoa VPS.G2

$12.99 Save  23 %
$9.99 Monthly
  • 2 vCPU AMD EPYC Gen4 AMD EPYC Genoa 4th generation 9xx4 with 3.25 GHz or similar, on Zen 4 architecture.
  • 4 GB DDR5 memory
  • 50 GB NVMe storage
  • Unmetered bandwidth
  • IPv4 & IPv6 included IPv6 support is currently unavailable in France, Finland or the Netherlands.
  • 1 Gbps network
  • Automatic backup included
  • Firewall management
  • Free server monitoring

EPYC Genoa VPS.G4

$25.99 Save  27 %
$18.99 Monthly
  • 4 vCPU AMD EPYC Gen4 AMD EPYC Genoa 4th generation 9xx4 with 3.25 GHz or similar, on Zen 4 architecture.
  • 8 GB DDR5 memory
  • 100 GB NVMe storage
  • Unmetered bandwidth
  • IPv4 & IPv6 included IPv6 support is currently unavailable in France, Finland or the Netherlands.
  • 1 Gbps network
  • Automatic backup included
  • Firewall management
  • Free server monitoring

EPYC Genoa VPS.G6

$48.99 Save  31 %
$33.99 Monthly
  • 8 vCPU AMD EPYC Gen4 AMD EPYC Genoa 4th generation 9xx4 with 3.25 GHz or similar, on Zen 4 architecture.
  • 16 GB DDR5 memory
  • 200 GB NVMe storage
  • Unmetered bandwidth
  • IPv4 & IPv6 included IPv6 support is currently unavailable in France, Finland or the Netherlands.
  • 1 Gbps network
  • Automatic backup included
  • Firewall management
  • Free server monitoring

EPYC Genoa VPS.G7

$74.99 Save  27 %
$54.99 Monthly
  • 8 vCPU AMD EPYC Gen4 AMD EPYC Genoa 4th generation 9xx4 with 3.25 GHz or similar, on Zen 4 architecture.
  • 32 GB DDR5 memory
  • 250 GB NVMe storage
  • Unmetered bandwidth
  • IPv4 & IPv6 included IPv6 support is currently unavailable in France, Finland or the Netherlands.
  • 1 Gbps network
  • Automatic backup included
  • Firewall management
  • Free server monitoring

AMD Ryzen VPS.R1

$15.99 Save  31 %
$10.99 Monthly
  • 1 dedicated CPU AMD Ryzen 9 7950X with 4.5 GHz or similar, on Zen 4 architecture. vCPU
  • 4 GB DDR5MEMORY
  • 50 GB NVMeSTORAGE
  • Unmetered bandwidth
  • IPv4 & IPv6 included IPv6 support is currently unavailable in France, Finland or the Netherlands.
  • Auto backup included

AMD Ryzen VPS.R2

$27.99 Save  21 %
$21.99 Monthly
  • 2 dedicated CPUs AMD Ryzen 9 7950X with 4.5 GHz or similar, on Zen 4 architecture. vCPU
  • 8 GB DDR5MEMORY
  • 100 GB NVMeSTORAGE
  • Unmetered bandwidth
  • IPv4 & IPv6 included IPv6 support is currently unavailable in France, Finland or the Netherlands.
  • Auto backup included

AMD Ryzen VPS.R4

$99.99 Save  20 %
$79.99 Monthly
  • 8 dedicated CPUs AMD Ryzen 9 7950X with 4.5 GHz or similar, on Zen 4 architecture. vCPU
  • 32 GB DDR5MEMORY
  • 400 GB NVMeSTORAGE
  • Unmetered bandwidth
  • IPv4 & IPv6 included IPv6 support is currently unavailable in France, Finland or the Netherlands.
  • Auto backup included

Questions?

How much RAM does the Hermes WhatsApp bridge install need?

The Baileys library transitive dependency tree allocates a few hundred MB during resolve. On a 1GB VPS without swap, this overruns memory. 2GB total (RAM + swap) is the practical minimum for a clean install.

Your agent runs wild. Your bill doesn't.

Easily deploy Hermes in one click on Ubuntu 24.04 with AMD EPYC, NVMe storage and unmetered bandwidth. The price stays the same whatever the agent does, no setup fees, no overage charges and no tier traps.

GPU products are in high demand at the moment. Fill the form to get notified as soon as your preferred GPU server is back in stock.