Skip to content

Error with database.rb (4.0.9) from WordPress (3.0.0) cookbook #64

@MikeRosTX

Description

@MikeRosTX

Not sure if anyone can shed any light on this issue. But I'm trying to setup a POC on Azure and created a Windows 2012 R2 VM to deploy WorkPress (3.0.0), but I'm running into the error from database.rb (4.0.9) when trying to converge on the Windows client VM node on Azure.

Any ideas? I'm the WordPress cookbook, not the WordPress-Windows version.

BTW in the default.rb under \chef-repo\cookbooks\php\attributes, the path to the MSI file that it is trying to download from http://windows.php.net/downloads/releases/ got moved to http://windows.php.net/downloads/releases/archives/.

Thanks in advance,
Mike Rosado

C:\Windows\system32>chef-client
Starting Chef Client, version 11.18.6
resolving cookbooks for run list: ["wordpress"]
Synchronizing Cookbooks:

  • database

  • mysql

  • build-essential

  • iis

  • tar

  • nginx

  • iptables

  • logrotate

  • pacman

  • apt

  • bluepill

  • ohai

  • runit

  • yum-epel

  • rsyslog

  • packagecloud

  • yum

  • apache2

  • smf

  • xml

  • windows

  • chef-sugar

  • postgresql

  • openssl

  • yum-mysql-community

  • mariadb

  • chef_handler

  • rbac

  • php-fpm

  • wordpress

  • mysql2_chef_gem

  • php

  • selinux
    Compiling Cookbooks...
    Converging 23 resources
    Recipe: iis::default

  • windows_feature[IIS-WebServerRole] action install (up to date)

  • service[iis] action enable (up to date)

  • service[iis] action start (up to date)
    Recipe: iis::mod_cgi

  • windows_feature[IIS-CGI] action install (up to date)
    Recipe: php::package

  • windows_package[PHP 5.3.20] action install (up to date)

  • cookbook_file[C:\Program Files (x86)\PHP/PEAR/go-pear.phar] action create (u
    p to date)

  • template[C:\Program Files (x86)\PHP/pear-options] action create (up to date)

  • execute[install-pear] action run

    • execute go-pear.bat < pear-options
  • windows_path[C:\Program Files (x86)\PHP] action add

    • env[path] action modify (up to date)
    • ruby_block[fix ruby ENV['PATH']] action nothing (skipped due to action :no
      thing)
      (up to date)
      Recipe: php::ini
  • template[C:\Program Files (x86)\PHP/php.ini] action create (up to date)
    Recipe: php::default

  • php_pear_channel[pear.php.net] action update (up to date)

  • php_pear_channel[pecl.php.net] action update (up to date)
    Recipe: wordpress::database

  • mysql2_chef_gem[default] action install

    Error executing action install on resource 'mysql2_chef_gem[default]'

    ArgumentError

    wrong number of arguments(2 for 0)

    Resource Declaration:

    In C:/chef/cache/cookbooks/wordpress/recipes/database.rb

    29: mysql2_chef_gem 'default' do
    30: action :install
    31: end
    32:

    Compiled Resource:

    Declared in C:/chef/cache/cookbooks/wordpress/recipes/database.rb:29:in `f

    rom_file'

    mysql2_chef_gem("default") do
    action [:install]
    retries 0
    retry_delay 2
    guard_interpreter :default
    cookbook_name "wordpress"
    recipe_name "database"
    end

Running handlers:

  • AzureExtension::ExceptionHandler
    Running handlers complete
    Chef Client failed. 1 resources updated in 24.912801 seconds

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions