export - https tag manager
Error de vagabundo: NFS informa que su archivo de exportaciones no es vĂ¡lido (7)
Estoy intentando configurar el entorno de desarrollo de Discurso usando estas instructions . Sin embargo, cuando ejecuto Vagrant obtengo el error:
NFS informa que su archivo de exportaciones no es válido. Vagrant comprueba esto antes de realizar cambios en el archivo. Corrija los problemas a continuación y ejecute "recargo vagabundo":
No se puede abrir / etc / exports
Lo verifiqué, y no tengo una carpeta etc / exports, así que creé uno y ejecuté la vagrant reload
. Esto me consiguió:
/Aplicaciones/Vagrant/embedded/gems/gems/vagrant-1.4.1/plugins/hosts/bsd/host.rb:146:in
read'': Is a directory - /etc/exports (Errno::EISDIR) from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/plugins/hosts/bsd/host.rb:146:in
nfs_prune ''from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/plugins/ synced_folders / nfs / synced_folder.rb: 68: en lacleanup'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/builtin/synced_folder_cleanup.rb:24:in
block in call'' de / Applicationseach_key'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/builtin/synced_folder_cleanup.rb:22:in
Vagranteach_key'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/builtin/synced_folder_cleanup.rb:22:in
Embeddedeach_key'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/builtin/synced_folder_cleanup.rb:22:in
Gemseach_key'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/builtin/synced_folder_cleanup.rb:22:in
Gemseach_key'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/builtin/synced_folder_cleanup.rb:22:in
Avant1.4.1each_key'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/builtin/synced_folder_cleanup.rb:22:in
libeach_key'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/builtin/synced_folder_cleanup.rb:22:in
vagranteach_key'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/builtin/synced_folder_cleanup.rb:22:in
actioneach_key'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/builtin/synced_folder_cleanup.rb:22:in
builtineach_key'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/builtin/synced_folder_cleanup.rb:22:in
synced_folder_cleanup.rb:each_key'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/builtin/synced_folder_cleanup.rb:22:in
ineach_key'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/builtin/synced_folder_cleanup.rb:22:in
/each_key'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/builtin/synced_folder_cleanup.rb:22:in
/each_key'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/builtin/synced_folder_cleanup.rb:22:in
/each_key'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/builtin/synced_folder_cleanup.rb:22:in
/each_key'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/builtin/synced_folder_cleanup.rb:22:in
/each_key'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/builtin/synced_folder_cleanup.rb:22:in
call ''from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/warden.rb:34: incall'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/plugins/providers/virtualbox/action/prepare_nfs_valid_ids.rb:12:in
call'' from / Application s / Vagrant / embedded / gems / gems / vagrant-1.4.1 / lib / vagrant / action / warden.rb: 34: incall'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/builtin/handle_forwarded_port_collisions.rb:118:in
call ''from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/warden.rb:34:incall'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/plugins/providers/virtualbox/action/prepare_forwarded_port_collision_params.rb:30:in
call ''from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4. 1 / lib / vagrant / action / warden.rb: 34: incall'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/builtin/env_set.rb:19:in
call ''from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/warden.rb:34:incall'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/builtin/provision.rb:52:in
call ''from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/warden.rb:34: incall'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/plugins/providers/virtualbox/action/clear_forwarded_ports.rb:13:in
call'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/plugins/providers/virtualbox/action/clear_forwarded_ports.rb:13:in
call ''from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4 .1 / lib / vagrant / action / warden.rb: 34: incall'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/plugins/providers/virtualbox/action/set_name.rb:19:in
call ''from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/warden.rb:34:incall'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/plugins/providers/virtualbox/action/clean_machine_folder.rb:17:in
call ''from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/warden.rb:34 : incall'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/plugins/providers/virtualbox/action/check_accessible.rb:18:in
call'' from / Applications / Vagrant / embedded / gems / gems /vagrant-1.4.1/lib/vagrant/action/warden.rb:34:incall'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/warden.rb:95:in
call'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/warden.rb:95:in
bloque en finalize_actioncall'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/warden.rb:34:in
gemscall'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/warden.rb:34:in
gemscall'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/warden.rb:34:in
avatar -1.4.1call'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/warden.rb:34:in
libcall'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/warden.rb:34:in
vagrantcall'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/warden.rb:34:in
actioncall'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/warden.rb:34:in
warden.rb:34:incall'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/warden.rb:34:in
call ''from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/builder .rb: 116: incall'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/runner.rb:69:in
block in run'' de / Applications / Vagrant / embedded /gems/gems/vagrant-1.4.1/lib/vagrant/util/busy.rb:19:inbusy'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/runner.rb:69:in
ejecucióncall'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/warden.rb:34:in
embebido /gems/gems/vagrant-1.4.1/lib/vagrant/action/builtin/call.rb:51:incall'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/warden.rb:34:in
call ''from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action /warden.rb:95:inblock in finalize_action'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/warden.rb:34:in
block in finalize_action'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/warden.rb:34:in
call ''from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant /action/warden.rb:34:incall'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/builder.rb:116:in
call'' from / Applications / Vagrant /embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/runner.rb:69:inblock in run'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/util/busy.rb:19:in
busy ''from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/runner.rb:69:inrun'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/builtin/call.rb:51:in
call ''from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib /vagrant/action/warden.rb:34:incall'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/warden.rb:95:in
block en finalize_action'' from /Aplicaciones/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/warden .rb: 34: encall'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/warden.rb:34:in
call'' from / Applications / Vagrant / embedded / gems /gems/vagrant-1.4.1/lib/vagrant/action/builder.rb:116:incall'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/runner.rb:69:in
bloque en ejecuciónbusy'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/runner.rb:69:in
Gemsbusy'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/runner.rb:69:in
Gemsbusy'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/runner.rb:69:in
Avance1.4.1busy'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/runner.rb:69:in
libbusy'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/runner.rb:69:in
vagrantbusy'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/runner.rb:69:in
utilbusy'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/runner.rb:69:in
busy.rb:19:enbusy'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/runner.rb:69:in
ejecución ''from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/builtin /call.rb:51:incall'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/warden.rb:34:in
call'' from / Applications / Vagrant / embedded /gems/gems/vagrant-1.4.1/lib/vagrant/action/builtin/config_validate.rb:25:incall'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/warden.rb:34:in
call ''from / Applications / Vagrant / embedded / gems / gems / v agrant-1.4.1 / plugins / providers / virtualbox / action / check_virtualbox.rb: 17: incall'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/warden.rb:34:in
call ''from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/builtin/call.rb:57:incall'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/warden.rb:34:in
call ''from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/plugins/providers/virtualbox/action/ check_virtualbox.rb: 17: incall'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/warden.rb:34:in
''from / Applications / Vagrant / Embedded / Gems / Gems / Avagrant-1.4.1/lib/vagrant/action/warden.rb:34:incall'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/warden.rb:34:in
'' from / Applications / Vagrant / embedded / gems / gems / vagrant-1.4.1 / lib / vagrant / action / builtin / config_validate.rb: 25: incall'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/warden.rb:34:in
call ''from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/warden.rb:95:inblock in finalize_action'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/warden.rb:34:in
block in finalize_action'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/warden.rb:34:in
call ''from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/warden.rb : 34: incall'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/builder.rb:116:in
call'' from / Applications / Vagrant / embedded / gems / gems /vagrant-1.4.1/lib/vagrant/action/runner.rb:69:inblock in run'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/util/busy.rb:19:in
busy ''from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/runner.rb:69:inrun'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/builtin/call.rb:51:in
call ''from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/warden .rb: 34: incall'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/plugins/providers/virtualbox/action/check_virtualbox.rb:17:in
call'' from / Applications / Vagrant / embedded /gems/gems/vagrant-1.4.1/lib/vagrant/action/warden.rb:34:incall'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/builder.rb:116:in
call'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4 .1 / lib / vagrant / action / runner.rb: 69: inblock in run'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/util/busy.rb:19:in
busy ''from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/runner.rb:69:inrun'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/machine.rb:147:in
acción ''desde /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/plugins/commands/reload/command.rb:37:inblock in execute'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/plugin/v2/command.rb:193:in
block in with_target_vms'' from / Applications / Vagrant / embedded / gems / gems /vagrant-1.4.1/lib/vagrant/plugin/v2/command.rb:191:ineach'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/plugin/v2/command.rb:191:in
with_target_vms ''desde / Aplicaciones /Vagrant/embedded/gems/gems/vagrant-1.4.1/plugins/commands/reload/command.rb:36:inexecute'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/cli.rb:38:in
execute ''from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/environment.rb:484:incli'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/bin/vagrant:127:in
''from /Applications/Vagrant/bin/../embedded/gems/bin/vagrant:23:inload'' from /Applications/Vagrant/bin/../embedded/gems/bin/vagrant:23:in
''
Estoy en una Mac (OS X 10.6.8). ¿Cómo puedo solucionar esto? Traté de buscar el mensaje de error original, y todo lo que encontré fueron algunos repositorios que contienen el código fuente Vagrant que lo arroja.
En Ubuntu 12 host / Ubuntu 12 invitados, lo siguiente funcionó para mí con Discourse :
nfs_setting = RUBY_PLATFORM =~ /darwin/ || RUBY_PLATFORM =~ /linux/
config.vm.synced_folder ".", "/vagrant", id: "vagrant-root", type: "nfs", nfs_udp: "true", nfs_version: "4", :nfs => nfs_setting
Nota: También tuve que agregar una dirección IP de host determinada por Vagrant y dirección IP de invitado determinada por Vagrant a excepciones de firewall.
Intente utilizar las buenas versiones conocidas de VirtualBox y Vagrant incluidas en la aplicación instructions :
- Vagrant 1.1.2
- VirtualBox 4.2.10
Estaba teniendo el mismo problema en Mac (OS X 10.9 (Mavericks)), pero volver a estas versiones parecía arreglarlo para mí.
Lo mismo me pasó a mí. Copié mi Vagrantfile de otro proyecto y olvidé cambiar la configuración de NFS. Esto hizo que la máquina virtual actual montara la carpeta principal de la máquina virtual de la que copié el archivo Vagrant original. Entonces hice esto:
vagrant halt
vagrant up
Aún tengo el mismo error. Así que rastreé mi archivo de exportaciones ubicado en / etc / exports que se ve así:
# VAGRANT-BEGIN: 501 64e10d4d-342e-4f55-b69a-97edda35742f
"/Users/[username]/vagrant" 192.168.11.12 -alldirs -mapall=501:20
# VAGRANT-END: 501 64e10d4d-342e-4f55-b69a-97edda35742f
# VAGRANT-BEGIN: 501 b3c6e7fe-95d4-48db-8876-c89d3e07af8d
"/Users/[username]/Sites/molitech-oms" 192.168.11.124 -alldirs -mapall=501:20
# VAGRANT-END: 501 b3c6e7fe-95d4-48db-8876-c89d3e07af8d
# VAGRANT-BEGIN: 501 3e2aabfd-ce63-441b-85a2-1b51e8beb863
"/Users/[username]/Sites/app" 192.168.11.125 -alldirs -mapall=501:20
# VAGRANT-END: 501 3e2aabfd-ce63-441b-85a2-1b51e8beb863
# VAGRANT-BEGIN: 501 ff92e353-9f6d-48ee-9d76-e29b33f1dd60
"/Users/[username]/Sites" 192.168.11.126 -alldirs -mapall=501:20
# VAGRANT-END: 501 ff92e353-9f6d-48ee-9d76-e29b33f1dd60
Los dos últimos caminos son iguales. Así que borré las últimas tres líneas y corrí:
vagrant halt && vagrant up
Ahora todo parece estar funcionando bien.
OSX 10.11.1 Vagrant 1.7.4
Me encontré con este problema con Vagrant 1.4.1 y VirtualBox 4.3.6 en OS X 10.9 Mavericks (13A603). Pude arreglarlo con un simple comando para crear el archivo faltante / etc / exports. Ejecuta esto en OS X, no en invitado, como se señala en los comentarios a continuación.
$ sudo touch /etc/exports
Entonces pude ejecutar con éxito vagrant up
. Me encontré con otro error donde los Guest Additions no estaban actualizados, pero solucioné ese problema instalando el complemento vagrant-vbguest.
$ vagrant plugin install vagrant-vbguest
y luego una vagrant reload
rápida y ¡ya estaba listo!
No quería pasar por la molestia de degradar. Esto es lo que hice (aún me tomó un tiempo, pero menos complicaciones que la degradación de mi humilde opinión):
En VM Vagrantfile, para cualquier carpeta sincronizada, deshabilitado NFS
config.vm.synced_folder ".", "/vagrant", nfs: false
Eliminado / etc / exports
sudo mv /etc/exports ~/Desktop/exports
Reescribir / etc / exports
vagrant up
Vuelva a habilitar NFS si lo quiere / lo necesita en su VM
config.vm.synced_folder ".", "/vagrant", nfs: true
Para mí, este error comenzó a aparecer para un entorno Vagrant en funcionamiento.
Cambié el nombre del directorio desde el que se estaba ejecutando Vagrant. Para solucionarlo, ejecuté ''sudo vi / etc / exports'' y arreglé la ruta para que apuntara a mi directorio actual.
Tenía algunas imágenes / cuadros anteriores instalados en mi instalación de VirtualBox, por lo que ya había algunas entradas no válidas en /etc/exports
. Así que tuve que limpiar ese archivo y reiniciar mi caja de Vagrant.
NFS is reporting that your exports file is invalid. Vagrant does
this check before making any changes to the file. Please correct
the issues below and execute "vagrant reload":
Esto es lo que hice en mi máquina host:
sudo rm /etc/exports
sudo touch /etc/exports
vagrant halt
vagrant up --provision