[Setup] buildout problems behind a proxy

Mirto Silvio Busico mirtosilvio.busico at fastwebnet.it
Mon Feb 8 15:37:55 UTC 2010


Hi all,

I'm trying to use buildout behind a proxy.

If I'm directly connecet to Internet everything works.

behind a proxy (and a firewall) the standard buildout generated by the 
unified installer doesn't work unless I add in /etc/profile file the lines

export http_proxy=http://test:test@192.168.32.254:8080
export ftp_proxy=http://test:test@192.168.32.254:8080

after this the command "sudo bin/buildout -n -v" works correctly.

But when I add my buildout extensions I get the error:

IOError: [Errno socket error] (-2, 'Name or service not known')

Adding in /etc/profile the line

export https_proxy=http://test:test@192.168.32.254:8080

doesn't change anything.

What can I do?

Thanks
    Mirto

P.S. the complete log:
==========================================
sysop at ita014vm10i:/usr/local/plone334/zeocluster$ sudo bin/buildout -v 
-n -c altro.cfg
While:                                                                                

  
Initializing.                                                                       


An internal error occured due to a bug in either zc.buildout or in a
recipe being used:                                                 
Traceback (most recent call last):                                 
  File 
"/usr/local/plone334/buildout-cache/eggs/zc.buildout-1.4.3-py2.4.egg/zc/buildout/buildout.py", 
line 1659, in 
main                                                                                          

    user_defaults, windows_restart, 
command)                                                            
  File 
"/usr/local/plone334/buildout-cache/eggs/zc.buildout-1.4.3-py2.4.egg/zc/buildout/buildout.py", 
line 182, in 
__init__                                                                                       

    data['buildout'].copy(), 
override))                                                                 
  File 
"/usr/local/plone334/buildout-cache/eggs/zc.buildout-1.4.3-py2.4.egg/zc/buildout/buildout.py", 
line 1333, in 
_open                                                                                         

    eresult = _open(base, extends.pop(0), seen, dl_options, 
override)                                   
  File 
"/usr/local/plone334/buildout-cache/eggs/zc.buildout-1.4.3-py2.4.egg/zc/buildout/buildout.py", 
line 1333, in 
_open                                                                                         

    eresult = _open(base, extends.pop(0), seen, dl_options, 
override)                                   
  File 
"/usr/local/plone334/buildout-cache/eggs/zc.buildout-1.4.3-py2.4.egg/zc/buildout/buildout.py", 
line 1283, in _open
    path, is_temp = download(filename)
  File 
"/usr/local/plone334/buildout-cache/eggs/zc.buildout-1.4.3-py2.4.egg/zc/buildout/download.py", 
line 96, in __call__
    local_path, is_temp = self.download(url, md5sum, path)
  File 
"/usr/local/plone334/buildout-cache/eggs/zc.buildout-1.4.3-py2.4.egg/zc/buildout/download.py", 
line 173, in download
    tmp_path, headers = urllib.urlretrieve(url, tmp_path)
  File "/usr/local/plone334/Python-2.4/lib/python2.4/urllib.py", line 
89, in urlretrieve
    return _urlopener.retrieve(url, filename, reporthook, data)
  File "/usr/local/plone334/Python-2.4/lib/python2.4/urllib.py", line 
222, in retrieve
    fp = self.open(url, data)
  File "/usr/local/plone334/Python-2.4/lib/python2.4/urllib.py", line 
190, in open
    return getattr(self, name)(url)
  File "/usr/local/plone334/Python-2.4/lib/python2.4/urllib.py", line 
313, in open_http
    h.endheaders()
  File "/usr/local/plone334/Python-2.4/lib/python2.4/httplib.py", line 
798, in endheaders
    self._send_output()
  File "/usr/local/plone334/Python-2.4/lib/python2.4/httplib.py", line 
679, in _send_output
    self.send(msg)
  File "/usr/local/plone334/Python-2.4/lib/python2.4/httplib.py", line 
646, in send
    self.connect()
  File "/usr/local/plone334/Python-2.4/lib/python2.4/httplib.py", line 
614, in connect
    socket.SOCK_STREAM):
IOError: [Errno socket error] (-2, 'Name or service not known')
sysop at ita014vm10i:/usr/local/plone334/zeocluster$
==========================================

The altro.cfg file:
==========================================
[buildout]
extends = buildout.cfg deliverance/deliverance.cfg


# controllare di aver dato il comando:
# sudo apt-get install libsasl2-dev libcrypto++-dev libldap2-dev libssl-dev

eggs += plone.app.ldap
    Products.Poi
    Products.TinyMCE
    collective.plonetruegallery[picasa]
    collective.easyslider
    Products.gas3

zcml += plone.app.ldap
    collective.plonetruegallery
    collective.easyslider

############################################
# Development Eggs
# ----------------
# You can use paster to create "development eggs" to
# develop new products/themes. Put these in the src/
# directory.
# You will also need to add the egg names in the
# eggs section above, and may also need to add them
# to the zcml section.
#
# Provide the *paths* to the eggs you are developing here:
develop =
    src/Products.gas3

parts += i18noverrides
    supervisor
    pound-build
    pound
    varnish-build
    varnish

# aggiunte alla distribuzione

[versions]
Cheetah = 2.2.1
zc.recipe.cmmi = 1.2.1
# for plone truegallery
z3c.form = 1.9.0
zope.i18n = 3.4.0
zope.testing = 3.4.0
zope.component = 3.4.0
zope.securitypolicy = 3.4.0
zope.app.zcmlfiles = 3.4.3


[i18noverrides]
recipe = collective.recipe.i18noverrides
source = ${buildout:directory}/translations
destinations =
    ${client1:location}
    ${client2:location}

[pound-build]
recipe = plone.recipe.pound:build
# before do:
# apt-get install libssl-dev
#url = http://www.apsis.ch/pound/Pound-2.3.2.tgz
url = http://www.apsis.ch/pound/Pound-2.4.5.tgz

[pound]
recipe = plone.recipe.pound:config
daemon = 0
timeout = 90
balancers =
    QuiPlone 127.0.0.1:6180 127.0.0.1:6080 127.0.0.1:6081

[supervisor]
recipe = collective.recipe.supervisor

port = 6101
serverurl = http://msb02.msb.net:6101/supervisor
user = admin
password = drillococco

programs =
    10 zeoserver ${zeoserver:location}/bin/runzeo ${zeoserver:location}
    20 client1 ${client1:location}/bin/runzope ${client1:location} true
    30 client2 ${client2:location}/bin/runzope ${client2:location} true
    40 deliverance /usr/local/plone334/zeocluster/deliveranceStart.sh true
    50 pound ${buildout:directory}/bin/poundrun ${buildout:directory} true
    60 varnish ${buildout:directory}/bin/varnish ${buildout:directory} true

[varnish-build]
recipe = zc.recipe.cmmi
url = http://downloads.sourceforge.net/varnish/varnish-2.0.4.tar.gz

[varnish]
recipe = plone.recipe.varnish
daemon = ${buildout:directory}/parts/varnish-build/sbin/varnishd
bind = 0.0.0.0:6160
backends = 127.0.0.1:6170
telnet = 127.0.0.1:6161
cache-size = 1G
mode = foreground
=========================================

The deliverance.cfg file
=============================================
[buildout]
parts =
    deliverance-egg
    lxml
    deliverance


[versions]
lxml = 2.2.2
PasteScript = 1.7.3
z3c.recipe.staticlxml = 0.7.1
chardet = 1.0.1
DevAuth = 0.1
HTTPEncode = 0.1
Paste = 1.7.2
PasteDeploy = 1.3.3
Pygments = 1.1.1
Tempita = 0.4
WSGIFilter = 0.2
WSGIProxy = 0.2
WebError = 0.10.1
WebOb = 0.9.6.1
httplib2 = 0.5.0
py = 1.1.0
zc.recipe.cmmi = 1.2.1
infrae.subversion = 1.4.5


[deliverance-egg]
recipe = infrae.subversion
as_eggs = true
urls =
    http://codespeak.net/svn/z3/deliverance/trunk Deliverance


[lxml]
recipe = z3c.recipe.staticlxml
egg = lxml
force = false
libxml2-url = http://xmlsoft.org/sources/libxml2-2.7.6.tar.gz
libxslt-url = http://xmlsoft.org/sources/libxslt-1.1.26.tar.gz


[deliverance]
recipe = zc.recipe.egg:scripts
eggs =
    Deliverance

=============================================




-------------- next part --------------
A non-text attachment was scrubbed...
Name: mirtosilvio_busico.vcf
Type: text/x-vcard
Size: 272 bytes
Desc: not available
Url : http://lists.plone.org/pipermail/setup/attachments/20100208/ad6dbebc/mirtosilvio_busico.vcf


More information about the Setup mailing list