Non è stato possibile trovare la casella Vagrant o non è stato possibile accedervi nel catalogo remoto - versione curl incompatibile


86

Ho appena scaricato Vagrant e ho eseguito le impostazioni e l'installazione della scatola virtuale. Non riesco proprio ad avviare il mio progetto (vagabondo). Ho una cartella vagabonda e così via. Cosa posso fare?

$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'scotch/box' could not be found. Attempting to find and install
...
    default: Box Provider: virtualbox
    default: Box Version: >= 0
The box 'scotch/box' 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/scotch/box"] 

5
No, il messaggio di errore in rosso non aiuta in questo caso poiché non stampa l'errore effettivo. Corri VAGRANT_LOG=DEBUG vagrant upper ottenere un output utile.
Michael Lihs

Risposte:


214

Sembra esserci un problema con vagrant 1.8.7 e la versione curl incorporata rispetto al binario mac os (fornito di default su mac os Sierra e altri) - rimuovi quello incorporato

sudo rm /opt/vagrant/embedded/bin/curl

Nota: devi anche rimuovere l'incorporato curlquando aggiungi una scatola vagabonda (da remoto o localmente), quindi se ottieni lo stesso errore durante l'esecuzione, vagrant box add ....rimuovi il ricciolo da vagabondo e funzionerà


1
Grazie ha funzionato alla grande con 1.8.7 su macOS Sierra. Un bel problema di spazzatura però.
Jimbo

1
Ho parlato troppo presto. Il download effettivo della scatola si blocca in modo casuale per laravel / homestead 0.6.0
Jimbo

2
Volevo solo chiarire che a) questo è ancora un problema a partire da aprile 2017 su OSX Sierra eb) che questa correzione ha funzionato ec) Grazie
fuzzygroup

1

Volevo solo aggiornare questo post. Mi sono imbattuto in questo errore eseguendo macOS Sierra e una nuova installazione di Vagrant 1.8.7 e ho notato che Vagrant era appena aggiornato. A partire da Vagrant 1.9.0 questo errore sembra essere stato risolto.


0

Ha avuto un problema simile con Sierra (con installazioni di birra aggiuntive - il che potrebbe avere un impatto).

Sopra sudo rm / opt / vagrant / embedded / bin / curl non funzionava ancora ottenuto: SSLRead () return error -36.

Ho provato un suggerimento da http://slick.pl/kb/software/vagrant-fix-for-error-60-ssl-read/

In ogni caso:

cd ~
cd .vagrant.d/tmp/
rm -rf ~/.vagrant.d/tmp/
vagrant box add --insecure laravel/homestead

Installato con successo.



0

Ho avuto lo stesso problema su MacOS Mojave e Vagrant versione 1.9.3, durante il tentativo di utilizzare la scatola: centos / 7.

$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'centos/7' could not be found. Attempting to find and install...
    default: Box Provider: virtualbox
    default: Box Version: >= 0
The box 'centos/7' 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/centos/7"]
Error: The requested URL returned error: 404 Not Found

Ho aggiornato a Vagrant 2.2.5 e ha funzionato come previsto:

Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'centos/7' could not be found. Attempting to find and install...
    default: Box Provider: virtualbox
    default: Box Version: >= 0
==> default: Loading metadata for box 'centos/7'
    default: URL: https://vagrantcloud.com/centos/7
==> default: Adding box 'centos/7' (v1902.01) for provider: virtualbox
    default: Downloading: https://vagrantcloud.com/centos/boxes/7/versions/1902.01/providers/virtualbox.box
    default: Download redirected to host: cloud.centos.org
==> default: Successfully added box 'centos/7' (v1902.01) for 'virtualbox'!
Utilizzando il nostro sito, riconosci di aver letto e compreso le nostre Informativa sui cookie e Informativa sulla privacy.
Licensed under cc by-sa 3.0 with attribution required.