πŸ’₯ N8N Crashing After Update – AI Agent & ChatGPT Causing Out of Memory Error!

Hey everyone,

My N8N instance was running perfectly fine, including AI Agent and ChatGPT integrations.

What I Did Differently Today:

  • Updated N8N to the latest version
  • Tried enabling premium features (not sure if this triggered the issue)
  • Right after that, I started experiencing crashes whenever I ran any AI Agent workflow.

Issue Description:

  • As soon as I trigger AI Agent, the N8N container crashes inside Portainer.
  • The logs in the container show the following errors:

[license SDK] cert is invalid because it has expired
[license SDK] cert is invalid because it has expired
…
<β€” Last few GCs β€”>
[7:0x7f5cc7974650] Allocation failed - JavaScript heap out of memory
FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory

Hosting Details:

  • Hosting Provider: Hostinger
  • Deployment: Docker + Portainer

Does anyone have any idea how to fix this? :rocket:

2 Likes

ItΒ΄s a problem with server memory, try another server with more memory like 16Gb, and take a look in the logs .

thanks

Hi, I’m actually facing the same issue now and everything was working perfectly fine before.
My N8N is hosted on Render ; and whenever I use a Basic LLM or an AI agent my instance crashes, no matter how light the task for these nodes is.

Got the same on-premise
NODE_OPTIONS=β€œβ€“max-old-space-size=2048” saved me.

1 Like

@Ricardo_Braune any news on how you fixed it ?