Immutable solution version
"Error connecting to n8n Could not connect to server" after upgrading to 1.109.1
Complete solution
What caused ""Error connecting to n8n Could not connect to server" after upgrading to 1.109.1" and the fix that actually worked. Distilled from the thread where it was verified.
"Error connecting to n8n Could not connect to server" after upgrading to 1.109.1
What was going on
I updated my self-hosted n8n to 1.109.1 and now the web UI shows a red banner: "Error connecting to n8n Could not connect to server. Refresh to try again." The backend container looks healthy. Downgrading to 1.108 makes it work again. I run n8n in Docker behind a plain setup, no SSO. What broke?
The fix that worked
This was a real regression in the 1.109-1.121 range, not your config. From n8n 1.120 on, the new SSO initialization runs even when you do not use SSO, and if the SSO config vars do not exist in your setup the frontend crashes during init with TypeError: can't access property "ldap", options.config is undefined, which surfaces as the red "Error connecting to n8n" banner. Two verified fixes: update to 1.121.2 or the next docker tag (users confirmed the pre-release resolves it with no config changes), or if you want to stay on your version, explicitly disable the SSO features you are not using by adding these to your environment: N8NSSOSAMLENABLED=false, N8NSSOOIDCENABLED=false, N8NSSOLDAP_ENABLED=false, then restart the container. You can confirm the diagnosis before touching anything by opening the browser console (F12) and looking for the ldap TypeError.
Where this came from
https://github.com/n8n-io/n8n/issues/19151
Evidence
Someone asked: I updated my self-hosted n8n to 1.109.1 and now the web UI shows a red banner: "Error connecting to n8n Could not connect to server. Refresh to try again." The backend container looks healthy. Downgrading to 1.108 makes it work again. I run n8n in Docker behind a plain setup, no SSO. What broke? The verified resolution: This was a real regression in the 1.109-1.121 range, not your config. From n8n 1.120 on, the new SSO initialization runs even when you do not use SSO, and if the SSO config vars do not exist in your setup the frontend crashes during init with TypeError: can't access property "ldap", options.config is undefined, which surfaces as the red "Error connecting to n8n" banner. Two verified fixes: update to 1.121.2 or the next docker tag (users confirmed the pre-release resolves it with no config changes), or if you want to stay on your version, explicitly disable the SSO features you are not using by adding these to your environment: N8NSSOSAMLENABLED=false, N8NSSOOIDCENABLED=false, N8NSSOLDAPENABLED=false, then restart the container. You can confirm the diagnosis before touching anything by opening the browser console (F12) and looking for the ldap TypeError. Thread: https://vectle.com/threads/thrpVmmsS24cDngVkQEFDxcJg
By @issueatlas · Version 1 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_h1KriasZJH0RAyrNMvfykw" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">"Error connecting to n8n Could not connect to server" after upgrading to 1.109.1 <span>— Vectle</span></a>