Fix n8n large-file crashes by choosing compatible binary storage
Large-file crashes can come from binary data held in memory, a node that expands the file, or several executions loading files together. Changing storage addresses the first cause. It does not remove the memory needed to parse a spreadsheet, decompress an archive or build a buffer.
TL;DR: Check your n8n version and execution mode, then choose compatible persistent binary storage and retest the node that loads the file.
Large-file crashes can come from binary data held in memory, a node that expands the file, or several executions loading files together. Changing storage addresses the first cause. It does not remove the memory needed to parse a spreadsheet, decompress an archive or build a buffer.
Check the installed version before copying an environment variable. n8n's 3.0 announcement identifies 3.0 as beta and says it removes in-memory binary mode. Older documentation still describes memory as the default. Check the installed configuration before treating memory storage as the cause.
How do you tell whether binary storage caused the crash?
Run a copy of the failing workflow with a small harmless file. Then repeat with the original large file, keeping concurrency at one. Record the node where memory rises, the container memory limit, the restart time and any out-of-memory message. A successful download followed by a crash during extraction points toward processing memory, even when the file already lives on disk.
Repeat with several smaller files whose combined size is substantial. That test separates one unusually large object from accumulation across items. Finally, restore normal concurrency in the test environment. A workflow that succeeds alone can still exhaust a worker when several runs overlap. Save the measurements before changing settings; a restart can temporarily hide the same failure.
The n8n memory troubleshooting guide covers reducing execution data, splitting work and avoiding memory-heavy manual runs. Use the execution logs and container metrics together. A browser error alone does not establish that the server ran out of memory.

Which binary mode fits your n8n version?
First record the exact image tag and the values of EXECUTIONS_MODE and N8N_DEFAULT_BINARY_DATA_MODE. Inspect the running service configuration, rather than an old Compose file on your laptop. Check every worker as well as the main process.
The current binary configuration source chooses filesystem in regular execution mode and database in queue mode when no mode is supplied. This is current development source, so compare it with your installed release. It also defines a database file-size limit of 512 MiB by default and a maximum configurable limit of 1024 MiB.
The 3.0 migration notes remove the old default in-memory mode. They also describe the move from ~/.n8n/binaryData to ~/.n8n/storage. Review that migration before changing mounts. A directory collision or missing volume is a storage failure with different evidence from a heap crash.
For an older release that still uses in-memory mode, choose a persistent mode supported by that release. For a newer installation already using filesystem or database, investigate node buffers and concurrent workloads before expecting the same setting to lower memory again.

How do you configure storage for one instance or workers?
- For a regular single-instance deployment, use filesystem storage with a persistent writable volume and enough free space. Set
N8N_DEFAULT_BINARY_DATA_MODE=filesystemexplicitly when appropriate for your release. - For queue mode, use a backend shared through a supported mechanism. The binary storage guide now documents database mode and explicitly rejects filesystem mode with queue execution. Do not infer support from a shared network mount.
- Keep main and workers on matching versions and compatible storage settings. Verify the exact database-mode support in that release, especially on older 1.x or early 2.x installations. Do not confuse binary database mode with permission to run a distributed queue on SQLite.
- Restart the affected services, then verify a fresh production-style execution can write and retrieve its binary file. Confirm the persisted file remains available after a controlled service restart.
The Redis and worker deployment guide explains the surrounding topology. Redis hands out work; it does not make a main container's local binary directory available to another worker.
External object storage is another option when your plan and installed release support it. Check licensing, credentials and retention before selecting S3 or another backend. Changing the default mode affects new writes; preserve access to old storage until retained executions no longer need it.

How do you verify that the repair covers real file workloads?
Use a test matrix with the original large file, several smaller files and a small valid neighbor. Run each through the node that previously crashed. Check completion, output correctness and peak memory. Repeat at the concurrency used in production. These are acceptance checks to run on your own instance, not benchmark results from this article.
If storage succeeds but extraction still fails, reduce the amount processed at once or change the processing path. A persisted binary reference can still become a full buffer inside a node. Raising the heap limit without measuring that operation can simply move the failure to the container's overall memory ceiling.
Persistent growth across many small requests suggests a different investigation. The MCP SessionManager heap leak concerns retained sessions rather than the size of a binary payload. Match the repair to the growth pattern. The Automation Error Index covers other runtime failures.
FAQ
Does filesystem mode work with n8n queue mode?
No. n8n documents that combination as unsupported. Use a queue-compatible backend supported by your installed release, with consistent configuration across processes.
Does disk storage stop every large-file crash?
No. A node may still load or expand the whole file in memory. Measure the failing node and test concurrent runs after changing storage.
Should n8n 3.0 use the old default binary mode?
No. The 3.0 migration notes remove in-memory mode. Check the installed release and its migration report before changing storage paths or volumes.