My Oracle Support Banner

Messages "can't create socket: Address family not supported by protocol" In Node Manager Trace File (Doc ID 2067730.1)

Last updated on JULY 21, 2023

Applies to:

Oracle API Gateway - Version 11.1.2.1.0 and later
Information in this document applies to any platform.

Symptoms

Oracle API Gateway (OAG) 11.1.2.x.

The problem can show up on both Linux and Solaris.

When OAG Manager is used, many "can't create socket: Address family not supported by protocol" errors show up in the Node Manager trace file, like this:

ERROR   <TIMESTAMP> [<THREAD ID>]     can't create socket: Address family not supported by protocol
ERROR   <TIMESTAMP> [<THREAD ID>]     can't create socket: Address family not supported by protocol
ERROR   <TIMESTAMP> [<THREAD ID>]     can't create socket: Address family not supported by protocol

When the problem occurs, there typically are 6-12 such messages in the Node Manager trace file approximately every 20 seconds.

The problem shows up only in certain incomplete network configurations, such as

The main point is an IPv6 style localhost entry being there even with IPv6 disabled.

Changes

The problem shows up only when "getent hosts" returns a ::1 entry for localhost, but IPv6 is actually not working.

The problem may also show up if /etc/hosts is set up correctly, but DNS is configured as a naming service, and gives a ::1 entry for localhost.

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
 Approach 1: remove just localhost and localhost.localdomain from the IPv6 entry for localhost
 Approach 2: Completely remove the ::1 line
 Additional information
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.