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

Error on download #124

Open
Tb3986 opened this issue Dec 3, 2023 · 4 comments
Open

Error on download #124

Tb3986 opened this issue Dec 3, 2023 · 4 comments

Comments

@Tb3986
Copy link

Tb3986 commented Dec 3, 2023

Hello,
when i'm trying to download a OS, the script stop to works at all with this error:
Could not replicate https://swcdn.apple.com/content/downloads/24/37/052-09398-A_DIKZGBNOM0/y4rz9dued01dtyl65nxqgd08wj2ar5cr6v/InstallAssistant.pkg: Command '['/usr/bin/curl', '-fL', '--create-dirs', '-o', './content/downloads/24/37/052-09398-A_DIKZGBNOM0/y4rz9dued01dtyl65nxqgd08wj2ar5cr6v/InstallAssistant.pkg', '-w', '%{http_code}', '--compressed', 'https://swcdn.apple.com/content/downloads/24/37/052-09398-A_DIKZGBNOM0/y4rz9dued01dtyl65nxqgd08wj2ar5cr6v/InstallAssistant.pkg']' returned non-zero exit status 18.

Error

I tried on 2 mac, same issue even with another OS like ventura ecc ecc.

Thanks

@gregneagle
Copy link
Contributor

This is almost certainly a local issue. Something is interrupting the transfer of "InstallAssistant.pkg", which is a very very large file. You may be able to replicate it outside of this tool with curl (and the error message shows you how):

/usr/bin/curl -fL --create-dirs \
-o './content/downloads/24/37/052-09398-A_DIKZGBNOM0/y4rz9dued01dtyl65nxqgd08wj2ar5cr6v/InstallAssistant.pkg' \
-w '%{http_code}' --compressed \
'https://swcdn.apple.com/content/downloads/24/37/052-09398-A_DIKZGBNOM0/y4rz9dued01dtyl65nxqgd08wj2ar5cr6v/InstallAssistant.pkg'

@gregneagle
Copy link
Contributor

I think this is a bigger issue than I first thought, but I still don't think it's has anything to do with the code in installinstallmacos.py.

I tried the above curl download command seven times in a row. The fourth attempt was successful, the other six timed out with various amounts left to read. This feels like an Apple change or Apple issue.

@gregneagle
Copy link
Contributor

On the #mist channel on MacAdmins Slack, there are reports of similar issues.

@jeremy0519
Copy link

You can add the following args to curl command: '-k','--http1.1','--tlsv1.2'
It works for me.

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

3 participants