Operating System - HP-UX
1753487 Members
4598 Online
108794 Solutions
New Discussion юеВ

DP post-exec script times out

 
SOLVED
Go to solution
Dave Chamberlin
Trusted Contributor

DP post-exec script times out

Greetings. I believe this is a script issue - not data protector issue. I have a post exec script (ksh) I have used for a few years that now has to run remotely rather than locally (on the cell manager). The script runs 5 other scripts. All the scripts start what they are supposed to - but DP waits for 30 minutes and reports failure (due to timeout in the script). The last 3 lines of the main script are below. The two emails are sent but it sits there for 30 minutes - then times out. Any ideas on finding out what the hangup is? Could one of the child scripts cause the issue? How could I find out which one?

 

echo "$subject" | /usr/bin/mailx -s "PROD BACKUP IS COMPLETE" <emailaddress>
echo "$subject" | /usr/bin/mailx -s "PROD BACKUP IS COMPLETE" <emailaddress>
exit 0

8 REPLIES 8
Dennis Handly
Acclaimed Contributor

Re: DP post-exec script times out

>All the scripts start what they are supposed to

 

So you know you got to the last mailx?  (Any reason you don't use mailx with both addresses?)

Are you starting any background processes (with &)?

 

I suppose you could use tusc to check and see what ksh is waiting for.

 

>post exec script

 

Are you redirecting stdin to /dev/null?

Dave Chamberlin
Trusted Contributor

Re: DP post-exec script times out

there are only four scripts - the 2nd,3rd, and 4th are run with &.  These are running on itanium (hpux 11.31). One strange thing - when I run the same script on a PA-RISC test system (also hpux 11.31) it completes (with a DP test backup).

Dave Chamberlin
Trusted Contributor

Re: DP post-exec script times out

I di notice that the inet  process was still running from the backup, and the log file did not exist. I created the file and one of the child processes was still sending output. We think the script that may still be sending output is:

 

su - clr -c "/u12/software/jboss/jboss-4.0.1sp1/bin/run_jboss.sh >/dev/null 2>&1"

 

Is there another way to have this run without returning output to the shell?

 

thanks

Dennis Handly
Acclaimed Contributor

Re: DP post-exec script times out

>Is there another way to have this run without returning output to the shell?

 

There's nohup(1).

Dave Chamberlin
Trusted Contributor

Re: DP post-exec script times out

the script that might be hanging does a nohup in it:

 

nohup java $VM_ARGS -classpath $CP com.clearorbit.rfuiServer.Engine -telnet $PORT -admin $ADMI N_PORT -program $PROGRAM $RFUI_ARGS 1>/home/clr/dtel.log &

Dennis Handly
Acclaimed Contributor
Solution

Re: DP post-exec script times out

>the script that might be hanging does a nohup in it:

 

In it or to invoke it?

Also, why not redirect stderr too?  2>&1

You may want to redirect stdin too: < /dev/null

Dave Chamberlin
Trusted Contributor

Re: DP post-exec script times out

Doing the >/dev/null >2>&1   in the postexec script has fixed the problem. thanks

Dennis Handly
Acclaimed Contributor

Re: DP post-exec script times out

> fixed the problem. thanks

 

If you're happy with the answers, please also assign Kudos.