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 laterInformation 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
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
- IPv6 disabled
AND - In /etc/hosts:
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 - getent hosts returns a ::1 entry:
$ getent hosts localhost
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
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 |