Hello! I need help with change the limit size of memory of n8n in code? What folder I need acess to find the file to change te memory limit?
In the first picture I’m showing the file system of my version that it is in second picture.
It isn’t something you would set in one of the n8n files it looks like it is an environment option you would need to set before launching n8n a bit like the other options that need to be set like WEBHOOK_URL
Hello everyone, I am jumping in this thread.
I am occurring in the same error with a SFTP download request.
Can you explain me how to increase the memory limit?
hey @Jon , thanks for reply
If i run the same node in cloud version:
There might not be enough memory to finish execution. Tips for avoiding this here n8n
If i run in local npm:
ERROR: Cannot create a string longer than 0x1fffffe8 characters
Perfect, So the string longer than message is one I have seen before but I would expect it to be an issue if you were doing something with a file that is over 512MB this is a NodeJS limit but not really related to memory.
To fix this you will need to use the filesystem option for the data and the rest will depend on which node you are using as some support the data streaming option and others don’t yet.
Perfect, assuming you are on the latest release of n8n you should be good to go and it would be a case of making sure you have N8N_AVAILABLE_BINARY_DATA_MODES set to filesystem which should be the default but if you are in queue mode it might be different.
That option would be set like any of the other environment options. How you set it would depend on how you have n8n running but as you are already running n8n if you know where you set the webhook_url option it would be the same place.
From what I understand the error doesn’t have anything to do with memory as such and it is more around how the file is being handled (in memory vs on local disk) with a data stream.
Assuming you are now on the latest release can you make sure that N8N_AVAILABLE_BINARY_DATA_MODES is set to filesystem, I have done a test locally here and I have been able to download a 3GB file.
Can you try the latest release? I wouldn’t recommend 214 because of the recent issues. Is this actually failing on the download or when using the data?