Error with the WinRM communicator

178 views
Skip to first unread message

Sean Farrow

unread,
Jun 28, 2015, 9:06:35 AM6/28/15
to packe...@googlegroups.com

Hi,

 

When trying to us the winrm communicator I get the following error when creating a vmware iso:

Error uploading VMware Tools: Error uploading file to $env:TEMP\winrmcp-558fefc5-b394-c6f1-e7c3-9f6a27f21e76.tmp: upload operation returned code=1

Any idea what’s going on here?

Cheers

Sean.

Alvaro Miranda Aguilera

unread,
Jun 29, 2015, 1:23:45 AM6/29/15
to packe...@googlegroups.com
can you share a packer template and the debug log?

PACKER_LOG=true packer build .....

Thanks
> --
> This mailing list is governed under the HashiCorp Community Guidelines -
> https://www.hashicorp.com/community-guidelines.html. Behavior in violation
> of those guidelines may result in your removal from this mailing list.
>
> GitHub Issues: https://github.com/mitchellh/packer/issues
> IRC: #packer-tool on Freenode
> ---
> You received this message because you are subscribed to the Google Groups
> "Packer" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to packer-tool...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/packer-tool/DB3PR05MB07314D0A67C2C50209CAB077C6AB0%40DB3PR05MB0731.eurprd05.prod.outlook.com.
> For more options, visit https://groups.google.com/d/optout.

Sean Farrow

unread,
Jun 29, 2015, 1:07:25 PM6/29/15
to packe...@googlegroups.com
Hi,

How/where do I set this in windows--are the packer_log and packer_log_)path environment variables?
Kind regards
Sean.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/CAHqq0eyGUZ2ay8ySHiKg0f8ihKg455Y72nceMTcFGd_Qm9ig8g%40mail.gmail.com.

Ethan S.

unread,
Jun 29, 2015, 2:07:23 PM6/29/15
to packe...@googlegroups.com
Sean, you simply run the packer command with that ENV variable out in front, exactly as Alvaro posted with your template.json filename instead of the ... and it should do the right thing. You could set PACKER_LOG=true (or 1, or anything not 0) at a system wide level, but that produces a lot of output.

Alvaro Miranda Aguilera

unread,
Jun 30, 2015, 4:55:44 AM6/30/15
to packe...@googlegroups.com
Hello

in bash/linux/unix/osx is

export PACKER_LOG=1

in windows under cmd

set PACKER_LOG=1

then

packer build ...


On Tue, Jun 30, 2015 at 5:07 AM, Sean Farrow
> To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/DB3PR05MB07313AC0DD7214DDA1C706B2C6AA0%40DB3PR05MB0731.eurprd05.prod.outlook.com.

Sean Farrow

unread,
Jun 30, 2015, 5:05:41 AM6/30/15
to packe...@googlegroups.com
Hi,

I managed to sort this and sent a log snipit yesterday uk time, do you want me to resent the error?
Cheers
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/CAHqq0eyVnWaviJTY-2czRvMwybD9x3jp3_HbQ%3DSgsRh4%3DTTmgQ%40mail.gmail.com.

Alvaro Miranda Aguilera

unread,
Jun 30, 2015, 6:06:51 AM6/30/15
to packe...@googlegroups.com
yes please

I can't find it..

On Tue, Jun 30, 2015 at 9:05 PM, Sean Farrow
> To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/DB3PR05MB0731327FB20F88B33AF99551C6A90%40DB3PR05MB0731.eurprd05.prod.outlook.com.

Sean Farrow

unread,
Jun 30, 2015, 6:11:15 AM6/30/15
to packe...@googlegroups.com
Hi,

Hi,

Here you go:
I’ve got the following error at the end of my log.
19:26:18 ui error: Build 'vmware-iso' errored: Error uploading VMware Tools: Error uploading file to $env:TEMP\winrmcp-55918d75-2d11-ddd5-3a6e-5141add6e22f.tmp: http error: 500 - <s:Envelope xml:lang="en-US" xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:x="http://schemas.xmlsoap.org/ws/2004/09/transfer" xmlns:e="http://schemas.xmlsoap.org/ws/2004/08/eventing" xmlns:n="http://schemas.xmlsoap.org/ws/2004/09/enumeration" xmlns:w="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd" xmlns:p="http://schemas.microsoft.com/wbem/wsman/1/wsman.xsd"><s:Header><a:Action>http://schemas.dmtf.org/wbem/wsman/1/wsman/fault</a:Action><a:MessageID>uuid:627CB7A4-DE58-49D4-A9EA-7284E09D1C79</a:MessageID><a:To>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</a:To><a:RelatesTo>uuid:0591d146-7bae-44de-44b1-34db36c2a47f</a:RelatesTo></s:Header><s:Body><s:Fault><s:Code><s:Value>s:Receiver</s:Value><s:Subcode><s:Value>w:InternalError</s:Value></s:Subcode></s:Code><s:Reason><s:Text xml:lang="en-US">The WS-Management service cannot process the request. The maximum number of concurrent operations for this user has been exceeded. Close existing operations for this user, or raise the quota for this user. </s:Text></s:Reason><s:Detail><f:WSManFault xmlns:f="http://schemas.microsoft.com/wbem/wsman/1/wsmanfault" Code="2150859174" Machine="192.168.146.132"><f:Message>The WS-Management service cannot process the request. This user is allowed a maximum number of 15 concurrent operations, which has been exceeded. Close existing operations for this user, or raise the quota for this user. </f:Message></f:WSManFault></s:Detail></s:Fault></s:Body></s:Envelope>
2015/06/29 19:26:18 Builds completed. Waiting on interrupt barrier...
2015/06/29 19:26:18 machine readable: error-count []string{"1"}
2015/06/29 19:26:18 ui error:
==> Some builds didn't complete successfully and had errors:
2015/06/29 19:26:18 machine readable: vmware-iso,error []string{"Error uploading VMware Tools: Error uploading file to $env:TEMP\\winrmcp-55918d75-2d11-ddd5-3a6e-5141add6e22f.tmp: http error: 500 - <s:Envelope xml:lang=\"en-US\" xmlns:s=\"http://www.w3.org/2003/05/soap-envelope\" xmlns:a=\"http://schemas.xmlsoap.org/ws/2004/08/addressing\" xmlns:x=\"http://schemas.xmlsoap.org/ws/2004/09/transfer\" xmlns:e=\"http://schemas.xmlsoap.org/ws/2004/08/eventing\" xmlns:n=\"http://schemas.xmlsoap.org/ws/2004/09/enumeration\" xmlns:w=\"http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd\" xmlns:p=\"http://schemas.microsoft.com/wbem/wsman/1/wsman.xsd\"><s:Header><a:Action>http://schemas.dmtf.org/wbem/wsman/1/wsman/fault</a:Action><a:MessageID>uuid:627CB7A4-DE58-49D4-A9EA-7284E09D1C79</a:MessageID><a:To>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</a:To><a:RelatesTo>uuid:0591d146-7bae-44de-44b1-34db36c2a47f</a:RelatesTo></s:Header><s:Body><s:Fault><s:Code><s:Value>s:Receiver</s:Value><s:Subcode><s:Value>w:InternalError</s:Value></s:Subcode></s:Code><s:Reason><s:Text xml:lang=\"en-US\">The WS-Management service cannot process the request. The maximum number of concurrent operations for this user has been exceeded. Close existing operations for this user, or raise the quota for this user. </s:Text></s:Reason><s:Detail><f:WSManFault xmlns:f=\"http://schemas.microsoft.com/wbem/wsman/1/wsmanfault\" Code=\"2150859174\" Machine=\"192.168.146.132\"><f:Message>The WS-Management service cannot process the request. This user is allowed a maximum number of 15 concurrent operations, which has been exceeded. Close existing operations for this user, or raise the quota for this user. </f:Message></f:WSManFault></s:Detail></s:Fault></s:Body></s:Envelope>"}
2015/06/29 19:26:18 ui error: --> vmware-iso: Error uploading VMware Tools: Error uploading file to $env:TEMP\winrmcp-55918d75-2d11-ddd5-3a6e-5141add6e22f.tmp: http error: 500 - <s:Envelope xml:lang="en-US" xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:x="http://schemas.xmlsoap.org/ws/2004/09/transfer" xmlns:e="http://schemas.xmlsoap.org/ws/2004/08/eventing" xmlns:n="http://schemas.xmlsoap.org/ws/2004/09/enumeration" xmlns:w="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd" xmlns:p="http://schemas.microsoft.com/wbem/wsman/1/wsman.xsd"><s:Header><a:Action>http://schemas.dmtf.org/wbem/wsman/1/wsman/fault</a:Action><a:MessageID>uuid:627CB7A4-DE58-49D4-A9EA-7284E09D1C79</a:MessageID><a:To>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</a:To><a:RelatesTo>uuid:0591d146-7bae-44de-44b1-34db36c2a47f</a:RelatesTo></s:Header><s:Body><s:Fault><s:Code><s:Value>s:Receiver</s:Value><s:Subcode><s:Value>w:InternalError</s:Value></s:Subcode></s:Code><s:Reason><s:Text xml:lang="en-US">The WS-Management service cannot process the request. The maximum number of concurrent operations for this user has been exceeded. Close existing operations for this user, or raise the quota for this user. </s:Text></s:Reason><s:Detail><f:WSManFault xmlns:f="http://schemas.microsoft.com/wbem/wsman/1/wsmanfault" Code="2150859174" Machine="192.168.146.132"><f:Message>The WS-Management service cannot process the request. This user is allowed a maximum number of 15 concurrent operations, which has been exceeded. Close existing operations for this user, or raise the quota for this user. </f:Message></f:WSManFault></s:Detail></s:Fault></s:Body></s:Envelope>
2015/06/29 19:26:18 ui:
==> Builds finished but no artifacts were created.
2015/06/29 19:26:18 waiting for all plugin processes to complete...
2015/06/29 19:26:18 C:\HashiCorp\packer\packer-post-processor-vagrant.exe: plugin process exited
2015/06/29 19:26:18 C:\HashiCorp\packer\packer-provisioner-shell.exe: plugin process exited
2015/06/29 19:26:18 C:\HashiCorp\packer\packer-builder-vmware-iso.exe: plugin process exited
How do I increase the number of concurrent connections, or is this a packer bug?
Ideally I’d like to do this with packer or the autounattend.xml file.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/CAHqq0ezM3MRPQHyA33WV2KGcAMyTmVRWQBVFf3ZE-rpajWbU%2Bw%40mail.gmail.com.

Ethan S.

unread,
Jun 30, 2015, 5:48:16 PM6/30/15
to packe...@googlegroups.com
Are you using an existing template for building Windows with the WinRM communicator? Are you using Packer 0.8.0 with WinRM support build in or 0.7.5 with the packer-windows-plugins? Typically this is done in the Autounattend.xml or a separate .bat file uploaded to the floppy disk and executed by a provisioner in the VM setup.
Reply all
Reply to author
Forward
0 new messages