Skip to content
Latest
VCF Operations 504 errors on the Upgrades tab: an expired SAML token
VMware Cloud Foundation December 4, 2026 6 min read

VCF Operations 504 errors on the Upgrades tab: an expired SAML token

This one cost me more time than it should have, mostly because every error pointed at the wrong component. I opened the Upgrades tab for a management domain in VCF Operations, expecting to see the plan for 9.1.2, and got four red banners instead. Then a password remediation failed with an error that made no sense. Both turned out to be the same thing: a browser session that had outlived its SSO token.

TL;DR

  • In VCF 9.1 the SDDC Manager screens run inside VCF Operations as a plugin, and their API calls go through a proxy in VCF Operations.
  • If your SSO session has expired, the plugin can’t get a new SDDC Manager token. The page still looks logged in, but its calls fail.
  • You see that as 504 errors on the Upgrades tab, or as password operations failing in pre validation with List of entities must be supplied for rotate operation.
  • The SDDC Manager nginx log proves where the problem is, and the common service log shows IDENTITY_SAML_TOKEN_EXPIRED.
  • Log out of VCF Operations properly, log back in, and try again.

The symptom

On the domain’s Upgrades tab:

Fetching custom patches for the domain failed. Http failure response for
https://ops.example.local/vcf-operations/plug/sddc-xx/plugin/api/v1/releases/domains/<domain id>/custom-patches: 504 OK
Fetching future releases for the domain failed. ... /future-releases: 504 OK
Fetching the upgrade plan failed. ... /bundles/domains/<domain id>: 504 OK
Fetching the upgrade plan failed. ... /releases/domains/<domain id>: 504 OK

A 504 is a gateway timeout. Something in the middle gave up waiting. The URLs make it look like SDDC Manager’s lifecycle service is too slow to answer, and working out releases for a domain involves the depot, so my first guess was a slow or unreachable depot.

SDDC Manager looked fine

uptime; free -m; df -h -x tmpfs -x devtmpfs; systemctl status lcm --no-pager | head -15

Load was 0.10, there was over 7G of memory available, no filesystem above 40%, and lcm had been active for two days with no restarts. Nothing that would explain timeouts.

Next I tailed the LCM log while refreshing the page:

tail -n0 -F /var/log/vmware/vcf/lcm/lcm-debug.log | grep --line-buffered -iE 'future-releases|custom-patches|releases/domains|bundles/domains|timeout|timed out|depot|exception'

The page requests didn’t appear at all. The only thing that came up was this:

ERROR vcf_lcm ... class="c.v.v.vapi.vsphere.VcenterVapiHelper" method="invoke"
Exception occurred during VC vAPI invocation
InternalServerError ... defaultMessage = Error in method invocation 'str' object has no attribute 'tzinfo'

That looks like a great lead. It isn’t. The full stack trace shows it comes from MessageAnnouncementService.postAnnouncementsToVcenters, a scheduled job that pushes SDDC Manager banner messages into vCenter. vCenter is choking on a date somewhere in that API. It runs on a timer, it has nothing to do with the Upgrades page, and the worst it does is stop those banners from showing up in vCenter. I’m leaving it until that vCenter is upgraded.

The nginx log settles it

Every request to SDDC Manager goes through nginx, so the access log shows what actually arrived and what was sent back:

grep -E 'future-releases|custom-patches|releases/domains|bundles/domains' /var/log/nginx/access.log | tail -10

The calls that did arrive all returned 200 in well under a second:

"GET /plugin/api/v1/bundles/domains/<domain id> HTTP/2.0" 200 3931 ... 0.686 0.686
"GET /plugin/api/v1/releases/domains/<domain id> HTTP/2.0" 200 273 ... 0.085 0.084

Then I looked for any 5xx at all:

grep -E '" 50[0-9] ' /var/log/nginx/access.log | tail -10

Not one 504. If SDDC Manager had been the slow one, nginx would have logged it. And the last time future-releases or custom-patches reached SDDC Manager at all was the previous morning, both returning 200 in under a second. So the failing calls were never getting to SDDC Manager. VCF Operations was producing the 504 itself.

There was one thing in that 5xx list that stood out:

"POST /v1/tokens HTTP/1.1" 500 177 "-" "axios/1.20.0"
"POST /v1/tokens HTTP/1.1" 500 177 "-" "axios/1.20.0"
"POST /v1/tokens HTTP/1.1" 500 177 "-" "axios/1.20.0"
"POST /v1/tokens HTTP/1.1" 500 177 "-" "axios/1.20.0"

Four failed token requests in the same second. Without a token the plugin can’t call anything.

Why the token failed

Token requests are handled by the common service, so I searched every VCF log for that second:

grep -rhE '<date>T<hh>:<mm>:(2|3)' /var/log/vmware/vcf/*/*.log | grep -E 'ERROR|WARN' | head -20
ERROR common ... TokenServiceImpl method="getClaims" Token is expired
WARNING common ... AuthorizationFilter Error decoding JWT token: Token is expired
WARNING common ... TOKEN_NOT_FOUND Token is either invalid or expired.
ERROR common ... IDENTITY_SAML_TOKEN_EXPIRED The SAML token has expired on <yesterday>T16:29:50.613Z

So the plugin’s SDDC Manager token had expired, which is normal, and it tried to get a new one using the SSO SAML token from the browser session. That SAML token had expired more than a day earlier. Someone had left VCF Operations open in a tab, the UI still looked logged in, and the plugin behind it had nothing valid to work with.

The password error was the same thing

A day earlier a password remediation had failed, and the task error was:

Prevalidation of password remediate request: Failed
Message: List of entities must be supplied for rotate operation.
Remediation Message: Supply the list of entities in the rotate operation request.

The request reached SDDC Manager with an empty list of accounts. The task time was after that SAML token expired, from the same stale session. You also get this exact error if you click Rotate with nothing ticked, so check that first.

The fix

  1. Log out of VCF Operations from the user menu. Closing the tab isn’t enough.
  2. Close the tab. If it still misbehaves, clear cookies for the VCF Operations hostname.
  3. Log back in and reload the page.

After a proper logout and login the password rotation went straight through, and the pre validation banner on Password Management was gone.

If this keeps coming back with fresh sessions, check that SDDC Manager, vCenter and VCF Operations agree on the time. Run date -u on all three. SAML tokens are only valid for a window, and clock drift shrinks or breaks that window.

What I’ll do next time

Before digging into LCM, the depot or vCenter, check the SDDC Manager nginx access log. If the failing request isn’t in there, the problem is on the VCF Operations side, and the first thing to try is a fresh login. That would have saved me an hour.

Share

Leave a comment

Comments need your full name and email — no anonymous comments. Your email is never published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.