Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Buildout and hosts timing out: configuring shorter timeout and known-good host set

Tags:

buildout

plone

If I have understood correctly buildout internally uses setuptools and setuptools ramdomly scrapes HTML pages in hope to finding eggs. This lead to the following problem if any critical host is down and it is referred from PyPi README etc.:

Download error on http://svn.plone.org/svn/collective/ZopeSkel/trunk: timed out -- Some packages may not be found!
Download error on http://svn.plone.org/svn/collective/ZopeSkel/trunk: timed out -- Some packages may not be found!
Download error on http://svn.plone.org/svn/collective/ZopeSkel/trunk: timed out -- Some packages may not be found!
Download error on http://svn.plone.org/svn/collective/ZopeSkel/trunk: timed out -- Some packages may not be found!
Download error on http://svn.plone.org/svn/collective/ZopeSkel/trunk: timed out -- Some packages may not be found!

Because each URL fetch will 1) block buildout progress 2) timeout in long time running buildout becomes pain (takes hours)

How to configure buildout

  • Timeout faster

  • Not to scrape arbitrary URLs and what is good known URL set for Plone and common add-ons

like image 921
Mikko Ohtamaa Avatar asked Feb 21 '23 17:02

Mikko Ohtamaa


2 Answers

To set a timeout of five seconds use bin/buildout -t 5

like image 61
maurits Avatar answered Apr 07 '23 16:04

maurits


Set the allow-hosts parameter in the buildout section e.g.:

[buildout]
allow-hosts =
  *.python.org

This forces buildout to only look on PyPI for downloads.

like image 20
aclark Avatar answered Apr 07 '23 16:04

aclark