Management Pack install/upgrade fails with permission error in VMware Aria Operations
search cancel

Management Pack install/upgrade fails with permission error in VMware Aria Operations

book

Article ID: 336687

calendar_today

Updated On:

Products

VMware Aria Suite

Issue/Introduction

Symptoms:
  • Attempting to install/upgrade a management pack fails with a permission error during the pre/post adapter scripts execution.
  • The following log file(s) will show an error installing/upgrading the management pack:
    • /storage/vcops/log/pakManager/vcopsPakManager.root.apply_adapter_pre_script.log
    • /storage/vcops/log/pakManager/vcopsPakManager.root.post_apply_adapter.log
    • /storage/vcops/log/pakManager/vcopsPakManager.root.post_apply_adapter_pre_script.log
    • /storage/vcops/log/pakManager/vcopsPakManager.root.apply_adapter_post_script.log


Environment

VMware Aria Operations 8.12.x

Resolution

To resolve this issue, create a file to ensure the Management Pack installation/upgrade uses the root user.

Complete the following on all Analytics nodes (Primary, Replica (if present), and Data nodes) simultaneously.
  1. Log into the Analytics node as root via SSH or Console.
  2. Run to following command to create the do_not_switch_to_mpuser file:
touch /storage/db/pakRepoLocal/do_not_switch_to_mpuser
  1. Run the following command to verify that the owner of the created file is root:
ls -l /storage/db/pakRepoLocal/do_not_switch_to_mpuser

Example: -rw-r----- 1 root root 0 Jul 3 19:45 /storage/db/pakRepoLocal/do_not_switch_to_mpuser
  1. Retry the installation or upgrade process.
  2. Once the installation or upgrade is complete, remove the created file by running the following command:
rm /storage/db/pakRepoLocal/do_not_switch_to_mpuser