{"record":{"id":"bdaf1a19c926af33","repo":"hashicorp/vagrant","slug":"the-box-is-not-able-to-report-an-address-for-winrm-bdaf1a","errorCode":null,"errorMessage":"The box is not able to report an address for WinRM to connect to yet.\nWinRM cannot access this Vagrant environment. Please wait for the\nVagrant environment to be running and try again.","messagePattern":"The box is not able to report an address for WinRM to connect to yet\\.\nWinRM cannot access this Vagrant environment\\. Please wait for the\nVagrant environment to be running and try again\\.","errorType":"exception","errorClass":"VagrantPlugins::CommunicatorWinRM::Errors::WinRMNotReady","httpStatus":null,"severity":"error","filePath":"plugins/communicators/winrm/helper.rb","lineNumber":21,"sourceCode":"\nmodule VagrantPlugins\n  module CommunicatorWinRM\n    # This is a helper module that provides some functions to the\n    # communicator. This is extracted into a module so that we can\n    # easily unit test these methods.\n    module Helper\n      # Returns the host and port to access WinRM.\n      #\n      # This asks the provider via the `winrm_info` capability if it\n      # exists, otherwise defaulting to its own heuristics.\n      #\n      # @param [Vagrant::Machine] machine\n      # @return [Hash]\n      def self.winrm_info(machine)\n        info = {}\n        if machine.provider.capability?(:winrm_info)\n          info = machine.provider.capability(:winrm_info)\n          raise Errors::WinRMNotReady if !info\n        end\n\n        info[:host] ||= winrm_address(machine)\n        info[:port] ||= winrm_port(machine, info[:host] == \"127.0.0.1\")\n        return info\n      end\n\n      # Returns the address to access WinRM. This does not contain\n      # the port.\n      #\n      # @param [Vagrant::Machine] machine\n      # @return [String]\n      def self.winrm_address(machine)\n        addr = machine.config.winrm.host\n        return addr if addr\n\n        ssh_info = machine.ssh_info\n        raise Errors::WinRMNotReady if winrm_info_invalid?(ssh_info)","sourceCodeStart":3,"sourceCodeEnd":39,"githubUrl":"https://github.com/hashicorp/vagrant/blob/35f3160f4ad6edc3a9f3aa9570adfc1a4d73aaa5/plugins/communicators/winrm/helper.rb#L3-L39","documentation":"Error \"The box is not able to report an address for WinRM to connect to yet.\nWinRM cannot access this Vagrant environment. Please wait for the\nVagrant environment to be running and try again.\" thrown in hashicorp/vagrant.","triggerScenarios":"Thrown at plugins/communicators/winrm/helper.rb:21 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"}