【问题标题】:ERROR:Failed to connect to atlas.hashicorp.com port 443: Connection refused错误:无法连接到 atlas.hashicorp.com 端口 443:连接被拒绝
【发布时间】:2017-04-16 22:19:22
【问题描述】:

有人可以帮我解决这个问题吗? 我在为 ubuntu/trusty64

设置 vagrant up 时遇到此错误
ERROR:Failed to connect to atlas.hashicorp.com port 443: Connection refused

后来我意识到我甚至无法从命令提示符 ping 任何网站,但在浏览器中,我可以访问这些网站。我支持公司代理服务器。 以下是我在电源外壳中得到的确切错误。我在 Windows 10 机器上。

 Bringing machine 'default' up with 'virtualbox' provider...
`==> default: Box 'ubuntu/trusty64' could not be found.
Attempting to find and install...
default: Box Provider: virtualbox 
default: Box Version: >= 0
The box 'ubuntu/trusty64' could not be found or
could not be accessed in the remote catalog. If this is a private
box on HashiCorp's Atlas, please verify you're logged in via
`vagrant login`. Also, please double-check the name. The expanded
URL and error message are shown below:
URL: ["https://atlas.hashicorp.com/ubuntu/trusty64"]
Error: Failed to connect to atlas.hashicorp.com port 443: Connection refused`

【问题讨论】:

    标签: command-line proxy vagrant ping


    【解决方案1】:

    你应该设置你的代理 - 你的浏览器可能有设置但你的 CLI 工具没有

    您应该确保使用您的代理信息设置以下变量

    export http_proxy=http://your.proxyhost.server:port/
    export https_proxy=https://your.proxyhost.server:port/
    

    【讨论】:

    • 不知道在哪里可以设置上面的变量。你能更具体地回答你的问题吗?
    • 您可以从命令行设置它 - 它可以在您的 bash 文件中。但为了简化,只需在执行 vagrant up 之前运行命令
    • 这不是代理问题,即使代理设置正确也会发生。
    • 我的错,有了代理配置,它就可以工作了。我现在遇到证书问题,但这是另一个问题。
    【解决方案2】:

    直连互联网用户的解决方案:

    转到 Mu$tdie 防火墙设置,添加以下允许规则: C:\HashiCorp\Vagrant\embedded\bin\curl.exe C:\HashiCorp\Vagrant\bin\vagrant.exe

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-08-09
      • 1970-01-01
      • 1970-01-01
      • 2019-07-04
      • 2018-10-15
      • 1970-01-01
      • 2019-07-29
      • 2019-06-19
      相关资源
      最近更新 更多