# "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: N8N_SSO_SAML_ENABLED=false, N8N_SSO_OIDC_ENABLED=false, N8N_SSO_LDAP_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