Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


mpnieland
2013-05-24T16:30:04Z
I'm currently having an issue where the tray client becomes disconnected from the VisualCron Windows Service, and several Foreground tasks then fail consistently.

The Tray Client is still running, but just disconnected. It doesn't auto connect and I then have to manually close the tray client and start it again (which it then connects successfully again).

I reported an issue on this but I can't reproduce it (happens randomly about once a week) so it's hard to resolve.

What I'm looking to do is create a job to detect this disconnection and auto-reconnect for me. That will keep the Foreground tasks going so that it doesn't become production threatening for us.

I'm attempting to use the API to do this but am having trouble with getting it to work.

I see these methods in the InstallHelper class that seem to be everything I need to make this work:
InstallHelper.IsTrayClientRunning()
InstallHelper.IsTrayClientInstalled()
InstallHelper.InstallTrayClient()
InstallHelper.KillTrayClient()
InstallHelper.StartTrayClient()

But I'm having trouble writing the code to make this work. When I try to implement this I always get False on Tray Client running when it is, and the kill and start ones don't appear to do anything either.

Can someone help me with an example or a stub code that:
1. checks if the tray client is running
2. starts it if it is not

I'm new to writing apps using the API so anything you could provide me would be greatly appreciated.
Sponsor
Forum information
Support
2013-05-27T17:29:08Z
I think we need to find the reason why it becomes disconnected. Could you attach the log_trayclientDATE.txt

About the method InstallHelper.IsTrayClientRunning() - only important thing is that it is within the same session. Please confirm in Task manager that you are logged in in the same session as the tray client.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
ACS
2014-06-03T12:51:52Z
I'm having this same issue. is there something I can do to make sure the client stays connected?
7.1.6
Support
2014-06-03T14:29:25Z
I think it would be interesting to find out _when_ the Tray client gets disconnected and then compare to what happens at the server during that time.

If you have a day when it has been connected and suddenly isn't anymore please send the following to support@visualcron.com:

log_serverDATE.txt
log_trayDATE.txt
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
ACS
2014-06-04T09:50:12Z
Here is what I got before I restarted the client manually.


6/3/2014 8:13:57 AM Ping failed, ex: System.NullReferenceException: Object reference not set to an instance of an object.
at BOANPKPNPJHOGNCDNBHABJKPDJLGJNAGHADB.BFKKBFHNMCPNGKDAMGHAALAAGFILDGDNGLPK.CABHALEMBBLGLBEJGAOMNEDLNCGBBIADJFIE()
6/3/2014 8:13:57 AM Error in PingCheck, err: System.NullReferenceException: Object reference not set to an instance of an object.
at BOANPKPNPJHOGNCDNBHABJKPDJLGJNAGHADB.BFKKBFHNMCPNGKDAMGHAALAAGFILDGDNGLPK.AENHFKOMDOELCJJKFJCDPBLMPIFDPLMEIOHL(Object )
at BOANPKPNPJHOGNCDNBHABJKPDJLGJNAGHADB.BFKKBFHNMCPNGKDAMGHAALAAGFILDGDNGLPK.FJICFLCONLLFDJMFDIBNCOIEEOLLFFJJPBIL(Object )
6/3/2014 8:14:44 AM Tray Client is starting up
6/3/2014 8:14:44 AM Loading exit codes
6/3/2014 8:14:44 AM Loaded language files.
6/3/2014 8:14:44 AM InitServiceController
6/3/2014 8:14:44 AM Running as user name: xxxxx, user domain name: xxxxx, interactive: True
6/3/2014 8:14:45 AM Connecting to VisualCron Server
6/3/2014 8:14:45 AM Connected to Server

Here is what was happening from the server log:

6/3/2014 8:13:56 PM Info Job started: Zendesk to Mactive
6/3/2014 8:13:56 PM Info Task started: PPR Zen XML to U:\ZenObits\IN (950318)
6/3/2014 8:13:56 PM Info Task completed: PPR Zen XML to U:\ZenObits\IN (950318)
6/3/2014 8:13:56 PM Debug TaskProcessCompleted->WaitQueue did not contain id: 950318 for Task (PPR Zen XML to U:\ZenObits\IN)
6/3/2014 8:13:56 PM Debug Process status - About to RemoveTaskProcess (950318)
6/3/2014 8:13:56 PM Info Job completed: Zendesk to Mactive
6/3/2014 8:14:00 PM Info Job started: Wave2 Conversion Import to Advertising System
6/3/2014 8:14:00 PM Info Job started: Get EPS Files AdPay
6/3/2014 8:14:00 PM Info Task started: Process (950319)
6/3/2014 8:14:00 PM Info Task started: Download EPS files Eps_in\temp (950320)
6/3/2014 8:14:00 PM Info Task completed: Process (950319)
6/3/2014 8:14:00 PM Debug TaskProcessCompleted->WaitQueue did not contain id: 950319 for Task (Process)
6/3/2014 8:14:00 PM Debug Process status - About to RemoveTaskProcess (950319)
6/3/2014 8:14:00 PM Debug TaskProcessCompleted->WaitQueue did not contain id: 950319 for Task (Process)
6/3/2014 8:14:00 PM Info Task started: Download Wave2 FTP (950321)
6/3/2014 8:14:00 PM Info Task completed: Download EPS files Eps_in\temp (950320)
6/3/2014 8:14:00 PM Debug TaskProcessCompleted->WaitQueue did not contain id: 950320 for Task (Download EPS files Eps_in\temp)
6/3/2014 8:14:00 PM Debug TaskProcessCompleted->WaitQueue did not contain id: 950320 for Task (Download EPS files Eps_in\temp)
6/3/2014 8:14:00 PM Debug Process status - About to RemoveTaskProcess (950320)
6/3/2014 8:14:00 PM Info Task started: Rename file Eps_in\temp (950322)
6/3/2014 8:14:00 PM Info Task completed: Rename file Eps_in\temp (950322)
6/3/2014 8:14:00 PM Debug TaskProcessCompleted->WaitQueue did not contain id: 950322 for Task (Rename file Eps_in\temp)
6/3/2014 8:14:00 PM Debug TaskProcessCompleted->WaitQueue did not contain id: 950322 for Task (Rename file Eps_in\temp)
6/3/2014 8:14:00 PM Debug Process status - About to RemoveTaskProcess (950322)
6/3/2014 8:14:00 PM Info Task started: Move Eps_in\temp to Eps_in (950323)
6/3/2014 8:14:00 PM Info Task completed: Move Eps_in\temp to Eps_in (950323)
6/3/2014 8:14:00 PM Debug TaskProcessCompleted->WaitQueue did not contain id: 950323 for Task (Move Eps_in\temp to Eps_in)
6/3/2014 8:14:00 PM Debug TaskProcessCompleted->WaitQueue did not contain id: 950323 for Task (Move Eps_in\temp to Eps_in)
6/3/2014 8:14:00 PM Debug Process status - About to RemoveTaskProcess (950323)
6/3/2014 8:14:00 PM Info Task started: Download XML Files (950324)
6/3/2014 8:14:00 PM Info Task completed: Download Wave2 FTP (950321)
6/3/2014 8:14:00 PM Debug TaskProcessCompleted->WaitQueue did not contain id: 950321 for Task (Download Wave2 FTP)
6/3/2014 8:14:00 PM Debug Process status - About to RemoveTaskProcess (950321)
6/3/2014 8:14:00 PM Debug TaskProcessCompleted->WaitQueue did not contain id: 950321 for Task (Download Wave2 FTP)
6/3/2014 8:14:00 PM Info Job completed: Wave2 Conversion Import to Advertising System
6/3/2014 8:14:00 PM Info Task completed: Download XML Files (950324)
6/3/2014 8:14:00 PM Debug TaskProcessCompleted->WaitQueue did not contain id: 950324 for Task (Download XML Files)
6/3/2014 8:14:00 PM Debug Process status - About to RemoveTaskProcess (950324)
6/3/2014 8:14:00 PM Info Task started: Send Response Files (950325)
6/3/2014 8:14:01 PM Info Task completed: Send Response Files (950325)
6/3/2014 8:14:01 PM Debug TaskProcessCompleted->WaitQueue did not contain id: 950325 for Task (Send Response Files)
6/3/2014 8:14:01 PM Debug Process status - About to RemoveTaskProcess (950325)
6/3/2014 8:14:01 PM Info Task started: Move to xmldone (950326)
6/3/2014 8:14:01 PM Info Task completed: Move to xmldone (950326)
6/3/2014 8:14:01 PM Debug TaskProcessCompleted->WaitQueue did not contain id: 950326 for Task (Move to xmldone)
6/3/2014 8:14:01 PM Debug Process status - About to RemoveTaskProcess (950326)
6/3/2014 8:14:01 PM Info Job completed: Get EPS Files AdPay
6/3/2014 8:14:07 PM Info Job started: Zendesk to Mactive
6/3/2014 8:14:07 PM Info Task started: PPR Zen XML to U:\ZenObits\IN (950327)
6/3/2014 8:14:07 PM Info Task completed: PPR Zen XML to U:\ZenObits\IN (950327)
6/3/2014 8:14:07 PM Debug TaskProcessCompleted->WaitQueue did not contain id: 950327 for Task (PPR Zen XML to U:\ZenObits\IN)
6/3/2014 8:14:07 PM Debug Process status - About to RemoveTaskProcess (950327)
6/3/2014 8:14:07 PM Info Job completed: Zendesk to Mactive
6/3/2014 8:14:13 PM Info Job started: Mactive to SalesPoint
6/3/2014 8:14:13 PM Info Task started: Move Salespoint Files from Mactive to Submit (950328)
6/3/2014 8:14:13 PM Info Task completed: Move Salespoint Files from Mactive to Submit (950328)
6/3/2014 8:14:13 PM Debug TaskProcessCompleted->WaitQueue did not contain id: 950328 for Task (Move Salespoint Files from Mactive to Submit)
6/3/2014 8:14:13 PM Debug Process status - About to RemoveTaskProcess (950328)
6/3/2014 8:14:13 PM Info Job completed: Mactive to SalesPoint
6/3/2014 8:14:18 PM Info Job started: Zendesk to Mactive
6/3/2014 8:14:18 PM Info Task started: PPR Zen XML to U:\ZenObits\IN (950329)
6/3/2014 8:14:18 PM Info Task completed: PPR Zen XML to U:\ZenObits\IN (950329)
6/3/2014 8:14:18 PM Debug TaskProcessCompleted->WaitQueue did not contain id: 950329 for Task (PPR Zen XML to U:\ZenObits\IN)
6/3/2014 8:14:18 PM Debug Process status - About to RemoveTaskProcess (950329)
6/3/2014 8:14:18 PM Info Job completed: Zendesk to Mactive
6/3/2014 8:14:29 PM Info Job started: Zendesk to Mactive
6/3/2014 8:14:29 PM Info Task started: PPR Zen XML to U:\ZenObits\IN (950330)
6/3/2014 8:14:29 PM Info Task completed: PPR Zen XML to U:\ZenObits\IN (950330)
6/3/2014 8:14:29 PM Debug TaskProcessCompleted->WaitQueue did not contain id: 950330 for Task (PPR Zen XML to U:\ZenObits\IN)
6/3/2014 8:14:29 PM Debug Process status - About to RemoveTaskProcess (950330)
6/3/2014 8:14:29 PM Info Job completed: Zendesk to Mactive
6/3/2014 8:14:38 PM Debug Saving Jobs
6/3/2014 8:14:40 PM Info Job started: Zendesk to Mactive
6/3/2014 8:14:40 PM Info Task started: PPR Zen XML to U:\ZenObits\IN (950331)
6/3/2014 8:14:40 PM Info Task completed: PPR Zen XML to U:\ZenObits\IN (950331)
6/3/2014 8:14:40 PM Debug TaskProcessCompleted->WaitQueue did not contain id: 950331 for Task (PPR Zen XML to U:\ZenObits\IN)
6/3/2014 8:14:40 PM Debug Process status - About to RemoveTaskProcess (950331)
6/3/2014 8:14:40 PM Info Job completed: Zendesk to Mactive
6/3/2014 8:14:51 PM Info Job started: Zendesk to Mactive
6/3/2014 8:14:51 PM Info Task started: PPR Zen XML to U:\ZenObits\IN (950332)
6/3/2014 8:14:51 PM Info Task completed: PPR Zen XML to U:\ZenObits\IN (950332)
6/3/2014 8:14:51 PM Debug TaskProcessCompleted->WaitQueue did not contain id: 950332 for Task (PPR Zen XML to U:\ZenObits\IN)
6/3/2014 8:14:51 PM Debug Process status - About to RemoveTaskProcess (950332)
6/3/2014 8:14:51 PM Info Job completed: Zendesk to Mactive
6/3/2014 8:14:59 PM Info Job started: SFDC to NewJersey
6/3/2014 8:14:59 PM Info Task started: Send SFDC XML to NJ Star Ledger (950333)
6/3/2014 8:14:59 PM Info Task completed: Send SFDC XML to NJ Star Ledger (950333)
6/3/2014 8:14:59 PM Debug TaskProcessCompleted->WaitQueue did not contain id: 950333 for Task (Send SFDC XML to NJ Star Ledger)
6/3/2014 8:14:59 PM Debug Process status - About to RemoveTaskProcess (950333)
ACS
2014-06-06T03:36:47Z
I would love a resolution to this issue.
I've had this happen 2 or 3 times now and it is a pain to go back and run things that get missed.

Thanks
Support
2014-06-06T09:31:36Z
It seems to be related (at least in time) to the Job: Zendesk to Mactive. Is that a Job with a Foreground Task?
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
ACS
2014-06-07T01:32:09Z
It is an FTP task inside the job.

Download
Upload

There is a resume if failed. 3 times with 10sec for both.

Support
2014-06-09T07:51:23Z
Originally Posted by: ACS 

It is an FTP task inside the job.

Download
Upload

There is a resume if failed. 3 times with 10sec for both.



If you run this Task manually - is the connection lost then (red icon)?
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
ACS
2014-06-16T10:57:41Z
Support
2014-06-16T12:42:57Z
It is really unusual that Tray Client fails to connect. Normally, the reason is that the server service is off for some reason. It appears that this is not the case here. I think we need to find a reproduce case, something you do when this happens, otherwise we have nothing to go on.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top