自从Travis now supports building on Windows(至少在某种程度上),我正在玩一个基于Windows机器的Unity
项目。在尝试对Travis
配置进行各种更改时,我有两个版本能够安装Unity
(但没有做任何其他事情)。一旦我准备好尝试使用统一构建配置,Chocolatey
无法下载Unity
。
我个人(通过Travis
奴隶)是否达到了每日下载限制(我总是得到相同的奴隶IP)?或者这是几个人经常通过Travis
下载团结的结果?
由于我能够通过日志中提供的链接手动下载文件,因此我将排除统一服务器问题作为原因。
这是失败的Travis
日志:
$choco install unity
Chocolatey v0.10.11
Installing the following packages:
unity
By installing you accept licenses for the packages.
Progress: Downloading unity 2018.3.11... 100%
unity v2018.3.11 [Approved]
unity package files install completed. Performing other installation steps.
Downloading unity 64 bit
from 'https://download.unity3d.com/download_unity/5063218e4ab8/Windows64EditorInstaller/UnitySetup64.exe'
ERROR: The remote file either doesn't exist, is unauthorized, or is forbidden for url 'https://download.unity3d.com/download_unity/5063218e4ab8/Windows64EditorInstaller/UnitySetup64.exe'. Exception calling "GetResponse" with "0" argument(s): "The remote server returned an error: (403) Forbidden."
This package is likely not broken for licensed users - see https://chocolatey.org/docs/features-private-cdn.
The install of unity was NOT successful.
作为参考,后续的一个(超过一个小时)。
choco install unity
Chocolatey v0.10.11
Installing the following packages:
unity
By installing you accept licenses for the packages.
Progress: Downloading unity 2018.3.11... 100%
unity v2018.3.11 [Approved]
unity package files install completed. Performing other installation steps.
Downloading unity 64 bit
from 'https://download.unity3d.com/download_unity/5063218e4ab8/Windows64EditorInstaller/UnitySetup64.exe'
Progress: 100% - Completed download of C:\Users\travis\AppData\Local\Temp\chocolatey\unity\2018.3.11\UnitySetup64.exe (557 MB).
Download of UnitySetup64.exe (557 MB) completed.
Hashes match.
Installing unity...
unity has been installed.
unity may be able to be automatically uninstalled.
The install of unity was successful.
Software installed as 'EXE', install location is likely default.
虽然确实在Chocolatey.org上有一个新的速率限制功能(这是在on the 26th November 2018上启用的),但是当它在播放时返回的HTTP错误代码是429,而不是403.结果,我没有认为这是导致你出现问题的原因。
有关于403 HTTP状态代码here的故障排除文章。我建议跟进那里的建议,这可能是由于以下一些原因造成的:
- 您有一个需要配置的代理
- 它在您的组织中被阻止
- 我们打破了一些东西(这是最不可能的原因)
- CloudFlare由于原因阻止了您的IP(99%的时间,这是问题)
- Chocolatey社区团队可能因过度使用而阻止访问 - 请参阅过多使用细节