Community forum

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


cstump
2013-07-24T19:41:07Z
Running VCron 6.2.2 on Windows 2008R2.

Yesterday we upgraded from .net 4 to .net 4.5

After that upgrade one of our SFTP tasks stopped working. When we connect to the FTP server we get the failure listed below. Confirmed this on a test machine with .net 4.0 and the SFTP connection worked. Then upgraded to 4.5 and that SFTP connection stopped working. We have SFTP connections to other companies/servers that still work post upgrade.

Output from the vcron connection explorer:
ConnectThread->Setting authentication (5)
ConnectThread->Before Open (5)
Server key received, fingerprint is cc2dd786bf5cbddf6b17bba2fec8565d
SFTP error 2
SFTP connection closed
SBSimpleSftp.EElSimpleSFTPClientError: Connection failed (error code is 2)
at SBSimpleSftp.TElSimpleSFTPClient.Open()
at ctlRemoteBrowser.JLKMMEIOCBJAGNIJCOMAHGMDBEDAGEPFCFJP(Object )

We use filezilla for manual testing and filezilla still works correctly when connecting to this problematic SFTP server both on 4.0 and 4.5.

Has anybody run into anything similar or have any recommendations?
Sponsor
Forum information
cstump
2013-07-24T19:52:38Z
Also, if I downgrade .net from 4.5 back to 4.0, things start working again. Confirmed on two servers.

Problem is that I need 4.5 for other applications on that server.
cstump
2013-07-30T12:05:17Z
Has anybody else run into any odd issues like this with .net 4.5 and version 6.2.2?

Support
2013-07-30T14:04:15Z
We have not seen this yet or been able to reproduce this. Do you have the same problem with version 7? Will be released in 2 days but exist in beta forum.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
cstump
2013-07-30T16:56:37Z
Have not tried 7 yet. Will try that next week.
Support
2013-07-31T08:49:34Z
Thanks, please let us know.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
cstump
2013-08-06T14:37:04Z
All,

We are still wrestling with this issue. The SFTP server owner has requested more diagnostics from our end. All I know how to see today is the basic info in the connection explorer.

Is there a way to get detailed FTP debugging/logging info out of Vcron for FTP? Similar to the following that we get out of FileZilla (sensitive data replaced with xxxx or yyyy):


Status: Connecting to xxxxxxxxxx:10022...
Trace: Going to execute "C:\Program Files (x86)\FileZilla FTP Client\fzsftp.exe"
Response: fzSftp started
Trace: CSftpControlSocket::ConnectParseResponse(fzSftp started)
Trace: CSftpControlSocket::SendNextCommand()
Trace: CSftpControlSocket::ConnectSend()
Command: open "xxxxxxx@yyyyyyyy" 10022
Trace: Looking up host "yyyyyyyy"
Trace: Connecting to 74.213.143.92 port 10022
Trace: Server version: SSH-2.0-SSHD
Trace: Using SSH protocol version 2
Trace: We claim version: SSH-2.0-PuTTY_Local:_Jun_18_2013_22:07:57
Trace: Doing Diffie-Hellman group exchange
Trace: Doing Diffie-Hellman key exchange with hash SHA-1
Trace: Host key fingerprint is:
Trace: ssh-rsa 2048 0e:03:83:10:28:b2:d8:0d:4d:c5:bb:2b:93:68:49:ab
Trace: Initialised AES-256 CBC client->server encryption
Trace: Initialised HMAC-SHA1 client->server MAC algorithm
Trace: Initialised AES-256 CBC server->client encryption
Trace: Initialised HMAC-SHA1 server->client MAC algorithm
Trace: Using keyboard-interactive authentication. inst_len: 0, num_prompts: 1
Command: Pass: ********
Trace: Access granted
Trace: Opened channel for session
Trace: Started a shell/command
Status: Connected to xxxxxxxxx
Trace: CSftpControlSocket::ConnectParseResponse()
Trace: CSftpControlSocket::ResetOperation(0)
Trace: CControlSocket::ResetOperation(0)
Trace: CFileZillaEnginePrivate::ResetOperation(0)
Status: Retrieving directory listing...
Trace: CSftpControlSocket::SendNextCommand()
Trace: CSftpControlSocket::ChangeDirSend()
Command: pwd
Response: Current directory is: "/"
Trace: CSftpControlSocket::ResetOperation(0)
Trace: CControlSocket::ResetOperation(0)
Trace: CSftpControlSocket::ParseSubcommandResult(0)
Trace: CSftpControlSocket::ListSubcommandResult()
Trace: state = 1
Trace: CSftpControlSocket::SendNextCommand()
Trace: CSftpControlSocket::ListSend()
Trace: state = 2
Command: ls
Status: Listing directory /
Trace: CSftpControlSocket::ListParseResponse()
Trace: CSftpControlSocket::SendNextCommand()
Trace: CSftpControlSocket::ListSend()
Trace: state = 3
Status: Calculating timezone offset of server...
Command: mtime "fs_equity.dat"
Response: 1375794000
Trace: CSftpControlSocket::ListParseResponse(1375794000)
Status: Timezone offsets: Server: -25200 seconds. Local: -18000 seconds. Difference: 7200 seconds.
Trace: CSftpControlSocket::ResetOperation(0)
Trace: CControlSocket::ResetOperation(0)
Status: Directory listing successful
Trace: CFileZillaEnginePrivate::ResetOperation(0)
Status: Connecting to xxxxxxxxx:10022...
Trace: Going to execute "C:\Program Files (x86)\FileZilla FTP Client\fzsftp.exe"
Response: fzSftp started
Trace: CSftpControlSocket::ConnectParseResponse(fzSftp started)
Trace: CSftpControlSocket::SendNextCommand()
Trace: CSftpControlSocket::ConnectSend()
Command: open "xxxxxxxxxxxxxxxx" 10022
Trace: Looking up host "xxxxxxxx"
Trace: Connecting to 74.213.143.92 port 10022
Trace: Server version: SSH-2.0-SSHD
Trace: Using SSH protocol version 2
Trace: We claim version: SSH-2.0-PuTTY_Local:_Jun_18_2013_22:07:57
Trace: Doing Diffie-Hellman group exchange
Trace: Doing Diffie-Hellman key exchange with hash SHA-1
Trace: Host key fingerprint is:
Trace: ssh-rsa 2048 0e:03:83:10:28:b2:d8:0d:4d:c5:bb:2b:93:68:49:ab
Trace: Initialised AES-256 CBC client->server encryption
Trace: Initialised HMAC-SHA1 client->server MAC algorithm
Trace: Initialised AES-256 CBC server->client encryption
Trace: Initialised HMAC-SHA1 server->client MAC algorithm
Trace: Using keyboard-interactive authentication. inst_len: 0, num_prompts: 1
Command: Pass: ********
Trace: Access granted
Trace: Opened channel for session
Trace: Started a shell/command
Status: Connected to xxxxxxxxx
Trace: CSftpControlSocket::ConnectParseResponse()
Trace: CSftpControlSocket::ResetOperation(0)
Trace: CControlSocket::ResetOperation(0)
Trace: CFileZillaEnginePrivate::ResetOperation(0)
Trace: CSftpControlSocket::FileTransfer(...)
Status: Starting download of /fs_equity.dat
Trace: CSftpControlSocket::SendNextCommand()
Trace: CSftpControlSocket::ChangeDirSend()
Command: cd "/"
Response: New directory is: "/"
Trace: CSftpControlSocket::ResetOperation(0)
Trace: CControlSocket::ResetOperation(0)
Trace: CSftpControlSocket::ParseSubcommandResult(0)
Trace: CSftpControlSocket::FileTransferSubcommandResult()
Trace: CSftpControlSocket::SendNextCommand()
Trace: FileTransferSend()
Command: get "fs_equity.dat" "C:\temp\fs_equity.dat"
Status: remote:/fs_equity.dat => local:C:\temp\fs_equity.dat
Trace: FileTransferParseResponse()
Trace: CSftpControlSocket::ResetOperation(0)
Trace: CControlSocket::ResetOperation(0)
Status: File transfer successful, transferred 11,141,120 bytes in 5 seconds
Trace: CFileZillaEnginePrivate::ResetOperation(0)
Trace: CFileZillaEnginePrivate::ResetOperation(0)
Status: Disconnected from server
Trace: CControlSocket::DoClose(64)
Trace: CSftpControlSocket::ResetOperation(66)
Trace: CControlSocket::ResetOperation(66)
Trace: CFileZillaEnginePrivate::ResetOperation(66)
Trace: CControlSocket::DoClose(64)
Trace: CControlSocket::DoClose(64)
Trace: CFileZillaEnginePrivate::ResetOperation(0)
Support
2013-08-06T14:41:44Z
Ok, this has nothing to do with the actual commnication or protocol. It is a file missing. The file probably belongs in .NET 4.0 so please try to re-install that.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
cstump
2013-08-06T15:38:25Z
Sorry, I don't completely understand your comment.

We have uninstalled ,net 4.5 and reinstalled .net 4.0 multiple times. Results are the same each time. We get this error on 4.5 and no errors on 4.0:

Output from the vcron connection explorer:
ConnectThread->Setting authentication (5)
ConnectThread->Before Open (5)
Server key received, fingerprint is cc2dd786bf5cbddf6b17bba2fec8565d
SFTP error 2
SFTP connection closed
SBSimpleSftp.EElSimpleSFTPClientError: Connection failed (error code is 2)
at SBSimpleSftp.TElSimpleSFTPClient.Open()
at ctlRemoteBrowser.JLKMMEIOCBJAGNIJCOMAHGMDBEDAGEPFCFJP(Object )

They are running Axway’s Secure Transport Server 4.92 if that helps.
Support
2013-08-06T15:49:11Z
We got another user with same problem. What was missing was that he had not applied the critical patches for .NET 4.5. Please download and install them.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
cstump
2013-08-06T16:38:30Z
Do you have nay more details on what patches exactly?
cstump
2013-08-06T16:40:08Z
I ask because we are using the latest .net 4.5 install from Microsoft and Windows Update is not indicating any patches available.
Support
2013-08-06T16:40:24Z
I don't. I just know they were "Critical patches to .NET 4.5".
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Support
2013-08-06T16:45:26Z
Ok, I asked again and what he did was to re-install 4.5 and then critical patches were included. By the way, do you still have 2.0 and 3.5 installed?
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
cstump
2013-08-06T17:05:04Z
We are using the latest .net 4.5 from MS dated October 9, 2012. The only critical patches that are available for that based on everything we can tell are as follows and they are just security patches:

KB2742613
KB2804582
KB2737083
KB2789648


cstump
2013-08-06T17:08:22Z
We don't have the older versions installed, just 4.5.

Specifically, version 4.5.50709

cstump
2013-08-06T17:14:34Z
While we look at the .net version issues, is there a way to get more detailed FTP log info per my previous post?
Support
2013-08-06T17:23:28Z
Have you done all updates on the machine?
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
cstump
2013-08-06T17:51:26Z
Yes, there are no available updates. The 4 critical security updates have been applied.

I just installed .net 4.5 on a a new 2008 R2 server and installed VCron 7.0.1. specifically:

- installed .net 4.5
- rebooted
- applied critical patches
- Security Update for Microsoft .NET Framework 4.5 on Windows 7, Vista, Server 2008, and Server 2008 R2 for x64 (KB2737083)
- Security Update for Microsoft .NET Framework 4.5 on Windows 7, Vista, Server 2008, and Server 2008 R2 for x64 (KB2804582)
- Security Update for Microsoft .NET Framework 4.5 on Windows 7, Vista, Windows Server 2008, Windows Server 2008 R2 for x64 (KB2742613)
- Security Update for Microsoft .NET Framework 4.5 on Windows 7, Vista, Windows Server 2008, Windows Server 2008 R2 for x64 (KB2789648)
- installed visual cron 7.0.1

Still getting the exact same results.

cstump
2013-08-06T17:52:31Z
I have a test account on the FTP server I can provide it you want to try to recreate on your end of things.

Support
2013-08-06T19:27:06Z
Could you try the following.

1. Stop the VisualCron service
2. replace the config file in the VisualCron installation folder with the attached one
3. start the service
4. try to run the task again
File Attachment(s):
VisualCronService.exe.zip (1kb) downloaded 80 time(s).

Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
cstump
2013-08-06T19:36:23Z
That worked! What was the magic?

Also, is there a way to get more FTP debug/verbose/diagnostic info back from the FTP connection for future debugging?
cstump
2013-08-06T20:59:33Z
I take that last back. I swear it was working on my initial test bu now I am getting the error again. I need to test some more before.

cstump
2013-08-07T01:51:20Z
Found the issue. You were right, it was missing patches. Sorry.

I forgot there is a difference in how patches are approved in my test environment as opposed to the prod environment.

One or more of these .net 4.5 patches solved it:

KB2805226
KB2805221
KB2750147

I know this works in 7.0.1. I need to test more tomorrow with 6.2.2. as we cant pgrade to 7.0.1 in production yet.
Support
2013-08-07T06:34:22Z
Thanks for the information and your patience!
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top