Summary: | Kpackagekit Couldn't resolve proxy 'HTTP_PROXY' | ||
---|---|---|---|
Product: | [Applications] apper | Reporter: | Thomas Goettlicher <tgoettlicher> |
Component: | general | Assignee: | Daniel Nicoletti <dantti12> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | adawit, st99 |
Priority: | NOR | Keywords: | investigated, triaged |
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | openSUSE | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | 0.8.0 | |
Sentry Crash Report: |
Description
Thomas Goettlicher
2011-05-26 11:22:45 UTC
There are a lot of discussions, debugging and proposed workarounds in the comments of https://bugzilla.novell.com/show_bug.cgi?id=678993 Hi, I've installed openSuse the other day as kubuntu natty has some bug that makes my X hell of unstable, so, I didn't saw this issue there but when I used KPK there I found out wow why this is so slow! It is slow because for a bunch of operations the zypp backend does refresh your cache even if it refreshed a second ago, and as the proxy is set only on some operations, I imagine this might be the issue of the cause. Also suse is the only system that asks for auth to set proxies which might also mean something. Is there a way to make my fresh installation give me the same error so I can properly blame the right part of zypp backend? :P I get the same symptoms except the error message is Error message: Couldn't resolve proxy 'FTP_PROXY' Everything proxy related is commented out in /etc/kde4/share/config/kioslaverc /root/.kde4/share/config/kioslaverc /home/sultan/.kde4/share/config/kioslaverc I get the error message when I run kpk_update manually only I changed ~/.kde4/share/config/kioslaverc by uncommenting #[Proxy Settings] #ProxyType=1 and changing ProxyType to 0: [Proxy Settings] ProxyType=0 then restarted KDE session and it fixed the issue. Well it uses kde proxy settings, but were you using proxies? If so was the proxy working on konqueror for example? as it might be an issue where your backend doesn't get right the proxy vars... I have direct Internet connection and never configured proxies on this system. KDE settings / Proxy servers is configured to not use proxies and it has always been configured that way. hmm I'll do some tests today, the biggest problem here is that openSuse is the only distro that asks admin password to change the proxy settings, PackageKit shouldn't ask the proxy password but it seems it does, but I'm unsure what else if needed for this to work right when no proxy is set.. @daniel does kpackagekit use KProtocolManager to read the KDE proxy settings ? If so, then the issue is likely resolved by the recent changes I made to KProtocolManager::proxyForUrl and KProtocolManager::proxiesForUrl functions. Before this change, which is in the upcoming 4.7.3 release, calling those two functions did not take the proxy exception information into consideration. Now it does and so this problem should automatically resolve itself. However, if kpackagekit directly reads the KIO proxy configuration file, then it must take the proxy exception list ('NoProxyFor') and flag ('ReverseException') into consideration. I highly recommend against reading the configuration file directly since it can change at any given time in the future. Apper 0.8.0 certanly has this issue fixed as it has now a watcher for this proxy file that asks for a reparse of the config when needed. This bug has had its resolution changed, but accidentally has been left in NEEDSINFO status. I am thus closing this bug and setting the status as RESOLVED to reflect the resolution change. |