When attempting to restart SDDC Manager services using the sddcmanager_restart_services.sh script, the operation fails with "Access denied".
The following output is observed when the script is executed:
vcf@##### [ ~ ]$ /opt/vmware/vcf/operationsmanager/scripts/cli/sddcmanager_restart_services.sh
You are about to restart all SDDC Manager services. Are you sure you would like to continue [y/n]? y
Restarting all SDDC Manager services. This would take a while.--------------------------------------------------------------Restarting common services...Failed to restart commonsvcs.service: Access deniedSee system logs and 'systemctl status commonsvcs.service' for details.
Restarting domain manager...Failed to restart domainmanager.service: Access deniedSee system logs and 'systemctl status domainmanager.service' for details.Restarting lcm...Failed to restart lcm.service: Access deniedSee system logs and 'systemctl status lcm.service' for details.Restarting operations manager...Failed to restart operationsmanager.service: Access deniedSee system logs and 'systemctl status operationsmanager.service' for details.Restarting sddc-manager-ui-app...Failed to restart sddc-manager-ui-app.service: Access deniedSee system logs and 'systemctl status sddc-manager-ui-app.service' for details.Finished initiating restart for all SDDC Manager services.
SDDC Manager 5.2
The script is executed under the non-privileged vcf user account. Restarting systemd services via the CLI requires root permissions.
Switch to the root user before executing the script.
su -
/opt/vmware/vcf/operationsmanager/scripts/cli/sddcmanager_restart_services.sh