Resolving UMC Server Connection Error in TIA Portal V20

David Krause10 min read
SiemensTIA PortalTroubleshooting
Licensed PE Working through this on a live machine? A Maine-licensed engineer can take it from here — included with IMD hardware, by the hour for everything else. Book an engineer

Resolving UMC Server Connection Error in TIA Portal V20

Scope. This reference covers the "UMC Agent cannot be connected to the server: UM Ring Server ... cannot be reached" error encountered when configuring the UMC Agent inside TIA Administrator, the related central user synchronization failures (including reported error code 4), and the supporting network, firewall, service, and permission checks required to restore connectivity between TIA Portal V20 engineering workstations and a UMC 2.15 ring server hosted on a virtual machine.

1. Problem Overview

Central user management (UMC) in TIA Portal V20 depends on three logical roles:

  • UMC Server — a Univention-based VM hosting the directory service, UMC WebUI, and the Ring Server instance.
  • UMC Agent — installed on every TIA Portal engineering workstation; registers with the ring server and brokers logons.
  • Ring Server — the redundant messaging backbone between agent and server that maintains session state and replication status.

The failure mode reported in the field presents as:

The UMC Agent cannot be connected to the server: UM Ring ServeR ... cannot be reached

Symptoms observed in production environments (TIA Portal V20 Update 3 paired with UMC 2.15):

  • DNS resolution of the server hostname succeeds (ping <umc-server> returns a valid IP).
  • UMC WebUI is reachable on the server VM via https://<umc-server>/univention/management/.
  • TIA Administrator fails when adding the agent or saving the server configuration.
  • Subsequent synchronization attempts fail with error code 4 even when the administrator password has been reset.

2. UMC 2.15 Network and Port Reference

The UMC ring topology relies on a fixed set of TCP ports. Any firewall, anti-virus, or Windows Defender rule blocking these sockets breaks agent-to-ring-server connectivity while leaving DNS and ICMP untouched, which is why ping succeeds while the agent registration fails.

Port Protocol Purpose Direction
443 HTTPS UMC WebUI and agent enrollment handshake Agent → Server
7389 LDAPS LDAP queries against Univention directory Agent → Server
6669 Custom TCP Ring Server inter-node messaging (replication, heartbeat) Agent ↔ Server
11311 UDP/TCP Optional ring diagnostics and auxiliary services Agent ↔ Server
Field tip. Port 6669 is the silent failure point in most deployments. ICMP and HTTPS succeed because they fall outside the Windows Firewall profile rules pushed by managed anti-virus products. Validate with Test-NetConnection <umc-server> -Port 6669 from the engineering workstation before touching any other configuration.

3. Root Cause Analysis

The error string "UM Ring Server ... cannot be reached" is emitted by the UMC Agent when one or more of the following conditions is true:

  1. Service not started. The Windows service UMC Secure Communication is not running on the TIA Portal workstation. Without it, the local ring client cannot open a session against the remote ring server.
  2. Firewall blocking ring sockets. TCP 6669 (ring) or TCP 7389 (LDAPS) is being filtered by host firewall, perimeter firewall, or anti-virus HIPS module.
  3. Routing gap. The TIA Portal workstation can resolve the hostname but cannot route to the server IP (different VLAN, missing default gateway, or split-tunnel VPN). Siemens error #8000 1006 maps to "The UMC server refuses to establish the connection" and is frequently accompanied by routing-table mismatches.
  4. IIS / TLS configuration on the UMC VM. Missing NTFS rights on C:\Windows\TEMP for the IIS_IUSRS group break the UMC WebUI backend and indirectly block agent enrollment.
  5. Credential / sync drift. The UMC administrator password changed but the local cached secret in TIA Administrator was not refreshed; this surfaces as synchronization error code 4.

4. Pre-Flight Verification Checklist

Run these checks from the TIA Portal workstation before editing any server configuration:

  1. DNS resolution
    nslookup <umc-server-fqdn> — must return the same IP shown by the UMC WebUI host. Mismatch indicates split-brain DNS.
  2. TCP reachability (HTTPS)
    Test-NetConnection <umc-server> -Port 443 — must report TcpTestSucceeded : True.
  3. TCP reachability (LDAPS)
    Test-NetConnection <umc-server> -Port 7389
  4. TCP reachability (Ring)
    Test-NetConnection <umc-server> -Port 6669
  5. Optional diagnostics
    Test-NetConnection <umc-server> -Port 11311
  6. Local ring service
    Get-Service "UMC Secure Communication" — Status must be Running, StartType Automatic.
  7. Certificate trust
    Open https://<umc-server>/univention/management/ in Edge/Chrome on the TIA workstation. A certificate error here will silently break the agent even when TCP 443 is open.

5. Resolving the Agent-to-Ring Connection

5.1 Confirm UMC Secure Communication service

  1. Open services.msc on the TIA Portal workstation.
  2. Locate UMC Secure Communication.
  3. Set Startup type to Automatic.
  4. Click Start. If the service refuses to start, capture the event from Applications and Services Logs → UMC before contacting Siemens support.

5.2 Open ring ports on the engineering workstation firewall

Add an inbound and outbound rule per port for the TIA Portal subnet:

New-NetFirewallRule -DisplayName "UMC HTTPS" -Direction Inbound -Protocol TCP -LocalPort 443 -Action Allow -Profile Any
New-NetFirewallRule -DisplayName "UMC LDAPS" -Direction Inbound -Protocol TCP -LocalPort 7389 -Action Allow -Profile Any
New-NetFirewallRule -DisplayName "UMC Ring"  -Direction Inbound -Protocol TCP -LocalPort 6669 -Action Allow -Profile Any
New-NetFirewallRule -DisplayName "UMC Diag"  -Direction Inbound -Protocol TCP -LocalPort 11311 -Action Allow -Profile Any

Repeat for -Direction Outbound. Apply matching rules on every intermediate firewall between the workstation and the UMC VM.

5.3 Validate the temporary firewall-bypass test

To isolate the firewall as the failure variable, perform a controlled bypass:

  1. Disable Wi-Fi.
  2. Unplug every Ethernet cable except the one carrying UMC traffic.
  3. Temporarily disable Windows Firewall and any third-party HIPS.
  4. Retry the TIA Administrator connection.
  5. Re-enable all protections and restore cabling in the original order.

If the connection now succeeds, the failure is inside a rule — not in UMC itself — and the port list in Section 2 is the required scope of that rule.

5.4 Repair the UMC WebUI backend (TEMP permissions)

When the UMC WebUI returns "Unable to establish connection to server", the UMC Agent registration will also fail. The known fix is to grant the IIS worker account group read/write access to the Windows temp directory:

  1. On the UMC VM, open %SystemRoot%\TEMP.
  2. Right-click → Properties → Security → Edit.
  3. Add IIS_IUSRS with Modify permission.
  4. Apply, then restart the W3SVC service.

6. Resolving Synchronization Error Code 4

Error code 4 surfaces during the Synchronize with UMC server step inside TIA Administrator, even after the agent has successfully registered and the administrator password has been reset. The two confirmed causes are:

  1. Stale cached credential. TIA Portal caches the UMC service account secret under the current Windows user profile. Changing the password in the UMC WebUI does not invalidate that cache.
  2. Ring client not converged. After a server-side restart, the local UMC ring client requires a full handshake before accepting provisioning requests.

6.1 Clear the credential cache

  1. Close TIA Portal completely (including the TIA Administrator helper process).
  2. Open Credential Manager → Windows Credentials.
  3. Remove every entry whose Internet or Network address contains the UMC server hostname or IP.
  4. Restart TIA Portal and re-enter the administrator credentials in TIA Administrator.

6.2 Force ring re-convergence

  1. Reboot the UMC VM and wait for the ring daemon to report READY in /var/log/univention/ring.log.
  2. Reboot every engineering workstation that hosts a UMC Agent.
  3. If the first cycle does not clear error code 4, perform a second paired reboot (server first, then agent) — multiple reboot cycles are an accepted field workaround until the issue is reproduced in a Siemens fix pack.

7. TIA Administrator Agent Configuration Procedure

After the network, service, and credential prerequisites are satisfied, configure the agent:

  1. Start TIA Administrator from the TIA Portal installation group.
  2. Select Central user management → Agents → Add.
  3. Enter the fully qualified domain name of the UMC server (do not prefix https://; the agent resolves the scheme from the service definition).
  4. Provide the UMC administrator username (default Administrator) and the current password.
  5. Click Test connection. Expected result: "Connection to server established successfully."
  6. Click Apply to register the agent.
  7. Trigger Synchronize with UMC server. Expected result: no error code, role mappings populated under User roles.
Hostname format. Use the FQDN registered in the Univention UCS DNS, not a short NetBIOS name. The ring client validates the certificate against the FQDN; short names cause silent TLS rejection that mimics a port-block symptom.

8. Verification and Acceptance Tests

Run the following matrix after every change set. Record results in the commissioning log.

Test Expected Result Failure Points To
Test-NetConnection ... -Port 443 TcpTestSucceeded True Perimeter firewall / NAT
Test-NetConnection ... -Port 7389 TcpTestSucceeded True Anti-virus HIPS rule
Test-NetConnection ... -Port 6669 TcpTestSucceeded True Windows Firewall profile / VLAN ACL
Service "UMC Secure Communication" Running, Automatic Services.msc startup dependency
TIA Administrator → Test connection Established Re-run Section 5.1–5.4
TIA Administrator → Synchronize No error code, roles populated Section 6 credential cache + reboot
UMC WebUI login from agent PC No certificate warning Import UCS CA into Trusted Root CAs

9. Known Issues and Field-Confirmed Caveats

  • UMC 2.15 + TIA Portal V20 Update 3. Combination is reproducible for ring connection errors and synchronization error code 4. Apply the latest TIA Portal V20 service pack and the matching UMC 2.15 patch before opening a support ticket.
  • Hidden certificate warnings. Some managed browsers suppress TLS warnings behind a "continue anyway" prompt. The ring client does not bypass the warning — it fails the handshake. Distribute the Univention UCS root CA via Group Policy before commissioning.
  • Anti-virus DLL injection. Real-time anti-virus modules injecting into the UMC Secure Communication process can delay heartbeats past the ring timeout, producing intermittent "cannot be reached" errors even with all ports open. Add the UMC installation directory to the AV exclusion list.
  • Split-horizon DNS. When the TIA Portal workstation and the UMC VM live on different DNS views (common in DMZ designs), name resolution may succeed but route to the wrong IP. Pin the server IP in the workstation's hosts file only as a temporary diagnostic step, never as a production fix.
  • Multi-reboot workaround. Multiple coordinated reboots of the server VM and the agent workstation have cleared the symptom in the field. Treat this as a temporary mitigation, not a root-cause fix, and escalate a diagnostic bundle to Siemens support.

10. Escalation Bundle Checklist

If the ring connection still fails after executing Sections 4 through 7, open a Siemens support request with the following artefacts:

  • Output of Test-NetConnection for ports 443, 7389, 6669, and 11311.
  • Export of Windows event log "Applications and Services Logs / UMC" (.evtx).
  • UMC VM logs: /var/log/univention/ring.log and /var/log/syslog.
  • Screenshot of the TIA Administrator error dialog including the exact wording of the ring error.
  • Result of Get-Service "UMC Secure Communication" on every engineering workstation.
  • Installed software list for TIA Portal (InstalledApps.csv from the TIA installation directory).
  • UMC server version output from univention-app info umc on the VM.

11. Related Siemens Error Codes

Code Message First-Line Action
#8000 1006 The UMC server refuses to establish the connection Verify routing to server IP; verify TLS certificate trust
Ring error "cannot be reached" UM Ring Server unreachable Validate TCP 6669 and UMC Secure Communication service
Error code 4 Synchronization failed Clear credential cache; reboot pair; refresh UMC admin password
WebUI "Unable to establish connection to server" IIS backend cannot start Grant IIS_IUSRS Modify on %SystemRoot%\TEMP

12. References to Official Documentation

Authoritative sources for the procedures above:

What ports must be open between a TIA Portal workstation and the UMC server?

Open TCP 443 (HTTPS), TCP 7389 (LDAPS), and TCP 6669 (ring server). Port 11311 is optional for diagnostics. Use Test-NetConnection <umc-server> -Port 6669 as the primary reachability probe because port 6669 is the most commonly filtered socket.

Why does ping succeed while the UMC Agent shows "UM Ring Server cannot be reached"?

ICMP is not part of the UMC ring protocol. The error indicates that the ring client on the workstation cannot open a TCP session on port 6669, usually because Windows Firewall, anti-virus HIPS, or a perimeter ACL is blocking it while leaving ICMP untouched. The local service "UMC Secure Communication" must also be running.

How do I fix synchronization error code 4 after resetting the UMC administrator password?

Close TIA Portal, open Windows Credential Manager, delete every cached entry for the UMC server hostname or IP, restart TIA Portal, and re-enter the new administrator password in TIA Administrator. If the error persists, reboot the UMC VM first and then the engineering workstation to force the ring client to re-converge.

Do I enter the UMC server hostname with https:// in TIA Administrator?

No. Enter only the fully qualified domain name (for example umc-server.example.local). The UMC Agent selects the scheme from the service definition. Using the short NetBIOS name will cause silent TLS rejection; using https:// as a prefix will be rejected by the agent's URI parser.

What is the recommended mitigation for the UMC 2.15 / TIA Portal V20 Update 3 issue?

Validate ports 443, 7389, and 6669; verify the UMC Secure Communication service is set to Automatic and running; clear the credential cache; and perform coordinated reboots of the UMC VM and the agent workstation. If the error persists, escalate to Siemens support with the diagnostic bundle described in Section 10.

Back to blog