正如我在这里创建的bug中所描述的:
https://github.com/test-kitchen/kitchen-vagrant/issues/407
当我在刚创建的Windows 10盒上执行厨房会聚时,它会连接并开始在盒子上本地同步菜谱,但是它失败了:
>>>>>> ------Exception-------
>>>>>> Class: Kitchen::ActionFailed
>>>>>> Message: 1 actions failed.
>>>>>> Failed to complete #converge action: [[WinRM::FS::Core::FileTransporter] Upload failed (exitcode: 0), but stderr present
Cannot create "C:\tmp\kitchen" because a file or directory with the same name already exists.
At line:12 char:40
+ $path | ? {-not (test-path $_)} | % {$null = mkdir $_}
+ ~~~~~~~~~~~~~~~~
+ CategoryInfo : WriteError: (C:\tmp\kitchen\cookbooks:String) [New-Item], IOException
+ FullyQualifiedErrorId : CreateDirectoryIOError,Microsoft.PowerShell.Commands.NewItemCommand
Could not find a part of the path 'C:\tmp\kitchen\cookbooks\'.
At line:47 char:17
+ dir $unpack | cp -dest "$dst/" -force -recurse
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : WriteError: (metadata.rb:FileInfo) [Copy-Item], DirectoryNotFoundException
+ FullyQualifiedErrorId : CopyDirectoryInfoItemIOError,Microsoft.PowerShell.Commands.CopyItemCommand
Could not find a part of the path 'C:\tmp\kitchen\cookbooks\'.
At line:47 char:17
+ dir $unpack | cp -dest "$dst/" -force -recurse
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : WriteError: (README.md:FileInfo) [Copy-Item], DirectoryNotFoundException
+ FullyQualifiedErrorId : CopyDirectoryInfoItemIOError,Microsoft.PowerShell.Commands.CopyItemCommand
Could not find a part of the path 'C:\tmp\kitchen\cookbooks\'.
At line:47 char:17
+ dir $unpack | cp -dest "$dst/" -force -recurse
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : WriteError: (default.rb:FileInfo) [Copy-Item], DirectoryNotFoundException
+ FullyQualifiedErrorId : CopyDirectoryInfoItemIOError,Microsoft.PowerShell.Commands.CopyItemCommand
Cannot create "C:\tmp\kitchen" because a file or directory with the same name already exists.
At line:12 char:40
+ $path | ? {-not (test-path $_)} | % {$null = mkdir $_}
+ ~~~~~~~~~~~~~~~~
+ CategoryInfo : WriteError: (C:\tmp\kitchen\cache:String) [New-Item], IOException
+ FullyQualifiedErrorId : CreateDirectoryIOError,Microsoft.PowerShell.Commands.NewItemCommand
] on default-BPA-TEST
>>>>>> ----------------------
>>>>>> Please see .kitchen/logs/kitchen.log for more details
>>>>>> Also try running `kitchen diagnose --all` for configuration发布于 2019-08-08 16:54:21
到目前为止,针对这个问题的一项工作是手动创建以下内容:
c:\tmp\厨房\炊事书在运行厨房之前在方框上的空目录聚合。这解决了问题,并导致会聚成功地发生,但永久使用这种方法并不理想,因为您需要将其烘焙到映像中,或者在同步食谱之前运行注入的内容。
https://serverfault.com/questions/978518
复制相似问题