I’m running n8n in a Docker container on my local machine. I have a basic automation that receives data through a webhook trigger and saves binary files using a file writer node. The file writer saves data to a folder that’s mapped from the container to my host system.
The workflow was working fine until I made some changes to install an image metadata library. Now when the webhook gets triggered, the execution never completes and shows as running forever in the n8n interface. The API call returns a 500 error. Files do get created in the target folder but they’re corrupted and can’t be opened as images.
The logs show an error about moving files from temp storage to the final binary data location, but the files seem to be there. Here’s my workflow setup:
{
"name": "save-photo-upload",
"nodes": [
{
"parameters": {},
"name": "Trigger",
"type": "n8n-nodes-base.start",
"typeVersion": 1,
"position": [150, 300],
"id": "start-node-123"
},
{
"parameters": {
"fileName": "=/uploads/images/{{ $json.query.imageName }}.png",
"dataPropertyName": "=fileData",
"options": {}
},
"name": "Save File",
"type": "n8n-nodes-base.writeBinaryFile",
"typeVersion": 1,
"position": [800, 300],
"id": "file-writer-456"
},
{
"parameters": {
"authentication": "headerAuth",
"httpMethod": "POST",
"path": "photo-upload-handler",
"responseMode": "lastNode",
"options": {}
},
"name": "HTTP Receiver",
"type": "n8n-nodes-base.webhook",
"typeVersion": 1,
"position": [400, 300],
"webhookId": "webhook-789",
"id": "http-trigger-101"
}
],
"connections": {
"HTTP Receiver": {
"main": [[
{
"node": "Save File",
"type": "main",
"index": 0
}
]]
}
},
"active": true
}
The error shows: ENOENT: no such file or directory, rename '/home/node/.n8n/binaryData/temp/...' -> '/home/node/.n8n/binaryData/executions/...'
How can I debug this file handling issue? I don’t want to rebuild everything from scratch because I have custom configurations.