Data Collector UI launched upgrade for sudo root install owner fails

book

Article ID: 208007

calendar_today

Updated On:

Products

CA Performance Management - Usage and Administration DX NetOps

Issue/Introduction

The Data Collector install is owned by a non-root sudo root user.

The Data Collector upgrade was run by the DX NetOps Performance Management Performance Center web UI push button upgrade functionality.

The upgrade failed with the following errors in the upgrade log found in (default path) /opt/IMDataCollector/upgrade. The upgrade log will be named with the date for the failed upgrade run.

[<SudoUserName>@<DC_Host> upgrade]$ cat upgrade-20210203.213205.734.stdout
You (SudoUserName) are not allowed to use this program (crontab)
See crontab(1) for more information
You (SudoUserName) are not allowed to use this program (crontab)
See crontab(1) for more information

Cause

The UI based Data Collector upgrade schedules the upgrade to run one second after the cron job to run the upgrade is scheduled on the system.

If the non-root sudo root user sudoers config entry does not have rights to run the crontab job it will result in this failure.

Environment

Release : 20.2

Component : IM Reporting / Admin / Configuration

Resolution

Add the /usr/bin/crontab command to the sudo users sudoers file configuration. It can be left there or only added for the upgrade cycle and removed afterward.

Additional Information

(Optional) Configure the Sudo User Account for Data Collector