hashicorp/vagrant · error · VagrantPlugins::CommunicatorWinRM::Errors::ExecutionError
An error occurred executing a remote WinRM command. Shell:
Error message
An error occurred executing a remote WinRM command.
Shell: %{shell}
Command: %{command}
Message: %{message} What it means
Error "An error occurred executing a remote WinRM command. Shell: %{shell} Command: %{command} Message: %{message}" thrown in hashicorp/vagrant.
Source
Thrown at plugins/communicators/winrm/shell.rb:176
if output.stderr.include?("ParserError")
@logger.warn("Detected ParserError, setting exit code to 1")
output.exitcode = 1
end
end
return output
end
def raise_winrm_exception(exception, shell = nil, command = nil)
case exception
when WinRM::WinRMAuthorizationError
raise Errors::AuthenticationFailed,
user: @config.username,
password: @config.password,
endpoint: endpoint,
message: exception.message
when WinRM::WinRMHTTPTransportError
raise Errors::ExecutionError,
shell: shell,
command: command,
message: exception.message
when OpenSSL::SSL::SSLError
raise Errors::SSLError, message: exception.message
when HTTPClient::TimeoutError
raise Errors::ConnectionTimeout, message: exception.message
when IO::TimeoutError
raise Errors::ConnectionTimeout
when Errno::ETIMEDOUT
raise Errors::ConnectionTimeout
# This is raised if the connection timed out
when Errno::ECONNREFUSED
# This is raised if we failed to connect the max amount of times
raise Errors::ConnectionRefused
when Errno::ECONNRESET
# This is raised if we failed to connect the max number of times
# due to an ECONNRESET.View on GitHub (pinned to 35f3160f4a)
When it happens
Trigger: Thrown at plugins/communicators/winrm/shell.rb:176 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of hashicorp/vagrant@35f3160f4a (2026-08-21).
Data as JSON: /api/errors/d4a688d0a16f5dc6.
Report an issue: GitHub.