{"action":"created","issue":{"url":"https://api.github.com/repos/ByteInternet/hypernode-vagrant/issues/110","repository_url":"https://api.github.com/repos/ByteInternet/hypernode-vagrant","labels_url":"https://api.github.com/repos/ByteInternet/hypernode-vagrant/issues/110/labels{/name}","comments_url":"https://api.github.com/repos/ByteInternet/hypernode-vagrant/issues/110/comments","events_url":"https://api.github.com/repos/ByteInternet/hypernode-vagrant/issues/110/events","html_url":"https://github.com/ByteInternet/hypernode-vagrant/issues/110","id":188372543,"number":110,"title":"Vagrant up","user":{"login":"Onderbroeken","id":23367236,"avatar_url":"https://avatars.githubusercontent.com/u/23367236?v=3","gravatar_id":"","url":"https://api.github.com/users/Onderbroeken","html_url":"https://github.com/Onderbroeken","followers_url":"https://api.github.com/users/Onderbroeken/followers","following_url":"https://api.github.com/users/Onderbroeken/following{/other_user}","gists_url":"https://api.github.com/users/Onderbroeken/gists{/gist_id}","starred_url":"https://api.github.com/users/Onderbroeken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Onderbroeken/subscriptions","organizations_url":"https://api.github.com/users/Onderbroeken/orgs","repos_url":"https://api.github.com/users/Onderbroeken/repos","events_url":"https://api.github.com/users/Onderbroeken/events{/privacy}","received_events_url":"https://api.github.com/users/Onderbroeken/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-11-09T22:46:31Z","updated_at":"2016-12-08T09:29:45Z","closed_at":null,"body":"Hi,\r\n\r\nWhen I run \"vagrant up\" the following error message appears:\r\n\r\n<img width=\"571\" alt=\"schermafbeelding 2016-11-09 om 23 45 05\" src=\"https://cloud.githubusercontent.com/assets/23367236/20157696/a83ed1a0-a6d6-11e6-9b0a-1338e678a712.png\">\r\n\r\nAny idea how to solve this error? "},"comment":{"url":"https://api.github.com/repos/ByteInternet/hypernode-vagrant/issues/comments/265694271","html_url":"https://github.com/ByteInternet/hypernode-vagrant/issues/110#issuecomment-265694271","issue_url":"https://api.github.com/repos/ByteInternet/hypernode-vagrant/issues/110","id":265694271,"user":{"login":"vdloo","id":1437341,"avatar_url":"https://avatars.githubusercontent.com/u/1437341?v=3","gravatar_id":"","url":"https://api.github.com/users/vdloo","html_url":"https://github.com/vdloo","followers_url":"https://api.github.com/users/vdloo/followers","following_url":"https://api.github.com/users/vdloo/following{/other_user}","gists_url":"https://api.github.com/users/vdloo/gists{/gist_id}","starred_url":"https://api.github.com/users/vdloo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vdloo/subscriptions","organizations_url":"https://api.github.com/users/vdloo/orgs","repos_url":"https://api.github.com/users/vdloo/repos","events_url":"https://api.github.com/users/vdloo/events{/privacy}","received_events_url":"https://api.github.com/users/vdloo/received_events","type":"User","site_admin":false},"created_at":"2016-12-08T09:29:45Z","updated_at":"2016-12-08T09:29:45Z","body":"Hi,\r\n\r\nThe `hypernode-vagrant > examples > magento2_development_environment` instructions are more of an example for how to set up automation around the Vagrant. For example if you already have a Magento 2 project and want to build a CI pipeline around it using the hypernode-vagrant. \r\n\r\nI'm assuming you don't want that and just want to set up a Magento 2 installation in the Vagrant. If that is the case, you can just create a checkout of the repository, run `vagrant up` and follow the dialogue. Once the instance is running you should then be able to log in using ssh and follow the steps in [this article here](https://support.hypernode.com/knowledgebase/installing-magento-2-on-hypernode/).\r\n\r\n```\r\nvdloo@workstation4:~/Downloads$ mkdir mag2install\r\nvdloo@workstation4:~/Downloads$ cd mag2install/\r\nvdloo@workstation4:~/Downloads/mag2install$ git clone https://github.com/ByteInternet/hypernode-vagrant\r\nvdloo@workstation4:~/Downloads/mag2install$ cd hypernode-vagrant/\r\nvdloo@workstation4:~/Downloads/mag2install/hypernode-vagrant$ vagrant up \r\nBringing machine 'hypernode' up with 'virtualbox' provider...\r\n    hypernode: Is this a Magento 1 or 2 Hypernode? [default 2]: \r\n==> hypernode: Nginx will be configured for Magento 2. /data/web/magento2/pub will be symlinked to /data/web/public\r\n    hypernode: Is this a PHP 5.5 or 7.0 Hypernode? [default 7.0]: \r\n==> hypernode: Will boot a box with PHP 7.0 installed\r\n    hypernode: Do you want to enable Varnish? Enter true or false [default false]: \r\n==> hypernode: Varnish will be disabled by loading a nocache vcl.\r\n    hypernode: What filesystem type do you want to use? Options: nfs_guest, nfs, rsync, virtualbox [default virtualbox]: \r\n==> hypernode: Virtualbox is the default fs type. If you later want to try a faster fs type like nfs_guest, edit local.yml\r\n==> hypernode: Disabling fs->folders->magento1 in the local.yml because Magento 2 was configured..\r\n    hypernode: Do you want to enable the production-like firewall? Enter true or false [default false]: \r\n==> hypernode: The firewall will be disabled\r\n    hypernode: Do you want to enable production-like memory management? \r\n    hypernode: This might be slower but it is more in-line with a real Hypernode. \r\n    hypernode: Note: for LXC boxes this setting is disabled. \r\n    hypernode: Enter true or false [default false]: \r\n==> hypernode: Production-like memory management will be disabled\r\n    hypernode: Do you want to install Xdebug? Enter true or false [default false]: \r\n==> hypernode: Xdebug will be disabled\r\n==> hypernode: Will use PHP 7. If you want PHP 5.5 instead change the php version in local.yml.\r\n==> hypernode: Your hypernode-vagrant is now configured. Please run \"vagrant up\" again.\r\nvdloo@workstation4:~/Downloads/mag2install/hypernode-vagrant$ vagrant up \r\nBringing machine 'hypernode' up with 'virtualbox' provider...\r\n==> hypernode: Will use PHP 7. If you want PHP 5.5 instead change the php version in local.yml.\r\n==> hypernode: Importing base box 'hypernode_php7'...\r\n...\r\n==> hypernode: Your hypernode-vagrant is ready! Log in with:\r\n==> hypernode: ssh app@hypernode.local -oStrictHostKeyChecking=no -A\r\n==> hypernode: Or visit http://mag2install.hypernode.local in your browser\r\nvdloo@workstation4:~/Downloads/mag2install/hypernode-vagrant$ vagrant ssh\r\nWelcome to Ubuntu 12.04.3 LTS (GNU/Linux 3.13.0-100-generic x86_64)\r\n\r\n * Documentation:  https://help.ubuntu.com/\r\nNew release '14.04.5 LTS' available.\r\nRun 'do-release-upgrade' to upgrade to it.\r\n\r\nWelcome to your Vagrant-built virtual machine.\r\nLast login: Wed Jun 29 11:18:11 2016 from 10.0.2.2\r\nvagrant@9b2822-mag2install-magweb-vgr:~$ sudo su\r\nroot@9b2822-mag2install-magweb-vgr /home/vagrant # su app\r\napp@9b2822-mag2install-magweb-vgr:/home/vagrant$ cd \r\napp@9b2822-mag2install-magweb-vgr:~$ ls\r\ndisabled_caching.vcl  incidents  magento2  nginx  public  staging\r\napp@9b2822-mag2install-magweb-vgr:~$ echo \"now you can just follow the Magento 2 installation instructions\"\r\nnow you can just follow the Magento 2 installation instructions\r\n```\r\nhttps://support.hypernode.com/knowledgebase/installing-magento-2-on-hypernode/\r\n\r\nIf you however do actually want to use the magento2_development_environment example and you want to script some stuff around the Vagrant, maybe you can draw some inspiration from the output below. I've walked through the README and it looks like there are some hurdles. For example you need to have an up to date version of Ansible and it is not documented anywhere that you need to create your own local.yml beforehand to run the script.\r\n\r\n```\r\n# Create a fresh checkout\r\nvdloo@workstation4:~$ cd Downloads/\r\nvdloo@workstation4:~/Downloads$ mkdir mag2devenv\r\nvdloo@workstation4:~/Downloads$ cd mag2devenv/\r\nvdloo@workstation4:~/Downloads/mag2devenv$ git clone https://github.com/ByteInternet/hypernode-vagrant\r\nCloning into 'hypernode-vagrant'...\r\nremote: Counting objects: 913, done.\r\nremote: Total 913 (delta 0), reused 0 (delta 0), pack-reused 913\r\nReceiving objects: 100% (913/913), 771.46 KiB | 374.00 KiB/s, done.\r\nResolving deltas: 100% (430/430), done.\r\nChecking connectivity... done.\r\nvdloo@workstation4:~/Downloads/mag2devenv$ cd hypernode-vagrant/\r\n\r\n# Put the Magento marketplace credentials and the admin password in your environment\r\nvdloo@workstation4:~/Downloads/mag2devenv/hypernode-vagrant$ export MAGENTO_MARKETPLACE_PUBLIC_KEY=<YOURPUBLICKEY>\r\nvdloo@workstation4:~/Downloads/mag2devenv/hypernode-vagrant$ export MAGENTO_MARKETPLACE_PRIVATE_KEY=<YOURPRIVATEKEY>\r\nvdloo@workstation4:~/Downloads/mag2devenv/hypernode-vagrant$ export MAGENTO_ADMIN_PASSWORD=admin1234\r\n\r\n\r\n# Install Ansible in a python virtualenv\r\nvdloo@workstation4:~/Downloads/mag2devenv/hypernode-vagrant$ cd examples/magento2_development_environment/\r\nvdloo@workstation4:~/Downloads/mag2devenv/hypernode-vagrant/examples/magento2_development_environment$ [ ! -d venv ] && virtualenv venv\r\nRunning virtualenv with interpreter /usr/bin/python2\r\nNew python executable in /home/vdloo/Downloads/mag2devenv/hypernode-vagrant/examples/magento2_development_environment/venv/bin/python2\r\nAlso creating executable in /home/vdloo/Downloads/mag2devenv/hypernode-vagrant/examples/magento2_development_environment/venv/bin/python\r\nInstalling setuptools, pkg_resources, pip, wheel...done.\r\nvdloo@workstation4:~/Downloads/mag2devenv/hypernode-vagrant/examples/magento2_development_environment$ venv/bin/pip install ansible\r\nCollecting ansible\r\nCollecting PyYAML (from ansible)\r\nRequirement already satisfied: setuptools in ./venv/lib/python2.7/site-packages (from ansible)\r\nCollecting jinja2 (from ansible)\r\n  Using cached Jinja2-2.8-py2.py3-none-any.whl\r\nCollecting paramiko (from ansible)\r\n  Using cached paramiko-2.0.2-py2.py3-none-any.whl\r\nCollecting pycrypto>=2.6 (from ansible)\r\nCollecting MarkupSafe (from jinja2->ansible)\r\nCollecting pyasn1>=0.1.7 (from paramiko->ansible)\r\n  Using cached pyasn1-0.1.9-py2.py3-none-any.whl\r\nCollecting cryptography>=1.1 (from paramiko->ansible)\r\nCollecting ipaddress (from cryptography>=1.1->paramiko->ansible)\r\n  Using cached ipaddress-1.0.17-py2-none-any.whl\r\nCollecting six>=1.4.1 (from cryptography>=1.1->paramiko->ansible)\r\n  Using cached six-1.10.0-py2.py3-none-any.whl\r\nCollecting enum34 (from cryptography>=1.1->paramiko->ansible)\r\n  Using cached enum34-1.1.6-py2-none-any.whl\r\nCollecting idna>=2.0 (from cryptography>=1.1->paramiko->ansible)\r\n  Using cached idna-2.1-py2.py3-none-any.whl\r\nCollecting cffi>=1.4.1 (from cryptography>=1.1->paramiko->ansible)\r\n  Using cached cffi-1.9.1-cp27-cp27mu-manylinux1_x86_64.whl\r\nCollecting pycparser (from cffi>=1.4.1->cryptography>=1.1->paramiko->ansible)\r\nInstalling collected packages: PyYAML, MarkupSafe, jinja2, pyasn1, ipaddress, six, enum34, idna, pycparser, cffi, cryptography, paramiko, pycrypto, ansible\r\nSuccessfully installed MarkupSafe-0.23 PyYAML-3.12 ansible-2.2.0.0 cffi-1.9.1 cryptography-1.6 enum34-1.1.6 idna-2.1 ipaddress-1.0.17 jinja2-2.8 paramiko-2.0.2 pyasn1-0.1.9 pycparser-2.17 pycrypto-2.6.1 six-1.10.0\r\nvdloo@workstation4:~/Downloads/mag2devenv/hypernode-vagrant/examples/magento2_development_environment$ . venv/bin/activate\r\n\r\n\r\n# Configure the `hypernode-vagrant` using a local.xml configuration file. Edit local.yml with content like this:\r\n(venv) vdloo@workstation4:~/Downloads/mag2devenv/hypernode-vagrant/examples/magento2_development_environment$ vim local.yml\r\n---\r\nfs:\r\n  folders:\r\n    magento2:\r\n      host: data/web/magento2\r\n      guest: \"/data/web/magento2\"\r\n    nginx:\r\n      host: data/web/nginx/\r\n      guest: \"/data/web/nginx/\"\r\n  type: virtualbox\r\n  disabled_folders:\r\n    magento1:\r\n      host: data/web/public\r\n      guest: \"/data/web/public\"\r\nhostmanager:\r\n  extra-aliases:\r\n  - my-custom-store-url1.local\r\n  - my-custom-store-url2.local\r\nmagento:\r\n  version: 2\r\nphp:\r\n  version: 7.0\r\nvarnish:\r\n  state: false\r\nfirewall:\r\n  state: false\r\ncgroup:\r\n  state: false\r\nxdebug:\r\n  state: false\r\nvagrant:\r\n  box: hypernode_php7\r\n  box_url: http://vagrant.hypernode.com/customer/php7/catalog.json\r\n\r\n\r\n# Provision a development environment\r\n(venv) vdloo@workstation4:~/Downloads/mag2devenv/hypernode-vagrant/examples/magento2_development_environment$ make devenv\r\nscripts/check_env.sh\r\nscripts/boot_vagrant.sh\r\nvagrant-vbguest (0.13.0)\r\nvagrant-hostmanager (1.8.5)\r\nCloning into 'hypernode-vagrant'...\r\nremote: Counting objects: 913, done.\r\nremote: Total 913 (delta 0), reused 0 (delta 0), pack-reused 913\r\nReceiving objects: 100% (913/913), 771.46 KiB | 850.00 KiB/s, done.\r\nResolving deltas: 100% (430/430), done.\r\nChecking connectivity... done.\r\n==> hypernode: Checking for updates to 'hypernode_php7'\r\n    hypernode: Latest installed version: 3455\r\n    hypernode: Version constraints: \r\n    hypernode: Provider: virtualbox\r\n==> hypernode: Box 'hypernode_php7' (v3455) is running the latest version.\r\nBringing machine 'hypernode' up with 'virtualbox' provider...\r\n==> hypernode: Will use PHP 7. If you want PHP 5.5 instead change the php version in local.yml.\r\n==> hypernode: Importing base box 'hypernode_php7'...\r\n==> hypernode: Matching MAC address for NAT networking...\r\n==> hypernode: Checking if box 'hypernode_php7' is up to date...\r\n==> hypernode: Setting the name of the VM: hypernode-vagrant_hypernode_1481188589435_36104\r\n==> hypernode: Clearing any previously set network interfaces...\r\n==> hypernode: Preparing network interfaces based on configuration...\r\n    hypernode: Adapter 1: nat\r\n    hypernode: Adapter 2: hostonly\r\n==> hypernode: Forwarding ports...\r\n    hypernode: 80 (guest) => 8080 (host) (adapter 1)\r\n    hypernode: 3306 (guest) => 3307 (host) (adapter 1)\r\n    hypernode: 22 (guest) => 2222 (host) (adapter 1)\r\n==> hypernode: Running 'pre-boot' VM customizations...\r\n==> hypernode: Booting VM...\r\n==> hypernode: Waiting for machine to boot. This may take a few minutes...\r\n    hypernode: SSH address: 127.0.0.1:2222\r\n    hypernode: SSH username: vagrant\r\n    hypernode: SSH auth method: private key\r\n    hypernode: \r\n    hypernode: Vagrant insecure key detected. Vagrant will automatically replace\r\n    hypernode: this with a newly generated keypair for better security.\r\n    hypernode: \r\n    hypernode: Inserting generated public key within guest...\r\n    hypernode: Removing insecure key from the guest if it's present...\r\n    hypernode: Key inserted! Disconnecting and reconnecting using new SSH key...\r\n==> hypernode: Machine booted and ready!\r\n[hypernode] GuestAdditions 5.0.26 running --- OK.\r\n==> hypernode: Checking for guest additions in VM...\r\n==> hypernode: Setting hostname...\r\n==> hypernode: Configuring and enabling network interfaces...\r\n==> hypernode: Mounting shared folders...\r\n    hypernode: /vagrant => /home/vdloo/Downloads/mag2devenv/hypernode-vagrant/examples/magento2_development_environment/hypernode-vagrant\r\n    hypernode: /data/web/nginx => /home/vdloo/Downloads/mag2devenv/hypernode-vagrant/examples/magento2_development_environment/hypernode-vagrant/data/web/nginx\r\n    hypernode: /data/web/magento2 => /home/vdloo/Downloads/mag2devenv/hypernode-vagrant/examples/magento2_development_environment/magento2\r\n==> hypernode: Updating /etc/hosts file on active guest machines...\r\n==> hypernode: Updating /etc/hosts file on host machine (password may be required)...\r\n==> hypernode: Running provisioner: shell...\r\n    hypernode: Running: /tmp/vagrant-shell20161208-5693-1uylsnt.sh\r\n==> hypernode: stdin: is not a tty\r\n==> hypernode:  * Starting HTTP accelerator varnishd\r\n==> hypernode:    ...done.\r\n==> hypernode: VCL compiled.\r\n==> hypernode: VCL 'nocache' now active\r\n==> hypernode: Your hypernode-vagrant is ready! Log in with:\r\n==> hypernode: ssh app@hypernode.local -oStrictHostKeyChecking=no -A\r\n==> hypernode: Or visit http://dummytag.hypernode.local in your browser\r\nscripts/deploy_development.sh\r\nRegistered ip: 172.28.128.3\r\nUsing /etc/ansible/ansible.cfg as config file\r\n\r\nPLAY [all] *********************************************************************\r\n\r\nTASK [setup] *******************************************************************\r\nok: [172.28.128.3]\r\n\r\nTASK [ensure composer directory exists] ****************************************\r\nchanged: [172.28.128.3] => {\"changed\": true, \"gid\": 1003, \"group\": \"app\", \"mode\": \"0775\", \"owner\": \"app\", \"path\": \"/data/web/.composer\", \"size\": 4096, \"state\": \"directory\", \"uid\": 1001}\r\n\r\nTASK [store credentials for repo.magento.com] **********************************\r\nchanged: [172.28.128.3] => {\"changed\": true, \"checksum\": \"fsafdsafdsafsda\", \"dest\": \"/data/web/.composer/auth.json\", \"gid\": 1003, \"group\": \"app\", \"md5sum\": \"fdsafdsafdsafdsa\", \"mode\": \"0664\", \"owner\": \"app\", \"size\": 189, \"src\": \"/data/web/.ansible/tmp/ansible-tmp-1481188623.57-125309552222340/source\", \"state\": \"file\", \"uid\": 1001}\r\n\r\nTASK [install or update composer dependencies (takes a while)] *****************\r\n...\r\n```\r\n\r\n\r\n"}}
{"actor":{"display_login":"vdloo"}}