sra_nonroot_prepost_install.sh fails

book

Article ID: 209867

calendar_today

Updated On:

Products

CA Spectrum

Issue/Introduction

I'm trying to get 20.2 installed. I was able to run the pre-install piece and install SRAdmin. But when I attempt to run the post install piece after installing SRAdmin I get the following error:

 

sudo ./sra_nonroot_prepost_install.sh -debug
[sudo] password for user:
Please enter 1 for executing preinstallation steps
      or 2 for post installation steps
      or 3 for pre upgrade steps
Enter now
2
Here to execute PostInstallation Steps
SRAdmin home directory /sw/SPECTRUM/SRAdmin
SRAdmin Install owner caadmin
Stopping the sradmin daemon from unregister_init_sradmin
Failed to connect to bus: No such file or directory
Failed to connect to bus: No such file or directory
Executing Postinstallation Steps Has Ended

Environment

Release : 20.2

Component : Spectrum Core / SpectroSERVER

Resolution

Issue is with sudo and the environment.

Login directly as the user you want to run the script as rather than doing sudo.

Should also confirm that the dbus service is running correctly.