wordpress - First vagrant up fails -
i'm trying vvv , running in order work on wordpress site, , while following "first vagrant up" instructions installation fails. can find terminal output below.
just note, vagrant up
command below run sudo, same result when running without.
https://github.com/varying-vagrant-vagrants/vvv/tree/master#the-first-vagrant-up
my installation fails @ step 8
doug@unemac06261 vagrant-local$ sudo vagrant bringing machine 'default' 'virtualbox' provider... ==> default: importing base box 'ubuntu/trusty64'... ==> default: matching mac address nat networking... ==> default: checking if box 'ubuntu/trusty64' date... ==> default: setting name of vm: vagrant-local_default_1411438722704_61758 ==> default: clearing set forwarded ports... ==> default: clearing set network interfaces... ==> default: preparing network interfaces based on configuration... default: adapter 1: nat default: adapter 2: hostonly ==> default: forwarding ports... default: 22 => 2222 (adapter 1) ==> default: running 'pre-boot' vm customizations... ==> default: booting vm... ==> default: waiting machine boot. may take few minutes... default: ssh address: 127.0.0.1:2222 default: ssh username: vagrant default: ssh auth method: private key default: warning: connection timeout. retrying... ==> default: machine booted , ready! ==> default: checking guest additions in vm... ==> default: checking host entries ==> default: adding (/etc/hosts) : 192.168.50.4 vvv # vagrant: 5060d38a36f5e1f12d46263feb41f99a (default) / 502bc2fa-8395-48b4-a09c-09aa74586389 ==> default: adding (/etc/hosts) : 192.168.50.4 vvv.dev # vagrant: 5060d38a36f5e1f12d46263feb41f99a (default) / 502bc2fa-8395-48b4-a09c-09aa74586389 ==> default: adding (/etc/hosts) : 192.168.50.4 local.wordpress.dev # vagrant: 5060d38a36f5e1f12d46263feb41f99a (default) / 502bc2fa-8395-48b4-a09c-09aa74586389 ==> default: adding (/etc/hosts) : 192.168.50.4 local.wordpress-trunk.dev # vagrant: 5060d38a36f5e1f12d46263feb41f99a (default) / 502bc2fa-8395-48b4-a09c-09aa74586389 ==> default: adding (/etc/hosts) : 192.168.50.4 src.wordpress-develop.dev # vagrant: 5060d38a36f5e1f12d46263feb41f99a (default) / 502bc2fa-8395-48b4-a09c-09aa74586389 ==> default: adding (/etc/hosts) : 192.168.50.4 build.wordpress-develop.dev # vagrant: 5060d38a36f5e1f12d46263feb41f99a (default) / 502bc2fa-8395-48b4-a09c-09aa74586389 ==> default: setting hostname... ==> default: configuring , enabling network interfaces... ==> default: mounting shared folders... default: /vagrant => /users/doug/websitesnomamp/vagrant-local default: /srv/www => /users/doug/websitesnomamp/vagrant-local/www default: /srv/log => /users/doug/websitesnomamp/vagrant-local/log default: /srv/config => /users/doug/websitesnomamp/vagrant-local/config default: /srv/database => /users/doug/websitesnomamp/vagrant-local/database ==> default: running provisioner: shell... default: running: /tmp/vagrant-shell20140922-5634-vig5ba.sh ==> default: stdin: not tty ==> default: check apt packages install... ==> default: * php5-fpm [not installed] ==> default: * php5-cli [not installed] ==> default: * php5-common [not installed] ==> default: * php5-dev [not installed] ==> default: * php5-memcache [not installed] ==> default: * php5-imagick [not installed] ==> default: * php5-mcrypt [not installed] ==> default: * php5-mysql [not installed] ==> default: * php5-imap [not installed] ==> default: * php5-curl [not installed] ==> default: * php-pear [not installed] ==> default: * php5-gd [not installed] ==> default: * nginx [not installed] ==> default: * memcached [not installed] ==> default: * mysql-server [not installed] ==> default: * imagemagick [not installed] ==> default: * subversion [not installed] ==> default: * git-core [not installed] ==> default: * zip [not installed] ==> default: * unzip [not installed] ==> default: * ngrep [not installed] ==> default: * curl 7.35.0-1ubuntu2.1 ==> default: * make 3.81-8.2ubuntu3 ==> default: * vim 2:7.4.052-1ubuntu3 ==> default: * colordiff [not installed] ==> default: * postfix [not installed] ==> default: * gettext [not installed] ==> default: * graphviz [not installed] ==> default: * dos2unix [not installed] ==> default: * g++ [not installed] ==> default: * nodejs [not installed] ==> default: linked custom apt sources ==> default: no network connection available, skipping package installation ==> default: generate nginx server private key... ==> default: /etc/nginx/server.key: no such file or directory 140344758421152:error:02001002:system library:fopen:no such file or directory:bss_file.c:398:fopen('/etc/nginx/server.key','w') 140344758421152:error:20074002:bio routines:file_ctrl:system lib:bss_file.c:400: ==> default: generate certificate signing request (csr)... ==> default: error opening private key /etc/nginx/server.key ==> default: 140567930091168:error:02001002:system library:fopen:no such file or directory:bss_file.c:398:fopen('/etc/nginx/server.key','r') ==> default: 140567930091168:error:20074002:bio routines:file_ctrl:system lib:bss_file.c:400: ==> default: unable load private key ==> default: sign certificate using above private key , csr... ==> default: /etc/nginx/server.csr: no such file or directory ==> default: setup configuration files... ==> default: * /srv/config/init/vvv-start.conf -> /etc/init/vvv-start.conf ==> default: cp: ==> default: cannot create regular file '/etc/nginx/nginx.conf' ==> default: : no such file or directory ==> default: cp: ==> default: cannot create regular file '/etc/nginx/nginx-wp-common.conf' ==> default: : no such file or directory ==> default: mkdir: ==> default: cannot create directory '/etc/nginx/custom-sites/' ==> default: : no such file or directory ==> default: sending incremental file list ==> default: rsync: mkdir "/etc/nginx/custom-sites" failed: no such file or directory (2) ==> default: rsync error: error in file io (code 11) @ main.c(674) [receiver=3.1.0] ==> default: * /srv/config/nginx-config/nginx.conf -> /etc/nginx/nginx.conf ==> default: * /srv/config/nginx-config/nginx-wp-common.conf -> /etc/nginx/nginx-wp-common.conf ==> default: * /srv/config/nginx-config/sites/ -> /etc/nginx/custom-sites ==> default: cp: ==> default: cannot create regular file '/etc/php5/fpm/php5-fpm.conf' ==> default: : no such file or directory ==> default: cp: ==> default: cannot create regular file '/etc/php5/fpm/pool.d/www.conf' ==> default: : no such file or directory ==> default: cp: ==> default: cannot create regular file '/etc/php5/fpm/conf.d/php-custom.ini' ==> default: : no such file or directory ==> default: cp: ==> default: cannot create regular file '/etc/php5/fpm/conf.d/opcache.ini' ==> default: : no such file or directory ==> default: cp: ==> default: cannot create regular file '/etc/php5/mods-available/xdebug.ini' ==> default: : no such file or directory ==> default: sed: can't read /etc/php5/mods-available/xdebug.ini: no such file or directory ==> default: * /srv/config/php5-fpm-config/php5-fpm.conf -> /etc/php5/fpm/php5-fpm.conf ==> default: * /srv/config/php5-fpm-config/www.conf -> /etc/php5/fpm/pool.d/www.conf ==> default: * /srv/config/php5-fpm-config/php-custom.ini -> /etc/php5/fpm/conf.d/php-custom.ini ==> default: * /srv/config/php5-fpm-config/opcache.ini -> /etc/php5/fpm/conf.d/opcache.ini ==> default: * /srv/config/php5-fpm-config/xdebug.ini -> /etc/php5/mods-available/xdebug.ini ==> default: * /srv/config/memcached-config/memcached.conf -> /etc/memcached.conf ==> default: sending incremental file list ==> default: db_backup ==> default: develop_git ==> default: makepot ==> default: vagrant_destroy ==> default: vagrant_halt ==> default: vagrant_suspend ==> default: xdebug_off ==> default: xdebug_on ==> default: sent 2.22k bytes received 168 bytes 4.78k bytes/sec ==> default: total size 3.00k speedup 1.25 ==> default: * /srv/config/bash_profile -> /home/vagrant/.bash_profile ==> default: * /srv/config/bash_aliases -> /home/vagrant/.bash_aliases ==> default: * /srv/config/vimrc -> /home/vagrant/.vimrc ==> default: * /srv/config/subversion-servers -> /home/vagrant/.subversion/servers ==> default: * /srv/config/homebin -> /home/vagrant/bin ==> default: restart services... ==> default: nginx: unrecognized service ==> default: memcached: unrecognized service ==> default: /tmp/vagrant-shell: line 318: php5dismod: command not found ==> default: php5-fpm: unrecognized service ==> default: mysql: unrecognized service ==> default: setup mysql configuration file links... ==> default: cp: ==> default: cannot create regular file '/etc/mysql/my.cnf' ==> default: : no such file or directory ==> default: * /srv/config/mysql-config/my.cnf -> /etc/mysql/my.cnf ==> default: * /srv/config/mysql-config/root-my.cnf -> /home/vagrant/.my.cnf ==> default: service mysql restart ==> default: mysql: unrecognized service ==> default: no custom mysql scripting found in database/init-custom.sql, skipping... ==> default: /tmp/vagrant-shell: line 357: mysql: command not found ==> default: initial mysql prep... ==> default: start mysql database import ==> default: no custom databases import ==> default: no network available, skipping network installations ==> default: find: ==> default: `/etc/nginx/custom-sites' ==> default: : no such file or directory ==> default: restart nginx... ==> default: nginx: unrecognized service ==> default: cleaning virtual machine's /etc/hosts file... ==> default: adding domains virtual machine's /etc/hosts file... ==> default: * added vvv.dev /srv/www/vvv-hosts ==> default: * added local.wordpress.dev /srv/www/vvv-hosts ==> default: * added local.wordpress-trunk.dev /srv/www/vvv-hosts ==> default: * added src.wordpress-develop.dev /srv/www/vvv-hosts ==> default: * added build.wordpress-develop.dev /srv/www/vvv-hosts ==> default: ----------------------------- ==> default: provisioning complete in 32 seconds ==> default: no external network available. package installation , maintenance skipped. ==> default: further setup instructions, visit http://vvv.dev ==> default: running provisioner: shell... default: running: inline script ==> default: stdin: not tty ==> default: mysql: unrecognized service ssh command responded non-zero exit status. vagrant assumes means command failed. output command should in log above. please read output determine went wrong.
update:
it turns out that, reason, way resolve issue of not being able connect vm manually ssh server vagrant ssh
, manually install software said missing running following commands (in instance):
sudo apt-get install php5-fpm sudo apt-get install php5-cli sudo apt-get install php5-common sudo apt-get install php5-dev sudo apt-get install php5-memcache sudo apt-get install php5-imagick sudo apt-get install php5-mcrypt sudo apt-get install php5-mysql sudo apt-get install php5-imap sudo apt-get install php5-curl sudo apt-get install php-pear sudo apt-get install php5-gd sudo apt-get install nginx sudo apt-get install memcached sudo apt-get install mysql-server sudo apt-get install imagemagick sudo apt-get install subversion sudo apt-get install git-core sudo apt-get install zip sudo apt-get install unzip sudo apt-get install ngrep sudo apt-get install colordiff sudo apt-get install postfix sudo apt-get install gettext sudo apt-get install graphviz sudo apt-get install dos2unix sudo apt-get install g++ sudo apt-get install nodejs
this did not fix problem of being able view site on vm. though installed, still cannot view actual site seems me vm not configured, , configuration should happen automatically when run vagrant up
, correct?
looks vm ins't able access network. ip , subnet mask of local network? https://github.com/varying-vagrant-vagrants/vvv#caveats
Comments
Post a Comment