{"record":{"id":"a25aec8879c44632","repo":"hashicorp/vagrant","slug":"the-vagrant-cloud-server-is-not-currently-acceptin","errorCode":null,"errorMessage":"The Vagrant Cloud server is not currently accepting connections. Please check your network connection and try again later.","messagePattern":"The Vagrant Cloud server is not currently accepting connections\\. Please check your network connection and try again later\\.","errorType":"exception","errorClass":"VagrantPlugins::CloudCommand::Errors::ServerUnreachable","httpStatus":null,"severity":"error","filePath":"plugins/commands/cloud/client/client.rb","lineNumber":222,"sourceCode":"\n          if two_factor_default_delivery_method != APP\n            request_code two_factor_default_delivery_method\n          end\n\n          raise Errors::TwoFactorRequired\n        end\n\n        begin\n          errors = parsed_response[\"errors\"].join(\"\\n\")\n          raise Errors::ServerError, errors: errors\n        rescue JSON::ParserError; end\n\n        @logger.debug(\"Got an unexpected error:\")\n        @logger.debug(e.inspect)\n        raise Errors::Unexpected, error: e.inspect\n      rescue SocketError\n        @logger.info(\"Socket error\")\n        raise Errors::ServerUnreachable, url: Vagrant.server_url.to_s\n      end\n\n      def token_path\n        @env.data_dir.join(\"vagrant_login_token\")\n      end\n\n      def store_two_factor_information(two_factor)\n        @two_factor_default_delivery_method =\n          two_factor['default_delivery_method']\n\n        @two_factor_delivery_methods =\n          two_factor['delivery_methods']\n\n        @env.ui.warn \"2FA is enabled for your account.\"\n        if two_factor_default_delivery_method == APP\n          @env.ui.info \"Enter the code from your authenticator.\"\n        else\n          @env.ui.info \"Default method is \" \\","sourceCodeStart":204,"sourceCodeEnd":240,"githubUrl":"https://github.com/hashicorp/vagrant/blob/35f3160f4ad6edc3a9f3aa9570adfc1a4d73aaa5/plugins/commands/cloud/client/client.rb#L204-L240","documentation":"Vagrant::Errors::ServerUnreachable is raised when a Vagrant Cloud request dies with a Ruby SocketError — DNS resolution or TCP connection to the API host failed before any HTTP exchange. The message includes the configured server URL (Vagrant.server_url, i.e. VAGRANT_SERVER_URL or the default https://vagrantcloud.com).","triggerScenarios":"The machine is offline; DNS fails to resolve the API host; a firewall, VPN, or deny-by-default egress policy blocks the connection; VAGRANT_SERVER_URL is set to an unreachable or misspelled host. Any networked cloud subcommand (auth login, search, publish, box show, ...) triggers it.","commonSituations":"Offline or airplane development; CI runners without network access; typo'd VAGRANT_SERVER_URL in a .env; split-DNS or VPN configurations where vagrantcloud.com does not resolve; IPv6 misconfiguration.","solutions":["Verify basic connectivity: `curl -v https://vagrantcloud.com` (or your VAGRANT_SERVER_URL)","Check DNS: `getent hosts vagrantcloud.com`; fix the resolver or VPN split-DNS if it fails","Unset or correct the override: `env | grep VAGRANT` then `unset VAGRANT_SERVER_URL`","If a proxy is required, export HTTP_PROXY/HTTPS_PROXY so Excon can reach the API"],"exampleFix":"# before (typo'd override in the environment)\nexport VAGRANT_SERVER_URL=https://vagrantclod.com\nvagrant cloud search ubuntu\n# after\nunset VAGRANT_SERVER_URL\nvagrant cloud search ubuntu","handlingStrategy":"retry","validationCode":"# Preflight reachability before starting a cloud-dependent job\nrequire \"socket\"\nrequire \"uri\"\nhost = URI.parse(ENV[\"VAGRANT_SERVER_URL\"] || \"https://vagrantcloud.com\").host\nbegin\n  Socket.tcp(host, 443, connect_timeout: 5)\nrescue SocketError, Errno::ECONNREFUSED, Errno::ETIMEDOUT => e\n  abort \"cannot reach #{host}:443 (#{e.class}) — fix DNS/network first\"\nend","typeGuard":null,"tryCatchPattern":"retries = 0\nbegin\n  client.whoami(token)\nrescue Vagrant::Errors::ServerUnreachable => e\n  retries += 1\n  retry if retries <= 3 && sleep(2**retries) # transient DNS/network blips\n  raise\nend","preventionTips":["Run the TCP/DNS preflight above at the start of CI jobs that need Vagrant Cloud","Audit VAGRANT_SERVER_URL in all environments — most cases are a typo'd override","Configure HTTPS_PROXY explicitly on locked-down networks instead of hoping egress works"],"tags":["vagrant","vagrant-cloud","network","dns","connectivity"],"backgroundTag":"server-unreachable","analyzedSha":"35f3160f4ad6edc3a9f3aa9570adfc1a4d73aaa5","analyzedAt":"2026-08-21T13:34:32.514Z","schemaVersion":2},"datasetVersion":"2026-08-21T18:17:14.833Z"}