Skip to content

Instantly share code, notes, and snippets.

@fpkoschitzki
Created March 1, 2024 09:18
Show Gist options
  • Save fpkoschitzki/9c42f1c0441b5133cdd58b83df84555b to your computer and use it in GitHub Desktop.
Save fpkoschitzki/9c42f1c0441b5133cdd58b83df84555b to your computer and use it in GitHub Desktop.
Vagrant puppet provisioner mkdir for existing folder
DEBUG winssh: stderr: 41e57d38-b4f7-4e46-9c38-13873d338b86-vagrant-ssh
DEBUG winssh: Exit status: 0
DEBUG winssh: Re-using SSH connection.
INFO winssh: Execute: net use - opts: {:sudo=>false, :shell=>:powershell, :force_raw=>false}
DEBUG winssh: Base SSH exec command: net use
DEBUG winssh: stderr: 41e57d38-b4f7-4e46-9c38-13873d338b86-vagrant-ssh
DEBUG winssh: Exit status: 0
DEBUG winssh: Re-using SSH connection.
INFO winssh: Execute: mkdir -p c:/tmp - opts: {:sudo=>true, :shell=>:powershell, :force_raw=>false}
DEBUG winssh: Base SSH exec command: mkdir -p c:/tmp
DEBUG winssh: stderr: 41e57d38-b4f7-4e46-9c38-13873d338b86-vagrant-ssh
DEBUG winssh: stderr: #< CLIXML
DEBUG winssh: stderr: <Objs Version="1.1.0.1" xmlns="http://schemas.microsoft.com/powershell/2004/04"><S S="Error">mkdir : An item with the specified name C:\tmp already exists._x000D__x000A_</S><S S="Error">At line:1 char:183_x000D__x000A_</S><S S="Error">+ ... e('41e57d38-b4f
DEBUG winssh: stderr: 7-4e46-9c38-13873d338b86-vagrant-ssh');mkdir -p c:/tmp_x000D__x000A_</S><S S="Error">+ ~~~~~~~~~~~~~~~_x000D__x000A_</S><S S="Error"> + CategoryInfo : ResourceExists: (C:\tmp:String) [Ne
DEBUG winssh: stderr: w-Item], IOException_x000D__x000A_</S><S S="Error"> + FullyQualifiedErrorId : DirectoryExist,Microsoft.PowerShell.Commands.NewItemCommand_x000D__x000A_</S><S S="Error"> _x000D__x000A_</S></Objs>
DEBUG winssh: Exit status: 1
ERROR warden: Error occurred: The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!
mkdir -p c:/tmp
Stdout from the command:
Stderr from the command:
#< CLIXML
<Objs Version="1.1.0.1" xmlns="http://schemas.microsoft.com/powershell/2004/04"><S S="Error">mkdir : An item with the specified name C:\tmp already exists._x000D__x000A_</S><S S="Error">At line:1 char:183_x000D__x000A_</S><S S="Error">+ ... e('41e57d38-b4f7-4e46-9c38-13873d338b86-vagrant-ssh');mkdir -p c:/tmp_x000D__x000A_</S><S S="Error">+ ~~~~~~~~~~~~~~~_x000D__x000A_</S><S S="Error"> + CategoryInfo : ResourceExists: (C:\tmp:String) [New-Item], IOException_x000D__x000A_</S><S S="Error"> + FullyQualifiedErrorId : DirectoryExist,Microsoft.PowerShell.Commands.NewItemCommand_x000D__x000A_</S><S S="Error"> _x000D__x000A_</S></Objs>
INFO warden: Beginning recovery process...
INFO warden: Recovery complete.
ERROR warden: Error occurred: The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment