N8n audit in docker: FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory

Describe the problem/error/question

Hi there,

we are running [email protected] in Docker on a linux server (ubuntu).

When I execute n8n audit we receive an error - see below. However we got plenty of ram.

Any idea why this is and what to do about it?

Thank you in advance!

What is the error message (if any)?

Running n8n audit in docker returns a heap error

sudo docker exec -u node -it n8n-n8n-1 n8n audit
Permissions 0644 for n8n settings file /home/node/.n8n/config are too wide. This is ignored for now, but in the future n8n will attempt to change the permissions automatically. To automatically enforce correct permissions now set N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=true (recommended), or turn this check off set N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=false.

<--- Last few GCs --->

[43:0x7f6ab334e000]     3074 ms: Mark-Compact 2000.2 (2085.6) -> 1994.4 (2084.6) MB, pooled: 0 MB, 43.66 / 0.00 ms  (average mu = 0.807, current mu = 0.452) allocation failure; scavenge might not succeed
[43:0x7f6ab334e000]     3177 ms: Mark-Compact 2010.1 (2084.6) -> 2006.9 (2109.6) MB, pooled: 2 MB, 89.67 / 0.00 ms  (average mu = 0.578, current mu = 0.128) allocation failure; scavenge might not succeed


<--- JS stacktrace --->

FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
----- Native stack trace -----

Please share your workflow

No workflow involved

Share the output returned by the last node

Information on your n8n setup

  • n8n version: [email protected]
  • Database (default: SQLite): default
  • n8n EXECUTIONS_PROCESS setting (default: own, main): -
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Docker
  • Operating system:

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