Bug 678993

Summary: Kpackagekit Couldn't resolve proxy 'HTTP_PROXY' for http://download.opensuse.org/update/11.4/repodata/repomd.xm
Product: [openSUSE] openSUSE 11.4 Reporter: A E <taeknimadur>
Component: MaintenanceAssignee: Thomas Göttlicher <tgoettlicher>
Status: VERIFIED UPSTREAM QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: contezero, GeoBaltz, kolAflash, luca.gugelmann, michael_denker, nico.kruber, pozunmv, tgoettlicher
Version: Final   
Target Milestone: ---   
Hardware: x86-64   
OS: SUSE Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description A E 2011-03-11 19:41:08 UTC
User-Agent:       Mozilla/5.0 (X11; Linux x86_64; rv:2.0b12) Gecko/20110222 Firefox/4.0b12

After a fresh install of OpenSuSE 11.4, Kpackagekit informs the availability of 10 patches. Upon clicking the system tray icon I am prompted to enter the root password. After entering the root password I get information about problems connection to software source. Pressing Details gives the following info:

Download (curl) error for 'http://download.opensuse.org/update/11.4/repodata/repomd.xml':
Error code: Connection failed
Error message: Couldn't resolve proxy 'HTTP_PROXY'

Internet connection is working fine and the computer has been restarted since the installation of OpenSuSE 11.4.


Reproducible: Always

Steps to Reproduce:
1.Press the KpackageKit icon when updates are available.
2.Enter the root password.
3.Observe the given error message.
Actual Results:  
The described error message is given.

Expected Results:  
The listed patches are applied.

I have added the following repositories:
Packman (For Mplayer)
NVIDIA (For drivers)
Factory:Contrib (For Chromium)
Comment 1 Michael Denker 2011-03-14 13:52:25 UTC
I can reproduce this bug on a system that is updated from 11.3, and with a different set of repositories.

Successive systematic disabling of various repositories does not affect the bug happening.

In /etc/sysconfig, *_PROXY settings (HTTP_PROXY,...) are all empty, and PROXY_ENABLED is "no", NO_PROXY is set to "localhost, 127.0.0.1".
Comment 2 Matt Pozun 2011-03-15 00:38:47 UTC
I can also reproduce this on a system that was updated from 11.3x86_64, however I also have a second system that was upgraded that does not have the issue.

Ive read reports of the issue being resolved by removing ~/,kde4/share/config/kioslaverc, however this resolution didnt work for me.  I did notice that in this file on the machine that wasnt working it had an additional Proxy Settings block to it with ProxyType=1

[$Version]
update_info=kioslave.upd:kde2.2/r1,kioslave.upd:kde2.2/r2,kioslave.upd:kde2.2/r3

[Proxy Settings]
ProxyType=1

I removed those lines from the file to match the one on the working machine but it didnt resolve the issue.

Also an additional detail, the machines are quite different but the one thing that stands out is that on the machine that didnt have the problem I am using the traditional ifconfig to control my network, on the machine with the problem I am using network manager.

Both machines have the same repos setup and on the one where kpackagekit doesnt work, I have no problems using zypper/yast.
Comment 3 Michael Denker 2011-03-15 16:42:31 UTC
I can verify that removing ~/,kde4/share/config/kioslaverc did not solve the problem.

I, too, connect via Network Manager.

I can verify that changing the connection method to ifup scheme (wireless connection), KPackageKit seems to work as expected.
Comment 4 Nico Kruber 2011-03-16 08:49:14 UTC
same here - all my machines connect via networkmanager and have this bug
(the old updater applet, still available in KDF) is also affected)

as this is also keeping users from receiving updates, I'd consider this bug as critical
Comment 5 Michael Denker 2011-03-16 14:17:41 UTC
I can add to my previous post:
I switched back from ifup to Network manager in Yast.
Now, everything seems to work fine, even after a reboot. KPackagekit checks for updates and installs them without problems.

Could somebody verify this as a temporary solution (this is what I think I did):
1) Switch to ifup method in Yast Network and connect.
2) Start KPackagekit, check for updates and/or install some
3) Switch back to Network Manager in Yast, and check if it works.
Comment 6 Matt Pozun 2011-03-16 21:09:49 UTC
I switched network to ifup and verified I had a working internet connection.  I started kpackagekit but still had the HTTP_PROXY error message (even after restarting kde).  Then I switched back to networkmanager and restarted kde and kpackagekit now works.
Comment 7 kolA flash 2011-03-19 20:49:17 UTC
My workaround:
Open the KDE systemsettings (german Systemeinstellungen),
choose "Networksettings" (german Netzwerkeinstellungen), then "Proxy" and
activated "Directly connected to the Internet" (german "Direkt mit dem Internet
verbunden").

BUT ATTENTION: I'm not sure, if that maybe caused this problem on my system:
https://bugzilla.novell.com/show_bug.cgi?id=679650
Comment 8 Michele Cherici 2011-03-29 08:56:25 UTC
I've this bug after update (from 11.3), workaround suggested on previous posts didn't work for me.
The real big problem with this bug is that in my PC Kpackagekit system tray doesn't appear at all (I've seen the error going to KDE system settings), so you are not advised that there are problems with system updates.
This is really a wrong behavior for a program that does system updates, it has never happened with previous SUSE Update applet.
I think severity of the bug should be raised from 'normal' to 'critical'
Comment 9 George Baltz 2011-03-30 18:27:38 UTC
Same problem here (resolving HTTP_PROXY in KPackageKit) on a system with fresh install of 11.4M6 & update to 11.4 Release.

I was able to solve it by editing out the entire [Proxy Settings] stanza from ~/.kde4/share/config/kioslaverc, then logout/login.

When I ran KPackageKit after login, I was immediately given the "Authorization required to set Proxy" window asking for root password, which I canceled as I don't use any proxies.
Comment 10 George Baltz 2011-03-31 20:36:19 UTC
OK, now I'm thoroughly confused.   KPackagekit worked yesterday afternoon, but today when I booted this laptop, it was back to failing to resolve HTTP_PROXY.  While I was busy looking at various files, every few minutes I'd see a transient window pop up asking for Authentication required to set proxy (or whatever that message is - it went away before I could record it).  I did note that .kde4/share/config/kioslaverc was as I edited it - no [Proxy Settings].  Then I fired up konqueror to read the KDE help, and next time I looked at the kioslaverc, the [Proxy settings] was back.  I repeated the edit to remove it, logged out and back in, and now KPackageKit is working!

Where is the reference to HTTP_PROXY coming from?
Comment 11 Luca Gugelmann 2011-04-01 10:32:45 UTC
I think I figured this one out.

KPackageKit does the repo-updates as root, so your user's proxy settings have no effect on root.

If root has no .kde4/share/config/kioslaverc then it takes the default in /etc/kde4/... and that one has the dreaded HTTP_PROXY in it.

A workaround is to create a .kde4/share/config folder in /root/  and copy your user's kioslaverc to there.

Another would probably be to log in to KDE as root and fix the proxy settings. This should also write out a working kioslaverc.

Why the defaults in /etc/kde4 are broken is probably the real question here.
Comment 12 George Baltz 2011-04-01 16:34:10 UTC
That didn't help in my case.  I have the same .kde4/share/config/kioslaverc (without [Proxy Settings]) in both ~ and ~root.  But I still can't get kpackagekit to run from my desktop - just tried it, and 'can't resolve HTTP_PROXY'.
Comment 13 Thomas Göttlicher 2011-05-26 09:24:58 UTC
Reported this bug upstream:
https://bugs.kde.org/show_bug.cgi?id=274184