Hi there.SFTP scheduled jobs failing with error "error: Failed to create SSH connection server Error :(0x80080005): Server execution failed"

Kannan Baskaran NCS 1 Reputation point
2021-01-08T11:44:27.62+00:00

2021-01-07 17:57:53:138 debug1: Command line options applied
2021-01-07 17:57:53:138 debug3: Caller did not configure IPV4/IPV6
2021-01-07 17:57:53:138 debug3: Remote command sent to SSH server: sftp
2021-01-07 17:57:53:138 debug3: ROT Entry to find COM server: {DF830361-********************}20.0.0_testserver_sftp@testserver:22_0
2021-01-07 17:57:53:138 debug3: Entering COM connection service critical section.
2021-01-07 17:57:53:138 debug3: Re-use disabled sftp@testserver:0 connection.
2021-01-07 17:57:53:138 debug3: Leaving COM connection service critical section.
2021-01-07 17:57:53:151 debug3: Entering COM connection service critical section.
2021-01-07 17:57:53:151 debug3: Creating COM connection service.
error: Failed to create SSH connection server
error: Error (0x80080005): Server execution failed
2021-01-07 17:58:23:241 debug3: COM server creation failed sftp@testserver connection.
2021-01-07 17:58:23:241 debug3: Leaving COM connection service critical section.
2021-01-07 17:58:23:252 debug3: Application connection thread signaled connect event.
2021-01-07 17:58:23:252 debug3: Disconnect: Application connection thread still active.
2021-01-07 17:58:23:252 debug3: Application connection thread disconnect event signaled.
2021-01-07 17:58:23:252 debug3: Destroying COM connection service.
2021-01-07 17:58:23:253 debug3: Application connection terminated normally.
2021-01-07 17:58:23:253 debug3: Crypto module cleanup called.
2021-01-07 17:58:23:305 debug1: Exit status set to 4

Windows for business | Windows Server | User experience | Other
{count} votes

1 answer

Sort by: Most helpful
  1. MotoX80 36,401 Reputation points
    2021-01-11T17:09:26.087+00:00

    Do you get the error when you run it interactively?

    From my experience, I don't see how or why a COM application is involved here. OpenSSH is port from Unix based systems and I don't think that COM exists on that platform.

    Please verify that you are running sftp.exe from the OpenSSH feature of Windows.

    C:\>where sftp.exe
    C:\Windows\System32\OpenSSH\sftp.exe

    The error appears when we run the sftp command /job in debug mode..

    By "debug mode", do you mean the -v command line switch?

    C:\>sftp.exe -v admin@test10b
    OpenSSH_for_Windows_7.7p1, LibreSSL 2.6.5
    debug1: Connecting to test10b [192.168.1.5] port 22.
    debug1: connect to address 192.168.1.5 port 22: Connection timed out
    ssh: connect to host test10b port 22: Connection timed out
    Connection closed

    What switch did you use to get it to display debug level 3? I do not see that in the man pages or in the help output.

    ttps://www.openssh.com/manual.html
    https://man.openbsd.org/sftp

    C:\>sftp.exe -help
    usage: sftp [-46aCfpqrv] [-B buffer_size] [-b batchfile] [-c cipher]
    [-D sftp_server_path] [-F ssh_config] [-i identity_file] [-l limit]
    [-o ssh_option] [-P port] [-R num_requests] [-S program]
    [-s subsystem | sftp_server] destination

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.