방랑 시도 중 오류
내 환경에 Vagrant를 사용하고 있으며 약간의 문제가 있습니다.
$vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'base' could not be found. Attempting to find and install...
default: Box Provider: virtualbox
default: Box Version: >= 0
==> default: Adding box 'base' (v0) for provider: virtualbox
default: Downloading: base
An error occurred while downloading the remote file. The error
message, if any, is reproduced below. Please fix this error and try
again.
Couldn't open file /Users/.../base
나는 프로젝트를 초기화 vagrant init
했지만 어떤 이유로 든 vagrant up
작동을 거부합니다.
방금 Vagrant 프로젝트를 만든 것 같습니다 vagrant init
. 그러면 Vagrantfile이 생성되지만 상자가 정의되어 있지 않습니다.
대신, 당신은 시도 할 수 있습니다
$ vagrant init hashicorp/precise32
$ vagrant up
표준 우분투 이미지를 사용합니다. Vagrant 웹 사이트에는 시작하기 좋은 예제가 있습니다.
OS X를 사용하고 표준 설치를 사용하는 경우 방랑자의 오래된 컬을 삭제하면 작동합니다.
sudo rm /opt/vagrant/embedded/bin/curl
vagrant init laravel/homestead
그리고
vagrant up
나를 위해 일한 것입니다.
이는 정의 된 상자 이름이없는 방랑 파일이 있기 때문에 발생했습니다. 이것은 상자 이름 매개 변수없이 vagrant init 을 실행할 때 발생합니다 .
따라서 Vagrant 파일을 삭제해야합니다.
vagrant init box-title
vagrant up
이것이 도움이되기를 바랍니다!
나에게 다음과 같은 단계가 있습니다.
cd homestead
(디렉토리 홈스테드 폴더에 있음) 또는cd Homestead
del vagrantfile
또는rm -Rf Vagrantfile
vagrant init laravel/homestead
vagrant up
터미널에서 이것을 실행하십시오 :
$ vagrant box list
당신은 같은 것을 볼 것입니다 laravel/homestead(virtualbox,x.x.x)
다음으로 당신 Vagrantfile
을 찾아라고 말하는 줄을 찾으십시오.
config.vm.box = "box"
대체 box
실행할 때 상자의 이름으로 vagrant box list
.
나는 이것이 오래된 것을 알고 있지만 정확히 같은 오류가 발생했습니다. 문서에 분명히 나와있는 이 단계 가 빠졌음을 알 수 있습니다 .
다운로드 한 이미지 Vagrantfile
와 config.vm.box
동일하게 설정 하기 위해를 편집해야 했습니다 hashicorp/precise32
. 기본적으로로 설정되어 base
있습니다.
설명서에 나와있는 내용은 다음과 같습니다.
박스가 Vagrant에 추가되었으므로 프로젝트를 기본으로 사용하도록 프로젝트를 구성해야합니다. Vagrantfile을 열고 내용을 다음과 같이 변경하십시오.
Vagrant.configure("2") do |config| config.vm.box = "hashicorp/precise32" end
"Vagrantfile" already exists in this directory. Remove it before running "vagrant init".
오류가 표시 되면
1. rm Vagrantfile
2. vagrant init hashicorp/precise64
3. vagrant up
Vagrant의 내장 컬 프로그램에 문제가있는 것 같습니다. 위의 조언에 따라 방금 이름을 바꾸고 (원하는 경우를 대비 vagrant up
하여) 예상대로 작동하기 시작했습니다.
내 Mac에서 :
♪ .vagrant.d sudo mv /opt/vagrant/embedded/bin/curl /opt/vagrant/embedded/bin/curlOLD Password:
나도이 오류가 발생합니다. box_url을 제공하지 않아서 발생한 것 같습니다.
vagrant init precise64 http://files.vagrantup.com/precise64.box
글쎄, 실제로 당신은해야합니다 :
vagrant up laravel/homestead
홈스테드 안내에 따르면 http://laravel.com/docs/5.0/homestead에서 방금 다운로드했습니다 .
vagrant box add laravel/homestead
따라서 임의의 우분투 이미지가 아닌 사용하려는 상자를 시작해야합니다.)
나와 함께 실행하면 오류가 발생했습니다 vagrant up
(Macbook pro, Mac OS : 10.12.1 사용).
An error occurred while downloading the remote file. The error message, if any, is reproduced below. Please fix this error and try again. Couldn't open file...
Vagrantfile
내 폴더 를 삭제 하고 실행 하려고했습니다 .
vagrant init hashicorp/precise64
그때:
vagrant up
내 문제를 해결할 수 있습니다. 이것이 같은 문제에 직면하는 사람에게 도움이되기를 바랍니다.
다음 명령을 실행할 때도 같은 문제가 발생했습니다.
vagrant init
vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'base' could not be found. Attempting to find and install...
default: Box Provider: virtualbox
default: Box Version: >= 0
==> default: Box file was not detected as metadata. Adding it directly...
==> default: Adding box 'base' (v0) for provider: virtualbox
default: Downloading: base
An error occurred while downloading the remote file. The error
message, if any, is reproduced below. Please fix this error and try
again.
Couldn't open file /home/...../base
나는 고쳤다
>vagrant init laravel/homestead
>Vagrant up
그것은 나를 위해 일했다.
행복한 코딩
이것은 Windows 10에서 나를 위해 작동합니다 : https://stackoverflow.com/a/31594225/2400373
그러나 Vagranfile
다음 명령을 사용한 후 파일을 삭제해야합니다 .
vagrant init precise64 http://files.vagrantup.com/precise64.box
그리고 후에
vagrant up
상자를 추가하고 다운로드를 시작했지만 다운로드가 중단 된 ~/.vagrant.d/tmp/
경우 부분 다운로드 파일 로 이동하여 삭제 한 다음 다시 시도하십시오.
.vagrant.d/boxes/
집 아래의 폴더로 이동하여 폴더 이름을에서 (으)로 변경 하여이 문제를 해결 laravel-VAGRANTSLASH-homestead
했습니다 base
. 그리고 그것은 나를 위해 일했습니다.
BIOS에서 가상화가 활성화되어 있는지 확인하십시오.
머신에 vm을 추가 할 수도 있습니다.
vagrant box add precise32 http://files.vagrantup.com/precise32.box
vagrant init을 수행하면 리포지토리의 vagrant 파일이 바뀌고 해당 오류가 발생할 수 있습니다. 따라서 원격 또는 백업 vagrant 파일에서 원래 vagrant 파일을 복사하고 그 후에 vagrant를 시도하는 것이 좋습니다.
나는 같은 문제를 겪었고 방금 원격 저장소에서 방랑 파일을 복사하고 내가 실행하려고 한 방랑 파일을 바꿨습니다. 그러면 방랑 파일의 구성이 VM과 동기화되었습니다.
편집은 방랑 파일을 만든 vagrant init
동일한 디렉토리에서 라인에서 박스 이름을 입력 하여 기본 박스입니다. 이제 기본 상자로 다운로드하여 설정 합니다.config.vm.box = "ubuntu/trusty64"
ubuntu/trusty64
vagrant up
ubuntu/trusty64
가상 상자를 만들 때 아래 구문을 따르십시오.
$ vagrant box add {title} {url}
$ vagrant init {title}
$ vagrant up
http://www.vagrantbox.es/를 참조 하십시오
Homestead.yaml 파일을주의 깊게 확인하고 줄 끝 뒤에 공백 문자가 있는지 확인하십시오. 그런 다음 gitbash-> go Homestead directory-> "vagrant up --provision"명령을 엽니 다.
참고 URL : https://stackoverflow.com/questions/23874260/error-when-trying-vagrant-up
'development' 카테고리의 다른 글
Django South를 통한 이전 마이그레이션 (0) | 2020.04.25 |
---|---|
번 들러로 하나의 보석 만 업데이트 (0) | 2020.04.25 |
Bash에서 파일 또는 STDIN을 읽는 방법은 무엇입니까? (0) | 2020.04.25 |
알려진 최소값 및 최대 값으로 숫자 범위를 축소하는 방법 (0) | 2020.04.25 |
참조 스펙을 사용하여 Git 태그를 지점으로 어떻게 푸시합니까? (0) | 2020.04.25 |