I’m having trouble with my n8n setup in Docker. My workflow used to work fine. It takes image files from a web UI and saves them on the server. But now it’s not working right.
When I try to run it, it just hangs. The API call gets a 500 error. In the n8n UI, it shows as “running…” forever. The file does get saved, but it’s messed up. You can’t open it as an image.
The logs say there’s an issue moving the file from a temp folder to the final spot. But the file is there, so I’m confused.
I’ve tried asking ChatGPT for help, but I’m stuck. 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 simple version of my workflow:
const workflow = {
nodes: [
{
type: 'Webhook',
params: {
method: 'PUT',
path: '/upload-image'
}
},
{
type: 'SaveFile',
params: {
destination: '/images/{{filename}}.jpg'
}
}
]
};
Hey there, I have experienced similar issues with n8n workflows before. One technique that helped me was to adjust the file handling process by storing the file in a temporary directory first and then moving it to the final location. This approach lets you isolate where the issue might be occurring. It is also essential to verify that your Docker volume mounts and permissions are correctly configured because misconfigured volumes can lead to problems like this. Adding logging or error checks in your workflow can be critical in pinpointing the specific cause of the failure.
I’ve encountered similar issues with n8n workflows before. Based on your description, it seems like the problem might be related to file handling or network connectivity within the Docker environment. Have you tried increasing the timeout settings for your nodes? Sometimes, larger files or slower network connections can cause timeouts, leading to corrupted data. Additionally, check if there are any recent changes in your Docker configuration or network setup that could be affecting the workflow. It might also be worth monitoring the Docker container’s resource usage during execution to ensure it’s not hitting any limits.
sounds like a file permission issue. maybe the docker container doesn’t have write access to the final folder? try checking the permissions on /images/ directory and make sure n8n has full access. also, double-check ur disk space - if it’s full, that could cause weird errors. good luck troubleshooting!