Spectrum SRAdmin script sra_nonroot_prepost_install.sh fails with "Failed to connect to bus: No such file or directory"
search cancel

Spectrum SRAdmin script sra_nonroot_prepost_install.sh fails with "Failed to connect to bus: No such file or directory"

book

Article ID: 209867

calendar_today

Updated On:

Products

CA Spectrum

Issue/Introduction

When running the Spectrum SRAdmin script sra_nonroot_prepost_install.sh on Linux, it fails with 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 : Any
Component : Spectrum Install/SRAdmin

Resolution

Issue is with sudo and the environment.

Login directly as the root user rather than using sudo and then run the sra_nonroot_prepost_install.sh script.

Also confirm that the dbus service is running.

ps -ef | grep -i dbus
dbus         702       1  0 06:14 ?        00:00:00 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only