DE484555 - New Install Perfortance Center Service Failing to Start

book

Article ID: 206483

calendar_today

Updated On:

Products

CA Performance Management - Usage and Administration

Issue/Introduction

wget is installed. However the startup of the console fails on wget call. 

wget is not installed and is required, exit starting Console...




----------------------------------------------------------------------

sudo systemctl status caperfcenter_console.service

  • caperfcenter_console.service - Performance Center Console

   Loaded: loaded (/etc/systemd/system/caperfcenter_console.service; enabled; vendor preset: disabled)

   Active: failed (Result: exit-code) since Tue 2020-11-10 09:56:08 EST; 13s ago

  Process: 8074 ExecStart=/opt/CA/PerformanceCenter/PC/bin/caperfcenter_console start sysd (code=exited, status=1/FAILURE)

 

Nov 10 09:56:07 hqs-dlcapmpc01.d.r.dfait-maeci.gc.ca systemd[1]: Starting Performance Center Console...

Nov 10 09:56:08 hqs-dlcapmpc01.d.r.dfait-maeci.gc.ca caperfcenter_console[8074]: error: cannot open Packages index using db5 - Permission denied (13)

Nov 10 09:56:08 hqs-dlcapmpc01.d.r.dfait-maeci.gc.ca caperfcenter_console[8074]: error: cannot open Packages database in /var/lib/rpm

Nov 10 09:56:08 hqs-dlcapmpc01.d.r.dfait-maeci.gc.ca caperfcenter_console[8074]: error: cannot open Packages database in /var/lib/rpm

Nov 10 09:56:08 hqs-dlcapmpc01.d.r.dfait-maeci.gc.ca caperfcenter_console[8074]: wget is not installed and is required, exit starting Console...

Nov 10 09:56:08 hqs-dlcapmpc01.d.r.dfait-maeci.gc.ca systemd[1]: caperfcenter_console.service: control process exited, code=exited status=1

Nov 10 09:56:08 hqs-dlcapmpc01.d.r.dfait-maeci.gc.ca systemd[1]: Failed to start Performance Center Console.

Nov 10 09:56:08 hqs-dlcapmpc01.d.r.dfait-maeci.gc.ca systemd[1]: Unit caperfcenter_console.service entered failed state.

Nov 10 09:56:08 hqs-dlcapmpc01.d.r.dfait-maeci.gc.ca systemd[1]: caperfcenter_console.service failed.

 

-------------------------------------------------------------------------

 

service caperfcenter_console status

Redirecting to /bin/systemctl status caperfcenter_console.service

  • caperfcenter_console.service - Performance Center Console

   Loaded: loaded (/etc/systemd/system/caperfcenter_console.service; enabled; vendor preset: disabled)

   Active: failed (Result: exit-code) since Tue 2020-11-10 09:39:13 EST; 13min ago

  Process: 7493 ExecStart=/opt/CA/PerformanceCenter/PC/bin/caperfcenter_console start sysd (code=exited, status=1/FAILURE)

 

Nov 10 09:39:13 hqs-dlcapmpc01.d.r.dfait-maeci.gc.ca systemd[1]: Starting Performance Center Console...

Nov 10 09:39:13 hqs-dlcapmpc01.d.r.dfait-maeci.gc.ca caperfcenter_console[7493]: error: cannot open Packages index using db5 - Permission denied (13)

Nov 10 09:39:13 hqs-dlcapmpc01.d.r.dfait-maeci.gc.ca caperfcenter_console[7493]: error: cannot open Packages database in /var/lib/rpm

Nov 10 09:39:13 hqs-dlcapmpc01.d.r.dfait-maeci.gc.ca caperfcenter_console[7493]: error: cannot open Packages database in /var/lib/rpm

Nov 10 09:39:13 hqs-dlcapmpc01.d.r.dfait-maeci.gc.ca systemd[1]: caperfcenter_console.service: control process exited, code=exited status=1

Nov 10 09:39:13 hqs-dlcapmpc01.d.r.dfait-maeci.gc.ca systemd[1]: Failed to start Performance Center Console.

Nov 10 09:39:13 hqs-dlcapmpc01.d.r.dfait-maeci.gc.ca systemd[1]: Unit caperfcenter_console.service entered failed state.

Nov 10 09:39:13 hqs-dlcapmpc01.d.r.dfait-maeci.gc.ca systemd[1]: caperfcenter_console.service failed.

 

 

-- Unit caperfcenter_console.service has failed.
--
-- The result is failed.
Nov 10 09:39:10 hqs-dlcapmpc01.d.r.dfait-maeci.gc.ca systemd[1]: Unit caperfcenter_console.service entered failed state.
Nov 10 09:39:10 hqs-dlcapmpc01.d.r.dfait-maeci.gc.ca systemd[1]: caperfcenter_console.service failed.
Nov 10 09:39:10 hqs-dlcapmpc01.d.r.dfait-maeci.gc.ca polkitd[830]: Unregistered Authentication Agent for unix-process:7396:951171 (system bus name :1.142, object path /org/freedesktop/PolicyKit1/Authenticat
Nov 10 09:39:10 hqs-dlcapmpc01.d.r.dfait-maeci.gc.ca sudo[7395]: pam_unix(sudo:session): session closed for user root
Nov 10 09:39:13 hqs-dlcapmpc01.d.r.dfait-maeci.gc.ca sudo[7475]: admcinnamw : TTY=pts/1 ; PWD=/home/[email protected] ; USER=root ; COMMAND=/bin/sudo service caperfcenter_console start
Nov 10 09:39:13 hqs-dlcapmpc01.d.r.dfait-maeci.gc.ca sudo[7475]: pam_unix(sudo:session): session opened for user root by admcinnamw(uid=0)
Nov 10 09:39:13 hqs-dlcapmpc01.d.r.dfait-maeci.gc.ca sudo[7476]: admcinnamw : TTY=pts/1 ; PWD=/home/[email protected] ; USER=root ; COMMAND=/sbin/service caperfcenter_console start
Nov 10 09:39:13 hqs-dlcapmpc01.d.r.dfait-maeci.gc.ca sudo[7476]: pam_unix(sudo:session): session opened for user root by admcinnamw(uid=0)
Nov 10 09:39:13 hqs-dlcapmpc01.d.r.dfait-maeci.gc.ca polkitd[830]: Registered Authentication Agent for unix-process:7477:951509 (system bus name :1.145 [/usr/bin/pkttyagent --notify-fd 5 --fallback], object
Nov 10 09:39:13 hqs-dlcapmpc01.d.r.dfait-maeci.gc.ca systemd[1]: Starting Performance Center Console...
-- Subject: Unit caperfcenter_console.service has begun start-up
-- Defined-By: systemd
-- Support: 
http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit caperfcenter_console.service has begun starting up.
Nov 10 09:39:13 hqs-dlcapmpc01.d.r.dfait-maeci.gc.ca caperfcenter_console[7493]: error: cannot open Packages index using db5 - Permission denied (13)
Nov 10 09:39:13 hqs-dlcapmpc01.d.r.dfait-maeci.gc.ca caperfcenter_console[7493]: error: cannot open Packages database in /var/lib/rpm
Nov 10 09:39:13 hqs-dlcapmpc01.d.r.dfait-maeci.gc.ca caperfcenter_console[7493]: error: cannot open Packages database in /var/lib/rpm
Nov 10 09:39:13 hqs-dlcapmpc01.d.r.dfait-maeci.gc.ca caperfcenter_console[7493]: wget is not installed and is required, exit starting Console...
Nov 10 09:39:13 hqs-dlcapmpc01.d.r.dfait-maeci.gc.ca systemd[1]: caperfcenter_console.service: control process exited, code=exited status=1
Nov 10 09:39:13 hqs-dlcapmpc01.d.r.dfait-maeci.gc.ca systemd[1]: Failed to start Performance Center Console.
-- Subject: Unit caperfcenter_console.service has failed
-- Defined-By: systemd
-- Support: 
http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit caperfcenter_console.service has failed.
--
-- The result is failed.

Cause

To check the wget we are using the call rpm -q wget this fails since the owner of the install is not root and does not have access to the rpm command.

This issue has been logged with engineering no current fix date at this time. 

Environment

Release : 20.2

Component : IM Reporting / Admin / Configuration

Resolution

Workaround - change the check to not use rpm command:

In:

/opt/CA/PerformanceCenter/PC/bin/caperfcenter_console

Change

# Check if wget is installed and exit if it isn't
        wget_install_ok=$(rpm -q wget)

To (changes highlighted):

# Check if wget is installed and exit if it isn't
        #wget_install_ok=$(rpm -q wget)
        wget_install_ok="wget"