Skip to content

Instantly share code, notes, and snippets.

@erniebryant
Created August 26, 2015 02:44
Show Gist options
  • Save erniebryant/1ed659d559748e3b2e70 to your computer and use it in GitHub Desktop.
Save erniebryant/1ed659d559748e3b2e70 to your computer and use it in GitHub Desktop.
HGV-Full Deployment Error
root@HGV-Full:~/hgv-deploy-full# sudo ansible-playbook -i hosts playbook.yml -c local
PLAY [all] ********************************************************************
GATHERING FACTS ***************************************************************
ok: [domain5.com]
ok: [domain2.com]
ok: [domain3.com]
ok: [domain1.com]
ok: [domain6.com]
ok: [domain7.net]
ok: [domain4.org]
TASK: [common | Install necessary packages for proper system state] ***********
changed: [domain2.com] => (item=sysv-rc-conf,python-apt,python-pycurl,python-mysqldb,git,curl,unzip,php5-mysql,traceroute,ack-grep,subversion,autojump,siege)
TASK: [common | Get Composer] *************************************************
changed: [domain2.com]
TASK: [common | Install PsySH] ************************************************
changed: [domain2.com]
TASK: [common | Install Boris] ************************************************
changed: [domain2.com]
TASK: [common | Fix the stdin bug, step 1] ************************************
changed: [domain2.com]
TASK: [common | Fix the stdin bug, step 2] ************************************
changed: [domain2.com]
TASK: [common | Create swap file] *********************************************
changed: [domain2.com]
TASK: [common | Setup swap area] **********************************************
changed: [domain2.com]
TASK: [common | Change swap file permissions] *********************************
changed: [domain2.com]
TASK: [common | Write swap entry in fstab] ************************************
changed: [domain2.com]
TASK: [common | Swap on] ******************************************************
changed: [domain2.com]
TASK: [hhvm | Enable HHVM repo key] *******************************************
changed: [domain2.com]
TASK: [hhvm | Enable HHVM repo] ***********************************************
changed: [domain2.com]
TASK: [hhvm | Install HHVM] ***************************************************
changed: [domain2.com]
TASK: [hhvm | Do /etc/hhvm/server.ini] ****************************************
changed: [domain2.com]
TASK: [hhvm | Do /etc/hhvm/php.ini] *******************************************
changed: [domain2.com]
TASK: [hhvm | Ensure HHVM is running] *****************************************
changed: [domain2.com]
TASK: [php-fpm | Install PHP packages] ****************************************
changed: [domain2.com] => (item=php5,php5-cli,php5-imagick,php5-curl,php5-gd,php5-fpm,php5-memcache,php5-memcached,php5-xdebug,phpunit)
TASK: [memcached | Install memcached server] **********************************
changed: [domain2.com]
TASK: [memcached | Do memcached config] ***************************************
changed: [domain2.com]
TASK: [percona | ensure /etc/mysql] *******************************************
ok: [domain2.com]
TASK: [percona | Install Percona GPG key] *************************************
changed: [domain2.com]
TASK: [percona | Enable Percona repo] *****************************************
changed: [domain2.com]
TASK: [percona | Install Percona server] **************************************
changed: [domain2.com]
TASK: [percona | Install Percona client] **************************************
ok: [domain2.com]
TASK: [nginx | Install Nginx GPG key] *****************************************
changed: [domain2.com]
TASK: [nginx | Enable Nginx stable repo] **************************************
changed: [domain2.com]
TASK: [nginx | Install nginx] *************************************************
changed: [domain2.com]
TASK: [nginx | Ensure /etc/nginx directories exist] ***************************
changed: [domain2.com] => (item=/etc/nginx/sites-available)
changed: [domain2.com] => (item=/etc/nginx/sites-enabled)
TASK: [nginx | Configure /etc/nginx/nginx.conf] *******************************
changed: [domain2.com]
TASK: [nginx | Do nginx upstream.conf] ****************************************
changed: [domain2.com]
TASK: [nginx | Remove default.conf] *******************************************
ok: [domain2.com]
TASK: [nginx | Remove default conf.d] *****************************************
changed: [domain2.com]
TASK: [nginx | Remove example ssl conf.d] *************************************
changed: [domain2.com]
TASK: [nginx | Ensure main docroot exists] ************************************
changed: [domain2.com]
TASK: [nginx | Set up master docroot] *****************************************
changed: [domain2.com]
TASK: [nginx | Make sure Nginx is running] ************************************
ok: [domain2.com]
TASK: [wp-cli | Create install location for WP-CLI] ***************************
changed: [domain2.com]
TASK: [wp-cli | Install WP-CLI] ***********************************************
changed: [domain2.com]
TASK: [wp-cli | Set execute bits on WP-CLI] ***********************************
changed: [domain2.com]
TASK: [wp-cli | Symlink WP-CLI] ***********************************************
changed: [domain2.com]
TASK: [varnish | Fill the varnish GPG Key] ************************************
changed: [domain2.com]
TASK: [varnish | Add the varnish cache repo file] *****************************
changed: [domain2.com]
TASK: [varnish | Install Varnish] *********************************************
changed: [domain2.com]
TASK: [varnish | Ensure varnish config] ***************************************
changed: [domain2.com]
TASK: [varnish | Ensure varnish default.vcl] **********************************
changed: [domain2.com]
TASK: [varnish | Enable NCSA-style logging] ***********************************
changed: [domain2.com]
TASK: [varnish | Ensure Varnish is running] ***********************************
ok: [domain2.com]
TASK: [wp-cli | Create install location for WP-CLI] ***************************
ok: [domain2.com]
TASK: [wp-cli | Install WP-CLI] ***********************************************
changed: [domain2.com]
TASK: [wp-cli | Set execute bits on WP-CLI] ***********************************
changed: [domain2.com]
TASK: [wp-cli | Symlink WP-CLI] ***********************************************
ok: [domain2.com]
TASK: [nginx | Install Nginx GPG key] *****************************************
ok: [domain2.com]
TASK: [nginx | Enable Nginx stable repo] **************************************
ok: [domain2.com]
TASK: [nginx | Install nginx] *************************************************
ok: [domain2.com]
TASK: [nginx | Ensure /etc/nginx directories exist] ***************************
ok: [domain2.com] => (item=/etc/nginx/sites-available)
ok: [domain2.com] => (item=/etc/nginx/sites-enabled)
TASK: [nginx | Configure /etc/nginx/nginx.conf] *******************************
ok: [domain2.com]
TASK: [nginx | Do nginx upstream.conf] ****************************************
ok: [domain2.com]
TASK: [nginx | Remove default.conf] *******************************************
ok: [domain2.com]
TASK: [nginx | Remove default conf.d] *****************************************
ok: [domain2.com]
TASK: [nginx | Remove example ssl conf.d] *************************************
ok: [domain2.com]
TASK: [nginx | Ensure main docroot exists] ************************************
ok: [domain2.com]
TASK: [nginx | Set up master docroot] *****************************************
ok: [domain2.com]
TASK: [nginx | Make sure Nginx is running] ************************************
ok: [domain2.com]
TASK: [wordpress | Provision WP Database] *************************************
changed: [domain1.com]
changed: [domain6.com]
changed: [domain5.com]
changed: [domain2.com]
changed: [domain3.com]
changed: [domain4.org]
changed: [domain7.net]
TASK: [wordpress | Grant WP user access to WP DB] *****************************
changed: [domain2.com]
changed: [domain1.com]
changed: [domain6.com]
failed: [domain3.com] => {"failed": true}
msg: (1141, "There is no such grant defined for user 'SVC_DBAccount' on host '%'")
changed: [domain5.com]
changed: [domain4.org]
changed: [domain7.net]
TASK: [wordpress | Grant WP user access to WP DB] *****************************
failed: [domain6.com] => {"failed": true}
msg: (1141, "There is no such grant defined for user 'SVC_DBAccount' on host 'localhost'")
changed: [domain2.com]
failed: [domain5.com] => {"failed": true}
msg: (1141, "There is no such grant defined for user 'SVC_DBAccount' on host 'localhost'")
failed: [domain1.com] => {"failed": true}
msg: (1141, "There is no such grant defined for user 'SVC_DBAccount' on host 'localhost'")
failed: [domain4.org] => {"failed": true}
msg: (1141, "There is no such grant defined for user 'SVC_DBAccount' on host 'localhost'")
changed: [domain7.net]
TASK: [wordpress | Set up docroot] ********************************************
changed: [domain2.com]
changed: [domain7.net]
TASK: [wordpress | Set up virtualhosts] ***************************************
changed: [domain7.net]
changed: [domain2.com]
TASK: [wordpress | Enable hhvm virtualhosts] **********************************
changed: [domain2.com]
changed: [domain7.net]
TASK: [wordpress | Download and install WordPress for hhvm] *******************
changed: [domain2.com]
changed: [domain7.net]
TASK: [wordpress | Fetch random salts for WordPress config] *******************
changed: [domain7.net -> 127.0.0.1]
changed: [domain2.com -> 127.0.0.1]
TASK: [wordpress | Create wp-config for hhvm] *********************************
changed: [domain2.com]
changed: [domain7.net]
TASK: [wordpress | Localconfig for hhvm WordPress] ****************************
changed: [domain7.net]
changed: [domain2.com]
TASK: [wordpress | Object Cache for hhvm WordPress] ***************************
changed: [domain2.com]
changed: [domain7.net]
TASK: [wordpress | Run the WP install for hhvm] *******************************
failed: [domain2.com] => {"changed": true, "cmd": ["/usr/local/bin/wp", "core", "install", "--url=domain2.com", "--title=domain2.com", "--admin_user=SVC_WPAccount", "--admin_password=P@ssw0rd", "--admin_email=admin@example.com"], "delta": "0:00:00.210788", "end": "2015-08-25 22:28:56.780731", "rc": 1, "start": "2015-08-25 22:28:56.569943", "warnings": []}
stderr: Error: Can’t select database
changed: [domain7.net]
NOTIFIED: [hhvm | hhvm restart] ***********************************************
changed: [domain7.net]
NOTIFIED: [memcached | memcached restart] *************************************
changed: [domain7.net]
NOTIFIED: [percona | mysql restart] *******************************************
changed: [domain7.net]
NOTIFIED: [percona | update-rc mysql] *****************************************
changed: [domain7.net]
NOTIFIED: [nginx | nginx reload] **********************************************
changed: [domain7.net]
NOTIFIED: [nginx | nginx restart] *********************************************
changed: [domain7.net]
NOTIFIED: [nginx | update-rc nginx] *******************************************
changed: [domain7.net]
NOTIFIED: [varnish | varnish reload] ******************************************
changed: [domain7.net]
NOTIFIED: [varnish | varnishncsa reload] **************************************
changed: [domain7.net]
PLAY RECAP ********************************************************************
to retry, use: --limit @/root/playbook.retry
domain1.com : ok=67 changed=47 unreachable=0 failed=1
domain2.com : ok=76 changed=56 unreachable=0 failed=1
domain3.com : ok=66 changed=46 unreachable=0 failed=1
domain4.org : ok=67 changed=47 unreachable=0 failed=1
domain5.com : ok=67 changed=47 unreachable=0 failed=1
domain6.com : ok=67 changed=47 unreachable=0 failed=1
domain7.net : ok=86 changed=66 unreachable=0 failed=0
root@HGV-Full:~/hgv-deploy-full#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment