IMDTouchKnowledge BaseShop main store

Troubleshooting

Why WinCC Unified swaclogin is unavailable behind a reverse proxy

HMI and touchscreens Published 6 min read By IMDTouch engineering team

Short answer

The message means the browser could not finish the web single sign-on exchange at the swaclogin endpoint, so the fault sits in the access path, not the project. Through an HTTPS reverse proxy the causes are a public name the certificate does not cover, dropped Host or authentication headers, blocked secure cookies, CORS from origin rewriting, no WebSocket forwarding, or a 502 from wrong backend routing. A client VPN works because it preserves routing and trust; check the proxy causes in that order.

On this page
  1. The message names the identity provider, not the project
  2. Why the VPN path works and the proxy path fails
  3. The checks, in order
  4. Reading the browser evidence
  5. Worked example: swaclogin for a panel published as hmi.example-plant.com
  6. The decision for production access
  7. Questions asked

When a browser shows /umc-sso/swaclogin is unavailable, the runtime is reporting one thing: the identity provider that completes web single sign-on could not be reached, so the login exchange stopped before the project loaded. Direct access and a client VPN keep working because they preserve the plant's internal routing and the certificate trust the browser already has, while an HTTPS reverse proxy breaks the exchange by changing the public name, dropping the headers and cookies the sign-on needs, or failing to route to the identity provider. Work the checks below in order — name and certificate, identity provider reachability, routing, headers, cookies, CORS, WebSocket — and let the browser's own error tell you which one fired.

The message names the identity provider, not the project #

Siemens documents the SwacLogin error as displayed when the identity provider cannot be accessed. The path /umc-sso/swaclogin is where the browser is redirected to sign on; on a Unified Comfort Panel or a PC station with central user management that service is a UMC server, and it runs locally where no central server is configured. If the browser cannot load that address over the path in use, the runtime reports the endpoint as unavailable. Nothing in this chain involves tags, screens or the compiled project, so leave reinstalling and recompiling alone until the browser reaches the identity provider. Browser sign-on is also a separate mechanism from runtime autologin, a distinction covered in why WinCC Unified autologin works only on the runtime server.

Why the VPN path works and the proxy path fails #

A client VPN extends the plant network to the browser: internal names resolve, internal certificates validate, and no middlebox touches the exchange. The HTTPS reverse proxy does the opposite. It terminates TLS under a public name, opens a fresh connection to the backend, and has to reproduce everything the sign-on expects — one origin, the original headers, the secure cookie, the WebSocket upgrade. Every point where the proxy's version of the exchange differs from the direct one is a candidate cause. The same one-path-up, one-path-down pattern explains why HMI remote access fails while PLC access still works.

The checks, in order #

  1. Name and certificate. The name typed into the browser must be covered by the certificate the browser receives on port 443. A proxy that publishes a public name while presenting a certificate issued to the internal computer name fails right here: the browser aborts with NET::ERR_CERT_COMMON_NAME_INVALID and the sign-on request is never sent. Assign a certificate that covers the public name and trust it on the clients; never switch off certificate validation to get past this check.
  2. Identity provider reachability. Type the identity provider's address directly into the same browser over the same proxy path. If it does not load, nothing downstream can work, so correct the route to the UMC or user-management host before touching anything else.
  3. Backend routing. An HTTP 502 on the swaclogin request means the proxy accepted the browser's request but could not reach its own upstream. Repoint the route at the host and port that actually serve the identity provider.
  4. Headers. The proxy must pass the Host, Referer and authentication-related headers through unchanged. The sign-on compares addresses across the exchange, and a Host header rewritten to an internal name breaks that comparison.
  5. Cookies. The secure authentication cookie set during the exchange must survive the proxy and satisfy the browser's SameSite rules, which is easiest when the whole sign-on stays on one public origin.
  6. CORS. Pages served from one name while scripts call another produce CORS failures in the console. Keep a single public origin end to end instead of rewriting origins mid-exchange.
  7. WebSocket. After login, the web client keeps a WebSocket connection to the runtime. The proxy must forward the upgrade, or users sign in successfully and then watch screens with no live values.
  8. Client-side state. A deleted browser cache is a documented cause of SwacLogin errors after a complete download; the documented remedy for Chrome and Edge is to enter the identity provider's address directly in the address bar. Also rule out a manually configured proxy in the Windows proxy settings on the client, and several Unified versions installed side by side on one PC.

Reading the browser evidence #

Press F12, open the Network tab, reload the public address and watch the swaclogin request. The signatures separate cleanly:

  • NET::ERR_CERT_COMMON_NAME_INVALID on the request: the name and certificate do not match — check 1.
  • HTTP 502 returned by the proxy: the upstream route is wrong — check 3.
  • CORS errors in the Console tab: two origins are in play — check 6.
  • A sign-on response whose cookie the browser flags as blocked: the cookie path is broken — check 5.
  • A WebSocket request that stays pending or closes at once: the upgrade is not forwarded — check 7.

The repair is verified only when the swaclogin request completes under the public name, the login lands in the runtime, and the connection stays up with values updating.

Worked example: swaclogin for a panel published as hmi.example-plant.com #

Inputs, each an example value for this case:

  • Public name in the address bar: hmi.example-plant.com; the failing endpoint has the form https://<host>/umc-sso/swaclogin.
  • Proxy public listener: HTTPS on port 443, the standard HTTPS port.
  • Runtime and identity provider: a single host on the plant network, example address 192.168.1.50.
  • Certificate on the listener: issued to the internal computer name only, an example condition.
  • Observed browser result: NET::ERR_CERT_COMMON_NAME_INVALID on the swaclogin request, the signature this failure produces when the name check fires.

The rule, in words: the sign-on completes only when three preconditions all hold, and the browser meets them in order — the public name is covered by the certificate the browser sees, the identity provider's address loads over the same path, and the proxy passes the headers, the secure cookie and the WebSocket upgrade unchanged.

The arithmetic, written out:

  • Name check: certificate entries equal to hmi.example-plant.com = 0 of 1 — fail; the browser stops before sending anything.
  • Path check, run from a VPN session for comparison: the identity provider at 192.168.1.50 loads — pass, 1 of 1.
  • Forwarding checks: not reached, because the failed name check sent no request to the proxy.
  • Tally: 1 passed (path) + 0 passed (name) + 0 tested (forwarding) = 1 of 3 preconditions, and the first one the browser tested is the one that failed.

Result: the unavailable message comes from the public certificate, not from the runtime, the UMC host or the project; the VPN pass proves the panel itself is healthy.

Decision: assign a certificate that covers hmi.example-plant.com to the proxy's port 443 listener, trust it on the client browsers, and rerun the trace. The proxy path is production-ready only at 3 of 3 preconditions; if the public name cannot be covered, or a later check reveals a header, cookie or upgrade the proxy cannot pass, that single failure is the threshold — stop tuning the proxy and run production access over the client VPN.

The decision for production access #

Keep the reverse proxy only with a clean trace: public name covered and trusted, identity provider reachable through the proxy, headers and secure cookie passing, WebSocket forwarded, one origin throughout. Anything less and the client VPN is the production path — it already works in this failure. If the VPN later carries the web client but not the engineering traffic, that split is covered in why TIA Portal V20 cannot reach WinCC Unified PC Runtime over VPN.

One safety note: a web client that can issue commands carries the same responsibility as the local panel, so keep its logins individual, its writes behind the runtime's user rights, and the machine's local stop independent of every remote path.

Questions asked

Does swaclogin is unavailable affect the panel's local screen too?

No. The message belongs to the browser sign-on path; the runtime on the panel keeps running and the local screen keeps its own local logins. That is also the fastest reassurance for an operator: show the machine running locally while the web path is repaired.

Can the reverse proxy present its own certificate for the public name?

Yes. The proxy can terminate TLS with a certificate it owns for the public name and open a separate encrypted connection to the runtime on the plant network. The certificate on the proxy's public listener is the one every client browser must trust; the runtime's internal certificate then never leaves the plant network.

Is a self-signed certificate acceptable for the public name?

Only in a lab. The exchange completes if every client browser has imported and trusts that certificate, but one client that missed the import shows the same unavailable message, and a lost laptop means generating and redistributing the certificate. For production, use a certificate from a CA the client browsers already trust.

Should the runtime's port be opened directly to the internet instead?

No. Publish only through the reverse proxy or the client VPN, with TLS and the runtime's user management in front of every command. A directly exposed runtime loses the single public name, the proxy's TLS endpoint and its request logging, and hands the internet a straight path to the operator controls.

Keep reading

  • Troubleshooting

    WinCC Unified PC Runtime firewall blocks TIA Portal download

    When a TIA Portal V21 download to a WinCC Unified PC Runtime server works only with the firewall off, the installer's firewall exceptions are missing. Run the Security Controller installed with the runtime and reapply its security settings, then compare the server's inbound rules against the port list in the WinCC Unified readme's Security information section.

    HMI and touchscreens

  • Troubleshooting

    Why WinCC Unified Autologin Works Only on the Runtime Server

    The automatic login you enable in SIMATIC Runtime Manager authenticates only a browser session opened on the WinCC Unified Runtime server itself. A browser on another computer is an external web client and always requires its own login, even when the server-side autologin user and password are configured correctly.

    HMI and touchscreens

  • Troubleshooting

    Why WinCC Unified WebRH opens an empty login page

    When the WinCC Unified welcome page loads but the WebRH runtime page stays blank, the web server and the project are running and the fault sits in the login hand-off or the browser. Restart the runtime host and reload the project first, which cleared one reported system, then match the URL to the identity-provider access method and retest in Edge, which cleared a second system where Firefox stayed blank.

    HMI and touchscreens

Connect an S7-400H to WinCC Professional with a Device Proxy