Error: "Permission denied" while using cell-management-tool
search cancel

Error: "Permission denied" while using cell-management-tool

book

Article ID: 320500

calendar_today

Updated On:

Products

VMware Cloud Director VMware Telco Cloud Platform

Issue/Introduction

The following errors are observed when running the cell-management-tool:

  • /opt/vmware/vcloud-director/logs/dbextract-tool.log (Permission denied)
  • /opt/vmware/vcloud-director/logs/cell-management-tool (Permission denied)
  • "call failed"

Environment

  • VCD: 10.x
  • TCP: 3, 4.x, 4.0.1, 5.x, 5.0. 5.0.1, 5.0.2

Cause

  • This issue occurs if the permissions, owner, or both were modified on the log files.
  • The cell-management-tool runs using the vcloud user, which must have access to these log files for commands to complete.

Resolution

  • Open an SSH session to all Cloud Director Cells in the environment.
  • Check the current permissions on the file by running the appropriate command:

    • For cell-management-tool errors: ls -lhtr /opt/vmware/vcloud-director/logs/cell-management-tool.log
    • For dbextract-tool errors: ls -lhtr /opt/vmware/vcloud-director/logs/dbextract-tool.log
  • Correct the permissions to grant the vcloud user access by running the appropriate command:

    • For cell-management-tool errors: chmod 750 /opt/vmware/vcloud-director/logs/cell-management-tool.log
    • For dbextract-tool errors: chmod 750 /opt/vmware/vcloud-director/logs/dbextract-tool.log