Authorization Error: Unauthorized access.
There is a restriction with the page you are trying to reach and it cannot be displayed.You are not authorized to view this page.ERROR [1c3..........................] [services/wrappers/requestPromiseWrapper.js, http-get-privileges, logAxiosError:56] axios.error.response.status {"status":504}
...
ERROR [1c3..........................] [routes/security/pluginUiAuthentication.js, http-get-privileges, authenticateUsingOpsJwt:147] Failed to get access token for ops jwt {"error":{"body":"<html>\r\n<head><title>504 Gateway Time-out</title></head>\r\n<body>\r\n<center><h1>504 Gateway Time-out</h1></center>\r\n<hr><center>nginx</center>\r\n</body>\r\n</html>\r\n","code":"ERR_BAD_RESPONSE","statusCode":504}}
Exception in thread "http-nio-127.0.0.1-7100-Acceptor" java.lang.OutOfMemoryError: Java heap space
...
Exception in thread "aggregation-timer" java.lang.OutOfMemoryError: Java heap space
java.lang.OutOfMemoryError: Java heap spaceThe vcf-commonsvcs service has exhausted its allocated Java heap space (Xmx). When the service reaches its default limit (typically 2048 MB), it can no longer handle authorization requests or inventory synchronization, leading to internal timeouts and the "Unauthorized access" error in the UI.
To resolve this issue, increase the maximum heap size for the commonsvcs service to 4096 MB.
vcf via SSH and su to root. cat /opt/vmware/vcf/commonsvcs/bin/commonsvcs | grep Xmx
Confirm it is currently set to -Xmx2048m
cp /opt/vmware/vcf/commonsvcs/bin/commonsvcs /home/vcf/commonsvcs_bakvi /opt/vmware/vcf/commonsvcs/bin/commonsvcs-Xmx2048m to -Xmx4096m. /opt/vmware/vcf/operationsmanager/scripts/cli/sddcmanager_restart_services.sh