Comments (4)
Hey @caiquezanetoni
This doesn't look like a bug, it just looks like you don't have enough memory on your machine for n8n to run what you are putting through it.
What are your workflows doing and what sort of resources do you have available for n8n?
How do you have n8n deployed as well?
from n8n.
This is the memory usage graph of the n8n machine.
Stack in portainer:
version: "3.7"
services:
n8nqg7tjtj_admin:
image: n8nio/n8n:latest
command: start
networks:
- network_public
environment:
- DB_TYPE=postgresdb
- DB_POSTGRESDB_DATABASE=
- DB_POSTGRESDB_HOST=postgres
- DB_POSTGRESDB_PORT=5432
- DB_POSTGRESDB_USER=postgres
- DB_POSTGRESDB_PASSWORD=
- N8N_ENCRYPTION_KEY=
- N8N_HOST=
- N8N_EDITOR_BASE_URL=
- N8N_PROTOCOL=https
- NODE_ENV=production
- WEBHOOK_URL=
- EXECUTIONS_MODE=queue
- QUEUE_BULL_REDIS_HOST=redis
- QUEUE_BULL_REDIS_PORT=6379
- QUEUE_BULL_REDIS_PASSWORD=
- QUEUE_BULL_REDIS_DB=1
- NODE_FUNCTION_ALLOW_EXTERNAL=moment,lodash,moment-with-locales
- EXECUTIONS_DATA_PRUNE=1
- EXECUTIONS_DATA_MAX_AGE=336
volumes:
- n8nqg7tjtj_data:/data/backup
deploy:
mode: replicated
replicas: 1
placement:
constraints:
- node.role == manager
labels:
- traefik.enable=1
- traefik.http.routers.n8nqg7tjtj_a.rule=
- traefik.http.routers.n8nqg7tjtj_a.entrypoints=websecure
- traefik.http.routers.n8nqg7tjtj_a.priority=2
- traefik.http.routers.n8nqg7tjtj_a.tls.certresolver=letsencryptresolver
- traefik.http.routers.n8nqg7tjtj_a.service=n8nqg7tjtj_a
- traefik.http.services.n8nqg7tjtj_a.loadbalancer.server.port=5678
- traefik.http.services.n8nqg7tjtj_a.loadbalancer.passHostHeader=1
n8nqg7tjtj_webhook:
image: n8nio/n8n:latest
command: webhook
networks:
- network_public
environment:
- DB_TYPE=postgresdb
- DB_POSTGRESDB_DATABASE=
- DB_POSTGRESDB_HOST=postgres
- DB_POSTGRESDB_PORT=5432
- DB_POSTGRESDB_USER=postgres
- DB_POSTGRESDB_PASSWORD=
- N8N_ENCRYPTION_KEY=
- N8N_HOST=
- N8N_EDITOR_BASE_URL=
- N8N_PROTOCOL=https
- NODE_ENV=production
- WEBHOOK_URL=
- EXECUTIONS_MODE=queue
- QUEUE_BULL_REDIS_HOST=redis
- QUEUE_BULL_REDIS_PORT=6379
- QUEUE_BULL_REDIS_PASSWORD=
- QUEUE_BULL_REDIS_DB=1
- NODE_FUNCTION_ALLOW_EXTERNAL=moment,lodash,moment-with-locales
- EXECUTIONS_DATA_PRUNE=1
- EXECUTIONS_DATA_MAX_AGE=336
deploy:
mode: replicated
replicas: 1
placement:
constraints:
- node.role == manager
labels:
- traefik.enable=1
- traefik.http.routers.n8nqg7tjtj_w.rule=
- traefik.http.routers.n8nqg7tjtj_w.entrypoints=websecure
- traefik.http.routers.n8nqg7tjtj_w.priority=1
- traefik.http.routers.n8nqg7tjtj_w.tls.certresolver=letsencryptresolver
- traefik.http.routers.n8nqg7tjtj_w.service=n8nqg7tjtj_w
- traefik.http.services.n8nqg7tjtj_w.loadbalancer.server.port=5678
- traefik.http.services.n8nqg7tjtj_w.loadbalancer.passHostHeader=1
n8nqg7tjtj_worker:
image: n8nio/n8n:latest
command: worker --concurrency=10
networks:
- network_public
environment:
- DB_TYPE=postgresdb
- DB_POSTGRESDB_DATABASE=
- DB_POSTGRESDB_HOST=postgres
- DB_POSTGRESDB_PORT=5432
- DB_POSTGRESDB_USER=postgres
- DB_POSTGRESDB_PASSWORD=
- N8N_ENCRYPTION_KEY=
- N8N_HOST=
- N8N_EDITOR_BASE_URL=
- N8N_PROTOCOL=https
- NODE_ENV=production
- WEBHOOK_URL=
- EXECUTIONS_MODE=queue
- QUEUE_BULL_REDIS_HOST=redis
- QUEUE_BULL_REDIS_PORT=6379
- QUEUE_BULL_REDIS_PASSWORD=
- QUEUE_BULL_REDIS_DB=1
- NODE_FUNCTION_ALLOW_EXTERNAL=moment,lodash,moment-with-locales
- EXECUTIONS_DATA_PRUNE=1
- EXECUTIONS_DATA_MAX_AGE=336
deploy:
mode: replicated
replicas: 1
placement:
constraints:
- node.role == manager
labels:
- traefik.enable=
volumes:
n8nqg7tjtj_data:
external: true
name: n8nqg7tjtj_datad
networks:
network_public:
name: network_swarm_public
external: true
...
from n8n.
Hey @caiquezanetoni,
The error message means NodeJS doesn't have enough memory, You can try and allocate more memory by setting NODE_OPTIONS=--max_old_space_size=4096
but I would recommend tweaking the workflows first.
As this doesn't appear to be a bug with n8n itself I am going to mark this as closed, Let me know how you get on with increasing the memory available or if you have any other questions on this.
from n8n.
@Joffcom What do you mean by that this is not a bug with n8n itself? Isn't n8n capable of running within the constraints of memory, say, for example, by offloading data to disk to free up memory?
from n8n.
Related Issues (20)
- Token usage on Langchain nodes is no longer available in 1.40.0 HOT 3
- Upgrading to v1.39.1 throws express-rate-limit Errors - CANNOT LOG IN TO UI HOT 10
- FTP node doesn't seem to create directories HOT 11
- Bug: Airtable with Huge Numbers of Single/Multi-Select Options Causes Sluggish n8n UI Performance HOT 1
- LinkedIn API version deprecated HOT 1
- Ollama node working error when using AI Agent HOT 3
- IMAP Trigger Node Binary File Attachments Corrupted HOT 3
- Send Email Randomly Fails Due to Missing Nodemailer Configuration HOT 8
- Microsoft OneDrive Trigger - Watch Nested Folders results in error HOT 5
- The node "LangChain Code" can't be connected to the node "AI Agent" because they are not compatible. HOT 3
- n8n workflow execution goes to infinite HOT 1
- pipedrive cannot resolve properties anymore HOT 2
- Latin-1 encoding in CSV presents invalid characters HOT 11
- Bug: Gmail Node is not saving parameters HOT 4
- Post Upgrade to v1.39.1 - Airtable Node Output Fields BROKEN HOT 6
- OpenAI Assistant & gpt4-o HOT 9
- OpenAI Assistant creating new thread everytime HOT 8
- Accessing Ticket Object ID in Hubspot Trigger Node HOT 3
- 1.41.0 - Bug: Number of Executions Shown in Side Panel is Limited to 10 at a Time HOT 7
- ERROR: The DNS server returned an error, perhaps the server is offline HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from n8n.