r8 / vagrant-lamp

My default LAMP development stack for Vagrant
http://r8.github.io/vagrant-lamp/
753 stars 255 forks source link

MySQL Won't Start (ERROR 2002 (HY000)) #118

Closed ghost closed 9 years ago

ghost commented 9 years ago

On a fresh vagrant up, I'm struggling to get MySQL running. I'm perhaps overlooking something simple, but thus far have discovered nothing.

On trying to start the service, the call fails, and I'm unable to start it by any other method I've tried. There's ample 'disk space' available - which I note is a common cause of this issue, I'm also unable to find the .sock file, so theorise this could be why. I'm no ninja, however - an I'm not too sure how to go about verifying.

`vagrant@vagrant:/vagrant/public/lara.vel$ mysql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
vagrant@vagrant:/vagrant/public/lara.vel$ sudo service mysql start
start: Job failed to start`

Vagrant up below:

Seans-MacBook-Air:vagrant-lamp seanleach$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'chef/ubuntu-14.04'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'chef/ubuntu-14.04' is up to date...
==> default: Setting the name of the VM: vagrant-lamp_default_1427746856928_65123
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
    default: Adapter 2: hostonly
==> default: Forwarding ports...
    default: 3306 => 33066 (adapter 1)
    default: 80 => 8080 (adapter 1)
    default: 8025 => 8025 (adapter 1)
    default: 22 => 2222 (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a 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: 
    default: Vagrant insecure key detected. Vagrant will automatically replace
    default: this with a newly generated keypair for better security.
    default: 
    default: Inserting generated public key within guest...
    default: Removing insecure key from the guest if its present...
    default: Key inserted! Disconnecting and reconnecting using new SSH key...
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
==> default: Configuring and enabling network interfaces...
==> default: Mounting shared folders...
    default: /vagrant => /Users/seanleach/Documents/Development/Web/LAMPStack/vagrant-lamp
    default: /tmp/vagrant-chef/a85381ff0d15036e23b25ca9d197b9ec/cookbooks => /Users/seanleach/Documents/Development/Web/LAMPStack/vagrant-lamp/cookbooks
    default: /tmp/vagrant-chef/ffb99a741640275098a4ad67f35e0c53/cookbooks => /Users/seanleach/Documents/Development/Web/LAMPStack/vagrant-lamp/berks-cookbooks
    default: /tmp/vagrant-chef/086382bdd64437dafcdedb4080dac9ab/data_bags => /Users/seanleach/Documents/Development/Web/LAMPStack/vagrant-lamp/data_bags
==> default: Installing Chef 12.2.1 Omnibus package...
==> default: Downloading Chef 12.2.1 for ubuntu...
==> default: downloading https://www.getchef.com/chef/metadata?v=12.2.1&prerelease=false&nightlies=false&p=ubuntu&pv=14.04&m=x86_64
==> default:   to file /tmp/install.sh.1319/metadata.txt
==> default: trying wget...
==> default: url    https://opscode-omnibus-packages.s3.amazonaws.com/ubuntu/13.04/x86_64/chef_12.2.1-1_amd64.deb
==> default: md5    84119f54115d754373c9891b8759497c
==> default: sha256 8e0a8a2477c11615f86ffe686a68fa6636112ba82ebe6bb22daa5dd416f3c13e
==> default: downloaded metadata file looks valid...
==> default: downloading https://opscode-omnibus-packages.s3.amazonaws.com/ubuntu/13.04/x86_64/chef_12.2.1-1_amd64.deb
==> default:   to file /tmp/install.sh.1319/chef_12.2.1-1_amd64.deb
==> default: trying wget...
==> default: Comparing checksum with sha256sum...
==> default: Installing Chef 12.2.1
==> default: installing with dpkg...
==> default: Selecting previously unselected package chef.
==> default: (Reading database ... 32400 files and directories currently installed.)
==> default: Preparing to unpack .../chef_12.2.1-1_amd64.deb ...
==> default: Unpacking chef (12.2.1-1) ...
==> default: Setting up chef (12.2.1-1) ...
==> default: Thank you for installing Chef!
==> default: Running provisioner: chef_zero...
==> default: Detected Chef (latest) is already installed
Generating chef JSON and uploading...
==> default: Running chef-zero...
==> default: stdin: is not a tty
==> default: [2015-03-30T20:22:55+00:00] INFO: Started chef-zero at http://localhost:8889 with repository at /tmp/vagrant-chef/ffb99a741640275098a4ad67f35e0c53, /tmp/vagrant-chef/a85381ff0d15036e23b25ca9d197b9ec
==> default:   One version per cookbook
==> default:   data_bags at /tmp/vagrant-chef/086382bdd64437dafcdedb4080dac9ab/data_bags
==> default: [2015-03-30T20:22:55+00:00] INFO: Forking chef instance to converge...
==> default: [2015-03-30T20:22:55+00:00] INFO: *** Chef 12.2.1 ***
==> default: [2015-03-30T20:22:55+00:00] INFO: Chef-client pid: 1484
==> default: [2015-03-30T20:23:02+00:00] INFO: Setting the run_list to ["recipe[vagrant_main]", "recipe[vagrant_main::nodejs]", "recipe[vagrant_main::wordpress]", "recipe[vagrant_main::magento]"] from CLI options
==> default: [2015-03-30T20:23:02+00:00] INFO: Run List is [recipe[vagrant_main], recipe[vagrant_main::nodejs], recipe[vagrant_main::wordpress], recipe[vagrant_main::magento]]
==> default: [2015-03-30T20:23:02+00:00] INFO: Run List expands to [vagrant_main, vagrant_main::nodejs, vagrant_main::wordpress, vagrant_main::magento]
==> default: [2015-03-30T20:23:02+00:00] INFO: Starting Chef Run for vagrant.vm
==> default: [2015-03-30T20:23:02+00:00] INFO: Running start handlers
==> default: [2015-03-30T20:23:02+00:00] INFO: Start handlers complete.
==> default: [2015-03-30T20:23:05+00:00] WARN: apache2::mod_php5 generally is expected to be run under a non-threaded MPM, such as prefork
==> default: [2015-03-30T20:23:05+00:00] WARN: See http://php.net/manual/en/faq.installation.php#faq.installation.apache2
==> default: [2015-03-30T20:23:05+00:00] WARN: Currently the apache2 cookbook is configured to use the 'event' MPM
==> default: [2015-03-30T20:23:05+00:00] WARN: Cloning resource attributes for bash[hosts] from prior resource (CHEF-3694)
==> default: [2015-03-30T20:23:05+00:00] WARN: Previous bash[hosts]: /tmp/vagrant-chef/a85381ff0d15036e23b25ca9d197b9ec/cookbooks/vagrant_main/recipes/default.rb:65:in `block in from_file'
==> default: [2015-03-30T20:23:05+00:00] WARN: Current  bash[hosts]: /tmp/vagrant-chef/a85381ff0d15036e23b25ca9d197b9ec/cookbooks/vagrant_main/recipes/default.rb:65:in `block in from_file'
==> default: [2015-03-30T20:23:05+00:00] WARN: Cloning resource attributes for execute[a2dissite default.conf] from prior resource (CHEF-3694)
==> default: [2015-03-30T20:23:05+00:00] WARN: Previous execute[a2dissite default.conf]: /tmp/vagrant-chef/ffb99a741640275098a4ad67f35e0c53/cookbooks/apache2/definitions/apache_site.rb:35:in `block in from_file'
==> default: [2015-03-30T20:23:05+00:00] WARN: Current  execute[a2dissite default.conf]: /tmp/vagrant-chef/ffb99a741640275098a4ad67f35e0c53/cookbooks/apache2/definitions/apache_site.rb:35:in `block in from_file'
==> default: [2015-03-30T20:23:05+00:00] WARN: Cloning resource attributes for apt_package[curl] from prior resource (CHEF-3694)
==> default: [2015-03-30T20:23:05+00:00] WARN: Previous apt_package[curl]: /tmp/vagrant-chef/ffb99a741640275098a4ad67f35e0c53/cookbooks/npm/recipes/default.rb:26:in `from_file'
==> default: [2015-03-30T20:23:05+00:00] WARN: Current  apt_package[curl]: /tmp/vagrant-chef/ffb99a741640275098a4ad67f35e0c53/cookbooks/magento-toolbox/recipes/n98-magerun.rb:12:in `from_file'
==> default: [2015-03-30T20:23:05+00:00] WARN: Cloning resource attributes for apt_package[curl] from prior resource (CHEF-3694)
==> default: [2015-03-30T20:23:05+00:00] WARN: Previous apt_package[curl]: /tmp/vagrant-chef/ffb99a741640275098a4ad67f35e0c53/cookbooks/magento-toolbox/recipes/n98-magerun.rb:12:in `from_file'
==> default: [2015-03-30T20:23:05+00:00] WARN: Current  apt_package[curl]: /tmp/vagrant-chef/ffb99a741640275098a4ad67f35e0c53/cookbooks/magento-toolbox/recipes/modman.rb:10:in `from_file'
==> default: [2015-03-30T20:23:05+00:00] WARN: Cloning resource attributes for apt_package[curl] from prior resource (CHEF-3694)
==> default: [2015-03-30T20:23:05+00:00] WARN: Previous apt_package[curl]: /tmp/vagrant-chef/ffb99a741640275098a4ad67f35e0c53/cookbooks/magento-toolbox/recipes/modman.rb:10:in `from_file'
==> default: [2015-03-30T20:23:05+00:00] WARN: Current  apt_package[curl]: /tmp/vagrant-chef/ffb99a741640275098a4ad67f35e0c53/cookbooks/magento-toolbox/recipes/modgit.rb:10:in `from_file'
==> default: [2015-03-30T20:23:24+00:00] INFO: execute[apt-get-update] ran successfully
==> default: [2015-03-30T20:23:33+00:00] INFO: apt_package[update-notifier-common] installed update-notifier-common at 0.154.1ubuntu1
==> default: [2015-03-30T20:23:33+00:00] INFO: apt_package[update-notifier-common] sending run action to execute[apt-get-update] (immediate)
==> default: [2015-03-30T20:23:48+00:00] INFO: execute[apt-get-update] ran successfully
==> default: [2015-03-30T20:23:48+00:00] INFO: directory[/var/cache/local] created directory /var/cache/local
==> default: [2015-03-30T20:23:48+00:00] INFO: directory[/var/cache/local] owner changed to 0
==> default: [2015-03-30T20:23:48+00:00] INFO: directory[/var/cache/local] group changed to 0
==> default: [2015-03-30T20:23:48+00:00] INFO: directory[/var/cache/local] mode changed to 755
==> default: [2015-03-30T20:23:48+00:00] INFO: directory[/var/cache/local/preseeding] created directory /var/cache/local/preseeding
==> default: [2015-03-30T20:23:48+00:00] INFO: directory[/var/cache/local/preseeding] owner changed to 0
==> default: [2015-03-30T20:23:48+00:00] INFO: directory[/var/cache/local/preseeding] group changed to 0
==> default: [2015-03-30T20:23:48+00:00] INFO: directory[/var/cache/local/preseeding] mode changed to 755
==> default: [2015-03-30T20:23:59+00:00] INFO: apt_package[autoconf] installed autoconf at 2.69-6
==> default: [2015-03-30T20:24:07+00:00] INFO: apt_package[binutils-doc] installed binutils-doc at 2.24-5ubuntu3.1
==> default: [2015-03-30T20:24:16+00:00] INFO: apt_package[bison] installed bison at 2:3.0.2.dfsg-2
==> default: [2015-03-30T20:24:45+00:00] INFO: apt_package[build-essential] installed build-essential at 11.6ubuntu6
==> default: [2015-03-30T20:24:53+00:00] INFO: apt_package[flex] installed flex at 2.5.35-10.1ubuntu2
==> default: [2015-03-30T20:25:04+00:00] INFO: apt_package[gettext] installed gettext at 0.18.3.1-1ubuntu3
==> default: [2015-03-30T20:25:04+00:00] INFO: apt_package[ncurses-dev] is a virtual package, actually acting on package[libncurses5-dev]
==> default: [2015-03-30T20:25:13+00:00] INFO: apt_package[ncurses-dev] installed ncurses-dev at (none)
==> default: [2015-03-30T20:25:30+00:00] INFO: apt_package[git] installed git at 1:1.9.1-1ubuntu0.1
==> default: [2015-03-30T20:25:46+00:00] INFO: apt_package[apache2] installed apache2 at 2.4.7-1ubuntu4.4
==> default: [2015-03-30T20:25:46+00:00] INFO: directory[/var/log/apache2] mode changed to 755
==> default: [2015-03-30T20:25:46+00:00] INFO: link[/usr/sbin/a2ensite] deleted
==> default: [2015-03-30T20:25:47+00:00] INFO: template[/usr/sbin/a2ensite] created file /usr/sbin/a2ensite
==> default: [2015-03-30T20:25:47+00:00] INFO: template[/usr/sbin/a2ensite] updated file contents /usr/sbin/a2ensite
==> default: [2015-03-30T20:25:47+00:00] INFO: template[/usr/sbin/a2ensite] owner changed to 0
==> default: [2015-03-30T20:25:47+00:00] INFO: template[/usr/sbin/a2ensite] group changed to 0
==> default: [2015-03-30T20:25:47+00:00] INFO: template[/usr/sbin/a2ensite] mode changed to 700
==> default: [2015-03-30T20:25:47+00:00] INFO: link[/usr/sbin/a2dissite] deleted
==> default: [2015-03-30T20:25:47+00:00] INFO: template[/usr/sbin/a2dissite] created file /usr/sbin/a2dissite
==> default: [2015-03-30T20:25:47+00:00] INFO: template[/usr/sbin/a2dissite] updated file contents /usr/sbin/a2dissite
==> default: [2015-03-30T20:25:47+00:00] INFO: template[/usr/sbin/a2dissite] owner changed to 0
==> default: [2015-03-30T20:25:47+00:00] INFO: template[/usr/sbin/a2dissite] group changed to 0
==> default: [2015-03-30T20:25:47+00:00] INFO: template[/usr/sbin/a2dissite] mode changed to 700
==> default: [2015-03-30T20:25:47+00:00] INFO: template[/usr/sbin/a2enmod] backed up to /var/chef/backup/usr/sbin/a2enmod.chef-20150330202547.354434
==> default: [2015-03-30T20:25:47+00:00] INFO: template[/usr/sbin/a2enmod] updated file contents /usr/sbin/a2enmod
==> default: [2015-03-30T20:25:47+00:00] INFO: template[/usr/sbin/a2enmod] mode changed to 700
==> default: [2015-03-30T20:25:47+00:00] INFO: link[/usr/sbin/a2dismod] deleted
==> default: [2015-03-30T20:25:47+00:00] INFO: template[/usr/sbin/a2dismod] created file /usr/sbin/a2dismod
==> default: [2015-03-30T20:25:47+00:00] INFO: template[/usr/sbin/a2dismod] updated file contents /usr/sbin/a2dismod
==> default: [2015-03-30T20:25:47+00:00] INFO: template[/usr/sbin/a2dismod] owner changed to 0
==> default: [2015-03-30T20:25:47+00:00] INFO: template[/usr/sbin/a2dismod] group changed to 0
==> default: [2015-03-30T20:25:47+00:00] INFO: template[/usr/sbin/a2dismod] mode changed to 700
==> default: [2015-03-30T20:25:47+00:00] INFO: link[/usr/sbin/a2enconf] deleted
==> default: [2015-03-30T20:25:47+00:00] INFO: template[/usr/sbin/a2enconf] created file /usr/sbin/a2enconf
==> default: [2015-03-30T20:25:47+00:00] INFO: template[/usr/sbin/a2enconf] updated file contents /usr/sbin/a2enconf
==> default: [2015-03-30T20:25:47+00:00] INFO: template[/usr/sbin/a2enconf] owner changed to 0
==> default: [2015-03-30T20:25:47+00:00] INFO: template[/usr/sbin/a2enconf] group changed to 0
==> default: [2015-03-30T20:25:47+00:00] INFO: template[/usr/sbin/a2enconf] mode changed to 700
==> default: [2015-03-30T20:25:47+00:00] INFO: link[/usr/sbin/a2disconf] deleted
==> default: [2015-03-30T20:25:47+00:00] INFO: template[/usr/sbin/a2disconf] created file /usr/sbin/a2disconf
==> default: [2015-03-30T20:25:47+00:00] INFO: template[/usr/sbin/a2disconf] updated file contents /usr/sbin/a2disconf
==> default: [2015-03-30T20:25:47+00:00] INFO: template[/usr/sbin/a2disconf] owner changed to 0
==> default: [2015-03-30T20:25:47+00:00] INFO: template[/usr/sbin/a2disconf] group changed to 0
==> default: [2015-03-30T20:25:47+00:00] INFO: template[/usr/sbin/a2disconf] mode changed to 700
==> default: [2015-03-30T20:25:47+00:00] INFO: directory[/etc/apache2/ssl] created directory /etc/apache2/ssl
==> default: [2015-03-30T20:25:47+00:00] INFO: directory[/etc/apache2/ssl] owner changed to 0
==> default: [2015-03-30T20:25:47+00:00] INFO: directory[/etc/apache2/ssl] group changed to 0
==> default: [2015-03-30T20:25:47+00:00] INFO: directory[/etc/apache2/ssl] mode changed to 755
==> default: [2015-03-30T20:25:47+00:00] INFO: directory[/var/lock/apache2] owner changed to 0
==> default: [2015-03-30T20:25:47+00:00] INFO: template[/etc/apache2/envvars] backed up to /var/chef/backup/etc/apache2/envvars.chef-20150330202547.479531
==> default: [2015-03-30T20:25:47+00:00] INFO: template[/etc/apache2/envvars] updated file contents /etc/apache2/envvars
==> default: [2015-03-30T20:25:47+00:00] INFO: template[apache2.conf] backed up to /var/chef/backup/etc/apache2/apache2.conf.chef-20150330202547.497127
==> default: [2015-03-30T20:25:47+00:00] INFO: template[apache2.conf] updated file contents /etc/apache2/apache2.conf
==> default: [2015-03-30T20:25:47+00:00] INFO: template[apache2.conf] not queuing delayed action reload on service[apache2] (delayed), as it's already been queued
==> default: [2015-03-30T20:25:47+00:00] INFO: template[/etc/apache2/conf-available/security.conf] updated file contents /etc/apache2/conf-available/security.conf
==> default: [2015-03-30T20:25:47+00:00] INFO: template[/etc/apache2/conf-available/security.conf] not queuing delayed action reload on service[apache2] (delayed), as it's already been queued
==> default: [2015-03-30T20:25:47+00:00] INFO: template[/etc/apache2/conf-available/charset.conf] updated file contents /etc/apache2/conf-available/charset.conf
==> default: [2015-03-30T20:25:47+00:00] INFO: template[/etc/apache2/conf-available/charset.conf] not queuing delayed action reload on service[apache2] (delayed), as it's already been queued
==> default: [2015-03-30T20:25:47+00:00] INFO: template[/etc/apache2/ports.conf] updated file contents /etc/apache2/ports.conf
==> default: [2015-03-30T20:25:47+00:00] INFO: template[/etc/apache2/ports.conf] not queuing delayed action reload on service[apache2] (delayed), as it's already been queued
==> default: [2015-03-30T20:25:47+00:00] INFO: file[/etc/apache2/mods-available/mpm_itk.load] created file /etc/apache2/mods-available/mpm_itk.load
==> default: [2015-03-30T20:25:47+00:00] INFO: file[/etc/apache2/mods-available/mpm_itk.load] updated file contents /etc/apache2/mods-available/mpm_itk.load
==> default: [2015-03-30T20:25:47+00:00] INFO: file[/etc/apache2/mods-available/mpm_itk.load] mode changed to 644
==> default: [2015-03-30T20:25:47+00:00] INFO: file[/etc/apache2/mods-available/mpm_prefork.load] backed up to /var/chef/backup/etc/apache2/mods-available/mpm_prefork.load.chef-20150330202547.545700
==> default: [2015-03-30T20:25:47+00:00] INFO: file[/etc/apache2/mods-available/mpm_prefork.load] updated file contents /etc/apache2/mods-available/mpm_prefork.load
==> default: [2015-03-30T20:25:47+00:00] INFO: file[/etc/apache2/mods-available/mpm_worker.load] backed up to /var/chef/backup/etc/apache2/mods-available/mpm_worker.load.chef-20150330202547.551886
==> default: [2015-03-30T20:25:47+00:00] INFO: file[/etc/apache2/mods-available/mpm_worker.load] updated file contents /etc/apache2/mods-available/mpm_worker.load
==> default: [2015-03-30T20:25:47+00:00] INFO: template[/etc/apache2/mods-available/mpm_event.conf] backed up to /var/chef/backup/etc/apache2/mods-available/mpm_event.conf.chef-20150330202547.564116
==> default: [2015-03-30T20:25:47+00:00] INFO: template[/etc/apache2/mods-available/mpm_event.conf] updated file contents /etc/apache2/mods-available/mpm_event.conf
==> default: [2015-03-30T20:25:47+00:00] INFO: template[/etc/apache2/mods-available/mpm_event.conf] not queuing delayed action reload on service[apache2] (delayed), as it's already been queued
==> default: [2015-03-30T20:25:47+00:00] INFO: file[/etc/apache2/mods-available/mpm_event.load] backed up to /var/chef/backup/etc/apache2/mods-available/mpm_event.load.chef-20150330202547.570840
==> default: [2015-03-30T20:25:47+00:00] INFO: file[/etc/apache2/mods-available/mpm_event.load] updated file contents /etc/apache2/mods-available/mpm_event.load
==> default: [2015-03-30T20:25:47+00:00] INFO: template[/etc/apache2/mods-available/status.conf] backed up to /var/chef/backup/etc/apache2/mods-available/status.conf.chef-20150330202547.583068
==> default: [2015-03-30T20:25:47+00:00] INFO: template[/etc/apache2/mods-available/status.conf] updated file contents /etc/apache2/mods-available/status.conf
==> default: [2015-03-30T20:25:47+00:00] INFO: template[/etc/apache2/mods-available/status.conf] not queuing delayed action reload on service[apache2] (delayed), as it's already been queued
==> default: [2015-03-30T20:25:47+00:00] INFO: template[/etc/apache2/mods-available/alias.conf] backed up to /var/chef/backup/etc/apache2/mods-available/alias.conf.chef-20150330202547.594818
==> default: [2015-03-30T20:25:47+00:00] INFO: template[/etc/apache2/mods-available/alias.conf] updated file contents /etc/apache2/mods-available/alias.conf
==> default: [2015-03-30T20:25:47+00:00] INFO: template[/etc/apache2/mods-available/alias.conf] not queuing delayed action reload on service[apache2] (delayed), as it's already been queued
==> default: [2015-03-30T20:25:47+00:00] INFO: file[/etc/apache2/mods-available/auth_basic.load] backed up to /var/chef/backup/etc/apache2/mods-available/auth_basic.load.chef-20150330202547.603490
==> default: [2015-03-30T20:25:47+00:00] INFO: file[/etc/apache2/mods-available/auth_basic.load] updated file contents /etc/apache2/mods-available/auth_basic.load
==> default: [2015-03-30T20:25:47+00:00] INFO: file[/etc/apache2/mods-available/authz_groupfile.load] backed up to /var/chef/backup/etc/apache2/mods-available/authz_groupfile.load.chef-20150330202547.616299
==> default: [2015-03-30T20:25:47+00:00] INFO: file[/etc/apache2/mods-available/authz_groupfile.load] updated file contents /etc/apache2/mods-available/authz_groupfile.load
==> default: [2015-03-30T20:25:47+00:00] INFO: execute[a2enmod authz_groupfile] ran successfully
==> default: [2015-03-30T20:25:47+00:00] INFO: execute[a2enmod authz_groupfile] not queuing delayed action reload on service[apache2] (delayed), as it's already been queued
==> default: [2015-03-30T20:25:47+00:00] INFO: file[/etc/apache2/mods-available/authz_host.load] backed up to /var/chef/backup/etc/apache2/mods-available/authz_host.load.chef-20150330202547.699221
==> default: [2015-03-30T20:25:47+00:00] INFO: file[/etc/apache2/mods-available/authz_host.load] updated file contents /etc/apache2/mods-available/authz_host.load
==> default: [2015-03-30T20:25:47+00:00] INFO: file[/etc/apache2/mods-available/authz_user.load] backed up to /var/chef/backup/etc/apache2/mods-available/authz_user.load.chef-20150330202547.705625
==> default: [2015-03-30T20:25:47+00:00] INFO: file[/etc/apache2/mods-available/authz_user.load] updated file contents /etc/apache2/mods-available/authz_user.load
==> default: [2015-03-30T20:25:47+00:00] INFO: template[/etc/apache2/mods-available/autoindex.conf] backed up to /var/chef/backup/etc/apache2/mods-available/autoindex.conf.chef-20150330202547.717028
==> default: [2015-03-30T20:25:47+00:00] INFO: template[/etc/apache2/mods-available/autoindex.conf] updated file contents /etc/apache2/mods-available/autoindex.conf
==> default: [2015-03-30T20:25:47+00:00] INFO: template[/etc/apache2/mods-available/autoindex.conf] not queuing delayed action reload on service[apache2] (delayed), as it's already been queued
==> default: [2015-03-30T20:25:47+00:00] INFO: template[/etc/apache2/mods-available/dir.conf] backed up to /var/chef/backup/etc/apache2/mods-available/dir.conf.chef-20150330202547.731836
==> default: [2015-03-30T20:25:47+00:00] INFO: template[/etc/apache2/mods-available/dir.conf] updated file contents /etc/apache2/mods-available/dir.conf
==> default: [2015-03-30T20:25:47+00:00] INFO: template[/etc/apache2/mods-available/dir.conf] not queuing delayed action reload on service[apache2] (delayed), as it's already been queued
==> default: [2015-03-30T20:25:47+00:00] INFO: template[/etc/apache2/mods-available/mime.conf] backed up to /var/chef/backup/etc/apache2/mods-available/mime.conf.chef-20150330202547.755884
==> default: [2015-03-30T20:25:47+00:00] INFO: template[/etc/apache2/mods-available/mime.conf] updated file contents /etc/apache2/mods-available/mime.conf
==> default: [2015-03-30T20:25:47+00:00] INFO: template[/etc/apache2/mods-available/mime.conf] not queuing delayed action reload on service[apache2] (delayed), as it's already been queued
==> default: [2015-03-30T20:25:47+00:00] INFO: template[/etc/apache2/mods-available/negotiation.conf] backed up to /var/chef/backup/etc/apache2/mods-available/negotiation.conf.chef-20150330202547.771312
==> default: [2015-03-30T20:25:47+00:00] INFO: template[/etc/apache2/mods-available/negotiation.conf] updated file contents /etc/apache2/mods-available/negotiation.conf
==> default: [2015-03-30T20:25:47+00:00] INFO: template[/etc/apache2/mods-available/negotiation.conf] not queuing delayed action reload on service[apache2] (delayed), as it's already been queued
==> default: [2015-03-30T20:25:47+00:00] INFO: template[/etc/apache2/mods-available/setenvif.conf] backed up to /var/chef/backup/etc/apache2/mods-available/setenvif.conf.chef-20150330202547.785267
==> default: [2015-03-30T20:25:47+00:00] INFO: template[/etc/apache2/mods-available/setenvif.conf] updated file contents /etc/apache2/mods-available/setenvif.conf
==> default: [2015-03-30T20:25:47+00:00] INFO: template[/etc/apache2/mods-available/setenvif.conf] not queuing delayed action reload on service[apache2] (delayed), as it's already been queued
==> default: [2015-03-30T20:25:47+00:00] INFO: execute[a2enmod rewrite] ran successfully
==> default: [2015-03-30T20:25:47+00:00] INFO: execute[a2enmod rewrite] not queuing delayed action reload on service[apache2] (delayed), as it's already been queued
==> default: [2015-03-30T20:25:47+00:00] INFO: template[/etc/apache2/mods-available/deflate.conf] backed up to /var/chef/backup/etc/apache2/mods-available/deflate.conf.chef-20150330202547.863710
==> default: [2015-03-30T20:25:47+00:00] INFO: template[/etc/apache2/mods-available/deflate.conf] updated file contents /etc/apache2/mods-available/deflate.conf
==> default: [2015-03-30T20:25:47+00:00] INFO: template[/etc/apache2/mods-available/deflate.conf] not queuing delayed action reload on service[apache2] (delayed), as it's already been queued
==> default: [2015-03-30T20:25:47+00:00] INFO: file[/etc/apache2/mods-available/deflate.load] backed up to /var/chef/backup/etc/apache2/mods-available/deflate.load.chef-20150330202547.874509
==> default: [2015-03-30T20:25:47+00:00] INFO: file[/etc/apache2/mods-available/deflate.load] updated file contents /etc/apache2/mods-available/deflate.load
==> default: [2015-03-30T20:25:47+00:00] INFO: execute[a2enmod headers] ran successfully
==> default: [2015-03-30T20:25:47+00:00] INFO: execute[a2enmod headers] not queuing delayed action reload on service[apache2] (delayed), as it's already been queued
==> default: [2015-03-30T20:25:47+00:00] INFO: template[/etc/apache2/sites-available/default.conf] created file /etc/apache2/sites-available/default.conf
==> default: [2015-03-30T20:25:47+00:00] INFO: template[/etc/apache2/sites-available/default.conf] updated file contents /etc/apache2/sites-available/default.conf
==> default: [2015-03-30T20:25:47+00:00] INFO: template[/etc/apache2/sites-available/default.conf] owner changed to 0
==> default: [2015-03-30T20:25:47+00:00] INFO: template[/etc/apache2/sites-available/default.conf] group changed to 0
==> default: [2015-03-30T20:25:47+00:00] INFO: template[/etc/apache2/sites-available/default.conf] mode changed to 644
==> default: [2015-03-30T20:25:48+00:00] INFO: execute[a2dissite default.conf] ran successfully
==> default: [2015-03-30T20:25:48+00:00] INFO: execute[a2dissite default.conf] not queuing delayed action reload on service[apache2] (delayed), as it's already been queued
==> default: [2015-03-30T20:25:48+00:00] INFO: execute[a2dissite default.conf] not queuing delayed action reload on service[apache2] (delayed), as it's already been queued
==> default: [2015-03-30T20:25:48+00:00] INFO: execute[a2dissite 000-default.conf] ran successfully
==> default: [2015-03-30T20:25:48+00:00] INFO: execute[a2dissite 000-default.conf] not queuing delayed action reload on service[apache2] (delayed), as it's already been queued
==> default: [2015-03-30T20:25:48+00:00] INFO: template[/etc/apache2/mods-available/ssl.conf] backed up to /var/chef/backup/etc/apache2/mods-available/ssl.conf.chef-20150330202548.358604
==> default: [2015-03-30T20:25:48+00:00] INFO: template[/etc/apache2/mods-available/ssl.conf] updated file contents /etc/apache2/mods-available/ssl.conf
==> default: [2015-03-30T20:25:48+00:00] INFO: template[/etc/apache2/mods-available/ssl.conf] not queuing delayed action reload on service[apache2] (delayed), as it's already been queued
==> default: [2015-03-30T20:25:48+00:00] INFO: file[/etc/apache2/mods-available/ssl.load] backed up to /var/chef/backup/etc/apache2/mods-available/ssl.load.chef-20150330202548.364483
==> default: [2015-03-30T20:25:48+00:00] INFO: file[/etc/apache2/mods-available/ssl.load] updated file contents /etc/apache2/mods-available/ssl.load
==> default: [2015-03-30T20:25:48+00:00] INFO: execute[a2enmod ssl] ran successfully
==> default: [2015-03-30T20:25:48+00:00] INFO: execute[a2enmod ssl] not queuing delayed action reload on service[apache2] (delayed), as it's already been queued
==> default: [2015-03-30T20:25:48+00:00] INFO: execute[a2enmod socache_shmcb] ran successfully
==> default: [2015-03-30T20:25:48+00:00] INFO: execute[a2enmod socache_shmcb] not queuing delayed action reload on service[apache2] (delayed), as it's already been queued
==> default: [2015-03-30T20:25:48+00:00] INFO: file[/etc/apt/preferences.d/00percona.pref] created file /etc/apt/preferences.d/00percona.pref
==> default: [2015-03-30T20:25:48+00:00] INFO: file[/etc/apt/preferences.d/00percona.pref] updated file contents /etc/apt/preferences.d/00percona.pref
==> default: [2015-03-30T20:25:48+00:00] INFO: file[/etc/apt/preferences.d/00percona.pref] owner changed to 0
==> default: [2015-03-30T20:25:48+00:00] INFO: file[/etc/apt/preferences.d/00percona.pref] group changed to 0
==> default: [2015-03-30T20:25:48+00:00] INFO: file[/etc/apt/preferences.d/00percona.pref] mode changed to 644
==> default: [2015-03-30T20:25:53+00:00] INFO: execute[install-key CD2EFD2A] ran successfully
==> default: [2015-03-30T20:25:53+00:00] INFO: file[/etc/apt/sources.list.d/percona.list] created file /etc/apt/sources.list.d/percona.list
==> default: [2015-03-30T20:25:53+00:00] INFO: file[/etc/apt/sources.list.d/percona.list] updated file contents /etc/apt/sources.list.d/percona.list
==> default: [2015-03-30T20:25:53+00:00] INFO: file[/etc/apt/sources.list.d/percona.list] owner changed to 0
==> default: [2015-03-30T20:25:53+00:00] INFO: file[/etc/apt/sources.list.d/percona.list] group changed to 0
==> default: [2015-03-30T20:25:53+00:00] INFO: file[/etc/apt/sources.list.d/percona.list] mode changed to 644
==> default: [2015-03-30T20:25:53+00:00] INFO: file[/etc/apt/sources.list.d/percona.list] sending delete action to file[/var/lib/apt/periodic/update-success-stamp] (immediate)
==> default: [2015-03-30T20:25:53+00:00] INFO: file[/var/lib/apt/periodic/update-success-stamp] backed up to /var/chef/backup/var/lib/apt/periodic/update-success-stamp.chef-20150330202553.958933
==> default: [2015-03-30T20:25:53+00:00] INFO: file[/var/lib/apt/periodic/update-success-stamp] deleted file at /var/lib/apt/periodic/update-success-stamp
==> default: [2015-03-30T20:25:53+00:00] INFO: file[/etc/apt/sources.list.d/percona.list] sending run action to execute[apt-get update] (immediate)
==> default: [2015-03-30T20:26:00+00:00] INFO: execute[apt-get update] ran successfully
==> default: [2015-03-30T20:26:00+00:00] INFO: execute[apt-get update] sending run action to execute[apt-cache gencaches] (immediate)
==> default: [2015-03-30T20:26:03+00:00] INFO: execute[apt-cache gencaches] ran successfully
==> default: [2015-03-30T20:26:22+00:00] INFO: apt_package[percona-toolkit] installed percona-toolkit at 2.2.13
==> default: [2015-03-30T20:26:47+00:00] INFO: apt_package[php5-cgi] installed php5-cgi at 5.5.9+dfsg-1ubuntu4.7
==> default: [2015-03-30T20:26:54+00:00] INFO: apt_package[php5] installed php5 at 5.5.9+dfsg-1ubuntu4.7
==> default: [2015-03-30T20:27:25+00:00] INFO: apt_package[php5-dev] installed php5-dev at 5.5.9+dfsg-1ubuntu4.7
==> default: [2015-03-30T20:27:28+00:00] INFO: template[/etc/php5/cli/php.ini] backed up to /var/chef/backup/etc/php5/cli/php.ini.chef-20150330202728.183760
==> default: [2015-03-30T20:27:28+00:00] INFO: template[/etc/php5/cli/php.ini] updated file contents /etc/php5/cli/php.ini
==> default: [2015-03-30T20:27:49+00:00] INFO: apt_package[php5-mysql] installed php5-mysql at 5.5.9+dfsg-1ubuntu4.7
==> default: [2015-03-30T20:27:57+00:00] INFO: apt_package[php-apc] installed php-apc at 4.0.2-2build1
==> default: [2015-03-30T20:28:06+00:00] INFO: apt_package[php5-curl] upgraded php5-curl to 5.5.9+dfsg-1ubuntu4.7
==> default: [2015-03-30T20:28:23+00:00] INFO: apt_package[libapache2-mod-php5] installed libapache2-mod-php5 at 5.5.9+dfsg-1ubuntu4.7
==> default: [2015-03-30T20:28:23+00:00] INFO: template[/etc/apache2/mods-available/php5.conf] backed up to /var/chef/backup/etc/apache2/mods-available/php5.conf.chef-20150330202823.538928
==> default: [2015-03-30T20:28:23+00:00] INFO: template[/etc/apache2/mods-available/php5.conf] updated file contents /etc/apache2/mods-available/php5.conf
==> default: [2015-03-30T20:28:23+00:00] INFO: template[/etc/apache2/mods-available/php5.conf] not queuing delayed action reload on service[apache2] (delayed), as it's already been queued
==> default: [2015-03-30T20:28:24+00:00] INFO: remote_file[/usr/local/bin/composer] created file /usr/local/bin/composer
==> default: [2015-03-30T20:28:24+00:00] INFO: remote_file[/usr/local/bin/composer] updated file contents /usr/local/bin/composer
==> default: [2015-03-30T20:28:24+00:00] INFO: remote_file[/usr/local/bin/composer] mode changed to 755
==> default: [2015-03-30T20:28:24+00:00] INFO: directory[/usr/local/phing] created directory /usr/local/phing
==> default: [2015-03-30T20:28:24+00:00] INFO: directory[/usr/local/phing] owner changed to 0
==> default: [2015-03-30T20:28:24+00:00] INFO: directory[/usr/local/phing] group changed to 0
==> default: [2015-03-30T20:28:24+00:00] INFO: directory[/usr/local/phing] mode changed to 755
==> default: [2015-03-30T20:28:25+00:00] INFO: template[/usr/local/phing/composer.json] created file /usr/local/phing/composer.json
==> default: [2015-03-30T20:28:25+00:00] INFO: template[/usr/local/phing/composer.json] updated file contents /usr/local/phing/composer.json
==> default: [2015-03-30T20:28:25+00:00] INFO: template[/usr/local/phing/composer.json] owner changed to 0
==> default: [2015-03-30T20:28:25+00:00] INFO: template[/usr/local/phing/composer.json] group changed to 0
==> default: [2015-03-30T20:28:25+00:00] INFO: template[/usr/local/phing/composer.json] mode changed to 600
==> default: [2015-03-30T20:28:54+00:00] INFO: execute[phing-composer] ran successfully
==> default: [2015-03-30T20:28:55+00:00] INFO: cookbook_file[/var/chef/cache/preseed/runit/runit-2.1.1-6.2ubuntu3.seed] created file /var/chef/cache/preseed/runit/runit-2.1.1-6.2ubuntu3.seed
==> default: [2015-03-30T20:28:55+00:00] INFO: cookbook_file[/var/chef/cache/preseed/runit/runit-2.1.1-6.2ubuntu3.seed] updated file contents /var/chef/cache/preseed/runit/runit-2.1.1-6.2ubuntu3.seed
==> default: [2015-03-30T20:28:55+00:00] INFO: apt_package[runit] pre-seeding package installation instructions
==> default: [2015-03-30T20:29:04+00:00] INFO: apt_package[runit] installed runit at 2.1.1-6.2ubuntu3
==> default: [2015-03-30T20:29:04+00:00] INFO: apt_package[runit] sending nothing action to execute[start-runsvdir] (immediate)
==> default: [2015-03-30T20:29:04+00:00] INFO: apt_package[runit] sending nothing action to execute[runit-hup-init] (immediate)
==> default: [2015-03-30T20:29:34+00:00] INFO: remote_file[/usr/local/bin/MailHog] created file /usr/local/bin/MailHog
==> default: [2015-03-30T20:29:34+00:00] INFO: remote_file[/usr/local/bin/MailHog] updated file contents /usr/local/bin/MailHog
==> default: [2015-03-30T20:29:35+00:00] INFO: remote_file[/usr/local/bin/MailHog] mode changed to 755
==> default: [2015-03-30T20:29:35+00:00] INFO: directory[/etc/sv/mailhog] created directory /etc/sv/mailhog
==> default: [2015-03-30T20:29:35+00:00] INFO: directory[/etc/sv/mailhog] mode changed to 755
==> default: [2015-03-30T20:29:35+00:00] INFO: template[/etc/sv/mailhog/run] created file /etc/sv/mailhog/run
==> default: [2015-03-30T20:29:35+00:00] INFO: template[/etc/sv/mailhog/run] updated file contents /etc/sv/mailhog/run
==> default: [2015-03-30T20:29:35+00:00] INFO: template[/etc/sv/mailhog/run] mode changed to 755
==> default: [2015-03-30T20:29:35+00:00] INFO: directory[/etc/sv/mailhog/log] created directory /etc/sv/mailhog/log
==> default: [2015-03-30T20:29:35+00:00] INFO: directory[/etc/sv/mailhog/log] mode changed to 755
==> default: [2015-03-30T20:29:35+00:00] INFO: directory[/etc/sv/mailhog/log/main] created directory /etc/sv/mailhog/log/main
==> default: [2015-03-30T20:29:35+00:00] INFO: directory[/etc/sv/mailhog/log/main] mode changed to 755
==> default: [2015-03-30T20:29:35+00:00] INFO: directory[/var/log/mailhog] created directory /var/log/mailhog
==> default: [2015-03-30T20:29:35+00:00] INFO: directory[/var/log/mailhog] mode changed to 755
==> default: [2015-03-30T20:29:35+00:00] INFO: file[/etc/sv/mailhog/log/run] created file /etc/sv/mailhog/log/run
==> default: [2015-03-30T20:29:35+00:00] INFO: file[/etc/sv/mailhog/log/run] updated file contents /etc/sv/mailhog/log/run
==> default: [2015-03-30T20:29:35+00:00] INFO: file[/etc/sv/mailhog/log/run] mode changed to 755
==> default: [2015-03-30T20:29:35+00:00] INFO: template[/etc/sv/mailhog/log/config] created file /etc/sv/mailhog/log/config
==> default: [2015-03-30T20:29:35+00:00] INFO: template[/etc/sv/mailhog/log/config] updated file contents /etc/sv/mailhog/log/config
==> default: [2015-03-30T20:29:35+00:00] INFO: template[/etc/sv/mailhog/log/config] mode changed to 644
==> default: [2015-03-30T20:29:35+00:00] INFO: link[/etc/init.d/mailhog] created
==> default: [2015-03-30T20:29:35+00:00] INFO: runit_service[mailhog] configured
==> default: [2015-03-30T20:29:35+00:00] INFO: link[/etc/service/mailhog] created
==> default: [2015-03-30T20:29:39+00:00] INFO: runit_service[mailhog] enabled
==> default: [2015-03-30T20:29:59+00:00] INFO: apt_package[postfix] installed postfix at 2.11.0-1ubuntu1
==> default: [2015-03-30T20:29:59+00:00] INFO: template[/etc/postfix/main.cf] backed up to /var/chef/backup/etc/postfix/main.cf.chef-20150330202959.442858
==> default: [2015-03-30T20:29:59+00:00] INFO: template[/etc/postfix/main.cf] updated file contents /etc/postfix/main.cf
==> default: [2015-03-30T20:29:59+00:00] INFO: template[/etc/postfix/master.cf] backed up to /var/chef/backup/etc/postfix/master.cf.chef-20150330202959.454917
==> default: [2015-03-30T20:29:59+00:00] INFO: template[/etc/postfix/master.cf] updated file contents /etc/postfix/master.cf
==> default: [2015-03-30T20:29:59+00:00] INFO: template[/etc/postfix/master.cf] not queuing delayed action restart on service[postfix] (delayed), as it's already been queued
==> default: [2015-03-30T20:30:28+00:00] INFO: apt_package[vim] installed vim at 2:7.4.052-1ubuntu3
==> default: [2015-03-30T20:30:37+00:00] INFO: apt_package[screen] installed screen at 4.1.0~20120320gitdb59704-9
==> default: [2015-03-30T20:30:45+00:00] INFO: apt_package[tmux] installed tmux at 1.8-5
==> default: [2015-03-30T20:30:57+00:00] INFO: apt_package[mc] installed mc at 3:4.8.11-1
==> default: [2015-03-30T20:31:10+00:00] INFO: apt_package[subversion] installed subversion at 1.8.8-1ubuntu3.1
==> default: [2015-03-30T20:31:24+00:00] INFO: apt_package[curl] installed curl at 7.35.0-1ubuntu2.3
==> default: [2015-03-30T20:31:37+00:00] INFO: apt_package[libsqlite3-dev] installed libsqlite3-dev at 3.8.2-1ubuntu2
==> default: [2015-03-30T20:32:08+00:00] INFO: apt_package[graphviz] installed graphviz at 2.36.0-0ubuntu3.1
==> default: [2015-03-30T20:32:15+00:00] INFO: apt_package[libxml2-utils] installed libxml2-utils at 2.9.1+dfsg1-3ubuntu4.4
==> default: [2015-03-30T20:32:26+00:00] INFO: apt_package[lynx] installed lynx at 2.8.8pre4-1
==> default: [2015-03-30T20:32:35+00:00] INFO: apt_package[links] installed links at 2.8-1ubuntu1
==> default: [2015-03-30T20:32:35+00:00] INFO: execute[make-ssl-cert] ran successfully
==> default: [2015-03-30T20:33:13+00:00] INFO: apt_package[default :create mysql-server-5.5] installed mysql-server-5.5 at 5.5.41-0ubuntu0.14.04.1
==> default: [2015-03-30T20:33:14+00:00] INFO: service[default :create mysql] stopped
==> default: [2015-03-30T20:33:14+00:00] INFO: service[default :create mysql] disabled
==> default: [2015-03-30T20:33:14+00:00] INFO: directory[default :create /etc/apparmor.d/local/mysql] created directory /etc/apparmor.d/local/mysql
==> default: [2015-03-30T20:33:14+00:00] INFO: directory[default :create /etc/apparmor.d/local/mysql] owner changed to 0
==> default: [2015-03-30T20:33:14+00:00] INFO: directory[default :create /etc/apparmor.d/local/mysql] group changed to 0
==> default: [2015-03-30T20:33:14+00:00] INFO: directory[default :create /etc/apparmor.d/local/mysql] mode changed to 755
==> default: [2015-03-30T20:33:14+00:00] INFO: template[default :create /etc/apparmor.d/local/usr.sbin.mysqld] backed up to /var/chef/backup/etc/apparmor.d/local/usr.sbin.mysqld.chef-20150330203314.414106
==> default: [2015-03-30T20:33:14+00:00] INFO: template[default :create /etc/apparmor.d/local/usr.sbin.mysqld] updated file contents /etc/apparmor.d/local/usr.sbin.mysqld
==> default: [2015-03-30T20:33:14+00:00] INFO: template[default :create /etc/apparmor.d/local/usr.sbin.mysqld] sending restart action to service[default :create apparmor] (immediate)
==> default: [2015-03-30T20:33:16+00:00] INFO: service[default :create apparmor] restarted
==> default: [2015-03-30T20:33:16+00:00] INFO: template[default :create /etc/apparmor.d/local/mysql/default] created file /etc/apparmor.d/local/mysql/default
==> default: [2015-03-30T20:33:16+00:00] INFO: template[default :create /etc/apparmor.d/local/mysql/default] updated file contents /etc/apparmor.d/local/mysql/default
==> default: [2015-03-30T20:33:16+00:00] INFO: template[default :create /etc/apparmor.d/local/mysql/default] owner changed to 0
==> default: [2015-03-30T20:33:16+00:00] INFO: template[default :create /etc/apparmor.d/local/mysql/default] group changed to 0
==> default: [2015-03-30T20:33:16+00:00] INFO: template[default :create /etc/apparmor.d/local/mysql/default] mode changed to 644
==> default: [2015-03-30T20:33:16+00:00] INFO: template[default :create /etc/apparmor.d/local/mysql/default] sending restart action to service[default :create apparmor] (immediate)
==> default: [2015-03-30T20:33:17+00:00] INFO: service[default :create apparmor] restarted
==> default: [2015-03-30T20:33:17+00:00] INFO: file[default :create /etc/mysql/my.cnf] backed up to /var/chef/backup/etc/mysql/my.cnf.chef-20150330203317.987824
==> default: [2015-03-30T20:33:17+00:00] INFO: file[default :create /etc/mysql/my.cnf] deleted file at /etc/mysql/my.cnf
==> default: [2015-03-30T20:33:18+00:00] INFO: link[default :create /usr/share/my-default.cnf] created
==> default: [2015-03-30T20:33:18+00:00] INFO: directory[default :create /etc/mysql-default] created directory /etc/mysql-default
==> default: [2015-03-30T20:33:18+00:00] INFO: directory[default :create /etc/mysql-default] owner changed to 106
==> default: [2015-03-30T20:33:18+00:00] INFO: directory[default :create /etc/mysql-default] group changed to 114
==> default: [2015-03-30T20:33:18+00:00] INFO: directory[default :create /etc/mysql-default] mode changed to 750
==> default: [2015-03-30T20:33:18+00:00] INFO: directory[default :create /etc/mysql-default/conf.d] created directory /etc/mysql-default/conf.d
==> default: [2015-03-30T20:33:18+00:00] INFO: directory[default :create /etc/mysql-default/conf.d] owner changed to 106
==> default: [2015-03-30T20:33:18+00:00] INFO: directory[default :create /etc/mysql-default/conf.d] group changed to 114
==> default: [2015-03-30T20:33:18+00:00] INFO: directory[default :create /etc/mysql-default/conf.d] mode changed to 750
==> default: [2015-03-30T20:33:18+00:00] INFO: directory[default :create /run/mysql-default] created directory /run/mysql-default
==> default: [2015-03-30T20:33:18+00:00] INFO: directory[default :create /run/mysql-default] owner changed to 106
==> default: [2015-03-30T20:33:18+00:00] INFO: directory[default :create /run/mysql-default] group changed to 114
==> default: [2015-03-30T20:33:18+00:00] INFO: directory[default :create /run/mysql-default] mode changed to 755
==> default: [2015-03-30T20:33:18+00:00] INFO: directory[default :create /var/log/mysql-default] created directory /var/log/mysql-default
==> default: [2015-03-30T20:33:18+00:00] INFO: directory[default :create /var/log/mysql-default] owner changed to 106
==> default: [2015-03-30T20:33:18+00:00] INFO: directory[default :create /var/log/mysql-default] group changed to 114
==> default: [2015-03-30T20:33:18+00:00] INFO: directory[default :create /var/log/mysql-default] mode changed to 750
==> default: [2015-03-30T20:33:18+00:00] INFO: directory[default :create /var/lib/mysql-default] created directory /var/lib/mysql-default
==> default: [2015-03-30T20:33:18+00:00] INFO: directory[default :create /var/lib/mysql-default] owner changed to 106
==> default: [2015-03-30T20:33:18+00:00] INFO: directory[default :create /var/lib/mysql-default] group changed to 114
==> default: [2015-03-30T20:33:18+00:00] INFO: directory[default :create /var/lib/mysql-default] mode changed to 750
==> default: [2015-03-30T20:33:18+00:00] INFO: template[default :create /etc/mysql-default/my.cnf] created file /etc/mysql-default/my.cnf
==> default: [2015-03-30T20:33:18+00:00] INFO: template[default :create /etc/mysql-default/my.cnf] updated file contents /etc/mysql-default/my.cnf
==> default: [2015-03-30T20:33:18+00:00] INFO: template[default :create /etc/mysql-default/my.cnf] owner changed to 106
==> default: [2015-03-30T20:33:18+00:00] INFO: template[default :create /etc/mysql-default/my.cnf] group changed to 114
==> default: [2015-03-30T20:33:18+00:00] INFO: template[default :create /etc/mysql-default/my.cnf] mode changed to 600
==> default: [2015-03-30T20:33:21+00:00] INFO: bash[default :create initial records] ran successfully
==> default: [2015-03-30T20:33:21+00:00] INFO: template[default :start /usr/sbin/mysql-default-wait-ready] created file /usr/sbin/mysql-default-wait-ready
==> default: [2015-03-30T20:33:21+00:00] INFO: template[default :start /usr/sbin/mysql-default-wait-ready] updated file contents /usr/sbin/mysql-default-wait-ready
==> default: [2015-03-30T20:33:21+00:00] INFO: template[default :start /usr/sbin/mysql-default-wait-ready] owner changed to 0
==> default: [2015-03-30T20:33:21+00:00] INFO: template[default :start /usr/sbin/mysql-default-wait-ready] group changed to 0
==> default: [2015-03-30T20:33:21+00:00] INFO: template[default :start /usr/sbin/mysql-default-wait-ready] mode changed to 755
==> default: [2015-03-30T20:33:21+00:00] INFO: template[default :start /etc/init/mysql-default.conf] created file /etc/init/mysql-default.conf
==> default: [2015-03-30T20:33:21+00:00] INFO: template[default :start /etc/init/mysql-default.conf] updated file contents /etc/init/mysql-default.conf
==> default: [2015-03-30T20:33:21+00:00] INFO: template[default :start /etc/init/mysql-default.conf] owner changed to 0
==> default: [2015-03-30T20:33:21+00:00] INFO: template[default :start /etc/init/mysql-default.conf] group changed to 0
==> default: [2015-03-30T20:33:21+00:00] INFO: template[default :start /etc/init/mysql-default.conf] mode changed to 644
==> default: [2015-03-30T20:33:23+00:00] INFO: service[default :start mysql-default] started
==> default: [2015-03-30T20:33:35+00:00] INFO: apt_package[default :create libmysqlclient-dev] installed libmysqlclient-dev at 5.5.41-0ubuntu0.14.04.1
==> default: [2015-03-30T20:33:35+00:00] INFO: template[/etc/apache2/sites-available/lara.vel.conf] created file /etc/apache2/sites-available/lara.vel.conf
==> default: [2015-03-30T20:33:35+00:00] INFO: template[/etc/apache2/sites-available/lara.vel.conf] updated file contents /etc/apache2/sites-available/lara.vel.conf
==> default: [2015-03-30T20:33:35+00:00] INFO: template[/etc/apache2/sites-available/lara.vel.conf] owner changed to 0
==> default: [2015-03-30T20:33:35+00:00] INFO: template[/etc/apache2/sites-available/lara.vel.conf] group changed to 0
==> default: [2015-03-30T20:33:35+00:00] INFO: template[/etc/apache2/sites-available/lara.vel.conf] mode changed to 644
==> default: [2015-03-30T20:33:35+00:00] INFO: execute[a2ensite lara.vel.conf] ran successfully
==> default: [2015-03-30T20:33:35+00:00] INFO: execute[a2ensite lara.vel.conf] not queuing delayed action reload on service[apache2] (delayed), as it's already been queued
==> default: [2015-03-30T20:33:35+00:00] INFO: bash[hosts] ran successfully
==> default: [2015-03-30T20:33:35+00:00] INFO: template[/etc/apache2/sites-available/local.dev.conf] created file /etc/apache2/sites-available/local.dev.conf
==> default: [2015-03-30T20:33:35+00:00] INFO: template[/etc/apache2/sites-available/local.dev.conf] updated file contents /etc/apache2/sites-available/local.dev.conf
==> default: [2015-03-30T20:33:35+00:00] INFO: template[/etc/apache2/sites-available/local.dev.conf] owner changed to 0
==> default: [2015-03-30T20:33:35+00:00] INFO: template[/etc/apache2/sites-available/local.dev.conf] group changed to 0
==> default: [2015-03-30T20:33:35+00:00] INFO: template[/etc/apache2/sites-available/local.dev.conf] mode changed to 644
==> default: [2015-03-30T20:33:35+00:00] INFO: execute[a2ensite local.dev.conf] ran successfully
==> default: [2015-03-30T20:33:35+00:00] INFO: execute[a2ensite local.dev.conf] not queuing delayed action reload on service[apache2] (delayed), as it's already been queued
==> default: [2015-03-30T20:33:35+00:00] INFO: bash[hosts] ran successfully
==> default: [2015-03-30T20:33:35+00:00] INFO: cookbook_file[/tmp/phpmyadmin.deb.conf] created file /tmp/phpmyadmin.deb.conf
==> default: [2015-03-30T20:33:35+00:00] INFO: cookbook_file[/tmp/phpmyadmin.deb.conf] updated file contents /tmp/phpmyadmin.deb.conf
==> default: [2015-03-30T20:33:36+00:00] INFO: bash[debconf_for_phpmyadmin] ran successfully
==> default: [2015-03-30T20:34:07+00:00] INFO: apt_package[phpmyadmin] installed phpmyadmin at 4:4.0.10-1
==> default: [2015-03-30T20:34:21+00:00] INFO: Installing php_pear[xdebug]
==> default: [2015-03-30T20:34:46+00:00] WARN: Cloning resource attributes for template[/etc/php5/mods-available/xdebug.ini] from prior resource (CHEF-3694)
==> default: [2015-03-30T20:34:46+00:00] WARN: Previous template[/etc/php5/mods-available/xdebug.ini]: /tmp/vagrant-chef/a85381ff0d15036e23b25ca9d197b9ec/cookbooks/vagrant_main/recipes/default.rb:99:in `from_file'
==> default: [2015-03-30T20:34:46+00:00] WARN: Current  template[/etc/php5/mods-available/xdebug.ini]: /tmp/vagrant-chef/ffb99a741640275098a4ad67f35e0c53/cookbooks/php/providers/pear.rb:227:in `manage_pecl_ini'
==> default: [2015-03-30T20:34:46+00:00] INFO: template[/etc/php5/mods-available/xdebug.ini] created file /etc/php5/mods-available/xdebug.ini
==> default: [2015-03-30T20:34:46+00:00] INFO: template[/etc/php5/mods-available/xdebug.ini] updated file contents /etc/php5/mods-available/xdebug.ini
==> default: [2015-03-30T20:34:46+00:00] INFO: template[/etc/php5/mods-available/xdebug.ini] owner changed to 0
==> default: [2015-03-30T20:34:46+00:00] INFO: template[/etc/php5/mods-available/xdebug.ini] group changed to 0
==> default: [2015-03-30T20:34:46+00:00] INFO: template[/etc/php5/mods-available/xdebug.ini] mode changed to 644
==> default: [2015-03-30T20:34:46+00:00] INFO: template[/etc/php5/mods-available/xdebug.ini] not queuing delayed action restart on service[apache2] (delayed), as it's already been queued
==> default: [2015-03-30T20:34:46+00:00] INFO: template[/etc/php5/mods-available/xdebug.ini] backed up to /var/chef/backup/etc/php5/mods-available/xdebug.ini.chef-20150330203446.590225
==> default: [2015-03-30T20:34:46+00:00] INFO: template[/etc/php5/mods-available/xdebug.ini] updated file contents /etc/php5/mods-available/xdebug.ini
==> default: [2015-03-30T20:34:46+00:00] INFO: template[/etc/php5/mods-available/xdebug.ini] not queuing delayed action restart on service[apache2] (delayed), as it's already been queued
==> default: [2015-03-30T20:34:51+00:00] INFO: git[/var/www/webgrind] cloning repo git://github.com/jokkedk/webgrind.git to /var/www/webgrind
==> default: [2015-03-30T20:34:58+00:00] INFO: git[/var/www/webgrind] checked out branch: master onto: deploy reference: 077f79f13ddc8efa4cb10c2c041eb4b50037e0e3
==> default: [2015-03-30T20:34:58+00:00] INFO: template[/etc/apache2/conf-available/webgrind.conf] created file /etc/apache2/conf-available/webgrind.conf
==> default: [2015-03-30T20:34:58+00:00] INFO: template[/etc/apache2/conf-available/webgrind.conf] updated file contents /etc/apache2/conf-available/webgrind.conf
==> default: [2015-03-30T20:34:58+00:00] INFO: template[/etc/apache2/conf-available/webgrind.conf] owner changed to 0
==> default: [2015-03-30T20:34:58+00:00] INFO: template[/etc/apache2/conf-available/webgrind.conf] group changed to 0
==> default: [2015-03-30T20:34:58+00:00] INFO: template[/etc/apache2/conf-available/webgrind.conf] mode changed to 644
==> default: [2015-03-30T20:34:58+00:00] INFO: template[/etc/apache2/conf-available/webgrind.conf] not queuing delayed action reload on service[apache2] (delayed), as it's already been queued
==> default: [2015-03-30T20:34:58+00:00] INFO: execute[a2enconf webgrind.conf] ran successfully
==> default: [2015-03-30T20:34:58+00:00] INFO: execute[a2enconf webgrind.conf] not queuing delayed action reload on service[apache2] (delayed), as it's already been queued
==> default: [2015-03-30T20:34:58+00:00] INFO: template[/var/www/webgrind/config.php] backed up to /var/chef/backup/var/www/webgrind/config.php.chef-20150330203458.243199
==> default: [2015-03-30T20:34:58+00:00] INFO: template[/var/www/webgrind/config.php] updated file contents /var/www/webgrind/config.php
==> default: [2015-03-30T20:35:07+00:00] INFO: apt_package[php5-xsl] installed php5-xsl at 5.5.9+dfsg-1ubuntu4.7
==> default: [2015-03-30T20:35:07+00:00] INFO: execute[enable_php_extension] ran successfully
==> default: [2015-03-30T20:35:07+00:00] INFO: directory[/usr/local/nodejs-binary-0.12.0] created directory /usr/local/nodejs-binary-0.12.0
==> default: [2015-03-30T20:35:32+00:00] INFO: remote_file[/var/chef/cache/nodejs-binary-0.12.0.tar.gz] created file /var/chef/cache/nodejs-binary-0.12.0.tar.gz
==> default: [2015-03-30T20:35:32+00:00] INFO: remote_file[/var/chef/cache/nodejs-binary-0.12.0.tar.gz] updated file contents /var/chef/cache/nodejs-binary-0.12.0.tar.gz
==> default: [2015-03-30T20:35:32+00:00] INFO: remote_file[/var/chef/cache/nodejs-binary-0.12.0.tar.gz] not queuing delayed action run on execute[unpack /var/chef/cache/nodejs-binary-0.12.0.tar.gz] (delayed), as it's already been queued
==> default: [2015-03-30T20:35:32+00:00] INFO: link[/usr/local/bin/node] created
==> default: [2015-03-30T20:35:32+00:00] INFO: link[/usr/local/bin/npm] created
==> default: [2015-03-30T20:35:32+00:00] INFO: link[/usr/local/nodejs-binary] created
==> default: [2015-03-30T20:35:32+00:00] INFO: directory[/usr/local/nodejs-binary-0.12.0] sending run action to execute[unpack /var/chef/cache/nodejs-binary-0.12.0.tar.gz] (delayed)
==> default: [2015-03-30T20:35:32+00:00] INFO: execute[unpack /var/chef/cache/nodejs-binary-0.12.0.tar.gz] ran successfully
==> default: [2015-03-30T20:35:32+00:00] INFO: execute[unpack /var/chef/cache/nodejs-binary-0.12.0.tar.gz] sending run action to execute[set owner on /usr/local/nodejs-binary-0.12.0] (delayed)
==> default: [2015-03-30T20:35:32+00:00] INFO: execute[set owner on /usr/local/nodejs-binary-0.12.0] ran successfully
==> default: [2015-03-30T20:36:04+00:00] INFO: bash[install npm - package manager for node] ran successfully
==> default: [2015-03-30T20:36:23+00:00] INFO: execute[install NPM package coffee-script] ran successfully
==> default: [2015-03-30T20:36:48+00:00] INFO: execute[install NPM package grunt-cli] ran successfully
==> default: [2015-03-30T20:38:02+00:00] INFO: execute[install NPM package bower] ran successfully
==> default: [2015-03-30T20:39:02+00:00] INFO: execute[install NPM package yo] ran successfully
==> default: [2015-03-30T20:39:43+00:00] INFO: execute[install NPM package less] ran successfully
==> default: [2015-03-30T20:40:14+00:00] INFO: execute[install NPM package csslint] ran successfully
==> default: [2015-03-30T20:41:14+00:00] INFO: apt_package[python-dev] installed python-dev at 2.7.5-5ubuntu3
==> default: [2015-03-30T20:41:14+00:00] INFO: cookbook_file[/var/chef/cache/get-pip.py] created file /var/chef/cache/get-pip.py
==> default: [2015-03-30T20:41:14+00:00] INFO: cookbook_file[/var/chef/cache/get-pip.py] updated file contents /var/chef/cache/get-pip.py
==> default: [2015-03-30T20:41:14+00:00] INFO: cookbook_file[/var/chef/cache/get-pip.py] mode changed to 644
==> default: [2015-03-30T20:41:25+00:00] INFO: execute[install-pip] ran successfully
==> default: [2015-03-30T20:41:31+00:00] INFO: Upgrading python_pip[setuptools] version from uninstalled to latest
==> default: [2015-03-30T20:41:38+00:00] INFO: Upgrading python_pip[virtualenv] version from uninstalled to latest
==> default: [2015-03-30T20:41:47+00:00] INFO: Installing python_pip[wp2github] version latest
==> default: [2015-03-30T20:41:57+00:00] INFO: remote_file[/usr/local/bin/wp] created file /usr/local/bin/wp
==> default: [2015-03-30T20:41:57+00:00] INFO: remote_file[/usr/local/bin/wp] updated file contents /usr/local/bin/wp
==> default: [2015-03-30T20:41:57+00:00] INFO: remote_file[/usr/local/bin/wp] mode changed to 755
==> default: [2015-03-30T20:42:15+00:00] INFO: bash[download_n98-magerun] ran successfully
==> default: [2015-03-30T20:42:15+00:00] INFO: bash[move_n98-magerun] ran successfully
==> default: [2015-03-30T20:42:28+00:00] INFO: bash[download_modman] ran successfully
==> default: [2015-03-30T20:42:28+00:00] INFO: bash[move_modman] ran successfully
==> default: [2015-03-30T20:42:41+00:00] INFO: bash[download_modgit] ran successfully
==> default: [2015-03-30T20:42:41+00:00] INFO: bash[move_modgit] ran successfully
==> default: [2015-03-30T20:42:41+00:00] INFO: template[/etc/apache2/envvars] sending reload action to service[apache2] (delayed)
==> default: [2015-03-30T20:42:42+00:00] INFO: service[apache2] reloaded
==> default: [2015-03-30T20:42:42+00:00] INFO: template[/etc/postfix/main.cf] sending restart action to service[postfix] (delayed)
==> default: [2015-03-30T20:42:42+00:00] INFO: service[postfix] restarted
==> default: [2015-03-30T20:42:42+00:00] INFO: php_pear[xdebug] sending restart action to service[apache2] (delayed)
==> default: [2015-03-30T20:42:45+00:00] INFO: service[apache2] restarted
==> default: [2015-03-30T20:42:45+00:00] INFO: Chef Run complete in 1182.959941449 seconds
==> default: [2015-03-30T20:42:45+00:00] INFO: Skipping removal of unused files from the cache
==> default: [2015-03-30T20:42:45+00:00] INFO: Running report handlers
==> default: [2015-03-30T20:42:45+00:00] INFO: Report handlers complete
m01 commented 9 years ago

Check if mysql is running, or if it's just service mysql status that says it's not running.

It looks like connecting through /var/run/mysqld/mysqld.sock doesn't work, but connecting over a socket connection (e.g. to 127.0.0.1) does:

vagrant@vagrant:/etc/phpmyadmin$ mysql -uroot -p 
Enter password: 
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
vagrant@vagrant:/etc/phpmyadmin$ mysql -uroot -p -h127.0.0.1                    
Enter password: 
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 6
Server version: 5.5.41-0ubuntu0.14.04.1 (Ubuntu)

Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> Bye
vagrant@vagrant:/etc/phpmyadmin$ 

Workaround for phpmyadmin: set $dbserver='127.0.0.1' in /etc/phpmyadmin/config-db.php. It'd would be better if the unix socket worked though...

ghost commented 9 years ago

I'm out of the house at the moment, but will check this above when I return this evening. I've not yet had a chance to look into why this is happening - most causes of this I can see are when the mysqld.sock cannot be created - leaving permissions or disk space as far as I can tell. df tells me I've plenty of space, so I'm suspecting permissions on the /var/run/ dir.

ghost commented 9 years ago

So, as mentioned above, MySQL is running, but can't accept connections through the unix socket. The phpmyadmin workaround does work out, but it's now nagging me that the socket isn't working.

A quick grep of the ps ax output showed the config file MySQL is loading.

1008 ? Ssl 0:01 /usr/sbin/mysqld --defaults-file=/etc/mysql-default/my.cnf

This in turn shows that the socket here is being specified as:

socket = /run/mysql-default/mysqld.sock

which is at odds with the attempted socket connection reported in the above error messages. After a little while, I forced a connection to the correct socket (/run/mysql-default/mysqld.sock), et voila.

Fix:

Symlinking the mysql-default contents into mysqld will allow the system to work as expected, including phpmyadmin via unix socket.

sudo mkdir /var/run/mysqld && sudo ln -s /var/run/mysql-default/* /var/run/mysqld/

Next:

I'm now trying to hunt down a 'proper' fix - and, why the MySQL client believes it should be connecting to '/var/run/mysqld/mysqld.sock' rather than the correct socket specified in the my.cnf file, however I think this runs a little beyond my skillset.

designesthetics commented 9 years ago

The mysql server looks for /var/run/mysqld/mysqld.sock but the mysql.sock file

find / -name '*.sock' to find the mysql.sock file and then used

ln -s /var/run/mysqld/mysqld.sock to get a link for the *.sock file then tried mysql and it ran without error. Hope this could solve yours.