Operating System - HP-UX
1835886 Members
6654 Online
110086 Solutions
New Discussion

Error on bringing up IFS Jserv on reboot - works without reboot.

 
Geetha Alagappan
Regular Advisor

Error on bringing up IFS Jserv on reboot - works without reboot.

We have Oracle IFS and Apache Jserv 1.1 running on a HP-UX 11.0 box. We have scripts to bring up IFS and they work when you bring IFS up manually. The same script is called on startup but it fails to bring up Jserv.

Error in jserv.log is:
apj12: can not connect to host 127.0.0.1:13138

This error message does not appear when we startup ifs at root prompt.

Any suggestions? I don't think we are bringing up anything on this port.

On using lsof on a working system, the foll process runs on port 13138

PA_RISC2. 2909 ora9i 21u inet 0x48883668 0t0 TCP localhost:13138 (LISTEN)

Any ideas? Thanks.

Geetha.

hercules
3 REPLIES 3
John Dvorchak
Honored Contributor

Re: Error on bringing up IFS Jserv on reboot - works without reboot.

I am curious where in the startup chain that you are trying to start this. In other words, is it starting in /sbin/rc1.d or rc2.d etc? You may be starting it too early in the init process before networking or Oracle is fully is fully started.

If it has wheels or a skirt, you can't afford it.
Steven E. Protter
Exalted Contributor

Re: Error on bringing up IFS Jserv on reboot - works without reboot.

This is another example of poor oracle testing of their scripts.

There is probably an environment or terminal type problem.

The user that starts these guys up has one environment, the startup user has less.

As the user that owns the oracle apps.

env > /tmp/env.ias
stty -a > /tmp/env.ias

now in the startup scripts

env > /tmp/env.ias.startup
stty -a > /tmp/env.ias.startup

Restart, compare files

Modify the startup scripts to make the environments, including TERM variable as close as possible.


For some reason, this line in our startup script fixed the problem, Oracle has no idea why.


# /usr/bin/ps -ef | /usr/bin/grep rwmts60 > /tmp/rep6ifromscript.data

Adding these three lines to our startup script gave us better diagnostics and helped resolve the problem.

set -x
TERM=vt220
export TERM

The whole thing is however quite mysterious.

SEP



Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Geetha Alagappan
Regular Advisor

Re: Error on bringing up IFS Jserv on reboot - works without reboot.

John,
We are starting it up in rc3.d - we too were suspicious of that.
Steven,
Thanks. We forced the root environment on this script by doing a su - root -c oraifs. As root was the user that brought up IFS, but it didn't help.

I'll try it out your suggestions - will keep you posted.
Geetha.

hercules