Webhook error - "ENOENT: no such file or directory"

Hello!

Sometimes i got an error in the webhook node then sending a form-data for it from the react app.
Im always sending 3 files and some data. In the n8n logs i can see same error message.

Error message:

Error: ENOENT: no such file or directory, stat ‘/tmp/d2b1a934fb1625ffca0e95509’\n at stat (node:internal/fs/promises:1032:18)\n at BinaryDataService.copyBinaryFile (/usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/BinaryData/BinaryData.service.js:78:30)\n at copyBinaryFile (/usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/NodeExecuteFunctions.js:869:12)\n at Object.copyBinaryFile (/usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/node-execution-context/webhook-context.js:27:69)\n at Webhook.handleFormData (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Webhook/Webhook.node.js:259:57)\n at Webhook.webhook (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Webhook/Webhook.node.js:186:20)\n at Workflow.runWebhook (/usr/local/lib/node_modules/n8n/node_modules/n8n-workflow/dist/Workflow.js:669:15)\n at Object.executeWebhook (/usr/local/lib/node_modules/n8n/dist/webhooks/webhook-helpers.js:154:33)

My n8n setup:

  • n8n version: 1.70.3
  • Database: SQLite
  • n8n EXECUTIONS_PROCESS: main
  • Running n8n via Docker with traefik

Docker-compose.yml:

version: “3”

services:
traefik:
image: “traefik”
restart: always
command:
- “–api=true”
- “–api.insecure=true”
- “–providers.docker=true”
- “–providers.docker.exposedbydefault=false”
- “–entrypoints.web.address=:80”
- “–entrypoints.web.http.redirections.entryPoint.to=websecure”
- “–entrypoints.web.http.redirections.entrypoint.scheme=https”
- “–entrypoints.websecure.address=:443”
- “–certificatesresolvers.mytlschallenge.acme.tlschallenge=true”
- “–certificatesresolvers.mytlschallenge.acme.email=${SSL_EMAIL}”
- “–certificatesresolvers.mytlschallenge.acme.storage=/letsencrypt/acme.json”
ports:
- “80:80”
- “443:443”
volumes:
- ${DATA_FOLDER}/letsencrypt:/letsencrypt
- /var/run/docker.sock:/var/run/docker.sock:ro

n8n:
image: n8nio/n8n:1.70.3
restart: always
ports:
- “127.0.0.1:5678:5678”
labels:
- traefik.enable=true
- traefik.http.routers.n8n.rule=Host(${SUBDOMAIN}.${DOMAIN_NAME})
- traefik.http.routers.n8n.tls=true
- traefik.http.routers.n8n.entrypoints=web,websecure
- traefik.http.routers.n8n.tls.certresolver=mytlschallenge
- traefik.http.middlewares.n8n.headers.SSLRedirect=true
- traefik.http.middlewares.n8n.headers.STSSeconds=315360000
- traefik.http.middlewares.n8n.headers.browserXSSFilter=true
- traefik.http.middlewares.n8n.headers.contentTypeNosniff=true
- traefik.http.middlewares.n8n.headers.forceSTSHeader=true
- traefik.http.middlewares.n8n.headers.SSLHost=${DOMAIN_NAME}
- traefik.http.middlewares.n8n.headers.STSIncludeSubdomains=true
- traefik.http.middlewares.n8n.headers.STSPreload=true
- traefik.http.routers.n8n.middlewares=n8n@docker
environment:
- N8N_BASIC_AUTH_ACTIVE=true
- N8N_BASIC_AUTH_USER
- N8N_BASIC_AUTH_PASSWORD
- N8N_HOST=${SUBDOMAIN}.${DOMAIN_NAME}
- N8N_PORT=5678
- N8N_PROTOCOL=https
- NODE_ENV=production
- WEBHOOK_URL=https://${SUBDOMAIN}.${DOMAIN_NAME}/
- GENERIC_TIMEZONE=${GENERIC_TIMEZONE}
- EXECUTIONS_PROCESS=main
- EXECUTIONS_DATA_PRUNE=true
- EXECUTIONS_DATA_MAX_AGE=336
- DB_SQLITE_VACUUM_ON_STARTUP=true
- N8N_EMAIL_MODE=smtp
- N8N_SMTP_HOST=smtp.hosting.com
- N8N_SMTP_PORT=465
- [email protected]
- N8N_SMTP_PASS=${MAIL_PASS}
- [email protected]
volumes:
- ${DATA_FOLDER}/.n8n:/home/node/.n8n
- /local-files:/files

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Hey @coldnaked

Welcome to the community! If this happens intermittently, judging by the logs, it might be missing the file(s) on some executions.

Can you share the workflow so I can better understand the steps? What are you sending from the react app?

Thanks

I send 3 jpeg files about 10 mb each file.
And seems like n8n webhook doesn`t like some of them sometimes.

It’s hard to tell what the issue might be since it’s intermittent. can you share the workflow you’re testing from? Are you able to test this on our cloud?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.