Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CFExecute and timeout

Status
Not open for further replies.

computergeek

Programmer
May 23, 2001
193
CA
Hello,

We have a Coldfusion application that restarts some services on another server. Code:

<CFFUNCTION name="RestartService">
<cfargument name="sServiceName">
<!---remember to log this to a file so we know how often it is restarted.--->

<cfexecute name="c:\windows\psexec.exe" outputfile="#local_path#\logs\#sServiceName#_psexec.log" timeout="30"
arguments="\\server2 -u user1 -p testpsw d:\install\svr\RemoteRestart.bat #customsrc# #sServiceName# #limsuser#"></cfexecute>
</CFFUNCTION>

Well, the remote server has been moved on to a different server (different hardware, same server name). Since that time the users get a "Timeout period expired without completion" error when trying to execute this process. I think it has something to do with the network... how do I check? I am assuming that timeout=30 means 30 seconds. This should be more that sufficient. I set it to 60 seconds until I can figure what the issue is...
Any ideas?

One thing to note is that this code has worked for years... until now.

Thanks,
 
One thing to check is if you have changed the number of hops from your machine to the new one. If the new machine is on a different router that is logically further away, that could cause a problem like this. Another could be if the new machine is on a router with more traffic (or if they added some heavy traffic to your router.

As you know, a basic rule is that "if it worked yesterday but it doesn't work today, something changed." If the only thing that changed is the machine that was added, that's where you need to look.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top