We have a new installation of n8n running in docker with traeffik behind a nginx proxy in another server (providing the SSL). We’ve had an issue we were investigating as when we hit “Execute Node” in the editor it systematically fails with a timeout and no error. Then when we try to stop it… we get an error (on the log) as:
Error: The execution id "1" could not be found.
common_docker_n8n | at /usr/local/lib/node_modules/n8n/dist/src/Server.js:1002:23
common_docker_n8n | at processTicksAndRejections (internal/process/task_queues.js:97:5)
common_docker_n8n | at async /usr/local/lib/node_modules/n8n/dist/src/ResponseHelper.js:70:26
Then we tried with another module and preapred an IMAP trigger configuration with the same result but just noticed that if we activate this imap workflow the whole n8n becomes unstable and hangs. A restart of the container does not boot now with the following error:
ln: /home/node/.n8n: File exists
common_docker_n8n | n8n ready on 0.0.0.0, port 5678
common_docker_n8n | Version: 0.86.1
common_docker_n8n |
common_docker_n8n | ================================
common_docker_n8n | Start Active Workflows:
common_docker_n8n | ================================
common_docker_n8n | - n8n tests
common_docker_n8n | ADD ID (active): 4
common_docker_n8n | => Started
common_docker_n8n | - g-calendar
common_docker_n8n | ADD ID (active): 6
common_docker_n8n | => Started
common_docker_n8n | - [email protected] imap test
common_docker_n8n | ADD ID (active): 10
common_docker_n8n | events.js:287
common_docker_n8n | throw er; // Unhandled 'error' event
common_docker_n8n | ^
common_docker_n8n |
common_docker_n8n | Error: self signed certificate
common_docker_n8n | at TLSSocket.onConnectSecure (_tls_wrap.js:1474:34)
common_docker_n8n | at TLSSocket.emit (events.js:310:20)
common_docker_n8n | at TLSSocket._finishInit (_tls_wrap.js:917:8)
common_docker_n8n | at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:687:12)
common_docker_n8n | at Socket.ondata (internal/js_stream_socket.js:72:22)
common_docker_n8n | at Socket.emit (events.js:310:20)
common_docker_n8n | at addChunk (_stream_readable.js:286:12)
common_docker_n8n | at readableAddChunk (_stream_readable.js:268:9)
common_docker_n8n | at Socket.Readable.push (_stream_readable.js:209:10)
common_docker_n8n | at TCP.onStreamRead (internal/stream_base_commons.js:186:23)
common_docker_n8n | Emitted 'error' event on Connection instance at:
common_docker_n8n | at TLSSocket._onError (/usr/local/lib/node_modules/n8n/node_modules/imap/lib/Connection.js:151:10)
common_docker_n8n | at TLSSocket.emit (events.js:310:20)
common_docker_n8n | at emitErrorNT (internal/streams/destroy.js:92:8)
common_docker_n8n | at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)
common_docker_n8n | at processTicksAndRejections (internal/process/task_queues.js:84:21) {
common_docker_n8n | code: 'DEPTH_ZERO_SELF_SIGNED_CERT',
common_docker_n8n | source: 'socket'
common_docker_n8n | }
common_docker_n8n exited with code 1
I’ve included our docker-compose setup too in case we are missing any configuration. I am not sure if both issue are at all related (test nodes not working and self certificate hang on boot)
version: "3"
services:
n8n:
image: n8nio/n8n
container_name: "${PROJECT_NAME}_n8n"
#command: n8n start --tunnel
restart: unless-stopped
networks:
- common_docker_net
volumes:
- /home/docker-user/.n8n:/root/.n8n
- /backups/n8n:/backups
healthcheck:
test: ["CMD-SHELL", "wget -q http://localhost:5678/ -O /dev/null"]
interval: 10s
timeout: 5s
retries: 5
labels:
- "traefik.http.services.${PROJECT_NAME}_n8n.loadbalancer.server.port=5678"
- "traefik.http.routers.${PROJECT_NAME}_n8n.rule=Host(`${PROJECT_BASE_URL}`)"
- traefik.docker.network=common_docker_net
networks:
common_docker_net:
external: true