WinRM execution hangs

294 views
Skip to first unread message

Ben Hines

unread,
May 29, 2014, 10:03:30 PM5/29/14
to rundeck...@googlegroups.com
When i attempt to execute a WinRM job, the job seems to hang.

18:56:43  Debug is true storeKey false useTicketCache false useKeyTab false doNotPrompt false ticketCache is null isInitiator true KeyTab is null refreshKrb5Config is false principal is null tryFirstPass is false useFirstPass is false storePass is false clearPass is false
18:56:43  [Krb5LoginModule] user entered username: smbuildmachine@AM.<MYCOMPANY>.COM
18:56:43 
18:56:43  principal is smbuildmachine@AM.<MYCOMPANY>.COM
18:56:43  Commit Succeeded

but then the job hangs and spins forever. The job has one script step which does 'invoke reboot wmicimv2/Win32_OperatingSystem'

I had to specify the user as username@<full realm name> rather than just the short domain string for it to authenticate.
^^ notice the auth succeeded. If i enter the wrong password, this fails, so something is going right...


These appear in the rundeck service log after a while:

WARN  RequestTargetAuthentication: NEGOTIATE authentication error: No valid credentials provided (Mechanism level: No valid credentials provided (Mechanism level: Receive timed out))
WARN  RequestTargetAuthentication: KERBEROS authentication error: No valid credentials provided (Mechanism level: Receive timed out)

and the job continues to hang. However, my credentials are correct..  as evidenced by when i enter them wrong, i get:
[Krb5LoginModule] authentication failed
19:03:06Pre-authentication information was invalid (24)


Any ideas?

project.properties are:

project.winrm-spn-use-http = false
project.winrm-cert-trust = all
project.winrm-hostname-trust = all
project.winrm-kerberos-debug = true


-Ben





Ben Hines

unread,
May 31, 2014, 1:41:08 AM5/31/14
to rundeck...@googlegroups.com
Got this working. Server was not speking https, disabling https and setting http as connection type in project winrm settings fixed the issue.

-Ben
Reply all
Reply to author
Forward
0 new messages