Upgrade fails on Data Repository using sudo
search cancel

Upgrade fails on Data Repository using sudo

book

Article ID: 377613

calendar_today

Updated On:

Products

DX NetOps

Issue/Introduction

>> Starting installation tasks.
>> Getting system information for cluster (this may take a while)...

(current) UNIX password: 
Warning: could not connect to X.X.X.X::
        Unable to connect as this user
Warning: Cannot reach host X.X.X.X:
Default shell on nodes:

>> Validating software versions (rpm or deb)...

Error: 'X.X.X.X'
Traceback (most recent call last):
  File "/opt/vertica/oss/python3/lib/python3.7/site-packages/vertica/install/__init__.py", line 1432, in run_install
    _installMain(options)
  File "/opt/vertica/oss/python3/lib/python3.7/site-packages/vertica/install/__init__.py", line 1053, in _installMain
    hostsToUpgradeRPM = validate_rpm_or_exit(installerSSH, options, profiles, full_host_list, localhost)
  File "/opt/vertica/oss/python3/lib/python3.7/site-packages/vertica/install/__init__.py", line 654, in validate_rpm_or_exit
    v = profiles[localhost].vertica
KeyError: 'X.X.X.X'
Installation FAILED with errors.

Installation stopped before any changes were made.
install_vertica script failed with exit code 1 ..........................[FAIL]

Cause

sudo su -root was not being used

It's asking for password during install.

Resolution

Rerun the upgrade using "sudo su - root"

sudo su - root ./dr_install.sh

Additional Information

If using sudo, "sudo su root" or "sudo -s" cannot be used.

The correct syntax would be  "sudo su  - root", otherwise SUDO_USER is set still.