Persist Community Nodes in EKS

Hello, I am using n8n hosted on EKS with EC2 Spot.

Every time the application restarts, I lose my community nodes. The /home/nodes/.n8n folder is already persistent, but even so, every time it restarts, I get the following error:
“There is a problem with this package. Try uninstalling it and then reinstalling to resolve this issue.”

When I reinstall, it starts working as expected.

After reinstalling, I don’t see any updates in /.n8n/nodes or node_modules.

I’ve also tried installing via CLI using npm, but nothing happens.

Where are the community nodes installed when we install them through the interface?

Information on your n8n setup

  • n8n version: 1.82.1
  • Database (default: SQLite): Postgres
  • n8n EXECUTIONS_PROCESS setting (default: own, main): default
  • Running n8n via (Docker, npm, n8n cloud, desktop app): EKS
  • Operating system: Alpine

Hi, Have you seen this? Troubleshooting | n8n Docs

Surely your container is recreated every time when your container is terminated on spot.

Hi there,

There is an env variable to automatically install missing community nodes.

N8N_REINSTALL_MISSING_PACKAGES=true

Should do it.

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