Skip to content

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

@dennyzhang

Description

@dennyzhang

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions