Comments (6)
Hey @dkindlund,
Looking at the workflow I would say the error occurred on the Airtable node but more information would be needed.
Looking at the output you collected from the error trigger that may also have been in the n8n log it would suggest the issue occurred because of a memory issue this means the node never really got a chance to start.
You are not wrong we really should put this information in the UI somewhere but as it is a workflow level error it wouldn't be right to put it under the node output so we would need to think about how to best display it.
I suspect when the workflow process runs out of memory though it doesn't have the memory to add that to the node which is why it isn't there. We should probably make it clearer as well that the settings are for the workflow itself and not the system in general.
This isn't really a bug but I will keep this open and get a dev ticket created on Monday to look into how we can improve this.
from n8n.
Thanks for the analysis, @Joffcom -- I agree it's a hard problem. Just trying to offer a user's perspective about it for now. Thanks!
from n8n.
One other point: When I checked Google Cloud Run's memory usage in the single container around the time when this out-of-memory error was reported, I see that only ~15% of the container's memory was actually allocated:
Then, when I checked the logs, I see this sort of activity:
So the timeline of events appear to be:
- The container crashed earlier (not sure why it got restarted by Google Cloud Run)
- Upon recovery, the new container attempted to recover a the crashed job:
Attempting to recover execution 3346
- During the recovery of this job, it somehow ran out-of-memory
We're left with a bunch of questions/insights, such as:
-
Why did the container crash to begin with? Looking through the older logs, there were no entries that provide any clues as to why the container crashed.
-
When attempting to recover a crashed workflow, that recovery logic appears to trigger out-of-memory issues even though the container had more than enough memory allocated at the time. (I suspect there might be some sort of out-of-memory bug in n8n's workflow recovery logic that can be hard to pinpoint.)
from n8n.
A couple of other data points about this n8n deployment:
- It's a single container deployed in Google Cloud Run
- Running [email protected]
- Allocated 4 vCPUs and 2GB RAM
EXECUTIONS_MODE=regular
NODE_OPTIONS=--max-old-space-size=1536
(Based on documented recommendations found here.)
from n8n.
So essentially, Google Cloud Run can kill/restart the container at any time to run it at a cheaper rate -- so not necessarily because of any sort of n8n error.
I guess the main issue is: n8n's workflow recovery logic doesn't quite work correctly upon container restart -- hence the spurious out of memory
errors we're seeing.
from n8n.
Ah yeah cpu will cause a similar message, we don’t have container restart logic to restart workflows though that is something that needs to be manually done.
from n8n.
Related Issues (20)
- Loop inside Loop finnishes abruptly - v1.29.1 HOT 5
- n8n workers wont connect to main node. HOT 18
- (bug, inconsistency) Dashboard shows Workspace is Online but my Workspace is crashed HOT 1
- This Code always crashes the Workspace - v1.29.1 HOT 3
- Query Parameters in MYSQL HOT 7
- postgresql node error not caught HOT 2
- Basic LLM Chain - Require Specific Output Format as Expression (not Fixed) Causes Crashing HOT 2
- bug: in editor-ui i18n dynamicRender isn't working as expected HOT 3
- Airtable Trigger - Fetch Test Event - Does Not Work HOT 5
- HTTP Request decode Mime Type: text/html; charset=ISO-8859-1 HOT 1
- Airtable Update Record - Refresh Column List Not Working - After New Fields Added HOT 1
- Nextcloud Folder List - Incorrect path HOT 2
- Clarify AWS S3 Object Copy popup help HOT 1
- AWS S3 Module Signature Calc Error with non-latin characters in key. Need to encodeURIComponent HOT 2
- Airtable Trigger - 429s Are Not Handled as Errors HOT 3
- AWS SES Template - ERROR: Bad request - please check your parameters HOT 1
- Youtube Upload - 400 Bad Request HOT 2
- Error SIMD unsupported on docker n8n container HOT 1
- Magento node store "view" option HOT 3
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.