Community nodes uninstalling every few days

Hi, every few days our community nodes uninstall. This is across all our 30+ customers, they are all self-hosted, always on the newest n8n version. So far I cannot see a pattern. Every few days we get 1000+ errors overnight because the n8n-nodes-imap got uninstalled and then we have to reinstall again and it works again. We also observed this with other nodes for example n8n-nodes-pdf-toolkit (at least they don’t give out thousands of errors if they fail, but still problem is the same).

So the question is: Why is it not possible to install community nodes? They way it currently is they are completely unusable for us. We go through all customers that use them every morning an reinstall them.

This is usually caused by issues with how the Docker container is set up, specifically the volume mounts. When the container restarts, it might not be retaining the installed community nodes.

Try these steps to ensure the nodes persist:

1. **Verify Volume Mounts:** Double-check your Docker Compose file (or how you run Docker) to confirm that the `/usr/local/lib/node_modules` directory is correctly mounted as a volume. This is where n8n installs the community nodes.

2. **Restart the Container:** After making changes, restart the n8n container to see if the community nodes are still present.

Give that a shot