<div dir="ltr"><div class="gmail_default" style="font-size:small;color:#000000">This sounds like some kind of login/permission issue with Windows server, and not really a problem with the QF/n code itself.</div><div class="gmail_default" style="font-size:small;color:#000000"><br></div><div class="gmail_default" style="font-size:small;color:#000000">Unfortunately, Windows server admin is not one of my skills. Anyone else have any clue?</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Oct 17, 2014 at 11:34 AM, Rettenmier, Curt <span dir="ltr"><<a href="mailto:Curt.Rettenmier@avistacorp.com" target="_blank">Curt.Rettenmier@avistacorp.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-US" link="blue" vlink="purple">
<div>
<p class="MsoNormal">We set up our new application that uses QuickFix/n on a dedicated Windows server 2012 as a scheduled task to run every morning at 4:00 a.m. We have been previously testing the app on that server not as a scheduled task (double-clicking
on the .exe) and it has been working fine. We set up the task to run using a service account and we configured the task scheduler to run the task whether the user is logged on our not. We also had to modify a security policy on the server to allow the service
account to log on as a batch service. The task scheduler runs the app as scheduled but the problem we are having is that the task runs when no one is logged on to the server and is not able to connect to our third-party ICE). When I log on to the server later
in the morning the app is still running (as it should). At the moment I log on the app is then able to connect to ICE and start processing information. QuickFix logging is turned on 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. The IP 172.19.133.178 is the server’s IP. As long as I am logged on to the server our QuickFix/n app works fine. We also are using sTunnel to encrypt
the data. sTunnel is set up on the same server. <u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">20141017-11:01:30.885 : Session FIX.4.4:552/ADMIN->ICE already disconnected: Resetting...<u></u><u></u></p>
<p class="MsoNormal">20141017-11:01:30.901 : Session reset: New session<u></u><u></u></p>
<p class="MsoNormal">20141017-11:01:30.901 : Created session<u></u><u></u></p>
<p class="MsoNormal">20141017-11:01:31.807 : Connecting to 172.18.133.178 on port 1024<u></u><u></u></p>
<p class="MsoNormal">20141017-11:01:33.839 : Connection failed: No connection could be made because the target machine actively refused it <a href="http://172.18.133.178:1024" target="_blank">172.18.133.178:1024</a><u></u><u></u></p>
<p class="MsoNormal">20141017-11:01:39.917 : Connecting to 172.18.133.178 on port 1024<u></u><u></u></p>
<p class="MsoNormal">20141017-11:01:40.917 : Connection failed: No connection could be made because the target machine actively refused it <a href="http://172.18.133.178:1024" target="_blank">172.18.133.178:1024</a><u></u><u></u></p>
<p class="MsoNormal">20141017-11:01:46.011 : Connecting to 172.18.133.178 on port 1024<u></u><u></u></p>
<p class="MsoNormal">20141017-11:01:47.042 : Connection failed: No connection could be made because the target machine actively refused it <a href="http://172.18.133.178:1024" target="_blank">172.18.133.178:1024</a><u></u><u></u></p>
<p class="MsoNormal">20141017-11:01:52.105 : Connecting to 172.18.133.178 on port 1024<u></u><u></u></p>
<p class="MsoNormal">20141017-11:01:53.120 : Connection failed: No connection could be made because the target machine actively refused it <a href="http://172.18.133.178:1024" target="_blank">172.18.133.178:1024</a><u></u><u></u></p><span class="">
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">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.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
</span><p class="MsoNormal">20141017-14:36:59.112 : Connection failed: No connection could be made because the target machine actively refused it <a href="http://172.18.133.178:1024" target="_blank">172.18.133.178:1024</a><u></u><u></u></p>
<p class="MsoNormal">20141017-14:37:04.190 : Connecting to 172.18.133.178 on port 1024<u></u><u></u></p>
<p class="MsoNormal">20141017-14:37:08.347 : Connection succeeded<u></u><u></u></p>
<p class="MsoNormal">20141017-14:37:11.097 : Session reset: ResetOnLogon<u></u><u></u></p>
<p class="MsoNormal">20141017-14:37:13.550 : Session reset: ResetSeqNumFlag<u></u><u></u></p>
<p class="MsoNormal">20141017-14:37:13.565 : Initiated logon request<u></u><u></u></p>
<p class="MsoNormal">20141017-14:37:14.894 : Received logon<u></u><u></u></p><span class="">
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Any help would be appreciated. <u></u><u></u></p>
<p class="MsoNormal">Thanks,<u></u><u></u></p>
<p class="MsoNormal"><span style="color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d"><u></u> <u></u></span></p>
<div>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:"Futura Hv","sans-serif";color:#595959">CURT RETTENMIER<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:"Futura Hv","sans-serif";color:#595959">Information Developer<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:"Futura Hv","sans-serif";color:#595959">Avista Utilities<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:"Futura Hv","sans-serif";color:#595959">HP Enterprise Services<u></u><u></u></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"> <a href="tel:%2B1%20509.495.8492" value="+15094958492" target="_blank">+1 509.495.8492</a><u></u><u></u></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" target="_blank"><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"> <u></u><u></u></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<u></u><u></u></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<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;font-family:"Futura Bk","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d"><img border="0" width="35" height="17" src="cid:image001.png@01CFE91A.77BD7440" alt="Description: cid:image001.png@01CD29CD.B57A0640"></span><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:blue"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:blue"><u></u> <u></u></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="color:blue"><u></u><u></u></span></p>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
</span></div>
</div>
<br>_______________________________________________<br>
Quickfixn mailing list<br>
<a href="mailto:Quickfixn@lists.quickfixn.com">Quickfixn@lists.quickfixn.com</a><br>
<a href="http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com" target="_blank">http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div><font><span style="background-color:#000000"><span style="background-color:#ffffff">Grant Birchmeier</span></span></font><font><font color="#3333ff"><br></font></font></div><div><font><b><font color="#3333ff"><span style="background-color:#ffcc33"><span style="background-color:#ffcc66"><span style="background-color:#ffcc99"><span style="background-color:#ffffff"><span style="background-color:#ffcc00">Connamara Systems, LLC</span></span></span></span></span></font></b></font><br></div><div><font><b>Made-To-Measure Trading Solutions.</b></font></div><div><font>Exactly what you need. No more. No less.</font><font><b><font color="#3333ff"><br></font></b></font></div><div><font><a href="http://connamara.com" target="_blank">http://connamara.com</a><br></font></div>
</div>