Download problems are frequently caused by issues such as timeout on big packages, or packages corrupted during downloading.
Timeout Causing a Downloading Issue
Solution:
Increase the timeout to longer than the Gunicorn default 30 seconds.
Gunicorn is the WSGI HTTP Server used by Anaconda Repository. The default Gunicorn timeout is set to 30 seconds. Packages can take longer than this based on your network, and larger packages may take even longer.
To change this setting, add the following section to the config.yaml file which will be in /etc/binstar/ or can be created and added to the location where Anaconda Repository was installed, ~/repo/etc/anaconda-server/ or PREFIX/etc/anaconda-server:
gunicorn:
timeout: 60
Corrupt Package Causing a Downloading Issue
Solution:
Manually remove the corrupted package and run the sync again.
NOTE: If you do not have a mirror configuration file, make one before proceeding. See Mirroring Alternate Channels.
1. In the mirror configuration yaml file, add a blacklist section and add the corrupt package to this entry.
Example configuration file that only blacklists flask from the main Anaconda channel:
channels:
- https://conda.anaconda.org/anaconda
blacklist:
- flask
2. Once you have this configuration file, execute the mirror command while specifying the configuration file. In this example, the configuration file is named anaconda.yaml and it is in the current working directory:
anaconda-server-sync-conda —mirror-config anaconda.yaml —clean
NOTE: The mirroring process can take few hours to sync all the packages depending on the number of packages involved.
3. After the mirroring process is complete, you can remove the package from the blacklist section, or the entire blacklist section if no other packages need to be blacklisted, and run the mirror command:
anaconda-server-sync-conda —mirror-config anaconda.yaml