Skip to content

It chokes on some cookbooks... #12

@docwhat

Description

@docwhat

It is true: 'runit' is not a cookbook I probably would want to run on Windows... but sometimes extra cookbooks are uploaded due to dependencies.

If you have runit as a dependency (but not include_recipe) then you get output like this from kitchen converge:

>>>>>> ------Exception-------
>>>>>> Class: Kitchen::ActionFailed
>>>>>> Message: Failed to complete #converge action: [{:from=>"C:\\Users\\vagrant\\AppData\\Local\\Temp/winrm-upload-0.5348592853682338", :to=>"/tmp/kitchen/cookbooks/runit/files
/default/runsvdir", :message=>"{:data=>[{:stdout=>\"\\r\\n\"}, {:stdout=>\"\\r\\n\"}, {:stdout=>\"    Directory: C:\\\\tmp\\\\kitchen\\\\cookbooks\\\\runit\\\\files\"}, {:stdout=
>\"\\r\\n\"}, {:stdout=>\"\\r\\n\"}, {:stdout=>\"\\r\\n\"}, {:stdout=>\"Mode                LastWriteTime     Length Name                              \"}, {:stdout=>\"\\r\\n\"},
 {:stdout=>\"----                -------------     ------ ----                              \"}, {:stdout=>\"\\r\\n\"}, {:stdout=>\"d----        11/12/2014   9:12 PM            d
efault                           \"}, {:stdout=>\"\\r\\n\"}, {:stderr=>\"#< CLIXML\\r\\n\"}, {:stdout=>\"\\r\\n\"}, {:stdout=>\"\\r\\n\"}, {:stderr=>\"<Objs Version=\\\"1.1.0.1\\
\" xmlns=\\\"http://schemas.microsoft.com/powershell/2004/04\\\"><S S=\\\"Error\\\">Get-Content : Cannot find path _x000D__x000A_</S><S S=\\\"Error\\\">'C:\\\\Users\\\\vagrant\\\
\AppData\\\\Local\\\\Temp\\\\winrm-upload-0.5348592853682338' because _x000D__x000A_</S><S S=\"}, {:stderr=>\"\\\"Error\\\">it does not exist._x000D__x000A_</S><S S=\\\"Error\\\"
>At line:12 char:28_x000D__x000A_</S><S S=\\\"Error\\\">+           $base64_string = Get-Content $tmp_file_path_x000D__x000A_</S><S S=\\\"Error\\\">+                            ~
~~~~~~~~~~~~~~~~~~~~~~~~~_x000D__x000A_</S><S S=\\\"Error\\\">    + CategoryInfo          : ObjectNotFound: (C:\\\\Users\\\\vagran...3485928536823 _x000D__x000A_</S><S S=\\\"Erro
r\\\">   38:String) [Get-Content], ItemNotFoundException_x000D__x000A_</S><S S=\\\"Error\\\">    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetCo _x000D
__x000A_</S><S S=\\\"Error\\\">   ntentCommand_x000D__x000A_</S><S S=\\\"Error\\\"> _x000D__x000A_</S><S S=\\\"Error\\\">Exception calling \\\"FromBase64String\\\" with \\\"1\\\"
 argument(s): \\\"Value cannot be _x000D__x000A_</S><S S=\\\"Error\\\">null._x000D__x000A_</S><S S=\\\"Error\\\">Parameter name: s\\\"_x000D__x000A_</S><S S=\\\"Error\\\">At line
:13 char:11_x000D__x000A_</S><S S=\\\"Error\\\">+           $bytes = [System.Convert]::FromBase64String($base64_string)_x000D__x000A_</S><S S=\\\"Error\\\">+           ~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~_x000D__x000A_</S><S S=\\\"Error\\\">    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException_x000D__x000A_<
/S><S S=\\\"Error\\\">    + FullyQualifiedErrorId : ArgumentNullException_x000D__x000A_</S><S S=\\\"Error\\\"> _x000D__x000A_</S><S S=\\\"Error\\\">Exception calling \\\"WriteAll
Bytes\\\" with \\\"2\\\" argument(s): \\\"Value cannot be null._x000D__x000A_</S><S S=\\\"Error\\\">Parameter name: bytes\\\"_x000D__x000A_</S><S S=\\\"Error\\\">At line:14 char:
11_x000D__x000A_</S><S S=\\\"Error\\\">+           [System.IO.File]::WriteAllBytes($dest_file_path, $bytes)_x000D__x000A_</S><S S=\\\"Error\\\">+           ~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~_x000D__x000A_</S><S S=\\\"Error\\\">    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException_x000D__x000A_</S><S S=\\\"Err
or\\\">    + FullyQualifiedErrorId : ArgumentNullException_x000D__x000A_</S><S S=\\\"Error\\\"> _x000D__x000A_</S></Objs>\"}], :exitcode=>1}"}]
>>>>>> ----------------------
>>>>>> Please see .kitchen/logs/kitchen.log for more details
>>>>>> Also try running `kitchen diagnose --all` for configuration

I'm not entirely sure what's going on there.

ark v0.9.0 also does the same thing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions