Vagrant-Fehler: NFS meldet, dass Ihre Exportdatei ungültig ist
Ich versuche, den Diskurs Entwicklungsumgebung mit diesen Anweisungen. Allerdings, wenn ich ausführen Vagrant bekomme ich die Fehlermeldung:
NFS berichtet, dass Ihre Export-Datei ist ungültig. Vagrant hat
diese überprüfen, bevor Sie änderungen an der Datei. Bitte korrigieren
die Fragen unten und führen Sie "vagrant reload":Kann nicht öffnen Sie /etc/exports
Habe ich überprüft, und ich habe keine etc/exports-Ordner, so habe ich eine erstellt und lief vagrant reload
. Das hat mich:
/Anwendungen/Vagrant/embedded/gems/gems/vagrant-1.4.1/plugins/hosts/bsd/host.rb:146:
read': Is a directory - /etc/exports (Errno::EISDIR)
nfs_prune'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/plugins/hosts/bsd/host.rb:146:in
aus /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/plugins/synced_folders/nfs/synced_folder.rb:68:incleanup'
block in call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/builtin/synced_folder_cleanup.rb:24:in
aus /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/builtin/synced_folder_cleanup.rb:22:ineach_key'
rufen'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/builtin/synced_folder_cleanup.rb:22:in
aus /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/warden.rb:34:call'
rufen'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/plugins/providers/virtualbox/action/prepare_nfs_valid_ids.rb:12:in
aus /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/warden.rb:34:call'
rufen'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/builtin/handle_forwarded_port_collisions.rb:118:in
aus /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/warden.rb:34:call'
rufen'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/plugins/providers/virtualbox/action/prepare_forwarded_port_collision_params.rb:30:in
aus /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/warden.rb:34:call'
rufen'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/builtin/env_set.rb:19:in
aus /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/warden.rb:34:call'
rufen'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/builtin/provision.rb:52:in
aus /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/warden.rb:34:call'
rufen'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/plugins/providers/virtualbox/action/clear_forwarded_ports.rb:13:in
aus /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/warden.rb:34:call'
rufen'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/plugins/providers/virtualbox/action/set_name.rb:19:in
aus /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/warden.rb:34:call'
rufen'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/plugins/providers/virtualbox/action/clean_machine_folder.rb:17:in
aus /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/warden.rb:34:call'
rufen'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/plugins/providers/virtualbox/action/check_accessible.rb:18:in
aus /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/warden.rb:34:call'
block in finalize_action'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/warden.rb:95:in
aus /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/warden.rb:34:call'
rufen'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/warden.rb:34:in
aus /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/generator.rb:116:call'
block in run"
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/runner.rb:69:in
aus /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/util/gebucht.rb:19:busy'
ausführen'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/runner.rb:69:in
aus /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/Aktion/builtin/Anruf.rb:51:call'
rufen'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/warden.rb:34:in
aus /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/warden.rb:95:block in finalize_action'
rufen'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/warden.rb:34:in
aus /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/warden.rb:34:call'
rufen'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/builder.rb:116:in
aus /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/Läufer.rb:69:block in run'
beschäftigt'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/util/busy.rb:19:in
aus /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/Läufer.rb:69:run'
rufen'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/builtin/call.rb:51:in
aus /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/warden.rb:34:call'
block in finalize_action'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/warden.rb:95:in
aus /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/warden.rb:34:call'
rufen'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/warden.rb:34:in
aus /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/generator.rb:116:call'
block in run"
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/runner.rb:69:in
aus /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/util/gebucht.rb:19:busy'
ausführen'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/runner.rb:69:in
aus /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/Aktion/builtin/Anruf.rb:51:call'
rufen'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/warden.rb:34:in
aus /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/builtin/config_validate.rb:25:incall'
rufen'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/warden.rb:34:in
aus /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/plugins/providers/virtualbox/action/check_virtualbox.rb:17:incall'
rufen'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/warden.rb:34:in
aus /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/Aktion/builtin/Anruf.rb:57:call'
rufen'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/warden.rb:34:in
aus /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/plugins/providers/virtualbox/action/check_virtualbox.rb:17:incall'
rufen'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/warden.rb:34:in
aus /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/builtin/config_validate.rb:25:incall'
rufen'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/warden.rb:34:in
aus /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/warden.rb:95:block in finalize_action'
rufen'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/warden.rb:34:in
aus /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/warden.rb:34:call'
rufen'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/builder.rb:116:in
aus /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/Läufer.rb:69:block in run'
beschäftigt'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/util/busy.rb:19:in
aus /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/Läufer.rb:69:run'
rufen'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/builtin/call.rb:51:in
aus /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/warden.rb:34:call'
rufen'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/plugins/providers/virtualbox/action/check_virtualbox.rb:17:in
aus /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/warden.rb:34:call'
rufen'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/builder.rb:116:in
aus /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/Läufer.rb:69:block in run'
beschäftigt'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/util/busy.rb:19:in
aus /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/Läufer.rb:69:run'
Aktion'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/machine.rb:147:in
aus /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/plugins/Befehle/reload/Befehl.rb:37:block in execute'
block in with_target_vms'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/plugin/v2/command.rb:193:in
aus /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/plugin/v2/Befehl.rb:191:each'
with_target_vms'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/plugin/v2/command.rb:191:in
aus /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/plugins/Befehle/reload/Befehl.rb:36:inexecute'
ausführen".
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/cli.rb:38:in
aus /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/Umgebung.rb:484:cli'
'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/bin/vagrant:127:in
aus /Applications/Vagrant/bin/../embedded/gems/bin/Gast:23:load'
'
from /Applications/Vagrant/bin/../embedded/gems/bin/vagrant:23:in
Ich bin auf einem Mac (OS X 10.6.8). Wie kann ich dieses Problem beheben? Ich habe versucht, die Suche für die original-Fehlermeldung, und alles, was ich fand, war ein paar repositories mit dem Vagrant-source-code, das es wirft.
InformationsquelleAutor der Frage Hunter | 2013-12-22
Du musst angemeldet sein, um einen Kommentar abzugeben.
Versuchen Sie es mit der bekannt guten Versionen von VirtualBox und Vagrant stellte in Diskurs als Sie Ihre Erste Rails-App:
Ich hatte das gleiche Problem auf dem Mac (OS X 10.9 (Mavericks)), aber ein Rollback auf diese Versionen schien für mich zu beheben.
InformationsquelleAutor der Antwort Lockyer
Hatte ich einige der vorherigen Bilder/Boxen installiert, die in meiner VirtualBox-installation, so gab es ein paar ungültige Einträge in der
/etc/exports
schon. Also ich hatte zu bereinigen, dass die Datei, und starten Sie meine Vagrant box.Hier ist, was ich habe auf meinem host-Rechner:
InformationsquelleAutor der Antwort totas
Ich lief in dieses Problem mit Vagrant und VirtualBox 1.4.1 4.3.6 auf OS X 10.9 Mavericks (13A603). Ich war in der Lage, es zu beheben mit einem einfachen Befehl erstellen Sie die fehlende Datei /etc/exports. Diese laufen auf OS X, nicht Gast, wie schon in den Kommentaren unten.
War ich dann in der Lage, erfolgreich führen
vagrant up
. Ich machte in einen anderen Fehler, wo die Guest Additions nicht up to date, aber ich habe behoben, das Problem durch die Installation der Landstreicher-vbguest plugin.und dann eine schnelle
vagrant reload
und ich war laufen!InformationsquelleAutor der Antwort colinhoernig
Für mich, diese Fehler tauchten für eine funktionierende Vagrant-Umgebung.
Hatte ich das Verzeichnis umbenannt Landstreicher lief aus. Um es zu beheben, ich lief 'sudo vi /etc/exports' und fixiert den Pfadnamen, so dass darauf in meinem aktuellen Verzeichnis.
InformationsquelleAutor der Antwort Kevin G.
Wollte ich nicht zu gehen durch den Aufwand für die Herabstufung. Dies ist, was ich Tat (dauerte noch eine Weile, aber weniger Aufwand als Herabstufung IMHO):
In der VM Vagrantfile, für jeden synchronisierten Ordner, deaktiviert, NFS
config.vm.synced_folder ".", "/vagrant", nfs: false
Entfernt /etc/exports
sudo mv /etc/exports ~/Desktop/exports
Rewrite /etc/exports
vagrant up
Re-NFS aktivieren, wenn Sie wollen/müssen es aktiviert VM
config.vm.synced_folder ".", "/vagrant", nfs: true
InformationsquelleAutor der Antwort brokenindexfinger
Das gleiche passierte mir. Kopiert habe ich über meine Vagrantfile aus einem anderen Projekt und wurde vergessen zu ändern, die NFS-Einstellungen. Dies führte zu der aktuellen VM-montieren Sie den übergeordneten Ordner der VM kopiert habe ich die original Vagrantfile aus. Also ich habe das:
Immer noch die gleichen Fehler. Also ich spürte meine Export-Datei befindet sich auf /etc/exports die wie folgt aussieht:
Den letzten beiden Pfade sind die gleichen. Also löschte ich die letzten drei Zeilen und ran:
Jetzt scheint alles einwandfrei zu funktionieren.
OSX 10.11.1
Vagrant 1.7.4
InformationsquelleAutor der Antwort colefner
Auf Ubuntu 12 host/Ubuntu 12 Gast die folgenden arbeitete für mich mit Diskurs:
Hinweis: ich hatte auch hinzufügen einer host-IP-Adresse bestimmt durch die Wandernden und die Gast-IP-Adresse bestimmt durch die Wandernden, um firewall-Ausnahmen.
InformationsquelleAutor der Antwort niccolox