tag manager export vagrant nfs discourse

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 la cleanup'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/builtin/synced_folder_cleanup.rb:24:in block in call'' de / Applications each_key'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/builtin/synced_folder_cleanup.rb:22:in Vagrant each_key'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/builtin/synced_folder_cleanup.rb:22:in Embedded each_key'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/builtin/synced_folder_cleanup.rb:22:in Gems each_key'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/builtin/synced_folder_cleanup.rb:22:in Gems each_key'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/builtin/synced_folder_cleanup.rb:22:in Avant1.4.1 each_key'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/builtin/synced_folder_cleanup.rb:22:in lib each_key'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/builtin/synced_folder_cleanup.rb:22:in vagrant each_key'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/builtin/synced_folder_cleanup.rb:22:in action each_key'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/builtin/synced_folder_cleanup.rb:22:in builtin each_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 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 / 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: in call'' 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: in call'' 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:in call'' 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: in call'' 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:in call'' 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: 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/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: in call'' 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:in call'' 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 : in call'' 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:in call'' 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_action call'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/warden.rb:34:in gems call'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/warden.rb:34:in gems call'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/warden.rb:34:in avatar -1.4.1 call'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/warden.rb:34:in lib call'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/warden.rb:34:in vagrant call'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/warden.rb:34:in action call'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/warden.rb:34:in warden.rb:34:in call'' 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: in call'' 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:in busy'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/runner.rb:69:in ejecución call'' 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:in call'' 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:in block 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:in call'' 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:in block 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:in run'' 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:in call'' 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: en call'' 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:in call'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/runner.rb:69:in bloque en ejecución busy'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/runner.rb:69:in Gems busy'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/runner.rb:69:in Gems busy'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/runner.rb:69:in Avance1.4.1 busy'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/runner.rb:69:in lib busy'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/runner.rb:69:in vagrant busy'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/runner.rb:69:in util busy'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/action/runner.rb:69:in busy.rb:19:en busy'' 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:in call'' 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:in call'' 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: in call'' 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:in call'' 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: in call'' 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:in call'' 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: in call'' 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:in block 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: in call'' 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:in block 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:in run'' 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: in call'' 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:in call'' 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: in block 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:in run'' 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:in block 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:in each'' 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:in execute'' 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:in cli'' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/bin/vagrant:127:in ''from /Applications/Vagrant/bin/../embedded/gems/bin/vagrant:23:in load'' 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 :

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):

  1. En VM Vagrantfile, para cualquier carpeta sincronizada, deshabilitado NFS

    config.vm.synced_folder ".", "/vagrant", nfs: false

  2. Eliminado / etc / exports

    sudo mv /etc/exports ~/Desktop/exports

  3. Reescribir / etc / exports

    vagrant up

  4. 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