Failed to assign port 8090: Address family not supported by protocol


Opmn threw error during startup,

Failed to assign port 8090: Address family not supported by protocol


Opmnctl Status:

Processes in Instance: asinst_1
---------------------------------+--------------------+---------+---------
ias-component                    | process-type              |     pid |    status
---------------------------------+--------------------+---------+---------
emagent_asinst_1               | EMAGENT                |   17403 | Alive  
RptSvr_test1_asinst_1        | ReportsServerComp~ |   17406 | Alive  
Discoverer_asinst_1           | PreferenceServer         |   17402 | Alive  
Discoverer_asinst_1           | ServicesStatus             |   17407 | Alive  
webcache1                        | WebCache-admin       |   17410 | Alive  
webcache1                        | WebCache                  |   N/A   | Down
ohs1                                  | OHS                           |   17409 | Alive

Error:

[oracle@test1 bin]$ ./opmnctl startall

opmnctl startall: starting opmn and all managed processes...
============================================
opmn id=test1.lntport.com:6701
Response: 0 of 1 processes started.

ias-instance id=asinst_1
+++++++++++++++++++++++++++++++++++++++++++
----------------------------------------------------------------
ias-component/process-type/process-set:

[oracle@test1 bin]$ /WebCache/

Error
--> Process (index=1,uid=1146618584,pid=18003)
failed to start a managed process after the maximum retry limit
Log:
/oracle/product/middleware/asinst_1/diagnostics/logs/WebCache/webcache1/console~WebCache~1.log

===============================================

log file:

> console~WebCache~1.log

--------
13/04/02 12:12:07 Start process
--------

Oracle Web Cache 11g (11.1.1.6)
Copyright (c) 1999, 2011, Oracle and/or its affiliates. All rights reserved.

Audit init
Cache Server failed to start
Refer to /oracle/product/middleware/asinst_1/diagnostics/logs/WebCache/webcache1/event_log for more information

> event_log :

[2013-04-02T12:12:09+05:30] [webcache] [NOTIFICATION:1] [WXE-08513] [logging] [ecid: ] Cache server process ID 23132 is starting up.
[2013-04-02T12:12:09+05:30] [webcache] [NOTIFICATION:1] [WXE-09612] [main] [ecid: ] Oracle Web Cache 11g (11.1.1.6), Build 11.1.1.6.0 111121.2021
[2013-04-02T12:12:09+05:30] [webcache] [NOTIFICATION:1] [WXE-09403] [main] [ecid: ] Maximum number of file/socket descriptors set to 1545.
[2013-04-02T12:12:09+05:30] [webcache] [NOTIFICATION:1] [WXE-13002] [config] [ecid: ] Maximum allowed incoming connections are 500
[2013-04-02T12:12:09+05:30] [webcache] [NOTIFICATION:1] [WXE-09441] [stats] [ecid: ] DMS enabled
[2013-04-02T12:12:09+05:30] [webcache] [ERROR:1] [WXE-13305] [frontend] [ecid: ] Failed to assign port 7001: Address family not supported by protocol
[2013-04-02T12:12:09+05:30] [webcache] [ERROR:1] [WXE-09707] [main] [ecid: ] Failed to start the server.

Cause:

> There is in an inconsistency at the O/S level in the IPv6 setup which makes WebCache try to listen on an IPv6 interface although IPv6 is not really configured.

> You can verify if the IPV6 enable by  "lsmod |grep ipv6", if you don't find the module, then it's not IPV6-enabled in the kernel.

Solution:

1. Stop WebCache with $MW_HOME/<instance home>/bin/opmnctl stopproc ias-component=webcache1 a

2. Backup the $MW_HOME/<instance home>/config/WebCache/webcache1/webcache.xml file.

3. Add the <IPV6 ENABLED="NO"/> tag below the </MULTIPORT> tag  as in the following example:

<MULTIPORT>
         <LISTEN IPADDR="ANY" PORT="8090" PORTTYPE="NORM"/>
         <LISTEN IPADDR="ANY" PORT="8094" PORTTYPE="NORM" SSLENABLED="SSL">
            <WALLET>/oracle/product/middleware/asinst_1/config/WebCache/webcache1/keystores/default</WALLET>
         </LISTEN>
         <LISTEN IPADDR="ANY" PORT="8091" PORTTYPE="ADMINISTRATION"/>
         <LISTEN IPADDR="ANY" PORT="8093" PORTTYPE="INVALIDATION"/>
         <LISTEN IPADDR="ANY" PORT="8092" PORTTYPE="STATISTICS"/>
      </MULTIPORT>
      <IPV6 ENABLED="NO"/>

4. Restart WebCache and verify it can be started up now.

$MW_HOME/<instance home>/bin/opmnctl startall

Opmnctl Status:

[oracle@test1 bin]$ ./opmnctl status

Processes in Instance: asinst_1
---------------------------------+--------------------+---------+---------
ias-component                    | process-type       |     pid | status
---------------------------------+--------------------+---------+---------
emagent_asinst_1               | EMAGENT                 |   17403 | Alive  
RptSvr_test1_asinst_1        | ReportsServerComp~ |   17406 | Alive  
Discoverer_asinst_1           | PreferenceServer         |   17402 | Alive  
Discoverer_asinst_1           | ServicesStatus             |   17407 | Alive  
webcache1                        | WebCache-admin        |   17410 | Alive  
webcache1                        | WebCache                   |   23616 | Alive  
ohs1                                  | OHS                             |   17409 | Alive