packer-community / packer-windows-plugins

A suite of Packer plugins for provisioning Windows machines
112 stars 20 forks source link

Windows Server 2008 Provision issue #52

Closed cwarner-mdsol closed 9 years ago

cwarner-mdsol commented 9 years ago

Getting an error from the windows builder using elevated-user/pw, this seems difficult to reproduce i'm not sure if it's a problem with the specific instance in uploading data or something else.

amazon-windows-ebs: Exception calling "RegisterTaskDefinition" with "7" argument(s):
amazon-windows-ebs: "(12,8):LogonType:"
amazon-windows-ebs: At C:\Users\Cwarner\AppData\Local\Temp\packer-elevated-shell-5552665e-6bc1-1dc8
amazon-windows-ebs: -18a3-c65b49f4d9af.ps1:48 char:1
amazon-windows-ebs: + $f.RegisterTaskDefinition($name, $t, 6, "Change!12", "Cwarner", 1, $null) |
amazon-windows-ebs: Out- ...
amazon-windows-ebs: + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
amazon-windows-ebs: ~~~
amazon-windows-ebs: + CategoryInfo   : NotSpecified: (:) [], MethodInvocationException
amazon-windows-ebs: + FullyQualifiedErrorId : ComMethodTargetInvocation
amazon-windows-ebs:
amazon-windows-ebs: Exception calling "GetTask" with "1" argument(s): "The system cannot find the
amazon-windows-ebs: file specified. (Exception from HRESULT: 0x80070002)"
amazon-windows-ebs: At C:\Users\Cwarner\AppData\Local\Temp\packer-elevated-shell-5552665e-6bc1-1dc8
amazon-windows-ebs: -18a3-c65b49f4d9af.ps1:49 char:1
amazon-windows-ebs: + $t = $f.GetTask("\$name")
amazon-windows-ebs: + ~~~~~~~~~~~~~~~~~~~~~~~~~
amazon-windows-ebs: + CategoryInfo   : NotSpecified: (:) [], MethodInvocationException
amazon-windows-ebs: + FullyQualifiedErrorId : ComMethodTargetInvocation
amazon-windows-ebs:
amazon-windows-ebs: Method invocation failed because [System.__ComObject] doesn't contain a method
amazon-windows-ebs: named 'Run'.
amazon-windows-ebs: At C:\Users\Cwarner\AppData\Local\Temp\packer-elevated-shell-5552665e-6bc1-1dc8
amazon-windows-ebs: -18a3-c65b49f4d9af.ps1:50 char:1
amazon-windows-ebs: + $t.Run($null) | Out-Null
amazon-windows-ebs: + ~~~~~~~~~~~~~~~~~~~~~~~~
amazon-windows-ebs: + CategoryInfo   : InvalidOperation: (Run:String) [], RuntimeExcept
amazon-windows-ebs: ion
amazon-windows-ebs: + FullyQualifiedErrorId : MethodNotFound
amazon-windows-ebs::
cwarner-mdsol commented 9 years ago

I'm an idiot.. winuser/winpw were swapped so Symbols were being posted into the template with the opposite values for each. The symbols in winuser then caused this to choke.. I'll update the frontend for this.