Skip to content

Facility to Restart Interrupted Download? #56

@ridgedale

Description

@ridgedale

Thank you for maintaining this project.
I wondered if there is any capability built into or planned for macadmin-scripts to allow the restart (from where it got to) of a download in the event of a curl: (56) Recv failure: Connection reset by peer?
While attempting to download the following item:
14 042-45246 11.7.10 20G1427 2023-09-11 macOS Big Sur
... the following error resulted over halfway through the download:
Choose a product to download (1-26): 14
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 5782 100 5782 0 0 27353 0 --:--:-- --:--:-- --:--:-- 28343
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
56 11.5G 56 6635M 0 0 502k 0 6:41:59 3:45:15 2:56:44 0
curl: (56) Recv failure: Connection reset by peer
Could not replicate http://swcdn.apple.com/content/downloads/14/38/042-45246-A_NLFOFLCJFZ/jk992zbv98sdzz3rgc7mrccjl3l22ruk1c/InstallAssistant.pkg: Command '[u'/usr/bin/curl', u'-fL', u'--create-dirs', u'-o', u'./content/downloads/14/38/042-45246-A_NLFOFLCJFZ/jk992zbv98sdzz3rgc7mrccjl3l22ruk1c/InstallAssistant.pkg', u'-w', u'%{http_code}', u'--compressed', 'http://swcdn.apple.com/content/downloads/14/38/042-45246-A_NLFOFLCJFZ/jk992zbv98sdzz3rgc7mrccjl3l22ruk1c/InstallAssistant.pkg']' returned non-zero exit status 56

Or is only solution to attempt the download again from scratch?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions