xcode-install icon indicating copy to clipboard operation
xcode-install copied to clipboard

Download fails after 3 chunks of 1024Mb each

Open rhcpfan opened this issue 6 years ago • 8 comments

Here's the output when trying to download 11 GM Seed (it happened with other versions too)

âžś  MyIOSApp xcversion install '11 GM Seed'
100   321  100   321    0     0    408      0 --:--:-- --:--:-- --:--:--   408%
100   305  100   305    0     0    291      0  0:00:01  0:00:01 --:--:--  297k
100   305  100   305    0     0    291      0  0:00:01  0:00:01 --:--:--  297k
 14 7311M   14 1024M    0     0  2671k      0  0:46:42  0:06:32  0:40:10 4049k%
curl: (18) transfer closed with 6592924889 bytes remaining to read
100   321  100   321    0     0    414      0 --:--:-- --:--:-- --:--:--   414%
 16 6287M   16 1024M    0     0  2987k      0  0:35:55  0:05:50  0:30:05 4125k%
curl: (18) transfer closed with 5519183065 bytes remaining to read
100   321  100   321    0     0    899      0 --:--:-- --:--:-- --:--:--   899
100   305  100   305    0     0    497      0 --:--:-- --:--:-- --:--:--   497
 19 5263M   19 1024M    0     0  2853k      0  0:31:28  0:06:07  0:25:21 3204k%
curl: (18) transfer closed with 4445441241 bytes remaining to read
%[!] Failed to download Xcode 11 GM Seed.

If I run the same command again, it resumes the download. I have to run it 3-4 times depending on the download size. After the download is complete, the installation runs as expected.

âžś  MyIOSApp which curl
/usr/bin/curl
âžś  MyIOSApp /usr/bin/curl --version
curl 7.54.0 (x86_64-apple-darwin18.0) libcurl/7.54.0 LibreSSL/2.6.5 zlib/1.2.11 nghttp2/1.24.1
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp smb smbs smtp smtps telnet tftp 
Features: AsynchDNS IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz HTTP2 UnixSockets HTTPS-proxy

rhcpfan avatar Sep 11 '19 09:09 rhcpfan

the same thing

prostokorol avatar Nov 07 '19 17:11 prostokorol

+1

tflhyl avatar Nov 11 '19 09:11 tflhyl

(Resolved)

Same here. After trying few times it seems to be working but got another error:

No Xcode.app(or Xcode-beta.app) found in XIP. Please remove /Users/Suyeol/Library/Caches/XcodeInstall/Xcode_11.2.1.xip if you suspect a corrupted download or run xcversion update to see if the version you tried to install has been pulled by Apple. If none of this is true, please open a new GH issue.

Version

$ xcversion --version
2.6.3

First trial

bash-3.2$ xcversion install 11.2.1
100   305  100   305    0     0    815      0 --:--:-- --:--:-- --:--:--   815
100   305  100   305    0     0    815      0 --:--:-- --:--:-- --:--:--   815
 13 7459M   13 1024M    0     0  5783k      0  0:22:00  0:03:01  0:18:59 5818k%
curl: (18) transfer closed with 6748115084 bytes remaining to read
100   305  100   305    0     0    734      0 --:--:-- --:--:-- --:--:--  3910
100   305  100   305    0     0    734      0 --:--:-- --:--:-- --:--:--  3910
 15 6435M   15 1024M    0     0  5676k      0  0:19:20  0:03:04  0:16:16 5710k%
curl: (18) transfer closed with 5674373260 bytes remaining to read
100   305  100   305    0     0    868      0 --:--:-- --:--:-- --:--:--   868
100   305  100   305    0     0    868      0 --:--:-- --:--:-- --:--:--   868
 18 5411M   18 1024M    0     0  5765k      0  0:16:01  0:03:01  0:13:00 5672k%
curl: (18) transfer closed with 4600631436 bytes remaining to read
%[!] Failed to download Xcode 11.2.1.

Second trial

bash-3.2$ xcversion install 11.2.1
100   313  100   313    0     0    934      0 --:--:-- --:--:-- --:--:--   934
 23 4387M   23 1024M    0     0  5866k      0  0:12:45  0:02:58  0:09:47 5861k%
curl: (18) transfer closed with 3526889612 bytes remaining to read
100   305  100   305    0     0    804      0 --:--:-- --:--:-- --:--:--  297k
100   305  100   305    0     0    804      0 --:--:-- --:--:-- --:--:--  297k
 30 3363M   30 1024M    0     0  6222k      0  0:09:13  0:02:48  0:06:25 6099k%
curl: (18) transfer closed with 2453147788 bytes remaining to read
100   313  100   313    0     0   1071      0 --:--:-- --:--:-- --:--:--  1071
 43 2339M   43 1024M    0     0  6073k      0  0:06:34  0:02:52  0:03:42 5869k%
curl: (18) transfer closed with 1379405964 bytes remaining to read
%[!] Failed to download Xcode 11.2.1.

Third trial

bash-3.2$ xcversion install 11.2.1
100   305  100   305    0     0    734      0 --:--:-- --:--:-- --:--:--   734
 77 1315M   77 1024M    0     0  5971k      0  0:03:45  0:02:55  0:00:50 5881k%
curl: (18) transfer closed with 305664140 bytes remaining to read
100   305  100   305    0     0    760      0 --:--:-- --:--:-- --:--:--   760
100   305  100   305    0     0    760      0 --:--:-- --:--:-- --:--:--   760
100  291M  100  291M    0     0  5867k      0  0:00:50  0:00:50 --:--:-- 6040k%
%xip: error: The archive “Xcode_11.2.1.xip” can’t be expanded because the selected volume doesn’t have enough free space.
No `Xcode.app(or Xcode-beta.app)` found in XIP. Please remove /Users/Suyeol/Library/Caches/XcodeInstall/Xcode_11.2.1.xip if you suspect a corrupted download or run `xcversion update` to see if the version you tried to install has been pulled by Apple. If none of this is true, please open a new GH issue.

Running on macOS Catalina VPS with about 17GB disk storage available.


I expected that it was not a disk storage problem but it was. It has succeeded after free up disk space.

devxoul avatar Nov 23 '19 22:11 devxoul

+1

andy392 avatar Dec 19 '19 01:12 andy392

Same problem here

filletofish avatar Mar 01 '20 11:03 filletofish

Can this be fixed please? Xcode is about 10Gb large these days & baby sitting xcversion for hours is counter-productive.

pronebird avatar Oct 15 '20 09:10 pronebird

@pronebird See the mentioned PR. Since release 2.6.7 you can use --retry-download-count=x to insert any amount of retries. It wasn't in the release notes unfortunately

JonnyBeeGod avatar Oct 29 '20 05:10 JonnyBeeGod

So the default retry count is 3?

Shouldn't it retry automatically? One of the reasons I love xcversion is that I don't have to manually deal with Xcode downloads and installs, but for the past month it's been more productive to fire up the browser and grab XCode directly.

afterxleep avatar Dec 11 '20 20:12 afterxleep