Sunday, 7 October 2018

Oracle http server

Permission denied: make_sock: could not bind to address 0.0.0.0:80 in Oracle http server


Error getting from OHS log

[2014-08-25T17:26:27.000+06:00] [ohs1] [UNKNOWN] [] [console] [host: istelar.localdomain] [nwaddr: 192.168.10.210] /u01/oracle/middleware/Oracle_FRHome1/ohs/bin/apachectl startssl: execing httpd
[2014-08-25T17:26:27.000+06:00] [ohs1] [UNKNOWN] [] [console] [host: istelar.localdomain] [nwaddr: 192.168.10.210] Start process
[2014-08-25T17:26:27.992+06:00] [OHS] [ERROR:32] [OHS-9999] [core.c] [host: istelar.localdomain] [nwaddr: 192.168.10.210] [pid: 22974] [tid: 140343298516800] [userId: oracle] [VirtualHost: main]  Unable to open logs
[2014-08-25T17:26:27.992+06:00] [OHS] [INCIDENT_ERROR:20] [OHS-9999] [worker.c] [host: istelar.localdomain] [nwaddr: 192.168.10.210] [pid: 22974] [tid: 140343298516800] [userId: oracle] [VirtualHost: main]  no listening sockets available, shutting down
[2014-08-25T17:26:27.992+06:00] [OHS] [INCIDENT_ERROR:32] [OHS-9999] [worker.c] [host: istelar.localdomain] [nwaddr: 192.168.10.210] [pid: 22974] [tid: 140343298516800] [userId: oracle] [VirtualHost: main] (13)Permission denied:  make_sock: could not bind to address 0.0.0.0:80
[2014-08-25T17:26:27.992+06:00] [OHS] [INCIDENT_ERROR:32] [OHS-9999] [worker.c] [host: istelar.localdomain] [nwaddr: 192.168.10.210] [pid: 22974] [tid: 140343298516800] [userId: oracle] [VirtualHost: main] (13)Permission denied:  make_sock: could not bind to address [::]:80
[2014-08-25T17:26:29.000+06:00] [ohs1] [UNKNOWN] [] [console] [host: istelar.localdomain] [nwaddr: 192.168.10.210] /u01/oracle/middleware/Oracle_FRHome1/ohs/bin/apachectl startssl: execing httpd
[2014-08-25T17:26:29.000+06:00] [ohs1] [UNKNOWN] [] [console] [host: istelar.localdomain] [nwaddr: 192.168.10.210] Start process
[2014-08-25T17:26:29.047+06:00] [OHS] [ERROR:32] [OHS-9999] [core.c] [host: istelar.localdomain] [nwaddr: 192.168.10.210] [pid: 22978] [tid: 139745400321856] [userId: oracle] [VirtualHost: main]  Unable to open logs
[2014-08-25T17:26:29.047+06:00] [OHS] [INCIDENT_ERROR:20] [OHS-9999] [worker.c] [host: istelar.localdomain] [nwaddr: 192.168.10.210] [pid: 22978] [tid: 139745400321856] [userId: oracle] [VirtualHost: main]  no listening sockets available, shutting down
[2014-08-25T17:26:29.047+06:00] [OHS] [INCIDENT_ERROR:32] [OHS-9999] [worker.c] [host: istelar.localdomain] [nwaddr: 192.168.10.210] [pid: 22978] [tid: 139745400321856] [userId: oracle] [VirtualHost: main] (13)Permission denied:  make_sock: could not bind to address 0.0.0.0:80
[2014-08-25T17:26:29.047+06:00] [OHS] [INCIDENT_ERROR:32] [OHS-9999] [worker.c] [host: istelar.localdomain] [nwaddr: 192.168.10.210] [pid: 22978] [tid: 139745400321856] [userId: oracle] [VirtualHost: main] (13)Permission denied:  make_sock: could not bind to address [::]:80

Solution:

Step1: Go to /u01/oracle/middleware/Oracle_FRHome1/ohs/bin location

Step2: Check the permission of .apachectl file permission

[oracle@istelar bin]$ ls -l .apachectl
-rwxr-x--- 1 oracle oinstall 465658 Oct 27 2009 .apachectl 

Step3: Change the permission of .apachectl file

[root@istelar bin]# chown root .apachectl
[root@istelar bin]# chmod 6750 .apachectl

[oracle@istelar bin]$ ls -la .ap*
-rwsr-s--- 1 root oinstall 13278 Nov 19  2011 .apachectl

[oracle@istelar bin]$

Step4: Now start the /u01/stelar11g/Script/OPMN.sh service

Step5: Now check the log
 
 

How to create or delete component in Weblogic

----Delete component from opmn in Web logic------

[oracle@iStelar bin]$ ./opmnctl deletecomponent -componentName  RptSvr_iStelar_asinst_1

Command requires login to weblogic admin server (iStelar.localdomain):
  Username: weblogic
  Password:

Command failed: Unable to connect to admin server. Verify that login username and password are correct.

opmnctl deletecomponent: failed.
[oracle@iStelar bin]$ ./opmnctl deletecomponent -componentName  RptSvr_iStelar_asinst_1

Command requires login to weblogic admin server (iStelar.localdomain):
  Username: weblogic
  Password:

Unregistering RptSvr_iStelar_asinst_1 component
Deleting RptSvr_iStelar_asinst_1 directories
Invoking opmn reload...Done
Command succeeded.
[oracle@iStelar bin]$ ./opmnctl status

Processes in Instance: asinst_1
---------------------------------+--------------------+---------+---------
ias-component                    | process-type       |     pid | status
---------------------------------+--------------------+---------+---------
emagent_asinst_1                 | EMAGENT            |     N/A | Down
forms                            | FormsRuntime       |   16571 | Alive
forms                            | FormsRuntime       |   15046 | Alive
forms                            | FormsRuntime       |   19242 | Alive
forms                            | FormsRuntime       |    9205 | Alive
ohs1                             | OHS                |     N/A | Down

[oracle@iStelar bin]$

----Create component in opmn in Web logic------


[oracle@iStelar bin]$ ./opmnctl createcomponent -componentName  test_istelar_report_server
Command failed: Command requires argument: -componentType

opmnctl createcomponent: failed.
[oracle@iStelar bin]$ ./opmnctl createcomponent -componentName  test_istelar_report_server -componentType  ReportsServerComponent

Command requires login to weblogic admin server (iStelar.localdomain):
  Username: weblogic
  Password:

Creating empty component directories...Done
Provisioning ReportsServerComponent files for test_istelar_report_server
Registering test_istelar_report_server component
Invoking opmn reload...Done
Command succeeded.
[oracle@iStelar bin]$

[oracle@iStelar bin]$ ./opmnctl status

Processes in Instance: asinst_1
---------------------------------+--------------------+---------+---------
ias-component                    | process-type       |     pid | status
---------------------------------+--------------------+---------+---------
test_istelar_report_server       | ReportsServerComp~ |   23018 | Alive
emagent_asinst_1                 | EMAGENT            |     N/A | Down
forms                            | FormsRuntime       |   16571 | Alive
forms                            | FormsRuntime       |   15046 | Alive
forms                            | FormsRuntime       |   19242 | Alive
forms                            | FormsRuntime       |    9205 | Alive
ohs1                             | OHS                |     N/A | Down

[oracle@iStelar bin]$
 

No comments:

Post a Comment