Where we start from
Two instances in Docker Compose under aaPanel, both on SQLite. One follows the newest release, the other is deliberately pinned to a specific version. The flows run AI chatbots on websites, WhatsApp conversations, replies to comments on Facebook and Instagram, Telegram bots, webhooks from booking systems that send SMS and Telegram messages to staff, a support inbox in Chatwoot and automatic posting from RSS – for our own sites and for clients such as beauty salons and a furniture-assembly service.
1. One flow ate the history of all the others
A flow that ran every 50 seconds used up the whole limit of 10,000 saved executions. As a result, every other flow only had about three days of history, and the SQLite database grew to 547 MB, 417 MB of it history. The fix was to switch off saving successful executions for that one flow. The limit of 10,000 is n8n’s default, and it applies to the whole instance.
Lesson: look for flows that run more often than every five minutes, and decide for each one whether successful executions should be saved.
2. “Success” did not mean the SMS was sent
In a salon reminder workflow, 12 of 207 SMS were never sent, while every single run showed success. The JSON for the SMS gateway was built by concatenating text, and a \ in a service name made it invalid. The fix was JSON.stringify and an explicit check of whether the message was sent.
// Wrong: concatenated text – a " or \ in the name breaks the JSON
// const body = '{"to":"' + tlf + '","text":"Husk ' + service + ' i morgen"}';
// Right: build an object and let JSON.stringify handle the characters
const body = JSON.stringify({ to: $json.phone, text: `Husk ${$json.service} i morgen` });
return [{ json: { body } }];
// Code node after the HTTP Request to the gateway: stop if nothing was confirmed
const out = [];
for (const item of $input.all()) {
const r = item.json;
if (!r || !(r.id || r.messageId)) {
throw new Error(`SMS ikke bekræftet for ${item.json.to ?? 'ukendt modtager'}`);
}
out.push(item);
}
return out;
Lesson: monitor the result at the recipient, not just the status in n8n. A node set to “continue on error” can hide exactly the error you are looking for.
3. The AI models died under us
On 27 October 2026 several older OpenAI models stopped working. We moved all 56 workflows on both instances to new models, and by 11 November, 111 nodes were running on the new model. Since then, a daily routine looks for models that are about to be retired. How AI is used inside flows is collected at ai-automatisering.best-choice.dk.
4. $('Node').item stopped working
In n8n 1.x, an AI Agent can lose the output of the previous node after a tool call, so $('Node').item no longer points to anything. Use $('Node').all(…)[$itemIndex] or .first(). The error shows up as a customer who does not get a reply, not as a red execution.
5. Google Sheets said stop
Google Sheets has a per-minute quota for reads, and a loop in n8n hits it quickly. We added a 2.5-second wait and 5 retries 5 seconds apart on the Sheets nodes.
6. Tokens in URLs and webhooks without signatures
We found hard-coded bot tokens in URLs in 36 HTTP nodes spread over 12 workflows and moved them to credentials and environment variables. At the same time, all Meta webhooks got an HMAC check, so unsigned or tampered messages get a 403. The code is on the security page.
7. Chatwoot said “Vi er ikke tilgængelige”
Chatwoot 4.1 shows “Vi er ikke tilgængelige” (“We are not available”) in the chat widget unless working hours are switched on, because it only counts human agents as online. A bot does not count. The fix was to switch working hours on and set them to open around the clock.
8. Update with tests, or pin – but never blindly
Our routine checks both instances every hour, backs up all workflows every day and keeps them for 30 days. After every update a set of regression tests runs. We do not update the pinned instance, because it runs flows we do not want to risk having changed. That is a deliberate choice with a price: security fixes have to be followed manually.
How we keep it running without extra licences
n8n is only one part of it. Our own server runs 39 automated maintenance routines that keep an eye on operations, backups and deployments. Tests and builds run on 17 self-hosted GitHub runners on the same machine instead of paid runners.
Sources
- n8n – Execution data — default limits for saved executions, checked 19.11.2026
Questions about running n8n
Why are there gaps in my n8n history?
Probably because the limit of 10,000 saved executions has been reached, and a single frequent flow fills it. Switch off saving successful executions for that flow.
How do we catch errors that show as “success”?
Check the response from the recipient inside the flow, and stop with an error if the message was not confirmed. Build JSON with JSON.stringify.
How often should we back up n8n?
Daily for workflows and the database. Also keep the encryption key somewhere else, otherwise the credentials cannot be restored.
Should we pin n8n to a version?
Only if you have a reason and a plan for security fixes. Otherwise: update regularly, with a backup before and a test after.
Fixed price, no commitment
Get a fixed price for your n8n task
Tell us briefly what you use today and what you want to achieve. A person answers by e-mail with a proposal and a fixed price before any work starts.
- A fixed price before we start
- An answer by e-mail, no calls
- Your details are used only to answer you