I have created a task that reads multiple rss files (18 files with 70k rows combined). Later, those entries are processed to generate a final CSV, that will be uploaded to an SFTP server.
This big task causes a JS memory leak that crashes n8n.
Now, I have splitted big task in three subtasks, doing next steps:
Reading first 9 rss and generate the csv files.
Reading last 9 rss and generate the csv files.
Concat all generated csv files into one big file and upload it to a SFTP.
I am using Mysql and I get next errors when executing all subtasks:
Failed saving execution data to DB on execution ID 1299 (3 times)
Warning: got packets out of order. Expected 3 but received 2
Any idea about the reason of this failure?
After execution, executed subtasks appear in Unknown state.
Is that mysql insert / update inside that split in batches loop then? I wonder if a slight pause with the wait node would work around it.
Another possible option that I think I would try would be to use the MySQL infile option on the query and just pass in the split file (or attempt the entire file).
That is not what I expected, When you said you was using MySQL I had assumed you were using it to save the data rather than using it for the service itself.
In that case as MySQL is sending the error back it could be worth looking into some MySQL tuning and checking the database logs to see if anything jumps out. Is it an error that can be easily reproduced like if someone else had the workflows would that be enough?
I would be tempted to start by tweaking max_allowed_packet in MySQL to see if that is causing the issue.