Timeout after 5 Minutes

Hi, i would like to ask how to extend the 5 Minute Timeout

{
“nodes”: [
{
“parameters”: {
“chunkSize”: 2000,
“options”: {
“summarizationMethodAndPrompts”: {
“values”: {
“combineMapPrompt”: “Schreibe eine Zusammenfassung auf deutsch:\n\n\n"{text}“\n\n\nZusammenfassung:”,
“prompt”: “Schreibe eine Zusammenfassung auf deutsch:\n\n\n”{text}"\n\n\nZusammenfassung:”
}
}
}
},
“id”: “054b8604-840b-4226-8f3f-5d5e3f4fdbb9”,
“name”: “Summarization Chain”,
“type”: “@n8n/n8n-nodes-langchain.chainSummarization”,
“typeVersion”: 2,
“position”: [
-1584,
-64
]
},
{
“parameters”: {
“model”: “gemma3:27b”,
“options”: {
“temperature”: 0.1,
“keepAlive”: “6m”,
“numCtx”: 50000,
“numPredict”: -1,
“numThread”: 16
}
},
“id”: “5d0f5d2e-78f3-45b0-80b9-12a03550e03d”,
“name”: “Ollama Chat Model”,
“type”: “@n8n/n8n-nodes-langchain.lmChatOllama”,
“typeVersion”: 1,
“position”: [
-1584,
112
],
“credentials”: {
“ollamaApi”: {
“id”: “xHuYe0MDGOs9IpBW”,
“name”: “Local Ollama service”
}
}
}
],
“connections”: {
“Summarization Chain”: {
“main”: [

]
},
“Ollama Chat Model”: {
“ai_languageModel”: [
[
{
“node”: “Summarization Chain”,
“type”: “ai_languageModel”,
“index”: 0
}
]
]
}
},
“pinData”: {},
“meta”: {
“templateCredsSetupCompleted”: true,
“instanceId”: “558d88703fb65b2d0e44613bc35916258b0f0bf983c5d4730c00c424b77ca36a”
}
}

n8n version

1.114.4 (Self Hosted)

Stack trace

TypeError: fetch failed at node:internal/deps/undici/undici:13510:13 at post (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/[email protected]/node_modules/ollama/dist/browser.cjs:135:20) at Ollama.processStreamableRequest (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/[email protected]/node_modules/ollama/dist/browser.cjs:260:25) at ChatOllama._streamResponseChunks (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]_@opentelemetry+_60f0d301b61ccb017ebf3b2159d2cbcb/node_modules/@langchain/ollama/dist/chat_models.cjs:737:24) at ChatOllama._generate (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]_@opentelemetry+_60f0d301b61ccb017ebf3b2159d2cbcb/node_modules/@langchain/ollama/dist/chat_models.cjs:694:26) at async Promise.allSettled (index 0) at ChatOllama._generateUncached (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]_@o_8765aa945f981de137f9a48155aa0f8f/node_modules/@langchain/core/dist/language_models/chat_models.cjs:254:29) at LLMChain._call (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/[email protected]_17db02c6e1ef0a594092b8d5476463d2/node_modules/langchain/dist/chains/llm_chain.cjs:162:37) at LLMChain.invoke (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/[email protected]_17db02c6e1ef0a594092b8d5476463d2/node_modules/langchain/dist/chains/base.cjs:91:28) at async Promise.all (index 34) at MapReduceDocumentsChain._call (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/[email protected]_17db02c6e1ef0a594092b8d5476463d2/node_modules/langchain/dist/chains/combine_docs_chain.cjs:188:29) at MapReduceDocumentsChain.invoke (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/[email protected]_17db02c6e1ef0a594092b8d5476463d2/node_modules/langchain/dist/chains/base.cjs:91:28) at processItem (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/@n8n+n8n-nodes-langchain@file+packages+@n8n+nodes-langchain_fc553bfe732254ec5207074cf9e2ceb7/node_modules/@n8n/n8n-nodes-langchain/nodes/chains/ChainSummarization/V2/processItem.ts:99:10) at ExecuteContext.execute (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/@n8n+n8n-nodes-langchain@file+packages+@n8n+nodes-langchain_fc553bfe732254ec5207074cf9e2ceb7/node_modules/@n8n/n8n-nodes-langchain/nodes/chains/ChainSummarization/V2/ChainSummarizationV2.node.ts:367:23) at WorkflowExecute.executeNode (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core_@[email protected]_@[email protected]_08b575bec2313d5d8a4cc75358971443/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:1091:8) at WorkflowExecute.runNode (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core_@[email protected]_@[email protected]_08b575bec2313d5d8a4cc75358971443/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:1272:11) at /usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core_@[email protected]_@[email protected]_08b575bec2313d5d8a4cc75358971443/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:1673:27 at /usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core_@[email protected]_@[email protected]_08b575bec2313d5d8a4cc75358971443/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:2287:11
1 Like

Can anyone help me

Can anyone help me

Can anyone help me

hey @Rex_Mundi check these out they will help.

https://onurbolaca.medium.com/n8n-self-hosting-what-the-docs-can-teach-part-1-96b25230cb99
from medium article

and for n8n cloud these are timeout for cloud:

1 Like

That’s another thing. Workflow limit could be e.g. 2 hours, but “OpenAI” nodes like “Message a Model” will timeout after 5 minutes

For some other nodes e.g. “OpenAI Chat Model” you can choose timeout in Options and set whatever you need to, but not for this particular node

1 Like

What happens when you use the Base URL in “Ollama Chat Model” but in the “OpenAI Chat Model” node?
Maybe that will work, but I’m not sure about the timeout..

1 Like

Hi thanks for your replies,

i just got now the E-Mail for this forum.

I have everything selfe hostet and there is no ai node like chatgpt

i only use ollama chat model and ollama embedings.

I have set

- EXECUTIONS_TIMEOUT=36000
- EXECUTIONS_TIMEOUT_MAX=36000

and
docker compose --profile cpu up

but the nodes still timeout after 5 minutes.

I mean try using the OpenAI Chat Model node


but change the Base URL to point to Ollama..

I’m not sure if this will work I’m just assuming, since I don’t have Ollama installed.