how to debug random errors on win_msi Windows module?

“seen it without that as well” = seen the StackOverflow on the mainline dev branch, using win_msi and the powershell.ps1 from the mainline as well.

Out of memory? For real? I havent seen that since the 90’s. Put some more ram in your box?

Well I’m consistently getting StackOverflows now too, so I think the two might be related; some kind of infinite loop that sometimes runs out of memory before it can overflow the stack.

The VMs should have plenty of memory, but, then again some of the VMs we have are a bit laggy, so I’m trying some other servers too.

I’m a bit fried though, so I’m probably going to put this on hold for tonight, I’ll hit it clean tomorrow.

I have the latest from your win_package branch, plus the patch to powershell. I also have a clean checkout from the ansible devel branch, and I’m seeing it in both.

To be safe, I think tomorrow I’ll do clean checkouts of both again, just to make sure I haven’t hosed something on my end.

Damon – I’ve been getting occasional stack overflow and out of memory exceptions when testing against Server 2008 R2 without updates. See https://github.com/ansible/ansible/pull/8345#issuecomment-52074837 for a hotfix that might work.

Running with -vvvvv when using winrm provides even more output, including all of stderr if something goes wrong, whereas -vvvv only displays a truncated version (e.g. WINRM RESULT <Response code 0, out “…”, err “…”>).

Make sure you’re running the latest pywinrm (pip install -U http://github.com/diyan/pywinrm/archive/master.zip#egg=pywinrm). I’d submitted some fixes earlier this week related to timeouts; previously you would get 500 errors for any command taking longer than 60 seconds.

Cool thanks Chris I’ll check that out.

I’ll make sure to update pywinrm, on one control in pretty sure i don’t have that version because I didn’t specify the repo to take it from. The other is probably a month old, and i was getting some 500s, SOs, and out of memories.

And should i just go ahead and turn the -v’s up to 11? :smiley: that should make the Spinal Tap logo show up instead of the cow!