CoZServer terminated before all input was read

Discussion of the free COZBATCH utility for z/OS
Post Reply
zStefan
Posts: 15
Joined: Thu Jun 10, 2010 6:14 am

CoZServer terminated before all input was read

Post by zStefan » Fri Aug 26, 2011 8:27 am

Hi,
I have successfully been running cozbatch for months now to execute commands on some Linux servers and then, yesterday this stopped working without (apparently) anything being changed.
I am using CoZLauncher: version: 1.8.0 2011-02-03 on z/OS 1.11
and cozagent: version: 1.0.11 2010-10-27 on SUSE Linux 11 sp1

With a job like this, run from any system in my z/OS sysplex and targetting any of my Linux servers
//DSTAGE EXEC PROC=COZPROC,ARGS='me@my.server'
//COZCFG DD *
agent-options=-LT,t
target-env-COZ_LOG=T,t
server-env-COZ_LOG=T,t
/*
//STDIN DD *
cat excertf.txt
/*
I now get RC141, with a STDIN, but no STDOUT nor STDERR datasets in the completed job. The last line in SYSPRINT is
CoZAgent: completed with RC=141
and looking back in the trace, the earliest indication of anything wrong seems to be
todsn-client(3323)ÝE¨: error: CoZServer terminated before all input was read
followed later by
fromdsn-client(3321)ÝT¨: <- exec()
cozagentÝT¨: -> waitpidCleanup()
cozagentÝE¨: Target Program(3320) ended with RC=141
cozagentÝT¨: <- waitpidCleanup()
cozagentÝT¨: -> waitpidCleanup()
cozagentÝD¨: Stdin DD Reader(3321) ended with RC=0
cozagentÝT¨: <- waitpidCleanup()
cozagentÝT¨: -> waitpidCleanup()
cozagentÝE¨: Stdout DD Writer(3322) ended with RC=103
cozagentÝT¨: <- waitpidCleanup()
cozagentÝT¨: -> waitpidCleanup()
cozagentÝE¨: Stderr DD Writer(3323) ended with RC=103
cozagentÝT¨: <- waitpidCleanup()
cozagentÝT¨: <- waitForChildren(rc=141)
cozagentÝT¨: <- run(141)
If anyone has any ideas, that would be great, because I am completely baffled and my users are stuck. I have checked everything in the configuration that I can think of and, by the way, there are no firewalls involved and nothing like a network timeout appears in network traces. I do have the complete debug trace from coz, but there is rather a lot of it, so I haven't pasted it up straight away.
Thanks,
Stefan

zStefan
Posts: 15
Joined: Thu Jun 10, 2010 6:14 am

Re: CoZServer terminated before all input was read

Post by zStefan » Fri Aug 26, 2011 9:02 am

How embarassing. I may have found the problem after browsing through unrelated posts. It was probably me that piped things the wrong way and destroyed coz/bin/todsn on z/OS. I have replaced the program and now everything works again.
I will go and hide somewhere now.
Thanks,
Stefan

Post Reply