質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
Vagrant

Vagrantは、VirtualBox上の仮想マシンを コマンドラインから作成してくれるソフトウェアです。 ビルド環境など容易に構築が可能です。

Q&A

解決済

2回答

4067閲覧

vagrant up が失敗する

kukumumu

総合スコア7

Vagrant

Vagrantは、VirtualBox上の仮想マシンを コマンドラインから作成してくれるソフトウェアです。 ビルド環境など容易に構築が可能です。

0グッド

0クリップ

投稿2018/04/10 01:21

前提・実現したいこと

VirtualBox + Vagrant で仮想開発環境を構築しようとして、Vagrant を導入する途中でつまずきました。
Vagrantのインストールまでは完了しましたが、はじめての Vagrant up でエラーが発生し、先に進めません。エラーの解消方法について、助言を頂きたいです。

発生している問題・エラーメッセージ

2018/04/10 10:03:43 launcher: detected 32bit Windows installation
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'bento/centos-6.8' could not be found. Attempting to find and i
nstall...
default: Box Provider: virtualbox
default: Box Version: >= 0
The box 'bento/centos-6.8' could not be found or
could not be accessed in the remote catalog. If this is a private
box on HashiCorp's Vagrant Cloud, please verify you're logged in via
vagrant login. Also, please double-check the name. The expanded
URL and error message are shown below:

該当のソースコード

ソースコード

試したこと

①エラーメッセージの中に、ログインに関する記載があったため、
Vagrant Cloud で、アカウントを取得し、コマンドプロンプト上で、vagrant login をしましたが、以下のメッセージが表示され、ログインできません。

C:/HashiCorp/Vagrant/embedded/mingw32/lib/ruby/2.3.0/net/http/response.rb:120:in
error!': 401 "Authorization Required" (Net::HTTPServerException) from C:/HashiCorp/Vagrant/embedded/mingw32/lib/ruby/2.3.0/net/http/respo nse.rb:129:in value'
from C:/HashiCorp/Vagrant/embedded/mingw32/lib/ruby/2.3.0/net/http.rb:92
0:in connect' from C:/HashiCorp/Vagrant/embedded/mingw32/lib/ruby/2.3.0/net/http.rb:86 3:in do_start'
from C:/HashiCorp/Vagrant/embedded/mingw32/lib/ruby/2.3.0/net/http.rb:85
2:in start' from C:/HashiCorp/Vagrant/embedded/gems/gems/rest-client-2.0.2-x86-mingw 32/lib/restclient/request.rb:715:in transmit'
from C:/HashiCorp/Vagrant/embedded/gems/gems/rest-client-2.0.2-x86-mingw
32/lib/restclient/request.rb:145:in execute' from C:/HashiCorp/Vagrant/embedded/gems/gems/rest-client-2.0.2-x86-mingw 32/lib/restclient/request.rb:52:in execute'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.6/plugins/comma
nds/login/client.rb:58:in block in login' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.6/plugins/comma nds/login/client.rb:129:in with_error_handling'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.6/plugins/comma
nds/login/client.rb:49:in login' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.6/plugins/comma nds/login/command.rb:61:in execute'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.6/lib/vagrant/c
li.rb:42:in execute' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.6/lib/vagrant/e nvironment.rb:308:in cli'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.6/bin/vagrant:1
38:in `<main>'

②環境変数の設定
set https_proxy=http://(ID):(パスワード)@(プロキシサーバーのIPドレス)
set http_proxy=http://(ID):(パスワード)@(プロキシサーバーのIPドレス)

補足情報(FW/ツールのバージョンなど)

社内のLAN内で作業しています。
OS = Windows7 32bit
Vagrant バージョン = 1.9.6
VirtualBox バージョン = 5.1.30

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答2

0

ベストアンサー

投稿2018/04/10 10:51

xenbeat

総合スコア4258

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

kukumumu

2018/04/10 11:26 編集

ご回答ありがとうございます。 すみません。エラーメッセージに貼り付けた内容で、下のほうが切れていました。エラーコードは 401 です。 Error: The requested URL returned error: 401
xenbeat

2018/04/10 14:17

401だとプロキシが怪しいですね。 プロキシ環境下ですか? あとプロキシ関する何かプラグインとか入れてますか?
kukumumu

2018/04/10 15:36 編集

プロキシ環境下です。ネットの情報を便りに、環境変数(https_proxy と http_proxy)をいじっているのですが、上手くいきません。プラグインはよくわかりません。
kukumumu

2018/04/10 15:38

一度やろうとした気がしますが、コマンドプロンプトからだと、やはり権限の問題で入れられなかったように思います。出社したら、もう一度試してみます。ありがとうございます。
kukumumu

2018/04/11 00:18 編集

コマンドプロンプトで以下を入力したところ、 >vagrant plugin install vagrant-proxyconf 以下のエラーが表示され、vagrant-proxyconf が導入できません。 Vagrant failed to load a configured plugin source. This can be caused by a variety of issues including: transient connectivity issues, proxy filtering rejecting access to a configured plugin source, or a configured plugin source not responding correctly. Please review the error message below to help resolve the issue: no such name (https://rubygems.org/specs.4.8.gz) Source: https://rubygems.org/
xenbeat

2018/04/11 00:33 編集

プラグイン入れてなかったんですね。 > vagrant-proxyconf が導入できません。 そもそもプロキシの影響があるっぽいので導入はできないと思います。 あ、ちなみに「プラグイン何か入ってますか?」と聞いていただけなので入れてくださいと言ったわけではありません。 以下のように環境変数を再設定してみてください。※ID/Passなし $ set http_proxy=http://{proxy_ip}:{proxy_port} $ set https_proxy=http://{proxy_ip}:{proxy_port} 上記がうまく設定できていれば $ vagrant up でも $ vagrant plugin install vagrant-proxyconf でもいけるはずですが、、、
kukumumu

2018/04/12 11:14

maverixzさん、どうもありがとうございました。 結局、モバイルWiFiを使うという解決方法になってしまいました。
guest

0

vagrant box list打ってエラーは出ますか?

投稿2018/04/10 07:53

revoiot

総合スコア188

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

kukumumu

2018/04/10 10:22

ご回答ありがとうございます。 vagrant box list打ってエラーは出ません。
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問