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


mreigler
2012-11-14T20:15:39Z
We set up a job to download a file from an ftp site. I can browse the ftp site and download without a problem using the FTP\SSH Terminal explore but when I run the job the download task errors with Connection failed (error code is 10061). I can also connect to the ftp site from the server using other ftp clients.

VC version 6.1.4

Thanks.

Mike
Sponsor
Forum information
Support
2012-11-14T20:37:22Z
Are you using certificates in the Connection?
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
mreigler
2012-11-21T19:51:59Z
No, no certificates. FTP internally is fine and as I said if I use the explorer it is fine. I can see the traffic at the firewall from the explorer, but not when it runs as a job. What is the difference in how the connection is made between the two?
Support
2012-11-21T19:53:31Z
Pleaes try using an ip address instead.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
mreigler
2012-12-12T19:06:15Z
The connection fails using ip. Still puzzled why it would work using visualcron connection explorer.
bbusse
2012-12-12T19:10:35Z
Originally Posted by: mreigler 

The connection fails using ip. Still puzzled why it would work using visualcron connection explorer.



Is your VisualCron Client on another machine and you're connection to a VisualCron Server elsewhere? The VisualCron Explorer for FTP appears to be using the machine the client is running on, for FTP validation.

So in my case, i have a VisualCron server in a DMZ. I can connect to this VisualCron server from my desk, on our internal network, using the VisualCron client. If I set up an FTP connection and test it using the Explorer on the client (from my PC), it works. If I try it from the VisualCron server directly (or run the job that uses it), it fails. This is because the VC server is firewalled off 'somehow' in our environment.

So, what i'm asking is... Have you tried opening the VC Client on the VC Server and tested the connection via 'explorer' ?

Brian
Support
2012-12-12T19:15:15Z
The difference is that if you run it from VisualCron you are connecting in desktop mode and otherwise it is running as SYSTEM account (when running as a Task). Here are the key problems:

1. you are using a certificate or public key which points to a location which the SYSTEM account has not access to
2. some specific network settings are set up for your user but not SYSTEM account
3. so other environment specific value is not available for the SYSTEM account
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
mreigler
2012-12-19T15:58:42Z
Thanks bbusse. I am running the connection explorer from the client on the server. I have also used other ftp clients on the server and they all work.


Henrik,

So the FTP download task does not use the credential set on the task to connect?

mreigler
2012-12-19T16:00:05Z
Also, can the visualcron service run under a different account other than system?
mreigler
2012-12-19T19:35:14Z
I changed the visualcron service account to a domain account and made sure the account. I still get the error. Here is what the log looks like:
12/19/2012 2:29:00 PM Info Task started: FTP to WSI site (2)
12/19/2012 2:29:00 PM Debug Entering wait loop. FTP to WSI site (2)
12/19/2012 2:29:00 PM Debug FTP Command Count: 1
12/19/2012 2:29:01 PM Err Unhandled FTP login error: SBSimpleFTPS.EElFTPSError: Connection failed (error code is 10061)
at OBOKIIHBDBPMCFALPGECCIFHCDJPEDKODDGK.OBNIPPAGHDDHPOBHOGBJLEANJJPFMKFFKJEF.JDBIEFJDGLPICBBAHNBGLAMEELCOMLELLFNE(ConnectionClass , Boolean , VariableReplacerClass )
12/19/2012 2:29:01 PM Debug Commands done
12/19/2012 2:29:01 PM Debug Before dispose
12/19/2012 2:29:01 PM Debug Disposing timer
12/19/2012 2:29:01 PM Debug Trying to disconnect
12/19/2012 2:29:01 PM Debug Stopping watch
12/19/2012 2:29:01 PM Debug Before GetOutput
12/19/2012 2:29:01 PM Debug Before RaiseTaskCompleted
12/19/2012 2:29:01 PM Info Task completed: FTP to WSI site (2)
12/19/2012 2:29:01 PM Debug Process status - About to RemoveTaskProcess (2)
12/19/2012 2:29:01 PM Debug Setting previous task in TaskProcessCompleted: FTP to WSI site (5f0a9057-937a-4b8b-b882-ca29d0fc2577) in job: Get Weather files
12/19/2012 2:29:01 PM Debug Process status - About to SendTaskProcess (2)
12/19/2012 2:29:01 PM Debug Process status - About to RemoveTaskProcess (2)
12/19/2012 2:29:01 PM Debug Task (2) was removed from processlist: FTP to WSI site
12/19/2012 2:29:01 PM Debug Sleep ended because Task ended.FTP to WSI site (2)
12/19/2012 2:29:01 PM Debug TaskWaitQueue.Dequeued.FTP to WSI site (2)
12/19/2012 2:29:01 PM Debug Job (2) was removed from processlist: Get Weather files
12/19/2012 2:29:01 PM Debug Next execution (2) for job 'Get Weather files' is: 12:00:00 AM
12/19/2012 2:29:01 PM Info Job completed: Get Weather files
12/19/2012 2:29:09 PM Debug Saving Jobs
Support
2012-12-21T07:56:35Z
Ok, so it seems like, the VisualCronService.exe gets blocked by a firewall or similar. Try the following:

1. stop the VisualCron service
2. start it manually by double clicking on the VisualCronService.exe
3. let the window start up
4. connect
5. run the Task
6. does it work this way?
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
mreigler
2013-01-08T20:17:03Z
I followed those steps and I get the same error.
bbusse
2013-01-08T21:00:23Z
I'm just going to toss this out there, JUST IN CASE there is a problem somewhere that is unknown.

Have you tried deleting the job (not just the task) and also deleting the FTP 'Connection' and then re-creating them?

This shouldn't fix anything, i'm just curious. OR.. if you don't want to delete them, at least create a NEW connection named something else but still connecting to the same server, and then a new job/task that uses that new connection.

Just curious :)

Brian
Scroll to Top