Skip to content

software_center_download: Investigate interrupted download resulting in incomplete files #39

Open
@marcelmamula

Description

@marcelmamula

Issue

Current implementation of chunked download is not retrying download properly

def _download_file(url, filepath, retry=0, **kwargs):

I was downloading lot of files this week and I noticed output like this

changed: [s05hana] => (item=SAPEXE_51-70007807.SAR : Successfully downloaded SAP software: SAPEXE_51-70007807.SAR)
FAILED - RETRYING: [s05hana]: Download - SAP Software Files - Get files with Python venv (1 retries left).
changed: [s05hana] => (item=SAPEXEDB_51-70007806.SAR : Successfully downloaded SAP software: SAPEXEDB_51-70007806.SAR)

This example was not harmful because file was too small, but when it happened with BW4HANA300_INST_EXPORT_4.zip, it resulted in failed SWPM DB Load because file was invalid. Retry action was not able to remediate issue and file size was smaller than should have been.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions