I’m having trouble with my n8n workflow on a Docker container. It used to work fine but now it’s acting up. The workflow takes an image from a web UI and stores it on the server. But now when I trigger it, it just hangs forever and gives a 500 error. The n8n UI shows it as “running…” non-stop. The file does get written, but it’s corrupt and can’t be opened as an image.
The logs show some issue with moving the file from a temp folder to the final location. I’ve tried asking ChatGPT for help, but no luck. Any ideas on how to fix this or what might be causing it? I’d rather not start from scratch if I can avoid it.
Here’s a simplified version of my workflow:
{
"nodes": [
{
"name": "Start",
"type": "n8n-nodes-base.start",
"position": [100, 200]
},
{
"name": "API Endpoint",
"type": "n8n-nodes-base.webhook",
"position": [300, 200],
"parameters": {
"httpMethod": "PUT",
"path": "upload-image"
}
},
{
"name": "Save Image",
"type": "n8n-nodes-base.writeBinaryFile",
"position": [500, 200],
"parameters": {
"fileName": "=/uploads/{{ $json.filename }}.jpg"
}
}
]
}
Any help would be appreciated!