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

libarchive error when installing consul on Ubuntu 14.04 #241

Closed
sarkis opened this issue Nov 24, 2015 · 7 comments
Closed

libarchive error when installing consul on Ubuntu 14.04 #241

sarkis opened this issue Nov 24, 2015 · 7 comments
Assignees
Milestone

Comments

@sarkis
Copy link

sarkis commented Nov 24, 2015

Generated at 2015-11-24 17:59:51 +0000
Archive::Error: consul_service[consul](consul::default line 38) had an error: Archive::Error: libartifact_file[consul-0.5.2](/var/chef/cache/cookbooks/consul/libraries/consul_service.rb line 112) had an error: Archive::Error: libarchive_file[/var/chef/cache/consul-0.5.2.zip](/var/chef/cache/cookbooks/libartifact/libraries/libartifact_file.rb line 63) had an error: Archive::Error: Unsupported ZIP compression method (deflation)
/root/.chefdk/gem/ruby/2.1.0/gems/ffi-libarchive-0.2.0/lib/ffi-libarchive/reader.rb:63:in extract' /var/chef/cache/cookbooks/libarchive/libraries/helper.rb:47:inblock (2 levels) in extract'
/root/.chefdk/gem/ruby/2.1.0/gems/ffi-libarchive-0.2.0/lib/ffi-libarchive/reader.rb:85:in each_entry' /var/chef/cache/cookbooks/libarchive/libraries/helper.rb:39:inblock in extract'
/var/chef/cache/cookbooks/libarchive/libraries/helper.rb:36:in chdir' /var/chef/cache/cookbooks/libarchive/libraries/helper.rb:36:inextract'
/var/chef/cache/cookbooks/libarchive/providers/file.rb:18:in block in class_from_file' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/provider/lwrp_base.rb:86:ininstance_eval'
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/provider/lwrp_base.rb:86:in block in action' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/provider.rb:144:inrun_action'
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/resource.rb:585:in run_action' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/runner.rb:49:inrun_action'
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/runner.rb:81:in block (2 levels) in converge' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/runner.rb:81:ineach'
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/runner.rb:81:in block in converge' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/resource_collection/resource_list.rb:83:inblock in execute_each_resource'
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/resource_collection/stepable_iterator.rb:116:in call' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/resource_collection/stepable_iterator.rb:116:incall_iterator_block'
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/resource_collection/stepable_iterator.rb:85:in step' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/resource_collection/stepable_iterator.rb:104:initerate'
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/resource_collection/stepable_iterator.rb:55:in each_with_index' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/resource_collection/resource_list.rb:81:inexecute_each_resource'
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/runner.rb:80:in converge' /var/chef/cache/cookbooks/poise/files/halite_gem/poise/helpers/notifying_block.rb:69:innotifying_block'
/var/chef/cache/cookbooks/libartifact/libraries/libartifact_file.rb:44:in block in <class:ArtifactFile>' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/provider.rb:144:inrun_action'
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/resource.rb:585:in run_action' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/runner.rb:49:inrun_action'
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/runner.rb:81:in block (2 levels) in converge' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/runner.rb:81:ineach'
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/runner.rb:81:in block in converge' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/resource_collection/resource_list.rb:83:inblock in execute_each_resource'
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/resource_collection/stepable_iterator.rb:116:in call' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/resource_collection/stepable_iterator.rb:116:incall_iterator_block'
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/resource_collection/stepable_iterator.rb:85:in step' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/resource_collection/stepable_iterator.rb:104:initerate'
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/resource_collection/stepable_iterator.rb:55:in each_with_index' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/resource_collection/resource_list.rb:81:inexecute_each_resource'
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/runner.rb:80:in converge' /var/chef/cache/cookbooks/poise/files/halite_gem/poise/helpers/notifying_block.rb:69:innotifying_block'
/var/chef/cache/cookbooks/consul/libraries/consul_service.rb:97:in action_enable' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/provider.rb:144:inrun_action'
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/resource.rb:585:in run_action' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/runner.rb:49:inrun_action'
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/runner.rb:81:in block (2 levels) in converge' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/runner.rb:81:ineach'
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/runner.rb:81:in block in converge' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/resource_collection/resource_list.rb:83:inblock in execute_each_resource'
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/resource_collection/stepable_iterator.rb:116:in call' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/resource_collection/stepable_iterator.rb:116:incall_iterator_block'
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/resource_collection/stepable_iterator.rb:85:in step' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/resource_collection/stepable_iterator.rb:104:initerate'
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/resource_collection/stepable_iterator.rb:55:in each_with_index' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/resource_collection/resource_list.rb:81:inexecute_each_resource'
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/runner.rb:80:in converge' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/client.rb:653:inblock in converge'
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/client.rb:648:in catch' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/client.rb:648:inconverge'
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/client.rb:687:in converge_and_save' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/client.rb:269:inrun'
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/application.rb:270:in block in fork_chef_client' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/application.rb:258:infork'
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/application.rb:258:in fork_chef_client' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/application.rb:224:inblock in run_chef_client'
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/local_mode.rb:44:in with_server_connectivity' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/application.rb:212:inrun_chef_client'
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/application/client.rb:408:in block in interval_run_chef_client' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/application/client.rb:398:inloop'
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/application/client.rb:398:in interval_run_chef_client' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/application/client.rb:388:inrun_application'
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/application.rb:60:in run' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/bin/chef-client:26:in<top (required)>'
/usr/bin/chef-client:54:in load' /usr/bin/chef-client:54:in

'

@predominant
Copy link

I'm getting this too. 👎

@johnbellone
Copy link
Contributor

@predominant Would you be able to test this on the prior version of Consul?

@johnbellone johnbellone added the bug label Dec 8, 2015
@johnbellone johnbellone added this to the 1.4 milestone Dec 8, 2015
@johnbellone johnbellone self-assigned this Dec 8, 2015
@johnbellone
Copy link
Contributor

This is working in the test-kitchen tests for 0.6. Did you have this only as a problem with 0.5.2?

@phs
Copy link

phs commented Jan 22, 2016

We are reproducing this in vagrant (not test kitchen) using Ubuntu 12.04.1 on 40b7091. It's attempting to download 0.6.0.

@phs
Copy link

phs commented Jan 22, 2016

Perhaps it has something to do with libz version? From a test in libarchive:

    if (libz_enabled) {
        assertEqualInt(18, archive_read_data(a, buff, 19));
        assertEqualMem(buff, "hello\nhello\nhello\n", 18);
    } else {
        assertEqualInt(ARCHIVE_FAILED, archive_read_data(a, buff, 19));
        assertEqualString(archive_error_string(a),
            "Unsupported ZIP compression method (deflation)");
        assert(archive_errno(a) != 0);
    }

@phs
Copy link

phs commented Jan 22, 2016

From a test-kitchen vagrant image that works:

vagrant@vagrant:~$ locate libz
/lib/x86_64-linux-gnu/libz.so.1
/lib/x86_64-linux-gnu/libz.so.1.2.3.4
/opt/chef/embedded/lib/libz.a
/opt/chef/embedded/lib/libz.so
/opt/chef/embedded/lib/libz.so.1
/opt/chef/embedded/lib/libz.so.1.2.8
/usr/lib/jvm/jdk1.7.0_75/jre/lib/amd64/libzip.so

and from a non-test-kitchen vagrant that does not:

vagrant@vagrant:~$ locate libz
/lib/x86_64-linux-gnu/libz.so.1
/lib/x86_64-linux-gnu/libz.so.1.2.3.4
/opt/chefdk/embedded/lib/libz.a
/opt/chefdk/embedded/lib/libz.so
/opt/chefdk/embedded/lib/libz.so.1
/opt/chefdk/embedded/lib/libz.so.1.2.8
/usr/lib/vmware-tools/lib32/libz.so.1
/usr/lib/vmware-tools/lib32/libz.so.1/libz.so.1
/usr/lib/vmware-tools/lib64/libz.so.1
/usr/lib/vmware-tools/lib64/libz.so.1/libz.so.1
/usr/lib/x86_64-linux-gnu/libz.a
/usr/lib/x86_64-linux-gnu/libz.so

@lock
Copy link

lock bot commented Apr 25, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Apr 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants