-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
winrm-exec.py Errors #27
Comments
Hi @hs-hub-world: Can you share some info about your environment?
Thanks |
Hello @ltamaster Python version = 2.7.5 sorry I don't have the example to share at the moment. I'll have to reinstall the latest version of pywinrm to recreate some examples. I'll try to do it later this week. Thank you |
no problem, which is your remote windows version? |
I wasn't able to reproduce it with python 2.7.10 and a Windows Server 2012. |
sorry I had a typo, I update the post it's Win version 2016 |
Sorry I wasn't able to reproduce it with the same scenario. I have the feeling that the line 70-71 is producing the error
But I need to know why that handler is reached |
Hi @ondrejbaranek, I would like to reproduce that error. Thanks |
@ltamaster It is PowerShell script, runs fine until section with: puppet apply site.pp --modulepath=modules --hiera_config=hiera.yaml |
Hi @ondrejbaranek , Could you try the snapshot version? |
Already tried, same error. |
Did you tried py-winrm-plugin-2.0.3-SNAPSHOT.zip? or the previous one? |
I'll try the snapshot version later today or tomorrow, to add little more context, the error occurred when executing PS1 from the remote node and not when doing direct execution from rundeck/adhoc command. Maybe related to encoding? |
2.0.3 snapshot is even worse, it is translating the characters wrongly: it is inline script copied from UTF8 CRLF
|
@ondrejbaranek What I got, which is probably the issue, that it is not displayed correctly some special characters like |
@hs-hub-world @ondrejbaranek |
the snapshot version seems to be working fine for me... Thank you |
great @hs-hub-world thanks for the feedback |
@ltamaster the latest snapshot works so far. Thanks! |
I generated a new release. |
Hi, with the latest release of py-winrm-plugin I am seeing these errors when executing PS scripts.
Note, I rolled back to previous version 2.0.0 and that works fine.
Hope the image provides enough data.
Thanks,
HS
The text was updated successfully, but these errors were encountered: