-
Notifications
You must be signed in to change notification settings - Fork 6.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Random crashes due to possible bug in WaitTracker.ts #6624
Comments
@nmf2 Do you have (or could you please create) a small workflow to reproduce this? |
@netroy, thanks for the quick response! Sincerely I wish I could provide a workflow but this is not really something that I even know how to reproduce. It just happens randomly and it doesn't affect the executions of a specific workflow. I do think it has to do with the wait node but only because of where the error happens in the code... [Edit]: n8n/packages/cli/src/WaitTracker.ts Line 89 in bf35124
|
@nmf2 are you using the webhook option in the wait node ? |
@netroy we don't use that in any of our workflows, but we do use the Wait node with a long delay (days), so the execution goes into the waiting status. Hope this helps. How can I be of further assistance? |
this happens to me, also only if the wait has more than 65 seconds, I'm currently in version 1.0.5 but, I believe that in version 0 it was also happening, I'll leave a simple flow here so you can test it. {
"meta": {
"instanceId": "33738330930e3881dd5571eca013f36ddf8aab20e4ea5c1f2ebaf4a2b4668ac6"
},
"nodes": [
{
"parameters": {
"values": {
"string": [
{}
]
},
"options": {}
},
"id": "9f467564-55b1-44c3-93d2-a7aec275a713",
"name": "Set",
"type": "n8n-nodes-base.set",
"typeVersion": 2,
"position": [
340,
400
]
},
{
"parameters": {
"amount": 10,
"unit": "seconds"
},
"id": "ea2b1005-2a2c-4866-abd4-2cafa6893ee5",
"name": "Wait",
"type": "n8n-nodes-base.wait",
"typeVersion": 1,
"position": [
560,
400
],
"webhookId": "afe8deba-8749-4d3c-ae8f-c0887ba05770"
},
{
"parameters": {
"values": {
"string": [
{}
]
},
"options": {}
},
"id": "5c89b28b-523d-409f-8720-92a3ed8379ed",
"name": "Set1",
"type": "n8n-nodes-base.set",
"typeVersion": 2,
"position": [
740,
400
]
},
{
"parameters": {
"amount": 70,
"unit": "seconds"
},
"id": "4fc941ff-4069-4aec-8549-f3c4d449c96f",
"name": "Wait1",
"type": "n8n-nodes-base.wait",
"typeVersion": 1,
"position": [
920,
400
],
"webhookId": "a0f3ebfb-8d6d-4711-958a-0c90438ce3c6"
},
{
"parameters": {
"httpMethod": "POST",
"path": "d7541d94-e26f-4495-9299-13f3055c9688",
"options": {}
},
"id": "3736585e-2f82-4630-870c-a87efd30cf7c",
"name": "Webhook",
"type": "n8n-nodes-base.webhook",
"typeVersion": 1,
"position": [
160,
400
],
"webhookId": "d7541d94-e26f-4495-9299-13f3055c9688"
},
{
"parameters": {},
"id": "4941ce6a-a3f5-4498-b50c-8eb7beb40c6c",
"name": "No Operation, do nothing",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [
1140,
400
]
}
],
"connections": {
"Set": {
"main": [
[
{
"node": "Wait",
"type": "main",
"index": 0
}
]
]
},
"Wait": {
"main": [
[
{
"node": "Set1",
"type": "main",
"index": 0
}
]
]
},
"Set1": {
"main": [
[
{
"node": "Wait1",
"type": "main",
"index": 0
}
]
]
},
"Wait1": {
"main": [
[
{
"node": "No Operation, do nothing",
"type": "main",
"index": 0
}
]
]
},
"Webhook": {
"main": [
[
{
"node": "Set",
"type": "main",
"index": 0
}
]
]
}
}
} also here is a screenshot |
so far I'm unable to reproduce this on regular mode and queue mode, with the workflow linked above, and with a bunch of different other workflows with wait nodes with wait times longer than 65 seconds. |
Hi. we are having the same problem. our waiting time is 3 minutes. possible log trace relate to this issue:
|
found something interesting n8n/packages/cli/src/WaitTracker.ts Lines 53 to 61 in bf35124
Here, you can see some instances of @netroy could you please release an hotfix for 0.236.3 ? We are still not ready to migrate to 1.x version |
maybe update using this code for the meantime?
|
I think this was probably being caused by time-zone issues between n8n and postgres. If that's the case, This issue should be resolved in n8n versions 1.9.0 or later. |
If you can't upgrade to 1.x, I've created a custom docker image with all the postgres related fixes: |
One of the customers facing this issue has confirmed that the custom image, as well as upgrading fixes this issue. |
@netroy |
@caiquezanetoni Can you please share with us:
|
Fix got released with |
This was only resolved for regular n8n, for those who have n8n queue with postgres it is not possible to update to version 1.25.1 https://community.n8n.io/t/n8n-worker-get-error-n8n-encryption-key-var-after-update-new-version/35878/3 |
@DRIMOL The links you posted are related to the encryption-key mismatch, and not related to the WaitTracker (which this issue is for). |
For anyone still seeing this error, please upgrade to |
Describe the bug
Our self-hosted main n8n instance randomly crashes with the following error trace:
To Reproduce
Steps to reproduce the behavior:
No idea yet... it crashes randomly with that error above.
Environment (please complete the following information):
Additional context
I tracked the error to this line of n8n's code:
n8n/packages/cli/src/WaitTracker.ts
Line 89 in bf35124
I'm not sure what else to provide you with to help solve the issue so feel free to ask!
The text was updated successfully, but these errors were encountered: