I’ve set an instance of n8n behind a reverse proxy Apache, with n8n basic authentication
I can connect, browse, open WFs despite this orange message à top right, but I can’t execute them :
## Problem running workflow
There was a problem running the workflow: No active connection to server. It is maybe down.
Thank you
I used 3 load-balanced reverse proxies, could it be the root cause despite n8n uses rest APIS ?
I’ve got no issue if I use a single reverse proxy with the same configuration for an other n8n instance
How do you detect this lost connection Jan ? I suppose you don’t trigger a socket to the caller of course.
Do you read 0 characters from the caller or something like that ? I need to know to inverstigate a little more proxy side - thanks Jan
There is no special code for that. All it does is that it tries to connect and if it can not or if the connection gets closed it displays “connection lost”.
It is not using WebSocket it is using Server-sent Events (EventSource) for that. For them to work properly through a reverse proxy it has to get configured in a special way. Examples for that can be found in the topics I linked above.
So I will dig the config for SSE indeed …
Just a little thing seen with tcpdump, at the first GET after basic authentication, I can see this strange answer, is it linked ?
Uh, that is bad. Sorry but if there is no way to make SSE work then I can sadly not think of a way right now to use the n8n-Editor as it relies on it. But still very surprised. Extra chose that technology as it is very simple and is supported by almost everything.