gpstart Error: failed to create socket: Address family not supported by protocol
search cancel

gpstart Error: failed to create socket: Address family not supported by protocol

book

Article ID: 295492

calendar_today

Updated On:

Products

VMware Tanzu Greenplum

Issue/Introduction

Symptoms:

After initialize a new cluster is performed, gpstart returns the following error:

FAILED  host:'xxx'  datadir:'/data/xxx/gpsegxxx' with reason:'Start failed; check segment logfile. 
"failed to create socket: Address family not supported by protocol (errno: 97)  Retrying no 1  failed to create socket: Address family not supported by protocol (errno: 97)  Retrying no 2  failed to create socket: Address family not supported by protocol (errno: 97)  Retrying no 3  failed to create socket: Address family not supported by protocol (errno: 97)  Retrying no 4  failed to create socket:

Segment startup log report:

could not create IPv6 socket: Address family not supported by protocol (pqcomm.c:388)",,,,,,,,"StreamServerPort","pqcomm.c",388,

 

Environment


Cause

/etc/hosts from segment hosts included one line. This makes Greenplum receive an ipv6 address when trying to connect a segment instance. This issue will occur for a cluster not configured with an ipv6 protocol.

127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6

Resolution

Comment the ::1 entry from all hosts' /etc/hosts file.