Hello,

while builing Syncserver I receive timeouts while the build is
retrieving files.  I must use a proxy server and I managed to increase
the timeout of pip (which changed the error message):

export PIP_DEFAULT_TIMEOUT=60

But now I receive this error message after about 20 seconds:


Downloading/unpacking zope.interface>=3.8.0 (from pyramid==1.5->-r
requirements.txt (line 2))
Cleaning up...
Exception:
Traceback (most recent call last):
  File
"/root/mysources/repositories/syncserver/local/lib/python2.7/site-packages/pip/basecommand.py",
line 122, in main
    status = self.run(options, args)
  File
"/root/mysources/repositories/syncserver/local/lib/python2.7/site-packages/pip/commands/install.py",
line 278, in run
    requirement_set.prepare_files(finder,
force_root_egg_info=self.bundle, bundle=self.bundle)
  File
"/root/mysources/repositories/syncserver/local/lib/python2.7/site-packages/pip/req.py",
line 1197, in prepare_files
    do_download,
  File
"/root/mysources/repositories/syncserver/local/lib/python2.7/site-packages/pip/req.py",
line 1375, in unpack_url
    self.session,
  File
"/root/mysources/repositories/syncserver/local/lib/python2.7/site-packages/pip/download.py",
line 546, in unpack_http_url
    resp = session.get(target_url, stream=True)
  File
"/root/mysources/repositories/syncserver/local/lib/python2.7/site-packages/pip/_vendor/requests/sessions.py",
line 468, in get
    return self.request('GET', url, **kwargs)
  File
"/root/mysources/repositories/syncserver/local/lib/python2.7/site-packages/pip/download.py",
line 237, in request
    return super(PipSession, self).request(method, url, *args, **kwargs)
  File
"/root/mysources/repositories/syncserver/local/lib/python2.7/site-packages/pip/_vendor/requests/sessions.py",
line 456, in request
    resp = self.send(prep, **send_kwargs)
  File
"/root/mysources/repositories/syncserver/local/lib/python2.7/site-packages/pip/_vendor/requests/sessions.py",
line 559, in send
    r = adapter.send(request, **kwargs)
  File
"/root/mysources/repositories/syncserver/local/lib/python2.7/site-packages/pip/_vendor/requests/adapters.py",
line 378, in send
    raise ProxyError(e)
ProxyError: ('Cannot connect to proxy.', error(110, 'Connection timed out'))

Storing debug log for failure in /root/.pip/pip.log
make: *** [local] Error 2


How to increase the timeout of the build script itself?


With best regards

Uwe
_______________________________________________
Sync-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/sync-dev

Reply via email to