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

When couchbase deb package download fail, it will result in the file as empty file. #55

Open
dennyzhang opened this issue Jun 16, 2015 · 1 comment

Comments

@dennyzhang
Copy link

If Chef update fail during the package download of "/var/chef/cache/couchbase-server-community_3.0.0-ubuntu12.04_amd64.deb". The file will end up with empty size.

Then retry chef update won't download the package again and run into below error messages.

[2015-06-13T05:41:24+00:00] INFO: Processing dpkg_package[/var/chef/cache/couchbase-server-community_3.0.0-ubuntu12.04_amd64.deb] action install (couchbase::server line 55)
[0m
================================================================================[0m
[31mError executing action `install` on resource 'dpkg_package[/var/chef/cache/couchbase-server-community_3.0.0-ubuntu12.04_amd64.deb]'[0m
================================================================================[0m
[0mChef::Exceptions::Package[0m
-------------------------[0m
dpkg failed - <Mixlib::ShellOut#44214900: command: 'dpkg -s /var/chef/cache/couchbase-server-community_3.0.0-ubuntu12.04_amd64.deb' process_status: #<Process::Status: pid 8207 exit 2> stdout: '' stderr: 'dpkg-query: error: --status needs a valid package name but '/var/chef/cache/couchbase-server-community_3.0.0-ubuntu12.04_amd64.deb' is not: illegal package name in specifier '/var/chef/cache/couchbase-server-community_3.0.0-ubuntu12.04_amd64.deb': must start with an alphanumeric character
[0m
[0mUse --help for help about querying packages.' child_pid: 8207 environment: {"LC_ALL"=>"C.UTF-8", "LANGUAGE"=>"C.UTF-8", "LANG"=>"C.UTF-8"} timeout: 600 user: group: working_dir: >![0m
[0mResource Declaration:[0m
@unhuman
Copy link

unhuman commented Aug 28, 2015

I think this is a "feature" of Chef itself. Once a resource gets cached, Chef assumes it's good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants