Skip to content

Instantly share code, notes, and snippets.

Recipe Compile Error in /tmp/kitchen/cache/cookbooks/hwk/recipes/default.rb
================================================================================
NoMethodError
-------------
undefined method `localhost' for Custom resource mysqldump from cookbook mysqldump
Cookbook Trace:
---------------
/tmp/kitchen/cache/cookbooks/hwk/recipes/mysql_dump.rb:6:in `block in from_file'
source "https://supermarket.chef.io"
source "https://github.com/mstyne/chef-mysqldump"
metadata
================================================================================
Recipe Compile Error in /tmp/kitchen/cache/cookbooks/hwk/recipes/default.rb
================================================================================
NoMethodError
-------------
No resource or method named `mysqldump' for `Chef::Recipe "mysql_dump"'
Cookbook Trace:
---------------
---
driver:
name: vagrant
network:
- ["forwarded_port", {guest: 80, host: 8080}]
- ["private_network", {ip: "192.168.56.1"}]
provisioner:
name: chef_solo
C:\chef-repo\cookbooks\hwk>ipconfig
Windows IP Configuration
Ethernet adapter Bluetooth Network Connection 3:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
---
driver:
name: vagrant
provisioner:
name: chef_solo
platforms:
- name: ubuntu-14.04
[ec2-user@ip-172-31-12-212 ~]$ sudo chef-client
Starting Chef Client, version 12.16.42
resolving cookbooks for run list: ["hwk"]
Synchronizing Cookbooks:
- hwk (0.1.0)
Installing Cookbook Gems:
Compiling Cookbooks...
sh: notifies: command not found
sh: notifies: command not found
sh: notifies: command not found
Error executing action `sync` on resource 'git[/var/www/html]'
================================================================================
Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '128'
---- Begin output of git ls-remote "[email protected]:houami/drupal-site.git" "master*" ----
STDOUT:
STDERR: Host key verification failed.
fatal: Could not read from remote repository.
I, [2016-12-02T17:00:54.835801 #9200] INFO -- Kitchen: -----> Starting Kitchen (v1.13.2)
I, [2016-12-02T17:00:55.685436 #9200] INFO -- Kitchen: -----> Converging <default-ubuntu-1404>...
E, [2016-12-02T17:01:04.287328 #9200] ERROR -- Kitchen: ------Exception-------
E, [2016-12-02T17:01:04.288304 #9200] ERROR -- Kitchen: Class: Kitchen::ActionFailed
E, [2016-12-02T17:01:04.288304 #9200] ERROR -- Kitchen: Message: 1 actions failed.
>>>>>> Failed to complete #converge action: [No such file or directory @ rb_sysopen - C:/Users/VIGNES~1/AppData/Local/Temp/vendor20161202-9200-114g9t0/dploy2/berks-cookbooks/dploy2/drupal-8.2.3/core/modules/system/tests/modules/invalid_module_name_over_the_maximum_allowed_character_length/invalid_module_name_over_the_maximum_allowed_character_length.info.yml] on default-ubuntu-1404
E, [2016-12-02T17:01:04.288304 #9200] ERROR -- Kitchen: ----------------------
E, [2016-12-02T17:01:04.288304 #9200] ERROR -- Kitchen: ------Backtrace-------
E, [2016-12-02T17:01:04.288304 #9200] ERR
PS C:\chef-repo\cookbooks\dploy2> kitchen converge
-----> Starting Kitchen (v1.13.2)
-----> Converging <default-ubuntu-1404>...
Preparing files for transfer
Preparing dna.json
Resolving cookbook dependencies with Berkshelf 5.1.0...
>>>>>> ------Exception-------
>>>>>> Class: Kitchen::ActionFailed
>>>>>> Message: 1 actions failed.
>>>>>> Failed to complete #converge action: [No such file or directory @ rb_sysopen - C:/Users/VIGNES~1/AppData/Loca