richdynamix / magestead

The Vagrant Solution for Magento Developers
81 stars 29 forks source link

Error installing on Ubuntu 16.04 #61

Closed dusnoki closed 8 years ago

dusnoki commented 8 years ago

Update: I had to install gd and zip php5.6 extensions on my machine, fixed the problem

I've been using magestead without any issues for installing magento 1.9, but I tried installing 2.1.0 and keep getting the same errors. Here is the output from my console. Maybe you can have some insight on what is actually going on.

`dusnoki@thinkpad:~/code$ magestead new magento39 Lets configure your project's VM Configure the IP for your VM (192.168.47.47): How many CPU's would you like to use? (1): Define the VM memory limit (2048): Lets configure your server Which OS would you like to install? [0] CentOS 6.5 [1] Ubuntu 14

1 Which webserver would you like? [0] NGINX [1] Apache 1 Keep in mind PHP7 is only available for Magento 2 Which version of PHP should be installed? [0] 56 [1] 70 0 Lets configure your project's application Which application do you want to install? [0] Magento [1] Magento2 1 Enter your application's base_url (magento39.dev): Enter your application's default currency (GBP): USD Enter your application's default locale (en_GB): en_US Please enter your Magento username (public key): 8f031eff96fe8063b298a0d37cf48649 Please enter your Magento password (private key): 56be50c994e3b8fd17937e0f9a1e15d9 Would you like to add your project to GIT? (no/yes) no Setting up project structure 3720/3720 [============================] 100% Spinning up your custom box Bringing machine 'local' up with 'virtualbox' provider... ==> local: Importing base box 'richdynamix/magestead-ubuntu14-apache-php56'... ==> local: Matching MAC address for NAT networking... ==> local: Checking if box 'richdynamix/magestead-ubuntu14-apache-php56' is up to date... ==> local: Setting the name of the VM: magento39_local_1472226992507_59429 ==> local: Clearing any previously set network interfaces... ==> local: Preparing network interfaces based on configuration... local: Adapter 1: nat local: Adapter 2: hostonly ==> local: Forwarding ports... local: 80 (guest) => 8000 (host) (adapter 1) local: 443 (guest) => 44300 (host) (adapter 1) local: 3360 (guest) => 33600 (host) (adapter 1) local: 5432 (guest) => 54320 (host) (adapter 1) local: 8025 (guest) => 8025 (host) (adapter 1) local: 22 (guest) => 2222 (host) (adapter 1) ==> local: Running 'pre-boot' VM customizations... ==> local: Booting VM... ==> local: Waiting for machine to boot. This may take a few minutes... local: SSH address: 127.0.0.1:2222 local: SSH username: vagrant local: SSH auth method: private key ==> local: Machine booted and ready! ==> local: Checking for guest additions in VM... ==> local: [vagrant-hostsupdater] Checking for host entries ==> local: [vagrant-hostsupdater] found entry for: 192.168.47.47 magestead2.dev ==> local: [vagrant-hostsupdater] found entry for: 192.168.47.47 www.magestead2.dev ==> local: [vagrant-hostsupdater] Writing the following entries to (/etc/hosts) ==> local: [vagrant-hostsupdater] 192.168.47.47 magestead-magento39.dev # VAGRANT: 987396f9da612628cc9cfdbf954c0857 (local) / bacf3978-41f8-4ee5-be0a-4df2030d7474 ==> local: [vagrant-hostsupdater] 192.168.47.47 magento39.dev # VAGRANT: 987396f9da612628cc9cfdbf954c0857 (local) / bacf3978-41f8-4ee5-be0a-4df2030d7474 ==> local: [vagrant-hostsupdater] This operation requires administrative access. You may skip it by manually adding equivalent entries to the hosts file. ==> local: Setting hostname... ==> local: Configuring and enabling network interfaces... ==> local: Exporting NFS shared folders... ==> local: Preparing to edit /etc/exports. Administrator privileges will be required... ● nfs-server.service - NFS server and services Loaded: loaded (/lib/systemd/system/nfs-server.service; enabled; vendor preset: enabled) Active: active (exited) since пет 2016-08-26 17:20:53 CEST; 36min ago Process: 2715 ExecStart=/usr/sbin/rpc.nfsd $RPCNFSDARGS (code=exited, status=0/SUCCESS) Process: 2711 ExecStartPre=/usr/sbin/exportfs -r (code=exited, status=0/SUCCESS) Main PID: 2715 (code=exited, status=0/SUCCESS) CGroup: /system.slice/nfs-server.service

авг 26 17:20:52 thinkpad systemd[1]: Starting NFS server and services... авг 26 17:20:53 thinkpad systemd[1]: Started NFS server and services. ==> local: Mounting NFS shared folders... ==> local: Mounting shared folders... local: /vagrant => /home/dusnoki/code/magento39 ==> local: Creating bind mounts for selected devices ==> local: Creating bind mount from /mnt/vagrant-vflsfuocnhnxzm524 to /var/www ==> local: Running provisioner: shell... local: Running: inline script ==> local: Running provisioner: shell... local: Running: /tmp/vagrant-shell20160826-14105-193xktv.sh ==> local: ==> local: ███╗ ███╗ █████╗ ██████╗ ███████╗███████╗████████╗███████╗ █████╗ ██████╗ ==> local: ████╗ ████║██╔══██╗██╔════╝ ██╔════╝██╔════╝╚══██╔══╝██╔════╝██╔══██╗██╔══██╗ ==> local: ██╔████╔██║███████║██║ ███╗█████╗ ███████╗ ██║ █████╗ ███████║██║ ██║ ==> local: ██║╚██╔╝██║██╔══██║██║ ██║██╔══╝ ╚════██║ ██║ ██╔══╝ ██╔══██║██║ ██║ ==> local: ██║ ╚═╝ ██║██║ ██║╚██████╔╝███████╗███████║ ██║ ███████╗██║ ██║██████╔╝ ==> local: ╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝ ╚══════╝╚══════╝ ╚═╝ ╚══════╝╚═╝ ╚═╝╚═════╝ ==> local:
==> local:
____ generated using ==> local: | \ | | | | | _ \ | | __ ==> local: | |) | | | | |) | || | |) / _ \ | / / | ' ` _ \ ==> local: | _/| || | /| | / / | | (| () | | | | | | ==> local: |_| \,|| || ||_| |()_\/|| || || ==> local: Running provisioner: shell... local: Running: /tmp/vagrant-shell20160826-14105-1n8849c.sh ==> local: Generating public/private rsa key pair. ==> local: Your identification has been saved in /vagrant/puphpet/files/dot/ssh/root_id_rsa. ==> local: Your public key has been saved in /vagrant/puphpet/files/dot/ssh/root_id_rsa.pub. ==> local: The key fingerprint is: ==> local: f6:77:30:10:5c:4e:6b:6a:23:21:b8:52:2d:48:3e:5b root@magestead-magento39 ==> local: The key's randomart image is: ==> local: +--[ RSA 2048]----+ ==> local: | . ...o | ==> local: | o . o .+ . | ==> local: | + E o . . + | ==> local: | = o . . + | ==> local: | o . S + o | ==> local: | . . + . o | ==> local: | . . . | ==> local: | . . | ==> local: | | ==> local: +-----------------+ ==> local: E ==> local: : ==> local: Unable to locate package putty-tools ==> local: /tmp/vagrant-shell: line 22: puttygen: command not found ==> local: Your private key for SSH-based authentication has been saved to 'puphpet/files/dot/ssh/root_id_rsa'! ==> local: Generating public/private rsa key pair. ==> local: Your identification has been saved in /vagrant/puphpet/files/dot/ssh/id_rsa. ==> local: Your public key has been saved in /vagrant/puphpet/files/dot/ssh/id_rsa.pub. ==> local: The key fingerprint is: ==> local: 8e:7d:c8:9e:d0:47:8d:cd:56:fe:05:be:9d:3e:96:02 root@magestead-magento39 ==> local: The key's randomart image is: ==> local: +--[ RSA 2048]----+ ==> local: | | ==> local: | | ==> local: | o | ==> local: | = + . | ==> local: | S o = o .| ==> local: | * o E +o| ==> local: | o * o . ..+| ==> local: | o + ..+ | ==> local: | o o..| ==> local: +-----------------+ ==> local: E ==> local: : ==> local: Unable to locate package putty-tools ==> local: /tmp/vagrant-shell: line 22: puttygen: command not found ==> local: Your private key for SSH-based authentication has been saved to 'puphpet/files/dot/ssh/id_rsa'! ==> local: Adding generated root key to /root/.ssh/id_rsa ==> local: Adding generated root key to /root/.ssh/id_rsa.pub ==> local: Adding generated root key to /root/.ssh/authorized_keys ==> local: Adding generated key to /home/vagrant/.ssh/id_rsa ==> local: Adding generated key to /home/vagrant/.ssh/id_rsa.pub ==> local: Adding generated key to /home/vagrant/.ssh/authorized_keys ==> local: Running provisioner: shell... local: Running: /tmp/vagrant-shell20160826-14105-1hu8yv0.sh ==> local: Created file /.puphpet-stuff/mba_12345-ran ==> local: --- Installing Database for Magento 2 --- ==> local: --- Configuring APACHE VHOST for Magento 2 --- ==> local: * Restarting Apache httpd web server apache2 ==> local: AH00112: Warning: DocumentRoot [/var/www/public/pub] does not exist ==> local: ...done. ==> local: Running provisioner: shell... local: Running: /tmp/vagrant-shell20160826-14105-y5t9v6.sh Installing Magento 2 with Composer Installing magento/project-community-edition (2.1.0)

Created project in public Loading composer repositories with package information Updating dependencies (including require-dev) Your requirements could not be resolved to an installable set of packages.

Problem 1

Installation failed, reverting ./composer.json to its original content. chmod: cannot access 'bin/phpspec': No such file or directory bash: bin/phpspec: No such file or directory Installing Behat Using version ^3.1 for behat/behat ./composer.json has been updated Loading composer repositories with package information Updating dependencies (including require-dev) Your requirements could not be resolved to an installable set of packages.

Problem 1

Installation failed, reverting ./composer.json to its original content. chmod: cannot access 'bin/behat': No such file or directory bash: bin/behat: No such file or directory Setting Permissions Folder Permissions Set File Permissions Set chmod: cannot access 'bin/magento': No such file or directory chmod: cannot access 'bin/phpspec': No such file or directory chmod: cannot access 'bin/behat': No such file or directory bin/magento Permissions Set Installing Magento 2 Software bash: bin/magento: No such file or directory Reindexing Tables bash: bin/magento: No such file or directory Flushing All Cache bash: bin/magento: No such file or directory Configuring Redis Cache PHP Warning: include(/home/dusnoki/code/magento39/public/app/etc/env.php): failed to open stream: No such file or directory in /home/dusnoki/.composer/vendor/richdynamix/magestead/src/Magestead/Installers/Magento2Project.php on line 137 PHP Warning: include(): Failed opening '/home/dusnoki/code/magento39/public/app/etc/env.php' for inclusion (include_path='.:/usr/share/php') in /home/dusnoki/.composer/vendor/richdynamix/magestead/src/Magestead/Installers/Magento2Project.php on line 137 PHP Warning: file_put_contents(/home/dusnoki/code/magento39/public/app/etc/env.php): failed to open stream: No such file or directory in /home/dusnoki/.composer/vendor/richdynamix/magestead/src/Magestead/Installers/Magento2Project.php on line 178 SUCCESS: Magestead has finished installing Magento 2! +----------+-------------+---------------+-----------+ | Username | Password | Base URL | Admin URI | +----------+-------------+---------------+-----------+ | admin | password123 | magento39.dev | admin | +----------+-------------+---------------+-----------+ `