Univention Bugzilla – Bug 33542
App-center doesn't work through proxies
Last modified: 2014-01-29 11:20:34 CET
When the server can only reach the appcenter repository through a proxy installing or updating apps does not work. The Problem is that the appcenter is reaching out through https while the ucs variables sets only the http environment variables. Ticket#: 2013112221005825
Can the problem be reproduced with UCS 3.2? In the product tests for the App center, I tried the access via a proxy and that seemed to be fine.
The problem occured when trying to run "univention-add-app zarafa" according to http://download.zarafa.com/univention-zarafa-upgrade.html. The App Center was accessible through UMC. A simple test was to fetch https://appcenter.software-univention.de with wget. This fails as long as https_proxy is not set in the environment. At the time we added https_proxy manually in /etc/profile the wget test as well as univention-add-app succeeded. As far as I can see there is no definition of something like "proxy/https" in 3.2 and "proxy/http" will just create http_proxy in the environment. It might be worth checking if this could be a generic feature request as it does not just affect App Center access.
Fixed univention-add-app in univention-updater 9.0.38-5.1240.201401091119 YAML updated As for the generic feature request: Sounds reasonable. I did not fix it generically with this bug because of possible incompatibilities (and the numerous places that would need adjustments) within an errata update. I opened Bug#33879 for that.
OK, works as expected before: univention-add-app -l zarafa Traceback (most recent call last): File "/usr/sbin/univention-add-app", line 82, in <module> requested_app = Application.find(component_id) File "/usr/lib/pymodules/python2.6/univention/management/console/modules/appcenter/app_center.py", line 475, in find for application in cls.all(): File "/usr/lib/pymodules/python2.6/univention/management/console/modules/appcenter/app_center.py", line 612, in all cls._get_category_translations(fake=not localize) File "/usr/lib/pymodules/python2.6/univention/management/console/modules/appcenter/app_center.py", line 489, in _get_category_translations fp = urlopen(url) File "/usr/lib/pymodules/python2.6/univention/management/console/modules/appcenter/util.py", line 97, in urlopen return urllib2.urlopen(request) File "/usr/lib/python2.6/urllib2.py", line 126, in urlopen return _opener.open(url, data, timeout) File "/usr/lib/python2.6/urllib2.py", line 391, in open response = self._open(req, data) File "/usr/lib/python2.6/urllib2.py", line 409, in _open '_open', req) File "/usr/lib/python2.6/urllib2.py", line 369, in _call_chain result = func(*args) File "/usr/lib/python2.6/urllib2.py", line 1192, in https_open return self.do_open(httplib.HTTPSConnection, req) File "/usr/lib/python2.6/urllib2.py", line 1159, in do_open raise URLError(err) urllib2.URLError: <urlopen error [Errno -2] Name or service not known> after: univention-add-app -l zarafa 09.01.14 18:07:40.433 MODULE ( PROCESS ) : Downloading "https://appcenter.software-univention.de/meta-inf/3.2/index.json.gz"... OK - YAML
http://errata.univention.de/ucs/3.2/39.html