{"action":"created","issue":{"url":"https://api.github.com/repos/nanobox-io/nanobox/issues/32","labels_url":"https://api.github.com/repos/nanobox-io/nanobox/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/nanobox-io/nanobox/issues/32/comments","events_url":"https://api.github.com/repos/nanobox-io/nanobox/issues/32/events","html_url":"https://github.com/nanobox-io/nanobox/issues/32","id":116438193,"number":32,"title":"nanobox dev after a destroy errors","user":{"login":"lyondhill","id":453855,"avatar_url":"https://avatars.githubusercontent.com/u/453855?v=3","gravatar_id":"","url":"https://api.github.com/users/lyondhill","html_url":"https://github.com/lyondhill","followers_url":"https://api.github.com/users/lyondhill/followers","following_url":"https://api.github.com/users/lyondhill/following{/other_user}","gists_url":"https://api.github.com/users/lyondhill/gists{/gist_id}","starred_url":"https://api.github.com/users/lyondhill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lyondhill/subscriptions","organizations_url":"https://api.github.com/users/lyondhill/orgs","repos_url":"https://api.github.com/users/lyondhill/repos","events_url":"https://api.github.com/users/lyondhill/events{/privacy}","received_events_url":"https://api.github.com/users/lyondhill/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-11T22:49:00Z","updated_at":"2015-11-12T16:59:17Z","closed_at":null,"body":"odin :: (feature/apps) » nanobox destroy\r\n+> Destroying nanobox...\r\n   - Shutting down virtual machine.\r\n+> Deleting nanobox files (/Users/lyon/.nanobox/apps/odin)\r\n+> Removing odin.dev domain from /etc/hosts\r\nodin :: (feature/apps) » nanobox dev -v\r\n+> Creating a nanobox\r\n   - Importing nanobox base image....\r\n   - Booting virtual machine.......\r\n   - Configuring virtual network\r\nA fatal error occurred (See ~/.nanobox/nanobox.log for details). Exiting...\r\n\r\ncat ~/.nanobox/nanobox.log:\r\n2015-11-11 15:45:14 INFO  ==> odin: Forcing shutdown of VM...\r\n2015-11-11 15:45:15 INFO  ==> odin: Destroying VM and associated drives...\r\n2015-11-11 15:45:15 INFO  ==> odin: Running cleanup tasks for 'shell' provisioner...\r\n2015-11-11 15:45:15 INFO  ==> odin: Running cleanup tasks for 'shell' provisioner...\r\n2015-11-11 15:45:15 INFO  ==> odin: Running cleanup tasks for 'shell' provisioner...\r\n2015-11-11 15:45:15 INFO  ==> odin: Running cleanup tasks for 'shell' provisioner...\r\n2015-11-11 15:46:06 FATAL [commands/create] vagrant.Up() failed -  - exit status 1\r\n2015-11-11 15:46:06 *LOG* Closing log now"},"comment":{"url":"https://api.github.com/repos/nanobox-io/nanobox/issues/comments/156166056","html_url":"https://github.com/nanobox-io/nanobox/issues/32#issuecomment-156166056","issue_url":"https://api.github.com/repos/nanobox-io/nanobox/issues/32","id":156166056,"user":{"login":"lyondhill","id":453855,"avatar_url":"https://avatars.githubusercontent.com/u/453855?v=3","gravatar_id":"","url":"https://api.github.com/users/lyondhill","html_url":"https://github.com/lyondhill","followers_url":"https://api.github.com/users/lyondhill/followers","following_url":"https://api.github.com/users/lyondhill/following{/other_user}","gists_url":"https://api.github.com/users/lyondhill/gists{/gist_id}","starred_url":"https://api.github.com/users/lyondhill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lyondhill/subscriptions","organizations_url":"https://api.github.com/users/lyondhill/orgs","repos_url":"https://api.github.com/users/lyondhill/repos","events_url":"https://api.github.com/users/lyondhill/events{/privacy}","received_events_url":"https://api.github.com/users/lyondhill/received_events","type":"User","site_admin":false},"created_at":"2015-11-12T16:59:17Z","updated_at":"2015-11-12T16:59:17Z","body":"UPDATE: i noticed there was no real output for the vagrant command so i cd'ed into the ~/.nanobox/apps/appname folder and ran a vagrant up:\r\n```\r\n » vagrant up                                                                                     ~/.nanobox/apps/odin  \r\nBringing machine 'odin' up with 'virtualbox' provider...\r\n==> odin: Importing base box 'nanobox/boot2docker'...\r\n==> odin: Matching MAC address for NAT networking...\r\n==> odin: Checking if box 'nanobox/boot2docker' is up to date...\r\n==> odin: A newer version of the box 'nanobox/boot2docker' is available! You currently\r\n==> odin: have version '0'. The latest is version '0.16'. Run\r\n==> odin: `vagrant box update` to update.\r\n==> odin: Setting the name of the VM: odin\r\n==> odin: Clearing any previously set network interfaces...\r\n==> odin: Preparing network interfaces based on configuration...\r\n    odin: Adapter 1: nat\r\n    odin: Adapter 2: hostonly\r\n==> odin: Forwarding ports...\r\n    odin: 22 => 11870 (adapter 1)\r\n==> odin: Running 'pre-boot' VM customizations...\r\n==> odin: Booting VM...\r\n==> odin: Waiting for machine to boot. This may take a few minutes...\r\n    odin: SSH address: 127.0.0.1:11870\r\n    odin: SSH username: docker\r\n    odin: SSH auth method: password\r\n    odin: Warning: Connection timeout. Retrying...\r\n    odin: Warning: Connection timeout. Retrying...\r\n    odin: \r\n    odin: Inserting generated public key within guest...\r\n    odin: Removing insecure key from the guest if it's present...\r\n    odin: Key inserted! Disconnecting and reconnecting using new SSH key...\r\n==> odin: Machine booted and ready!\r\n==> odin: Checking for guest additions in VM...\r\n==> odin: Configuring and enabling network interfaces...\r\n==> odin: Exporting NFS shared folders...\r\nNFS is reporting that your exports file is invalid. Vagrant does\r\nthis check before making any changes to the file. Please correct\r\nthe issues below and execute \"vagrant reload\":\r\n\r\nexports:1: path contains non-directory or non-existent components: /Users/lyon/pagoda/kernel/kernel-app-dashboard\r\nexports:1: no usable directories in export entry\r\nexports:1: using fallback (marked offline): /\r\n```\r\n\r\nmy vagrant file looks like this:\r\n```\r\n################################################################################\r\n##                                                                            ##\r\n##                                   ***                                      ##\r\n##                                *********                                   ##\r\n##                           *******************                              ##\r\n##                       ***************************                          ##\r\n##                           *******************                              ##\r\n##                       ...      *********      ...                          ##\r\n##                           ...     ***     ...                              ##\r\n##                       +++      ...   ...      +++                          ##\r\n##                           +++     ...     +++                              ##\r\n##                       \\\\\\      +++   +++      ///                          ##\r\n##                           \\\\\\     +++     ///                              ##\r\n##                                \\\\     //                                   ##\r\n##                                   \\//                                      ##\r\n##                                                                            ##\r\n##                    _  _ ____ _  _ ____ ___  ____ _  _                      ##\r\n##                    |\\ | |__| |\\ | |  | |__) |  |  \\/                       ##\r\n##                    | \\| |  | | \\| |__| |__) |__| _/\\_                      ##\r\n##                                                                            ##\r\n## This file was generated by nanobox. Any modifications to it may cause your ##\r\n## nanobox VM to fail! To regenerate this file, delete it and run             ##\r\n## 'nanobox init'                                                             ##\r\n##                                                                            ##\r\n################################################################################\r\n\r\n# -*- mode: ruby -*-\r\n# vi: set ft=ruby :\r\n\r\n#\r\nVagrant.configure(2) do |config|\r\n\r\n  # add the boot2docker user credentials to allow nanobox to freely ssh into the vm\r\n  # w/o requiring a password\r\n  config.ssh.shell = \"bash\"\r\n  config.ssh.username = \"docker\"\r\n  config.ssh.password = \"tcuser\"\r\n\r\n  config.vm.define :'odin' do |nanobox|\r\n\r\n    ## Set the hostname of the vm to the app domain\r\n    nanobox.vm.provision \"shell\", inline: <<-SCRIPT\r\n      sudo hostname odin.dev\r\n    SCRIPT\r\n\r\n    ## Wait for nanobox-server to be ready before vagrant exits\r\n    nanobox.vm.provision \"shell\", inline: <<-WAIT\r\n      echo \"Waiting for nanobox server...\"\r\n      while ! nc -z 127.0.0.1 1757; do sleep 1; done;\r\n    WAIT\r\n\r\n    ## box\r\n    nanobox.vm.box     = \"nanobox/boot2docker\"\r\n\r\n\r\n    ## network\r\n\r\n    # add custom private network and ip and custom ssh port forward\r\n    nanobox.vm.network \"private_network\", ip: \"172.16.7.78\"\r\n    nanobox.vm.network :forwarded_port, guest: 22, host: 11870, id: 'ssh'\r\n\r\n\r\n    ## shared folders\r\n\r\n    # disable default /vagrant share (overridden below)\r\n    nanobox.vm.synced_folder \".\", \"/vagrant\", disabled: true\r\n\r\n    # add nanobox shared folders\r\n    nanobox.vm.synced_folder \"~/.ssh\", \"/mnt/ssh\"\r\n    nanobox.vm.synced_folder \"/Users/lyon/pagoda/nanobox/odin\", \"/vagrant/code/odin\",\r\n      type: \"nfs\",\r\n      mount_options: [\"nfsvers=3\", \"proto=tcp\"]\r\n\r\n\r\n    ## provider configs\r\n    # VirtualBox\r\n    nanobox.vm.provider \"virtualbox\" do |p|\r\n      p.name = \"odin\"\r\n\r\n      p.customize [\"modifyvm\", :id, \"--natdnshostresolver1\", \"on\"]\r\n      p.customize [\"modifyvm\", :id, \"--cpuexecutioncap\", \"50\"]\r\n      p.cpus = 2\r\n      p.memory = 1024\r\n    end\r\n\r\n    ## wait for the dhcp service to come online\r\n    nanobox.vm.provision \"shell\", inline: <<-WAIT\r\n      attempts=0\r\n      while [ ! -f /var/run/udhcpc.eth1.pid && $attempts -lt 30 ]; do\r\n        let attempts++\r\n        sleep 1\r\n      done\r\n    WAIT\r\n\r\n    # kill the eth1 dhcp server so that it doesn't override the assigned ip when\r\n    # the lease is up\r\n    nanobox.vm.provision \"shell\", inline: <<-KILL\r\n      if [ -f /var/run/udhcpc.eth1.pid ]; then\r\n        echo \"Killing eth1 dhcp...\"\r\n        kill -9 $(cat /var/run/udhcpc.eth1.pid)\r\n      fi\r\n    KILL\r\n\r\n    \r\n\r\n  end\r\nend\r\n```"}}