Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

Guest2

Me, too

Anonymous wrote:

No there isn't anything in the Event Viewer which is why I came here.

--Craig


I'm having this issue, too. Any resolution?
Guest

No there isn't anything in the Event Viewer which is why I came here.

--Craig
martin

Re: Unsuccessful one when logged out

Is there anything useful in the server's log?
Guest

Unsuccessful one when logged out

. 2015-12-28 07:19:51.332 --------------------------------------------------------------------------
. 2015-12-28 07:19:51.332 WinSCP Version 5.7.6 (Build 5874) (OS 6.3.9600 - Windows Server 2012 R2 Standard)
. 2015-12-28 07:19:51.332 Configuration: HKCU\Software\Martin Prikryl\WinSCP 2\
. 2015-12-28 07:19:51.332 Log level: Normal
. 2015-12-28 07:19:51.332 Local account: XXXX\XXXXX
. 2015-12-28 07:19:51.332 Working directory: C:\Windows\system32
. 2015-12-28 07:19:51.332 Process ID: 9432
. 2015-12-28 07:19:51.332 Command-line: "C:\Program Files (x86)\WinSCP\WinSCP.exe" /log=C:\winscp.log /command "option batch abort" "option confirm off" "open sftp://Username:Pass@XX.XX.XX.XX/" "put C:\*.IND -delete" "exit"
. 2015-12-28 07:19:51.332 Time zone: Current: GMT-6, Standard: GMT-6 (Central Standard Time), DST: GMT-5 (Central Daylight Time), DST Start: 3/8/2015, DST End: 11/1/2015
. 2015-12-28 07:19:51.332 Login time: Monday, December 28, 2015 7:19:51 AM
. 2015-12-28 07:19:51.332 --------------------------------------------------------------------------
. 2015-12-28 07:19:51.332 Script: Retrospectively logging previous script records:
> 2015-12-28 07:19:51.332 Script: option batch abort
< 2015-12-28 07:19:51.332 Script: batch abort
< 2015-12-28 07:19:51.332 Script: reconnecttime 120
> 2015-12-28 07:19:51.332 Script: option confirm off
< 2015-12-28 07:19:51.332 Script: confirm off
> 2015-12-28 07:19:51.332 Script: open sftp://Username:***@XX.XX.XX.XX/
. 2015-12-28 07:19:51.332 --------------------------------------------------------------------------
. 2015-12-28 07:19:51.332 Session name: Username@XX.XX.XX.XX (Ad-Hoc site)
. 2015-12-28 07:19:51.332 Host name: XX.XX.XX.XX (Port: 22)
. 2015-12-28 07:19:51.332 User name: XXXXXX (Password: Yes, Key file: No)
. 2015-12-28 07:19:51.332 Tunnel: No
. 2015-12-28 07:19:51.332 Transfer Protocol: SFTP
. 2015-12-28 07:19:51.332 Ping type: -, Ping interval: 30 sec; Timeout: 15 sec
. 2015-12-28 07:19:51.332 Disable Nagle: No
. 2015-12-28 07:19:51.332 Proxy: none
. 2015-12-28 07:19:51.332 Send buffer: 262144
. 2015-12-28 07:19:51.332 SSH protocol version: 2; Compression: No
. 2015-12-28 07:19:51.332 Bypass authentication: No
. 2015-12-28 07:19:51.332 Try agent: Yes; Agent forwarding: No; TIS/CryptoCard: No; KI: Yes; GSSAPI: No
. 2015-12-28 07:19:51.332 Ciphers: aes,blowfish,3des,WARN,arcfour,des; Ssh2DES: No
. 2015-12-28 07:19:51.332 KEX: dh-gex-sha1,dh-group14-sha1,dh-group1-sha1,rsa,WARN
. 2015-12-28 07:19:51.332 SSH Bugs: A,A,A,A,A,A,A,A,A,A,A,A
. 2015-12-28 07:19:51.332 Simple channel: Yes
. 2015-12-28 07:19:51.332 Return code variable: Autodetect; Lookup user groups: A
. 2015-12-28 07:19:51.332 Shell: default
. 2015-12-28 07:19:51.332 EOL: 0, UTF: 2
. 2015-12-28 07:19:51.332 Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes
. 2015-12-28 07:19:51.332 LS: ls -la, Ign LS warn: Yes, Scp1 Comp: No
. 2015-12-28 07:19:51.332 SFTP Bugs: A,A
. 2015-12-28 07:19:51.332 SFTP Server: default
. 2015-12-28 07:19:51.332 Local directory: default, Remote directory: home, Update: Yes, Cache: Yes
. 2015-12-28 07:19:51.332 Cache directory changes: Yes, Permanent: Yes
. 2015-12-28 07:19:51.332 DST mode: 1
. 2015-12-28 07:19:51.332 --------------------------------------------------------------------------
. 2015-12-28 07:19:51.332 Looking up host "XX.XX.XX.XX"
. 2015-12-28 07:19:51.332 Connecting to XX.XX.XX.XX port 22
. 2015-12-28 07:19:51.363 Server version: SSH-2.0-WeOnlyDo-wodFTPD 3.2.2.395
. 2015-12-28 07:19:51.363 We believe remote version has SSH-2 rekey bug
. 2015-12-28 07:19:51.363 Using SSH protocol version 2
. 2015-12-28 07:19:51.363 We claim version: SSH-2.0-WinSCP_release_5.7.6
. 2015-12-28 07:19:51.363 Network error: Software caused connection abort
Guest

Successful One

. 2015-12-28 07:09:51.263 --------------------------------------------------------------------------
. 2015-12-28 07:09:51.263 WinSCP Version 5.7.6 (Build 5874) (OS 6.3.9600 - Windows Server 2012 R2 Standard)
. 2015-12-28 07:09:51.263 Configuration: HKCU\Software\Martin Prikryl\WinSCP 2\
. 2015-12-28 07:09:51.263 Log level: Normal
. 2015-12-28 07:09:51.263 Local account: XXXX\XXXX
. 2015-12-28 07:09:51.263 Working directory: C:\Windows\system32
. 2015-12-28 07:09:51.263 Process ID: 10208
. 2015-12-28 07:09:51.263 Command-line: "C:\Program Files (x86)\WinSCP\WinSCP.exe" /log=C:\winscp.log /command "option batch abort" "option confirm off" "open sftp://Username:Pass@XX.XX.XX.XX/" "put C:\*.IND -delete" "exit"
. 2015-12-28 07:09:51.263 Time zone: Current: GMT-6, Standard: GMT-6 (Central Standard Time), DST: GMT-5 (Central Daylight Time), DST Start: 3/8/2015, DST End: 11/1/2015
. 2015-12-28 07:09:51.263 Login time: Monday, December 28, 2015 7:09:51 AM
. 2015-12-28 07:09:51.263 --------------------------------------------------------------------------
. 2015-12-28 07:09:51.263 Script: Retrospectively logging previous script records:
> 2015-12-28 07:09:51.263 Script: option batch abort
< 2015-12-28 07:09:51.263 Script: batch abort
< 2015-12-28 07:09:51.263 Script: reconnecttime 120
> 2015-12-28 07:09:51.263 Script: option confirm off
< 2015-12-28 07:09:51.263 Script: confirm off
> 2015-12-28 07:09:51.263 Script: open sftp://Username:***@XX.XX.XX.XX/
. 2015-12-28 07:09:51.263 --------------------------------------------------------------------------
. 2015-12-28 07:09:51.263 Session name: Username@XX.XX.XX.XX (Ad-Hoc site)
. 2015-12-28 07:09:51.263 Host name: XX.XX.XX.XX (Port: 22)
. 2015-12-28 07:09:51.263 User name: XXXXXX (Password: Yes, Key file: No)
. 2015-12-28 07:09:51.263 Tunnel: No
. 2015-12-28 07:09:51.263 Transfer Protocol: SFTP
. 2015-12-28 07:09:51.263 Ping type: -, Ping interval: 30 sec; Timeout: 15 sec
. 2015-12-28 07:09:51.263 Disable Nagle: No
. 2015-12-28 07:09:51.263 Proxy: none
. 2015-12-28 07:09:51.263 Send buffer: 262144
. 2015-12-28 07:09:51.263 SSH protocol version: 2; Compression: No
. 2015-12-28 07:09:51.263 Bypass authentication: No
. 2015-12-28 07:09:51.263 Try agent: Yes; Agent forwarding: No; TIS/CryptoCard: No; KI: Yes; GSSAPI: No
. 2015-12-28 07:09:51.263 Ciphers: aes,blowfish,3des,WARN,arcfour,des; Ssh2DES: No
. 2015-12-28 07:09:51.263 KEX: dh-gex-sha1,dh-group14-sha1,dh-group1-sha1,rsa,WARN
. 2015-12-28 07:09:51.263 SSH Bugs: A,A,A,A,A,A,A,A,A,A,A,A
. 2015-12-28 07:09:51.263 Simple channel: Yes
. 2015-12-28 07:09:51.263 Return code variable: Autodetect; Lookup user groups: A
. 2015-12-28 07:09:51.263 Shell: default
. 2015-12-28 07:09:51.263 EOL: 0, UTF: 2
. 2015-12-28 07:09:51.263 Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes
. 2015-12-28 07:09:51.263 LS: ls -la, Ign LS warn: Yes, Scp1 Comp: No
. 2015-12-28 07:09:51.263 SFTP Bugs: A,A
. 2015-12-28 07:09:51.263 SFTP Server: default
. 2015-12-28 07:09:51.263 Local directory: default, Remote directory: home, Update: Yes, Cache: Yes
. 2015-12-28 07:09:51.263 Cache directory changes: Yes, Permanent: Yes
. 2015-12-28 07:09:51.263 DST mode: 1
. 2015-12-28 07:09:51.263 --------------------------------------------------------------------------
. 2015-12-28 07:09:51.263 Looking up host "XX.XX.XX.XX"
. 2015-12-28 07:09:51.263 Connecting to XX.XX.XX.XX port 22
. 2015-12-28 07:09:51.295 Server version: SSH-2.0-WeOnlyDo-wodFTPD 3.2.2.395
. 2015-12-28 07:09:51.295 We believe remote version has SSH-2 rekey bug
. 2015-12-28 07:09:51.295 Using SSH protocol version 2
. 2015-12-28 07:09:51.295 We claim version: SSH-2.0-WinSCP_release_5.7.6
. 2015-12-28 07:09:51.623 Using Diffie-Hellman with standard group "group14"
. 2015-12-28 07:09:51.623 Doing Diffie-Hellman key exchange with hash SHA-1
. 2015-12-28 07:09:52.013 Verifying host key rsa2 0x23,0xb9ce98be59289f22 4934b41c6ca86ded with fingerprint ssh-rsa 1024 xx:xx:xx:xx
. 2015-12-28 07:09:52.013 Host key matches cached key
. 2015-12-28 07:09:52.013 Host key fingerprint is:
. 2015-12-28 07:09:52.013 ssh-rsa 1024 xx:xx:xx:xx
. 2015-12-28 07:09:52.013 Initialised AES-256 SDCTR client->server encryption
. 2015-12-28 07:09:52.013 Initialised HMAC-SHA1 client->server MAC algorithm
. 2015-12-28 07:09:52.029 Initialised AES-256 SDCTR server->client encryption
. 2015-12-28 07:09:52.029 Initialised HMAC-SHA1 server->client MAC algorithm
! 2015-12-28 07:09:52.029 Using username "XXXXX".
! 2015-12-28 07:09:52.045 Further authentication required
. 2015-12-28 07:09:52.045 Further authentication required
. 2015-12-28 07:09:52.045 Prompt (password, "SSH password", <no instructions>, "&Password: ")
. 2015-12-28 07:09:52.045 Using stored password.
. 2015-12-28 07:09:52.045 Sent password
. 2015-12-28 07:09:52.138 Access granted
. 2015-12-28 07:09:52.138 Opening session as main channel
. 2015-12-28 07:09:52.154 Opened main channel
. 2015-12-28 07:09:52.232 Started a shell/command
. 2015-12-28 07:09:52.232 --------------------------------------------------------------------------
. 2015-12-28 07:09:52.232 Using SFTP protocol.
. 2015-12-28 07:09:52.232 Doing startup conversation with host.
> 2015-12-28 07:09:52.232 Type: SSH_FXP_INIT, Size: 5, Number: -1
< 2015-12-28 07:09:52.248 Type: SSH_FXP_VERSION, Size: 5, Number: -1
. 2015-12-28 07:09:52.248 SFTP version 4 negotiated.
. 2015-12-28 07:09:52.248 We will use UTF-8 strings as it is mandatory with SFTP version 4 and newer
. 2015-12-28 07:09:52.248 Getting current directory name.
. 2015-12-28 07:09:52.248 Getting real path for '.'
> 2015-12-28 07:09:52.248 Type: SSH_FXP_REALPATH, Size: 10, Number: 16
< 2015-12-28 07:09:52.248 Type: SSH_FXP_NAME, Size: 19, Number: 16
. 2015-12-28 07:09:52.248 Real path is '/'
. 2015-12-28 07:09:52.248 Startup conversation with host finished.
< 2015-12-28 07:09:52.248 Script: Active session: [1] Username@XX.XX.XX.XX
> 2015-12-28 07:09:52.248 Script: put C:\*.IND -delete
. 2015-12-28 07:09:52.248 Copying 1 files/directories to remote directory "/"
. 2015-12-28 07:09:52.248 PrTime: Yes; PrRO: No; Rght: rw-r--r--; PrR: No (No); FnCs: N; RIC: 0100; Resume: S (102400); CalcS: No; Mask:
. 2015-12-28 07:09:52.248 TM: B; ClAr: No; RemEOF: No; RemBOM: No; CPS: 0; NewerOnly: No; InclM: ; ResumeL: 0
. 2015-12-28 07:09:52.248 AscM: *.*html; *.htm; *.txt; *.php; *.php3; *.cgi; *.c; *.cpp; *.h; *.pas; *.bas; *.tex; *.pl; *.js; .htaccess; *.xtml; *.css; *.cfg; *.ini; *.sh; *.xml
. 2015-12-28 07:09:52.248 File: 'C:\Chg_15_10_15_13_50_08-03.IND' [2015-11-24T20:08:09.642Z] [223]
. 2015-12-28 07:09:52.248 Copying "C:\Chg_15_10_15_13_50_08-03.IND" to remote directory started.
. 2015-12-28 07:09:52.248 Binary transfer mode selected.
. 2015-12-28 07:09:52.248 Opening remote file.
> 2015-12-28 07:09:52.248 Type: SSH_FXP_OPEN, Size: 68, Number: 259
< 2015-12-28 07:09:52.279 Type: SSH_FXP_HANDLE, Size: 27, Number: 259
> 2015-12-28 07:09:52.279 Type: SSH_FXP_WRITE, Size: 262, Number: 774
> 2015-12-28 07:09:52.279 Type: SSH_FXP_CLOSE, Size: 27, Number: 1028
> 2015-12-28 07:09:52.279 Type: SSH_FXP_SETSTAT, Size: 72, Number: 521
< 2015-12-28 07:09:52.279 Type: SSH_FXP_STATUS, Size: 24, Number: 774
< 2015-12-28 07:09:52.295 Type: SSH_FXP_STATUS, Size: 24, Number: 1028
< 2015-12-28 07:09:52.295 Status code: 0
. 2015-12-28 07:09:52.295 Preserving timestamp [2015-11-24T20:08:09.000Z]
< 2015-12-28 07:09:52.357 Type: SSH_FXP_STATUS, Size: 24, Number: 521
< 2015-12-28 07:09:52.357 Status code: 0
. 2015-12-28 07:09:52.357 Transfer done: 'C:\Chg_15_10_15_13_50_08-03.IND' [223]
> 2015-12-28 07:09:52.357 Script: exit
. 2015-12-28 07:09:52.357 Script: Exit code: 0
. 2015-12-28 07:09:52.357 Closing connection.
. 2015-12-28 07:09:52.357 Sending special code: 12
. 2015-12-28 07:09:52.357 Sent EOF message
martin

Re: Server 2012 Task Manager job not working when logged off

Please show us a log file for both situations.
Guest

Server 2012 Task Manager job not working when logged off

I've created a scheduled task on Server 2012R2 to transfer files to a sftp server. The job runs fine if I'm logged in but gives me this error when it runs and I'm not logged in:

Network error: Software caused connection abort


Things I've checked/done:
I have run whether the user is logged in or not selected and entered the correct password.
I have checked Run with the Highest Priority.
I've disabled the firewall.
There is no other antivirus/malware/firewall running.

Here is how it's setup:

Action: Start a program
Program/Script: "C:\Program Files (x86)\WinSCP\WinSCP.exe"
Add arguments (optional): /log=C:\winscp.log /command "option batch abort" "option confirm off" "open sftp://username:password@hostname/ -hostkey=""xx:xx:xx:xx""" "put C:\Import\*.* -delete" "exit"

I'm stumped as to why it works when I'm logged on but fails with Network error: Software caused connection abort when I'm not.

Thanks for any assistance.

--Craig