Skip to content

Instantly share code, notes, and snippets.

@swalberg
Created September 27, 2017 15:52
Show Gist options
  • Save swalberg/6e3142390b917e063282c10e89493e46 to your computer and use it in GitHub Desktop.
Save swalberg/6e3142390b917e063282c10e89493e46 to your computer and use it in GitHub Desktop.
<html><head>
<title>SourceForge</title>
<!-- <script src="/js/jquery.com/jquery-1.11.0.min.js"></script> -->
<script src="https://code.jquery.com/jquery-1.11.0.min.js"></script>
<script src="https://sourceforge.net/js/mirrors.js"></script>
<script src="/js/sf.js"></script>
<script>
var DR_loc = DR_parse_hash_url();
if (DR_loc) {
DR_sf_main(DR_loc);
} else {
window.location.href = 'https://sourceforge.net/home.html';
}
</script>
</head><body>
<noscript>
We're sorry -- the Sourceforge site is currently in Disaster Recovery mode, and currently requires
the use of javascript to function. Please check back later.
</noscript>
</body></html>
chef:recipe (12.21.3)> remote_file cache_file_path do
chef:recipe > source source
chef:recipe ?> backup false
chef:recipe ?> checksum checksum
chef:recipe ?> end.run_action(:create)
[2017-09-27T15:44:46+00:00] DEBUG: Resources for generic remote_file resource enabled on node include: [Chef::Resource::
RemoteFile]
[2017-09-27T15:44:46+00:00] DEBUG: Resource for remote_file is Chef::Resource::RemoteFile
[2017-09-27T15:44:46+00:00] DEBUG: ivars which did not match with the prior resource: [:@source, :@backup, :@checksum, :
@verifications]
[2017-09-27T15:44:46+00:00] WARN: Cloning resource attributes for remote_file[C:\Users\vagrant\AppData\Local\Temp\kitche
n\cache/msys2-base-x86_64-20160205.tar.xz] from prior resource
Previous remote_file[C:\Users\vagrant\AppData\Local\Temp\kitchen\cache/msys2-base-x86_64-20160205.tar.xz]: (irb#1):10:in
`irb_binding'
Current remote_file[C:\Users\vagrant\AppData\Local\Temp\kitchen\cache/msys2-base-x86_64-20160205.tar.xz]: (irb#1):30:in
`irb_binding' (CHEF-3694) at (irb#1):30:in `irb_binding'.
Please see https://docs.chef.io/deprecations_resource_cloning.html for further details and information on how to correct
this problem.
[2017-09-27T15:44:46+00:00] INFO: Processing remote_file[C:\Users\vagrant\AppData\Local\Temp\kitchen\cache/msys2-base-x8
6_64-20160205.tar.xz] action create ((irb#1) line 30)
[2017-09-27T15:44:46+00:00] DEBUG: remote_file[C:\Users\vagrant\AppData\Local\Temp\kitchen\cache/msys2-base-x86_64-20160
205.tar.xz] checking for changes
[2017-09-27T15:44:46+00:00] DEBUG: Cache control headers: {}
[2017-09-27T15:44:46+00:00] DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_request
[2017-09-27T15:44:46+00:00] DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_request
[2017-09-27T15:44:46+00:00] DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_request
[2017-09-27T15:44:46+00:00] DEBUG: Initiating GET to http://downloads.sourceforge.net/project/msys2/Base/x86_64/msys2-ba
se-x86_64-20160205.tar.xz
[2017-09-27T15:44:46+00:00] DEBUG: ---- HTTP Request Header Data: ----
[2017-09-27T15:44:46+00:00] DEBUG: Accept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3
[2017-09-27T15:44:46+00:00] DEBUG: ---- End HTTP Request Header Data ----
[2017-09-27T15:44:47+00:00] DEBUG: ---- HTTP Status and Header Data: ----
[2017-09-27T15:44:47+00:00] DEBUG: HTTP 1.1 302 Moved Temporarily
[2017-09-27T15:44:47+00:00] DEBUG: content-length: 0
[2017-09-27T15:44:47+00:00] DEBUG: connection: close
[2017-09-27T15:44:47+00:00] DEBUG: date: Tue, 26 Sep 2017 16:25:20 GMT
[2017-09-27T15:44:47+00:00] DEBUG: location: https://downloads.sourceforge.net/#!/project/msys2/Base/x86_64/msys2-base-x
86_64-20160205.tar.xz
[2017-09-27T15:44:47+00:00] DEBUG: server: AmazonS3
[2017-09-27T15:44:47+00:00] DEBUG: age: 83967
[2017-09-27T15:44:47+00:00] DEBUG: x-cache: Hit from cloudfront
[2017-09-27T15:44:47+00:00] DEBUG: via: 1.1 253721461f577318527fb5be095b5061.cloudfront.net (CloudFront)
[2017-09-27T15:44:47+00:00] DEBUG: x-amz-cf-id: STooSJq9qsEtRvtK_jMo6Nae5wmaek14A0qorpvffQX_1hO2BA4Mzg==
[2017-09-27T15:44:47+00:00] DEBUG: ---- End HTTP Status/Header Data ----
[2017-09-27T15:44:47+00:00] DEBUG: ---- HTTP Response Body ----
[2017-09-27T15:44:47+00:00] DEBUG:
[2017-09-27T15:44:47+00:00] DEBUG: ---- End HTTP Response Body -----
[2017-09-27T15:44:47+00:00] DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_stream_complete
[2017-09-27T15:44:47+00:00] DEBUG: No content-length information collected for the streamed download, cannot identify st
reamed download.
[2017-09-27T15:44:47+00:00] DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_stream_complete
[2017-09-27T15:44:47+00:00] DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_stream_complete
[2017-09-27T15:44:47+00:00] DEBUG: Following redirect 1/10
[2017-09-27T15:44:47+00:00] DEBUG: Initiating GET to https://downloads.sourceforge.net/#!/project/msys2/Base/x86_64/msys
2-base-x86_64-20160205.tar.xz
[2017-09-27T15:44:47+00:00] DEBUG: ---- HTTP Request Header Data: ----
[2017-09-27T15:44:47+00:00] DEBUG: Accept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3
[2017-09-27T15:44:47+00:00] DEBUG: ---- End HTTP Request Header Data ----
[2017-09-27T15:44:47+00:00] DEBUG: ---- HTTP Status and Header Data: ----
[2017-09-27T15:44:47+00:00] DEBUG: HTTP 1.1 200 OK
[2017-09-27T15:44:47+00:00] DEBUG: content-type: text/html
[2017-09-27T15:44:47+00:00] DEBUG: content-length: 652
[2017-09-27T15:44:47+00:00] DEBUG: connection: close
[2017-09-27T15:44:47+00:00] DEBUG: date: Wed, 27 Sep 2017 15:44:48 GMT
[2017-09-27T15:44:47+00:00] DEBUG: x-amz-meta-s3cmd-attrs: uid:0/gname:root/uname:root/gid:0/mode:33188/mtime:1481227624
/atime:1481227624/md5:cb530d737c8f2d1023797cf0587b4e05/ctime:1481227624
[2017-09-27T15:44:47+00:00] DEBUG: cache-control: private, max-age=900
[2017-09-27T15:44:47+00:00] DEBUG: last-modified: Tue, 26 Sep 2017 05:30:03 GMT
[2017-09-27T15:44:47+00:00] DEBUG: etag: "cb530d737c8f2d1023797cf0587b4e05"
[2017-09-27T15:44:47+00:00] DEBUG: server: AmazonS3
[2017-09-27T15:44:47+00:00] DEBUG: x-cache: Miss from cloudfront
[2017-09-27T15:44:47+00:00] DEBUG: via: 1.1 2f58837c73ff25163966d00a02414d37.cloudfront.net (CloudFront)
[2017-09-27T15:44:47+00:00] DEBUG: x-amz-cf-id: Lx1Tch9C7jnzSzanCDuYV3qgmJQY_2GvnOiy7V9nRzo1zCvNiZvrjQ==
[2017-09-27T15:44:47+00:00] DEBUG: ---- End HTTP Status/Header Data ----
[2017-09-27T15:44:47+00:00] DEBUG: Streaming download from http://downloads.sourceforge.net/project/msys2/Base/x86_64/ms
ys2-base-x86_64-20160205.tar.xz to tempfile C:/Users/vagrant/AppData/Local/Temp/chef-rest20170927-2076-17t2l1t
[2017-09-27T15:44:47+00:00] DEBUG: content_encoding = '' initializing noop stream deflator.
[2017-09-27T15:44:47+00:00] DEBUG: Chef::HTTP::StreamHandler calling Chef::HTTP::ValidateContentLength::ContentLengthCou
nter#handle_chunk
[2017-09-27T15:44:47+00:00] DEBUG: Chef::HTTP::StreamHandler calling Chef::HTTP::Decompressor::NoopInflater#handle_chunk
[2017-09-27T15:44:47+00:00] DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_stream_complete
[2017-09-27T15:44:47+00:00] DEBUG: Content-Length validated correctly.
[2017-09-27T15:44:47+00:00] DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_stream_complete
[2017-09-27T15:44:47+00:00] DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_stream_complete
================================================================================
Error executing action `create` on resource 'remote_file[C:\Users\vagrant\AppData\Local\Temp\kitchen\cache/msys2-base-x8
6_64-20160205.tar.xz]'
================================================================================
Chef::Exceptions::ChecksumMismatch
----------------------------------
Checksum on resource (7e97e2) does not match checksum on content (7a07d3)
Resource Declaration:
---------------------
Compiled Resource:
------------------
# Declared in (irb#1):30:in `irb_binding'
remote_file("C:\Users\vagrant\AppData\Local\Temp\kitchen\cache/msys2-base-x86_64-20160205.tar.xz") do
provider Chef::Provider::RemoteFile
action [:create]
retries 0
retry_delay 2
default_guard_interpreter :default
source ["http://downloads.sourceforge.net/project/msys2/Base/x86_64/msys2-base-x86_64-20160205.tar.xz"]
use_etag true
use_last_modified true
declared_type :remote_file
checksum "7e97e2af042e1b6f62cf0298fe84839014ef3d4a3e7825cffc6931c66cc0fc20"
path "C:\\Users\\vagrant\\AppData\\Local\\Temp\\kitchen\\cache/msys2-base-x86_64-20160205.tar.xz"
rights nil
deny_rights nil
verifications []
end
System Info:
------------
chef_version=12.21.3
platform=windows
platform_version=6.3.9600
ruby=ruby 2.3.1p112 (2016-04-26 revision 54768) [x64-mingw32]
program_name=C:/opscode/chef/bin/chef-shell
executable=C:/opscode/chef/embedded/lib/ruby/2.3.0/irb/ext/multi-irb.rb
Chef::Exceptions::ChecksumMismatch: remote_file[C:\Users\vagrant\AppData\Local\Temp\kitchen\cache/msys2-base-x86_64-2016
0205.tar.xz] ((irb#1) line 30) had an error: Chef::Exceptions::ChecksumMismatch: Checksum on resource (7e97e2) does not
match checksum on content (7a07d3)
from C:/opscode/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.21.3-universal-mingw32/lib/chef/provider/file.rb:
346:in `do_validate_content'
from C:/opscode/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.21.3-universal-mingw32/lib/chef/provider/file.rb:
151:in `action_create'
from C:/opscode/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.21.3-universal-mingw32/lib/chef/provider.rb:145:i
n `run_action'
from C:/opscode/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.21.3-universal-mingw32/lib/chef/resource.rb:622:i
n `run_action'
from (irb#1):34
chef:recipe (12.21.3)>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment