<html><head><title>Re: {{Quickfixn}} Scheduled task issues</title>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
</head>
<body>
<span style=" font-family:'Tahoma'; font-size: 12pt;">Hi Curt,<br>
<br>
Aren't you supposed to connect to 127.0.0.1 when using sTunnel?<br>
<br>
Best regards,<br>
<br>
Francis Gingras<br>
<br>
<br>
__________________________________<br>
Thursday, October 16, 2014, 11:42:24 AM, Curt wrote:<br>
<br>
<a name="Picture_x0020_1"></a>
</span><table>
<tr>
<td width=2 bgcolor= #0000ff><br>
</td>
<td><span style=" font-family:'calibri'; font-size: 11pt;">We set up our internal application using QuickFix/n on a server as a scheduled task to run every morning at 4:00 a.m. Our app also utilizes sTunnel for data encryption. The task runs using a service account and we configured the task scheduler to run whether the user is logged on our not. The problem we are having is that the task runs when no one is logged on to the server but is not able to connect to our third-party. We implemented logging and the log is showing that the target machine (which is the server) is refusing the connection when our QuickFix app tries to connect. This will occur over and over. See log excerpt below. <br>
 <br>
20141016-11:01:01.027 : Session FIX.4.4:552/ADMIN->ICE already disconnected: Resetting...<br>
20141016-11:01:01.199 : Session reset: New session<br>
20141016-11:01:01.199 : Created session<br>
20141016-11:01:01.574 : Connecting to 172.18.133.178 on port 1024<br>
20141016-11:01:02.933 : Connection failed: No connection could be made because the target machine actively refused it 172.18.133.178:1024<br>
20141016-11:01:09.699 : Connecting to 172.18.133.178 on port 1024<br>
20141016-11:01:10.714 : Connection failed: No connection could be made because the target machine actively refused it 172.18.133.178:1024<br>
 <br>
When I logged on to the server this morning to check the task the logs show that the already running app will then successfully connect and work. See log excerpt below.  Also if I kick off the task myself and stay logged on to the machine (with different logon credentials) the app will connect and work just fine.<br>
 <br>
20141016-14:38:03.662 : Connecting to 172.18.133.178 on port 1024<br>
20141016-14:38:04.677 : Connection failed: No connection could be made because the target machine actively refused it 172.18.133.178:1024<br>
20141016-14:38:09.802 : Connecting to 172.18.133.178 on port 1024<br>
20141016-14:38:09.912 : Connection succeeded<br>
20141016-14:38:11.990 : Session reset: ResetOnLogon<br>
20141016-14:38:13.943 : Session reset: ResetSeqNumFlag<br>
20141016-14:38:14.115 : Initiated logon request<br>
20141016-14:38:15.068 : Received logon<br>
 <br>
Any help would be appreciated. <br>
Thanks,<br>
 <br>
<span style=" font-size: 8pt; color: #595959;">CURT RETTENMIER<br>
Information Developer<br>
Avista Utilities<br>
HP Enterprise Services<br>
Telephone +1 509.495.8492<br>
Email </span></span><a style=" color: #595959; font-family:'calibri';" href="mailto:curt.rettenmier@avistacorp.com">curt.rettenmier@avistacorp.com</a><span style=" font-family:'calibri'; color: #595959;">  <br>
MSC - 28<br>
1411 E. Mission, Spokane, WA 99202<br>
 <br>
<img width=35 height=17 alt="" style="padding : 1px;" src="cid:75A247DA.01CFE981.79F4EED3.438DFA23_csseditor"><br>
 <br>
<span style=" font-size: 10pt; color: #000080;"><b>This message and any attached files or documents may contain information that is confidential and considered proprietary to Avista Corporation.</b> Any unauthorized use, transfer, or disclosure of the information contained herein is strictly forbidden. If you believe that this message has been sent to you in error, please reply to the sender that you have received the message in error and delete the message.<br>
 </td>
</tr>
</table>
</body></html>