Skip to content

Instantly share code, notes, and snippets.

@drrk
Created September 6, 2016 17:13
Show Gist options
  • Save drrk/e48600c2b460cdad8e8c2766d420e4d6 to your computer and use it in GitHub Desktop.
Save drrk/e48600c2b460cdad8e8c2766d420e4d6 to your computer and use it in GitHub Desktop.
remote_file error
lhrkjohnson001:test_remote_file kjohnson$ kitchen converge
-----> Starting Kitchen (v1.10.2)
-----> Creating <default-windows2012>...
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'windows-2012r2'...
==> default: Matching MAC address for NAT networking...
==> default: Setting the name of the VM: kitchen-test_remote_file-default-windows2012_default_1473181164709_29566
==> 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: 3389 (guest) => 3389 (host) (adapter 1)
default: 5985 (guest) => 5985 (host) (adapter 1)
default: 22 (guest) => 2222 (host) (adapter 1)
default: 5986 (guest) => 55986 (host) (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
default: WinRM address: 127.0.0.1:5985
default: WinRM username: vagrant
default: WinRM execution_time_limit: PT2H
default: WinRM transport: plaintext
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
default: The guest additions on this VM do not match the installed version of
default: VirtualBox! In most cases this is fine, but in rare cases it can
default: prevent things such as shared folders from working properly. If you see
default: shared folder errors, please make sure the guest additions within the
default: virtual machine match the version of VirtualBox you have installed on
default: your host and reload your VM.
default:
default: Guest Additions Version: 4.3.26
default: VirtualBox Version: 5.0
==> default: Checking for host entries
==> default: Configuring and enabling network interfaces...
==> default: Machine not provisioned because `--no-provision` is specified.
[WinRM] Established
Vagrant instance <default-windows2012> created.
Finished creating <default-windows2012> (1m7.94s).
-----> Converging <default-windows2012>...
Preparing files for transfer
Preparing dna.json
Resolving cookbook dependencies with Berkshelf 4.3.5...
Removing non-cookbook files before transfer
Preparing validation.pem
Preparing client.rb
-----> Installing Chef Omnibus (install only if missing)
Downloading package from https://packages.chef.io/stable/windows/2012r2/chef-client-12.13.37-1-x64.msi
Download complete.
Successfully verified C:\Users\vagrant\AppData\Local\Temp\chef-true.msi
Installing Chef Omnibus package C:\Users\vagrant\AppData\Local\Temp\chef-true.msi
Installation complete
Transferring files to <default-windows2012>
Starting Chef Client, version 12.13.37
Creating a new client identity for default-windows2012 using the validator key.
resolving cookbooks for run list: ["test_remote_file::default"]
Synchronizing Cookbooks:
- test_remote_file (0.1.0)
Installing Cookbook Gems:
Compiling Cookbooks...
Converging 1 resources
Recipe: test_remote_file::default
* remote_file[C:\Users\vagrant\AppData\Local\Temp\kitchen\cache/test_file] action create[2016-09-06T10:01:44-07:00] ERROR: Error connecting to http://thisisaninvalidhost.com/test_file, retry 1/5
[2016-09-06T10:01:49-07:00] ERROR: Error connecting to http://thisisaninvalidhost.com/test_file, retry 2/5
[2016-09-06T10:01:54-07:00] ERROR: Error connecting to http://thisisaninvalidhost.com/test_file, retry 3/5
[2016-09-06T10:01:59-07:00] ERROR: Error connecting to http://thisisaninvalidhost.com/test_file, retry 4/5
[2016-09-06T10:02:04-07:00] ERROR: Error connecting to http://thisisaninvalidhost.com/test_file, retry 5/5
[2016-09-06T10:02:09-07:00] WARN: remote_file[C:\Users\vagrant\AppData\Local\Temp\kitchen\cache/test_file] cannot be downloaded from http://thisisaninvalidhost.com/test_file: Error connecting to http://thisisaninvalidhost.com/test_file - getaddrinfo: No such host is known.
[2016-09-06T10:02:31-07:00] ERROR: Error connecting to http://192.168.0.9/test_file, retry 1/5
[2016-09-06T10:02:57-07:00] ERROR: Error connecting to http://192.168.0.9/test_file, retry 2/5
[2016-09-06T10:03:23-07:00] ERROR: Error connecting to http://192.168.0.9/test_file, retry 3/5
[2016-09-06T10:03:49-07:00] ERROR: Error connecting to http://192.168.0.9/test_file, retry 4/5
[2016-09-06T10:04:15-07:00] ERROR: Error connecting to http://192.168.0.9/test_file, retry 5/5
================================================================================
Error executing action `create` on resource 'remote_file[C:\Users\vagrant\AppData\Local\Temp\kitchen\cache/test_file]'
================================================================================
Errno::ETIMEDOUT
----------------
Error connecting to http://192.168.0.9/test_file - A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. - connect(2) for "192.168.0.9" port 80
Resource Declaration:
---------------------
# In C:/Users/vagrant/AppData/Local/Temp/kitchen/cache/cookbooks/test_remote_file/recipes/default.rb
7: remote_file "#{Chef::Config[:file_cache_path]}/test_file" do
8: source ['http://thisisaninvalidhost.com/test_file', 'http://192.168.0.9/test_file', 'http://bowerham.net:5678/timeout_file', 'http://bowerham.net/missing_file', 'http://bowerham.net/test_file']
9: end
10:
Compiled Resource:
------------------
# Declared in C:/Users/vagrant/AppData/Local/Temp/kitchen/cache/cookbooks/test_remote_file/recipes/default.rb:7:in `from_file'
remote_file("C:\Users\vagrant\AppData\Local\Temp\kitchen\cache/test_file") do
provider Chef::Provider::RemoteFile
action [:create]
retries 0
retry_delay 2
default_guard_interpreter :default
source ["http://thisisaninvalidhost.com/test_file", "http://192.168.0.9/test_file", "http://bowerham.net:5678/timeout_file", "http://bowerham.net/missing_file", "http://bowerham.net/test_file"]
use_etag true
use_last_modified true
declared_type :remote_file
cookbook_name "test_remote_file"
recipe_name "default"
atomic_update true
path "C:\\Users\\vagrant\\AppData\\Local\\Temp\\kitchen\\cache/test_file"
end
Platform:
---------
x64-mingw32
Running handlers:
[2016-09-06T10:04:41-07:00] ERROR: Running exception handlers
Running handlers complete
[2016-09-06T10:04:41-07:00] ERROR: Exception handlers complete
Chef Client failed. 0 resources updated in 03 minutes 00 seconds
[2016-09-06T10:04:41-07:00] FATAL: Stacktrace dumped to C:/Users/vagrant/AppData/Local/Temp/kitchen/cache/chef-stacktrace.out
[2016-09-06T10:04:41-07:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2016-09-06T10:04:41-07:00] FATAL: Errno::ETIMEDOUT: remote_file[C:\Users\vagrant\AppData\Local\Temp\kitchen\cache/test_file] (test_remote_file::default line 7) had an error: Errno::ETIMEDOUT: Error connecting to http://192.168.0.9/test_file - A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. - connect(2) for "192.168.0.9" port 80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment