SDDC Manager service restart fails with "Access denied"
search cancel

SDDC Manager service restart fails with "Access denied"

book

Article ID: 440988

calendar_today

Updated On:

Products

VMware SDDC Manager / VCF Installer

Issue/Introduction

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 denied
See system logs and 'systemctl status commonsvcs.service' for details.

Restarting domain manager...
Failed to restart domainmanager.service: Access denied
See system logs and 'systemctl status domainmanager.service' for details.
Restarting lcm...
Failed to restart lcm.service: Access denied
See system logs and 'systemctl status lcm.service' for details.
Restarting operations manager...
Failed to restart operationsmanager.service: Access denied
See system logs and 'systemctl status operationsmanager.service' for details.
Restarting sddc-manager-ui-app...
Failed to restart sddc-manager-ui-app.service: Access denied
See system logs and 'systemctl status sddc-manager-ui-app.service' for details.
Finished initiating restart for all SDDC Manager services.

Environment

SDDC Manager 5.2

Cause

The script is executed under the non-privileged vcf user account. Restarting systemd services via the CLI requires root permissions.

Resolution

Switch to the root user before executing the script.

  1. Connect to the SDDC Manager appliance via SSH using the vcf user account.
  2. Switch to the root user.

    su -

  3. Execute the restart script.

    /opt/vmware/vcf/operationsmanager/scripts/cli/sddcmanager_restart_services.sh