<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]-->
<title>Re: {{Quickfixn}} Scheduled task issues</title>
<style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:"Futura Bk";
panose-1:2 11 5 2 2 2 4 2 3 3;}
@font-face
{font-family:"Futura Hv";
panose-1:2 11 7 2 2 2 4 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Balloon Text Char";
margin:0in;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";}
span.EmailStyle17
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.BalloonTextChar
{mso-style-name:"Balloon Text Char";
mso-style-priority:99;
mso-style-link:"Balloon Text";
font-family:"Tahoma","sans-serif";}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Francis,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">172.18.133.178</span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> is the IP of the server that has sTunnel configured. Then within the
sTunnel.conf file you have the following entries to point to our third-party acceptor:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[FIXSERVER]<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">client = yes<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">accept = 172.18.133.178:1024<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">connect = 63.247.112.208:443<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">My connection issues are only when I try to run my QuickFix app as a scheduled task on a server when I am not logged on to the server.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:"Futura Hv","sans-serif";color:#595959">CURT RETTENMIER<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:"Futura Hv","sans-serif";color:#595959">Information Developer<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:"Futura Hv","sans-serif";color:#595959">Avista Utilities<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:"Futura Hv","sans-serif";color:#595959">HP Enterprise Services<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:"Futura Hv","sans-serif";color:#595959">Telephone</span><span style="font-size:8.0pt;font-family:"Futura Bk","sans-serif";color:#595959"> +1 509.495.8492<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:"Futura Hv","sans-serif";color:#595959">Email</span><span style="font-size:8.0pt;font-family:"Futura Bk","sans-serif";color:#595959">
<a href="mailto:curt.rettenmier@avistacorp.com"><span style="color:#595959">curt.rettenmier@avistacorp.com</span></a></span><span style="font-size:8.0pt;font-family:"Futura Bk","sans-serif";color:blue">
</span><span style="font-size:8.0pt;font-family:"Futura Bk","sans-serif";color:#595959"> <o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:8.0pt;font-family:"Futura Bk","sans-serif";color:#595959">MSC - 28<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:8.0pt;font-family:"Futura Bk","sans-serif";color:#595959">1411 E. Mission, Spokane, WA 99202<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;font-family:"Futura Bk","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><img border="0" width="35" height="17" id="Picture_x0020_1" src="cid:image001.png@01CFE947.9F138480" alt="Description: cid:image001.png@01CD29CD.B57A0640"></span><span style="color:blue"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:navy">This message and any attached files or documents may contain information that is confidential and considered proprietary to Avista Corporation.</span></b><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:navy">
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.</span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:blue"><o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Quickfixn [mailto:quickfixn-bounces@lists.quickfixn.com]
<b>On Behalf Of </b>Francis Gingras<br>
<b>Sent:</b> Thursday, October 16, 2014 1:41 PM<br>
<b>To:</b> Mailing list for QuickFIX/n<br>
<b>Subject:</b> Re: {{Quickfixn}} Scheduled task issues<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-family:"Tahoma","sans-serif"">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:</span><a name="Picture_x0020_1"></a><o:p></o:p></p>
<table class="MsoNormalTable" border="0" cellspacing="3" cellpadding="0">
<tbody>
<tr>
<td width="2" style="width:1.2pt;background:blue;padding:.75pt .75pt .75pt .75pt">
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">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><span style="font-size:8.0pt;font-family:"Calibri","sans-serif";color:#595959">CURT RETTENMIER<br>
Information Developer<br>
Avista Utilities<br>
HP Enterprise Services<br>
Telephone +1 509.495.8492<br>
Email </span><a href="mailto:curt.rettenmier@avistacorp.com"><span style="font-family:"Calibri","sans-serif";color:#595959">curt.rettenmier@avistacorp.com</span></a><span style="font-family:"Calibri","sans-serif";color:#595959"> <br>
MSC - 28<br>
1411 E. Mission, Spokane, WA 99202<br>
<br>
<img border="0" width="35" height="17" id="_x0000_i1025" src="cid:image001.png@01CFE947.9F138480"><br>
<br>
</span><b><span style="font-size:10.0pt;font-family:"Calibri","sans-serif";color:navy">This message and any attached files or documents may contain information that is confidential and considered proprietary to Avista Corporation.</span></b><span style="font-size:10.0pt;font-family:"Calibri","sans-serif";color:navy">
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.</span><o:p></o:p></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>