On 13/07/2014 4:41 AM, [email protected] wrote: > 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: > [..snip..] > "/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?
You could try editing the Makefile to pass the --timeout option directly to pip. Where we currently have: INSTALL = $(ENV)/bin/pip install Add an argument to it like so: INSTALL = $(ENV)/bin/pip install --timeout=60 Pip also appears to have a --proxy option which may be useful for you, try adding it in the Makefile like: INSTALL = $(ENV)/bin/pip install --proxy="user:[email protected]:port" Hope this helps, Ryan _______________________________________________ Sync-dev mailing list [email protected] https://mail.mozilla.org/listinfo/sync-dev

