Wednesday, July 11, 2012

HTTP_Server status is Stop. Not able to restart it.

Topic: HTTP_Server status is Stop. Not able to restart it.


Description: HTTP_Server was not getting stop and was throwing error “$ORACLE_HOME/Apache/Apache/bin/apachectl hardstop: httpd (no pid file) not running” in $ORACLE_HOME/opmn/logs/HTTP_Server~1.log


Solution: 

1. opmnctl status
2. find the pid of HTTP_Server from step 1 output
3. kill -9 pid_of_HTTP_Server
4. opmnctl status (HTTP_Server will automatically come up. In case status is DOWN, execute opmnctl startall process-type=HTTP_Server)



opmnctl startall command fails with error "Read-only file system"

On working with SOA Suite 10g on LINUX environment, I faced an error while trying to execute "opmnctl startall" command. Below error was thrown.


-bash-3.2$ ./opmnctl startall
opmnctl: starting opmn and all managed processes...
OPMN log file open failed: /apps/oracle/soa/opmn/logs/opmn.log (Read-only file system)
opmnctl: opmn start failed.

This is a LINUX issue. The permission on mount point "/apps/oracle" changed to "ro" from "rw".
Linux command "cat /proc/mounts" can be used to find out the current permission on mount point. The issue got resolved once the permission was reverted to "rw".

Monday, July 9, 2012

opmnctl command hang or does not respond back on linux


I have faced issue on LINUX machine where I was not able to run opmnctl commands such as opmnctl status, opmnctl startall, opmnctl stopall etc.
Each time I run any opmnctl command it gets hang and does not respond back.
On analysis I found that there were orphan opmnctl command which were blocking the new opmnctl commands execution.
Using ps (ps -ef | grep opmn/bin) command, I find out the process ID of the opmnctl commands and killed them using linux kill command. 
On killing the opmnctl processes, the opmnctl commands started working.