[Bug 1584158] Re: Click fails to create chroot behind proxy
Lionel duboeuf
lionel.duboeuf at gmail.com
Fri Feb 3 07:17:32 UTC 2017
sorry i thought i had pass trough proxy pb, but i have the same error with that command:
'sudo click chroot -a armhf -f ubuntu-sdk-15.04 create'
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to click in Ubuntu.
https://bugs.launchpad.net/bugs/1584158
Title:
Click fails to create chroot behind proxy
Status in click package in Ubuntu:
Confirmed
Bug description:
I'm using network proxy. On Ubuntu Xenial using the Ubuntu SDK from the
SDK team ppa the initial click kit creation fails with the error:
Traceback (most recent call last):
File "/usr/lib/python3.4/urllib/request.py", line 1182, in do_open
h.request(req.get_method(), req.selector, req.data, headers)
File "/usr/lib/python3.4/http/client.py", line 1088, in request
self._send_request(method, url, body, headers)
File "/usr/lib/python3.4/http/client.py", line 1126, in _send_request
self.endheaders(body)
File "/usr/lib/python3.4/http/client.py", line 1084, in endheaders
self._send_output(message_body)
File "/usr/lib/python3.4/http/client.py", line 922, in _send_output
self.send(msg)
File "/usr/lib/python3.4/http/client.py", line 857, in send
self.connect()
File "/usr/lib/python3.4/http/client.py", line 1223, in connect
super().connect()
File "/usr/lib/python3.4/http/client.py", line 834, in connect
self.timeout, self.source_address)
File "/usr/lib/python3.4/socket.py", line 512, in create_connection
raise err
File "/usr/lib/python3.4/socket.py", line 503, in create_connection
sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out
...
Command returned 1: schroot -u root -c source:click-ubuntu-
sdk-15.04-armhf -- /finish.sh
To solve the problem I had to manually run
click chroot -a armhf -f ubuntu-sdk-15.04 create --keep-broken-
chroot
then edit /var/lib/schroot/chroots/click-ubuntu-
sdk-15.04-armhf/finish.sh and add to the beginning of file:
export http_proxy="http://proxy:port"
then run /finish.sh via maint shell.
---
Possible solution is: modify ClickChroot._generate_finish_script and add
http_proxy environment variable.
Ubuntu 16.04 LTS
click version 0.4.43+16.04.20160203-0ubuntu3
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/click/+bug/1584158/+subscriptions
More information about the foundations-bugs
mailing list