VCFA UI shows "HTTP ERROR 500" after restarting VCFA appliance
search cancel

VCFA UI shows "HTTP ERROR 500" after restarting VCFA appliance

book

Article ID: 457713

calendar_today

Updated On:

Products

VCF Automation

Issue/Introduction

  • After restarting VCF Automation, the UI displays an "HTTP ERROR 500" and users cannot log in.

  • Executing kubectl get pods -n prelude command on the VCFA shows multiple pods in CrashLoopBackOff or Init status.
    Example:
    prelude          api-gateway-server-####                    0/1   CrashLoopBackOff   848 (3m38s ago)    #d
    prelude          approval-service-app-####                 0/1   Init:0/2           0                  #d
    prelude          catalog-service-app-####                   0/1   Init:0/2           0                  #d
    prelude          ccs-gateway-app-####                       0/1   Init:0/2           0                  #d
    prelude          ccs-infra-eas-app-####                      0/1   Init:0/2           0                  #d
    prelude          ccs-k3s-app-####                              0/2   Init:0/1           0                  #d
    prelude          ccs-vksm-eas-####                            0/1   CrashLoopBackOff   849 (4s ago)       #d

     

  • In the logs of the pods in the CrashLoopBackOff state, there are errors indicating that they cannot connect to StatefulSet services (such as tenant-manager).
    Example (api-gateway-server):
    {"component":"vcfa-token-parser","level":"error","msg":"Unable to retrieve oidc signer keys: Get \"https://tenant-manager.prelude.svc.cluster.local/oidc/oauth2/jwks\": dial tcp ###.###.###.###:####: connect: connection refused","time":"YYYY-MM-DDTHH:MM:SSZ"}
    {"component":"vcfa-token-parser","level":"error","msg":"Error in getting signing cert: Error [###]: OIDC JWKS Retrieval Error, detail: Get \"https://tenant-manager.prelude.svc.cluster.local/oidc/oauth2/jwks\": dial tcp ###.###.###.###:####: connect: connection refused, Unable to retrieve oidc signer keys","time":"YYY-MM-DDTHH:MM:SSZ"}
    {"component":"vcfa-token-parser","level":"error","msg":"could not create OIDC token verifier","time":"YYYY-MM-DDTHH:MM:SSZ"}
    {"level":"fatal","msg":"Failed to initialize server with err: could not create OIDC token verifier: Error [###]: OIDC JWKS Retrieval Error, detail: Get \"https://tenant-manager.prelude.svc.cluster.local/oidc/oauth2/jwks\": dial tcp ###.###.###.###:####: connect: connection refused, Unable to retrieve oidc signer keys","time":"YYYY-MM-DDTHH:MM:SSZ"}

     

  • Executing kubectl get statefulset -n prelude command shows one or more StatefulSets scaled to 0/0 and not running:
    NAME             READY   AGE
    rabbitmq-ha      0/0     ###d
    tenant-manager   0/0     ###d
    vcfapostgres     1/1     ###d
    vco-app          0/0     ###d

Environment

VCF Automation 9.1.x

Cause

During maintenance or updates/upgrades, VCF Automation executes a pre-hook script that scales down certain StatefulSets to 0 replicas.
If an issue occurs in the middle of these tasks and the process fails or gets interrupted, the automated scale-up (rollback) process is not executed, leaving the services at 0 replicas.

Resolution

If this issue occurs after a failed upgrade/update process:
Revert the environment from a backup that was taken before the upgrade attempt.

See File-Based Restore of VCF Automation for the steps to revert VCFA.
See On-Demand Backup of VCF Management Services and VCF Automation for the steps to create backup for VCFA.

If this issue occurs without any apparent process:
Please collect a diagnostic log bundle and contact Broadcom Support for investigation and resolution.

Additional Information

VCFA 仮想マシンを再起動後 VCFA UI 上で「HTTP ERROR 500」が表示される