Getting ERROR when running GP commands while using gpupgrade
search cancel

Getting ERROR when running GP commands while using gpupgrade

book

Article ID: 296854

calendar_today

Updated On:

Products

VMware Tanzu Greenplum

Issue/Introduction

While upgrading your system from 5x to 6x, or when running a 5x and 6x on the same system, you may encounter the following error when trying to run GP commands, such as gpstop, gpstart, etc
stderr='Error: unable to import module: /usr/local/greenplum-db-6.20.4/lib/libpq.so.5: symbol gss_acquire_cred_from, version gssapi_krb5_2_MIT not defined in file libgssapi_krb5.so.2 with link time reference


Environment

Product Version: 6.21

Resolution

This occurs when the source and target Greenplum environments are mixed, causing utilities to fail. To resolve this, perform the following steps:

  1. On all segments, remove from .bashrc or .bash_profile files any lines that source greenplum_path.sh or set Greenplum variables.

  2. Start a new shell and ensure that PATHLD_LIBRARY_PATHPYTHONHOME, and PYTHONPATH are clear of any Greenplum values. Use the unset command if these values are still pointing to Greenplum variables. 

  3. ssh to a segment host and also ensure the above values are clear of any Greenplum values.