現在、とある案件でローカル開発環境を構築中なのですが
gitlabからDLしたデータをもとに
vagrant up --provision
しました処、Chefのインストール完了後に下記のようなエラーが出ていて
困っております。
=============================================================
【エラー内容】
==> default: Thank you for installing Chef!
==> default: Running provisioner: shell...
default: Running: inline script
==> default: swapfile not found. Adding swapfile.
==> default: 1024+0 records in
==> default: 1024+0 records out
==> default: 1073741824 bytes (1.1 GB) copied, 2.08597 s, 515 MB/s
==> default: mkswap: /swapfile: warning: don't erase bootbits sectors
==> default: on whole disk.
==> default: Use -f to force.
==> default: Setting up swapspace version 1, size = 1048572 KiB
==> default: no label, UUID=9fe85e60-70c4-4dcd-87d3-740b90166bb6
==> default: Running provisioner: chef_solo...
default: Installing Chef (12.10.60)...
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!
if command -v dnf; then
dnf -y install curl
else
yum -y install curl
fi
Stdout from the command:
Loaded plugins: fastestmirror
Setting up Install Process
Determining fastest mirrors
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
Eg. Invalid release/
removing mirrorlist with no valid mirrors: /var/cache/yum/x86_64/6.6/base/mirrorlist.txt
Stderr from the command:
Error: Cannot find a valid baseurl for repo: base
一応、centOSのインストール自体は上手くいってるようでして、SSHからアクセス可能ですが
yumがうまく機能していないのか、ssh上からyumコマンドを打っても同じエラーが表示されてしまいます。
==============================================================
[vagrant@vagrant-centos6 ~]$ yum list
Loaded plugins: fastestmirror
Determining fastest mirrors
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
Eg. Invalid release/
removing mirrorlist with no valid mirrors: /var/tmp/yum-vagrant-j_9QxZ/x86_64/6.6/base/mirrorlist.txt
Error: Cannot find a valid baseurl for repo: base
多分、yum部分のエラーと思われるのですが、まだあまりvagrantやchefに詳しくない部分もありまして、
何処を修正すれば解決するのかわからない状況であります。
お手数ですが、詳しい方がいましたら解決策をご教示いただけますと幸いでございます。
※追記部分※
・OSはLinux vagrant-centos6 2.6.32-504.el6.x86_64です。
・こちらのローカル環境はWindows10でGitLabから、SourceTreeでデータをDLしてきています。
・MACとWindowsでの改行コードの違いによるエラーなども考えられますでしょうか?
その場合はどう修正すればよろしいでしょうか。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。