{{Quickfixn}} Scheduled task issues

Rettenmier, Curt Curt.Rettenmier at avistacorp.com
Thu Oct 16 13:46:44 PDT 2014


Francis,

172.18.133.178 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:
[FIXSERVER]
client = yes
accept = 172.18.133.178:1024
connect = 63.247.112.208:443
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.

CURT RETTENMIER
Information Developer
Avista Utilities
HP Enterprise Services
Telephone +1 509.495.8492
Email curt.rettenmier at avistacorp.com<mailto:curt.rettenmier at avistacorp.com>
MSC - 28
1411 E. Mission, Spokane, WA 99202

[Description: cid:image001.png at 01CD29CD.B57A0640]

This message and any attached files or documents may contain information that is confidential and considered proprietary to Avista Corporation. 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.

From: Quickfixn [mailto:quickfixn-bounces at lists.quickfixn.com] On Behalf Of Francis Gingras
Sent: Thursday, October 16, 2014 1:41 PM
To: Mailing list for QuickFIX/n
Subject: Re: {{Quickfixn}} Scheduled task issues

Hi Curt,

Aren't you supposed to connect to 127.0.0.1 when using sTunnel?

Best regards,

Francis Gingras


__________________________________
Thursday, October 16, 2014, 11:42:24 AM, Curt wrote:

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.

20141016-11:01:01.027 : Session FIX.4.4:552/ADMIN->ICE already disconnected: Resetting...
20141016-11:01:01.199 : Session reset: New session
20141016-11:01:01.199 : Created session
20141016-11:01:01.574 : Connecting to 172.18.133.178 on port 1024
20141016-11:01:02.933 : Connection failed: No connection could be made because the target machine actively refused it 172.18.133.178:1024
20141016-11:01:09.699 : Connecting to 172.18.133.178 on port 1024
20141016-11:01:10.714 : Connection failed: No connection could be made because the target machine actively refused it 172.18.133.178:1024

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.

20141016-14:38:03.662 : Connecting to 172.18.133.178 on port 1024
20141016-14:38:04.677 : Connection failed: No connection could be made because the target machine actively refused it 172.18.133.178:1024
20141016-14:38:09.802 : Connecting to 172.18.133.178 on port 1024
20141016-14:38:09.912 : Connection succeeded
20141016-14:38:11.990 : Session reset: ResetOnLogon
20141016-14:38:13.943 : Session reset: ResetSeqNumFlag
20141016-14:38:14.115 : Initiated logon request
20141016-14:38:15.068 : Received logon

Any help would be appreciated.
Thanks,

CURT RETTENMIER
Information Developer
Avista Utilities
HP Enterprise Services
Telephone +1 509.495.8492
Email curt.rettenmier at avistacorp.com<mailto:curt.rettenmier at avistacorp.com>
MSC - 28
1411 E. Mission, Spokane, WA 99202

[cid:image001.png at 01CFE947.9F138480]

This message and any attached files or documents may contain information that is confidential and considered proprietary to Avista Corporation. 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.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.quickfixn.com/pipermail/quickfixn-quickfixn.com/attachments/20141016/77ec15d9/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 749 bytes
Desc: image001.png
URL: <http://lists.quickfixn.com/pipermail/quickfixn-quickfixn.com/attachments/20141016/77ec15d9/attachment-0001.png>


More information about the Quickfixn mailing list