{"record":{"id":"a325e44773828056","repo":"hashicorp/vagrant","slug":"vagrant-timed-out-while-attempting-to-connect-via","errorCode":null,"errorMessage":"Vagrant timed out while attempting to connect via WinRM. This usually\nmeans that the VM booted, but there are issues with the WinRM configuration\nor network connectivity issues. Please try to `vagrant reload` or\n`vagrant up` again.","messagePattern":"Vagrant timed out while attempting to connect via WinRM\\. This usually\nmeans that the VM booted, but there are issues with the WinRM configuration\nor network connectivity issues\\. Please try to `vagrant reload` or\n`vagrant up` again\\.","errorType":"exception","errorClass":"VagrantPlugins::CommunicatorWinRM::Errors::ConnectionTimeout","httpStatus":null,"severity":"error","filePath":"plugins/communicators/winrm/shell.rb","lineNumber":183,"sourceCode":"      end\n\n      def raise_winrm_exception(exception, shell = nil, command = nil)\n        case exception\n        when WinRM::WinRMAuthorizationError\n          raise Errors::AuthenticationFailed,\n              user: @config.username,\n              password: @config.password,\n              endpoint: endpoint,\n              message: exception.message\n        when WinRM::WinRMHTTPTransportError\n          raise Errors::ExecutionError,\n            shell: shell,\n            command: command,\n            message: exception.message\n        when OpenSSL::SSL::SSLError\n          raise Errors::SSLError, message: exception.message\n        when HTTPClient::TimeoutError\n          raise Errors::ConnectionTimeout, message: exception.message\n        when IO::TimeoutError\n          raise Errors::ConnectionTimeout\n        when Errno::ETIMEDOUT\n          raise Errors::ConnectionTimeout\n          # This is raised if the connection timed out\n        when Errno::ECONNREFUSED\n          # This is raised if we failed to connect the max amount of times\n          raise Errors::ConnectionRefused\n        when Errno::ECONNRESET\n          # This is raised if we failed to connect the max number of times\n          # due to an ECONNRESET.\n          raise Errors::ConnectionReset\n        when Errno::EHOSTDOWN\n          # This is raised if we get an ICMP DestinationUnknown error.\n          raise Errors::HostDown\n        when Errno::EHOSTUNREACH\n          # This is raised if we can't work out how to route traffic.\n          raise Errors::NoRoute","sourceCodeStart":165,"sourceCodeEnd":201,"githubUrl":"https://github.com/hashicorp/vagrant/blob/35f3160f4ad6edc3a9f3aa9570adfc1a4d73aaa5/plugins/communicators/winrm/shell.rb#L165-L201","documentation":"Error \"Vagrant timed out while attempting to connect via WinRM. This usually\nmeans that the VM booted, but there are issues with the WinRM configuration\nor network connectivity issues. Please try to `vagrant reload` or\n`vagrant up` again.\" thrown in hashicorp/vagrant.","triggerScenarios":"Thrown at plugins/communicators/winrm/shell.rb:183 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"35f3160f4ad6edc3a9f3aa9570adfc1a4d73aaa5","analyzedAt":"2026-08-21T13:34:32.514Z","schemaVersion":2},"datasetVersion":"2026-08-21T18:17:14.833Z"}