I recently installed n8n using Docker (portioner) with the following configuration. However, I’m facing an issue where my workflows keep running indefinitely with an error message in the Docker console: “This session (id) is not registered.” Additionally, the JavaScript console consistently shows the error “problem stopping execution.”
Docker Configuration
Here is the Docker configuration I used for my n8n installation:
Checked Docker Logs: Verified that the Docker container logs show the session ID not being registered.
Reviewed Configuration: Ensured that the Docker configuration and environment variables are correctly set.
Checked Nginx Configuration: Confirmed that the Nginx reverse proxy settings are correct and the proxy is working as expected.
Reinstalled n8n: Attempted reinstalling n8n and recreating the Docker container, but the issue persists.
Versions
n8n Version 1.45.1
Debian 10 (through OVH VPS)
Request for Assistance
I’m seeking assistance to resolve these issues. Specifically, I need help with:
Understanding why the session ID is not being registered.
Fixing the “problem stopping execution” error in the JavaScript console.
Ensuring the Nginx reverse proxy is correctly configured for n8n.
Any insights or suggestions from the community would be greatly appreciated. If you have encountered similar issues or have any troubleshooting tips, please share them.
The proxy_http_version 1.1;, proxy_set_header Upgrade $http_upgrade; and proxy_set_header Connection "upgrade"; configuration settings are needed for the correct handling of WebSocket connections through a proxy. Without them, the proxy might treat the WebSocket connection incorrectly, leading to issues.
After modifying the Nginx configuration, don’t forget to reload the Nginx service to apply the changes:
sudo service nginx reload
After adding those lines and restarting Nginx, try accessing your n8n instance again to see if the issue is resolved.
[Edit:] One caveat I found is that if you’re using OVH VPS together with PLESK, then there’s no real option to have this configured in PLESK. The proxy entry in the additional nginx directives doesn’t seem to be followed. When putting this directly in the nginx.conf it is working as expected, but as soon as PLESK thinks it has to rewrite the config, it’s gone again.
Maybe somebody else has a solution for this.