[Bug 1584158] [NEW] Click fails to create chroot behind proxy
Denis A. Grigoriev
1584158 at bugs.launchpad.net
Fri May 20 17:45:58 UTC 2016
Public bug reported:
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
** Affects: click (Ubuntu)
Importance: Undecided
Status: New
** Description changed:
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)
+ 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
+ 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:
+ 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"
+ 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
--
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:
New
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