Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

inval id distance too far back (Zlib::DataError) on windows #1715

Closed
chris-rock opened this issue Apr 26, 2017 · 2 comments
Closed

inval id distance too far back (Zlib::DataError) on windows #1715

chris-rock opened this issue Apr 26, 2017 · 2 comments
Labels
Platform: Windows Windows-specific issues Type: Bug Feature not working as expected
Milestone

Comments

@chris-rock
Copy link
Contributor

Description

Upload inspec compliance upload is not working on Windows 10

InSpec and Platform Version

1.21.0

Replication Case

Upload an inspec profile via inspec compliance upload .\Documents\my-test.tar.gz

Stacktrace

PS C:\Users\Administrator> inspec compliance upload .\Documents\my-test.tar.gz
I, [2017-04-26T02:20:55.110984 #660]  INFO -- : Checking profile in .\Documents\my-test.tar.gz
I, [2017-04-26T02:20:55.110984 #660]  INFO -- : Metadata OK.
C:/opscode/inspec/embedded/lib/ruby/gems/2.3.0/gems/inspec-1.21.0/lib/inspec/file_provider.rb:111:in `initialize': inval
id distance too far back (Zlib::DataError)
        from C:/opscode/inspec/embedded/lib/ruby/gems/2.3.0/gems/inspec-1.21.0/lib/inspec/file_provider.rb:111:in `open'

        from C:/opscode/inspec/embedded/lib/ruby/gems/2.3.0/gems/inspec-1.21.0/lib/inspec/file_provider.rb:111:in `initi
alize'
        from C:/opscode/inspec/embedded/lib/ruby/gems/2.3.0/gems/inspec-1.21.0/lib/inspec/file_provider.rb:14:in `new'
        from C:/opscode/inspec/embedded/lib/ruby/gems/2.3.0/gems/inspec-1.21.0/lib/inspec/file_provider.rb:14:in `for_pa
th'
        from C:/opscode/inspec/embedded/lib/ruby/gems/2.3.0/gems/inspec-1.21.0/lib/inspec/profile.rb:52:in `for_path'
        from C:/opscode/inspec/embedded/lib/ruby/gems/2.3.0/gems/inspec-1.21.0/lib/inspec/profile.rb:69:in `for_fetcher'

        from C:/opscode/inspec/embedded/lib/ruby/gems/2.3.0/gems/inspec-1.21.0/lib/inspec/dependencies/requirement.rb:10
7:in `profile'
        from C:/opscode/inspec/embedded/lib/ruby/gems/2.3.0/gems/inspec-1.21.0/lib/inspec/dependencies/dependency_set.rb
:65:in `block in each'
        from C:/opscode/inspec/embedded/lib/ruby/gems/2.3.0/gems/inspec-1.21.0/lib/inspec/dependencies/dependency_set.rb
:64:in `each'
        from C:/opscode/inspec/embedded/lib/ruby/gems/2.3.0/gems/inspec-1.21.0/lib/inspec/dependencies/dependency_set.rb
:64:in `each'
        from C:/opscode/inspec/embedded/lib/ruby/gems/2.3.0/gems/inspec-1.21.0/lib/inspec/profile.rb:162:in `load_librar
ies'
        from C:/opscode/inspec/embedded/lib/ruby/gems/2.3.0/gems/inspec-1.21.0/lib/inspec/profile.rb:425:in `load_checks
_params'
        from C:/opscode/inspec/embedded/lib/ruby/gems/2.3.0/gems/inspec-1.21.0/lib/inspec/profile.rb:419:in `load_params
'
        from C:/opscode/inspec/embedded/lib/ruby/gems/2.3.0/gems/inspec-1.21.0/lib/inspec/profile.rb:134:in `params'
        from C:/opscode/inspec/embedded/lib/ruby/gems/2.3.0/gems/inspec-1.21.0/lib/inspec/profile.rb:299:in `controls_co
unt'
        from C:/opscode/inspec/embedded/lib/ruby/gems/2.3.0/gems/inspec-1.21.0/lib/inspec/profile.rb:270:in `check'
        from C:/opscode/inspec/embedded/lib/ruby/gems/2.3.0/gems/inspec-1.21.0/lib/bundles/inspec-compliance/cli.rb:183:
in `upload'
        from C:/opscode/inspec/embedded/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'
        from C:/opscode/inspec/embedded/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_comma
nd'
        from C:/opscode/inspec/embedded/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor.rb:359:in `dispatch'
        from C:/opscode/inspec/embedded/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/invocation.rb:115:in `invoke'
        from C:/opscode/inspec/embedded/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor.rb:235:in `block in subcommand'
        from C:/opscode/inspec/embedded/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'
        from C:/opscode/inspec/embedded/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_comma
nd'
        from C:/opscode/inspec/embedded/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor.rb:359:in `dispatch'
        from C:/opscode/inspec/embedded/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/base.rb:440:in `start'
        from C:/opscode/inspec/embedded/lib/ruby/gems/2.3.0/gems/inspec-1.21.0/bin/inspec:12:in `<top (required)>'
        from C:/opscode/inspec/bin/inspec:60:in `load'
        from C:/opscode/inspec/bin/inspec:60:in `<main>'
PS C:\Users\Administrator>
@chris-rock chris-rock added the Type: Bug Feature not working as expected label May 4, 2017
@chris-rock chris-rock changed the title inspec compliance upload not working on windows inval id distance too far back (Zlib::DataError) on windows May 4, 2017
@timusmc96
Copy link

Do we know of a work around or what can be done here? Thanks

@arlimus arlimus added the ready label May 24, 2017
@arlimus arlimus added this to the Prioritized milestone May 24, 2017
@clintoncwolfe clintoncwolfe added Platform: Windows Windows-specific issues and removed ready labels Apr 30, 2018
@kekaichinose
Copy link
Contributor

What’s happening? Why was this issue closed?
This issue was closed due to some much needed review of legacy issues or issues that were spawned in older versions of InSpec, i.e. < v3.

Why do I care?
You would care about this if this was an issue that you are still seeing and/or feel needs to be addressed in the current version of InSpec.

What do I need to do?
If this issue is no longer important, no further action is necessary. However, if you think this is something that should be addressed, please reopen the issue and continue the discussion, making sure to provide stack trace or repro data that is relevant to the current version.

Thank you!
Chef InSpec Team

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Platform: Windows Windows-specific issues Type: Bug Feature not working as expected
Projects
None yet
Development

No branches or pull requests

5 participants