Insufficient http-proxy detection

Bug #774406 reported by Jeffrey Preletz
50
This bug affects 9 people
Affects Status Importance Assigned to Milestone
Weather Indicator
Status tracked in 2.0
2.0
Fix Released
Medium
Unassigned

Bug Description

Ubuntu 11.04 64 bit.

Entering any location, zip code or city/state (New York, NY) returns no results. It does not even appear to perform a search.

Reinstalled application. Deleted weather-indicator database and restarted. Still no success.

Related branches

Revision history for this message
Panagiotis Skintzos (ph7) wrote :

Can you please attach the indicator-weather.log (found in ~/.cache)?

Revision history for this message
Jeffrey Preletz (jumpgroup) wrote :

Attached the log. You're probably looking for:

[MainThread] 2011-04-30 15:19:13,878 - DEBUG - Assistant: looking for location '20147'
[MainThread] 2011-04-30 15:19:13,883 - ERROR - Assistant: error reaching url 'http://api.geonames.org/searchJSON?q=20147&featureClass=P&maxRows=10&lang=en&username=indicatorweather'
[MainThread] 2011-04-30 15:19:23,358 - DEBUG - Assistant: looking for location '20147'
[MainThread] 2011-04-30 15:19:23,359 - ERROR - Assistant: error reaching url 'http://api.geonames.org/searchJSON?q=20147&featureClass=P&maxRows=10&lang=en&username=indicatorweather'
[MainThread] 2011-04-30 15:19:41,861 - DEBUG - Assistant: looking for location 'ashburn, va'
[MainThread] 2011-04-30 15:19:41,862 - ERROR - Assistant: error reaching url 'http://api.geonames.org/searchJSON?q=ashburn%2C%20va&featureClass=P&maxRows=10&lang=en&username=indicatorweather'
[MainThread] 2011-04-30 15:19:44,919 - DEBUG - Assistant: looking for location 'ashburn, va'
[MainThread] 2011-04-30 15:19:44,920 - ERROR - Assistant: error reaching url 'http://api.geonames.org/searchJSON?q=ashburn%2C%20va&featureClass=P&maxRows=10&lang=en&username=indicatorweather'
[MainThread] 2011-04-30 15:20:22,318 - DEBUG - Assistant: looking for location 'sterling, va'
[MainThread] 2011-04-30 15:20:22,318 - ERROR - Assistant: error reaching url 'http://api.geonames.org/searchJSON?q=sterling%2C%20va&featureClass=P&maxRows=10&lang=en&username=indicatorweather'

Revision history for this message
Jeffrey Preletz (jumpgroup) wrote :

The URL is accessible through a browser. Prompts for a JSON file download.

Revision history for this message
Vadim Rutkovsky (roignac) wrote : Re: [Bug 774406] Re: Select a Location in Set Up Weather does not return results for either Yahoo or Google

As far as I see, you are using proxy.

Could you please paste here an output of 'gsettings list-recursively
org.gnome.system.proxy' command and specify your proxy settings?

For Devs: I guess, we should include proxy settings in Apport reports, if
available

Revision history for this message
Jeffrey Preletz (jumpgroup) wrote : Re: Select a Location in Set Up Weather does not return results for either Yahoo or Google

Here it is:

~$ gsettings list-recursively org.gnome.system.proxy
org.gnome.system.proxy autoconfig-url ''
org.gnome.system.proxy ignore-hosts ['localhost', '127.0.0.0/8']
org.gnome.system.proxy mode 'manual'
org.gnome.system.proxy use-same-proxy true
org.gnome.system.proxy.ftp host ''
org.gnome.system.proxy.ftp port 0
org.gnome.system.proxy.http authentication-password ''
org.gnome.system.proxy.http authentication-user ''
org.gnome.system.proxy.http enabled true
org.gnome.system.proxy.http host ''
org.gnome.system.proxy.http port 80
org.gnome.system.proxy.http use-authentication false
org.gnome.system.proxy.https host ''
org.gnome.system.proxy.https port 0
org.gnome.system.proxy.socks host ''
org.gnome.system.proxy.socks port 0

Revision history for this message
Jeffrey Preletz (jumpgroup) wrote :

 I'm running Privoxy on port 8118 (default).

Revision history for this message
Jeffrey Preletz (jumpgroup) wrote :

disabled Prixoxy just to test and am still not getting a connection to the server.

[MainThread] 2011-05-01 12:31:45,519 - ERROR - Assistant: error reaching url 'http://api.geonames.org/searchJSON?q=20147&featureClass=P&maxRows=10&lang=en&username=indicatorweather

Revision history for this message
Panagiotis Skintzos (ph7) wrote :

The problem is that although you have proxy enabled, the host setting ('org.gnome.system.proxy.http host') is empty.
Also you say that port is 8118, but the settings 'org.gnome.system.proxy.http port' indicate port 80.
How do you enable/disable the proxy? Do you use Ubuntu's "Network Proxy" dialog? I suppose not, because the settings are not correct.

Revision history for this message
Jeffrey Preletz (jumpgroup) wrote :

Proxy is enabled automatically in inet.d (or manually through 'service privoxy start'). Browsers are configured to use port 8118 for http(s).

I have never set the proxy in Ubuntu. In fact, by default, it was set to 'manual' with no entries. I changed it to direct Internet; the gsettings output did not change. I then manually shut down Privoxy and still could not access the location database.

Revision history for this message
Panagiotis Skintzos (ph7) wrote :

I see. It's weird that when you change it to manual the gsettings output did not change (specifically the "org.gnome.system.proxy.http enabled true"). I have never used privoxy; I'll try it.
We'll change the code so that if proxy host is empty we skip using a proxy.

In the meantime, enable your proxy and manually set the host to "localhost" and port to "8118".
This should make it work.

Revision history for this message
Panagiotis Skintzos (ph7) wrote :

After further investigation, it seems that the dconf proxy settings are not taken into account in natty. Gnome network-proxy still uses gconf and so should we.

Jeffrey, here is how to disable the proxy in dconf settings:
gsettings set "org.gnome.system.proxy.http" enabled false

After that restart the indicator and you should not have a problem.

summary: - Select a Location in Set Up Weather does not return results for either
- Yahoo or Google
+ Insufficient http-proxy detection
Changed in weather-indicator:
status: New → Confirmed
importance: Undecided → Medium
assignee: nobody → Panagiotis Skintzos (ph7)
Changed in weather-indicator:
status: Confirmed → In Progress
Revision history for this message
Jeffrey Preletz (jumpgroup) wrote :

That did it. Thank you for your assistance.

Changed in weather-indicator:
status: In Progress → Fix Committed
Revision history for this message
Fredrik Stahre (fredrik-stahre) wrote :
Download full text (3.4 KiB)

I have the same problem and I have tried "gsettings set "org.gnome.system.proxy.http" enabled false" without success.

OS: Ubuntu 11.04 64 bit

indicator-weather.log output:
[MainThread] 2011-06-09 07:52:37,957 - INFO - ------------------------------
[MainThread] 2011-06-09 07:52:37,957 - INFO - Started Weather Indicator from /usr
[MainThread] 2011-06-09 07:52:37,957 - INFO - Weather Indicator version 11.05.31 'Cloudy 8'
[MainThread] 2011-06-09 07:52:37,957 - DEBUG - SingleInstance: writing new pid 24060
[MainThread] 2011-06-09 07:52:37,969 - DEBUG - ProxyMonitor: loading gconf settings
[MainThread] 2011-06-09 07:52:37,969 - ERROR - ProxyMonitor: empty proxy host!
[MainThread] 2011-06-09 07:52:37,970 - DEBUG - ProxyMonitor: using direct connection
[MainThread] 2011-06-09 07:52:37,970 - DEBUG - TimeFormatter: loading indicator-datetime settings: com.canonical.indicator.datetime
[MainThread] 2011-06-09 07:52:37,971 - DEBUG - Time Formatter: time format changed
[MainThread] 2011-06-09 07:52:37,971 - DEBUG - Indicator: creating
[MainThread] 2011-06-09 07:52:37,974 - INFO - Monitoring UPower interface
[MainThread] 2011-06-09 07:52:37,975 - DEBUG - Indicator: reading settings
[MainThread] 2011-06-09 07:52:37,975 - DEBUG - Settings: preparing settings store
[MainThread] 2011-06-09 07:52:37,975 - DEBUG - Settings: getting value for refresh_rate
[MainThread] 2011-06-09 07:52:37,975 - DEBUG - Settings: getting value for unit
[MainThread] 2011-06-09 07:52:37,975 - DEBUG - Settings: getting value for notif
[MainThread] 2011-06-09 07:52:37,975 - DEBUG - Settings: getting value for wind
[MainThread] 2011-06-09 07:52:37,975 - DEBUG - Settings: getting value for data_source
[MainThread] 2011-06-09 07:52:37,975 - DEBUG - Settings: getting value for placechosen
[MainThread] 2011-06-09 07:52:37,975 - DEBUG - Settings: getting value for places
[MainThread] 2011-06-09 07:52:37,976 - DEBUG - Settings: getting value for show_label
[MainThread] 2011-06-09 07:52:37,976 - DEBUG - Preferences: got settings: rate=5, unit=S, notif=N, wind=mps, placechosen=0, places=[]
[MainThread] 2011-06-09 07:52:37,976 - DEBUG - Indicator: could not parse places
[MainThread] 2011-06-09 07:52:37,976 - DEBUG - Indicator: making a menu for no places
[MainThread] 2011-06-09 07:52:47,801 - DEBUG - Indicator: open Preferences
[MainThread] 2011-06-09 07:52:47,802 - DEBUG - Preferences: creating
[MainThread] 2011-06-09 07:52:47,816 - DEBUG - Preferences: finishing initialization
[MainThread] 2011-06-09 07:52:47,816 - DEBUG - Preferences: got settings: unit=S, notif=N, wind=mps, rate=5, source=Y
[MainThread] 2011-06-09 07:52:47,817 - DEBUG - Preferences: Loading places
[MainThread] 2011-06-09 07:52:53,499 - DEBUG - Preferences: Add location clicked
[MainThread] 2011-06-09 07:52:53,499 - DEBUG - Assistant: creating new Assistance instance
[MainThread] 2011-06-09 07:52:53,504 - DEBUG - Assistant: finishing initialization
[MainThread] 2011-06-09 07:52:53,504 - DEBUG - Assistant: setting up location combobox
[MainThread] 2011-06-09 07:52:53,517 - DEBUG - Assistant: moved to page 0
[MainThread] 2011-06-09 07:52:53,517 - DEBUG - Assistant: moved to page 1
[MainThread] 2011-06-09 07:52:53,517 - DEBUG ...

Read more...

Revision history for this message
Vadim Rutkovsky (roignac) wrote : Re: [Bug 774406] Re: Insufficient http-proxy detection

Please, make sure you have update to the latest build in Stable PPA.
Also, the proxy settings are being read from gconf - and it seems that you
have enabled the proxy support, but specified an empty proxy host. Please
try specifying correct proxy settings in Gnome Network Settings

Revision history for this message
Fredrik Stahre (fredrik-stahre) wrote :

Thank you for the fast reply!

I have build "Weather Indicator version 11.05.31 'Cloudy 8'" and I have tried to change the network settings and verify the changes with "gsettings list-recursively org.gnome.system.proxy" but I don't see the changes there.

Revision history for this message
Vadim Rutkovsky (roignac) wrote :

The changes will be saved in gconf (not dconf) - check out the output of 'gconftool-2 --dump /system/proxy' - the settings should be saved there

Revision history for this message
Fredrik Stahre (fredrik-stahre) wrote :

Thank you it works now, I think that it maybe to a while for my settings to take affect on my system.

Revision history for this message
Fredrik Stahre (fredrik-stahre) wrote :

Hi again,

when I start indicator-weather I get this error in the indicator-weather.log:
[MainThread] 2011-08-11 10:41:03,005 - DEBUG - ProxyMonitor: loading gconf settings
[MainThread] 2011-08-11 10:41:03,005 - ERROR - ProxyMonitor: empty proxy host!

If I look in gconf-editor I can see that my proxy settings is there but they don't seem to be applied. Do you know what might be the problem?

Revision history for this message
Todd Bradshaw (snooptodd) wrote :

Im running Ubuntu 12.04 and indicator-weather doesn't seem to detect the proxy correctly.

todd@toddlaptop:~$ gsettings list-recursively org.gnome.system.proxy
org.gnome.system.proxy autoconfig-url 'http://autoconfig.bankone.net'
org.gnome.system.proxy ignore-hosts ['localhost', '127.0.0.0/8']
org.gnome.system.proxy mode 'auto'
org.gnome.system.proxy use-same-proxy false
org.gnome.system.proxy.ftp host ''
org.gnome.system.proxy.ftp port 0
org.gnome.system.proxy.http authentication-password ''
org.gnome.system.proxy.http authentication-user ''
org.gnome.system.proxy.http enabled false
org.gnome.system.proxy.http host ''
org.gnome.system.proxy.http port 8080
org.gnome.system.proxy.http use-authentication false
org.gnome.system.proxy.https host ''
org.gnome.system.proxy.https port 0
org.gnome.system.proxy.socks host ''
org.gnome.system.proxy.socks port 0

[MainThread] 2012-04-25 05:44:08,915 - INFO - ------------------------------
[MainThread] 2012-04-25 05:44:08,981 - INFO - Started Weather Indicator from /usr
[MainThread] 2012-04-25 05:44:08,981 - INFO - Weather Indicator version 11.11.28 'Cloudy 9'
[MainThread] 2012-04-25 05:44:08,981 - DEBUG - SingleInstance: writing new pid 2457
[MainThread] 2012-04-25 05:44:08,985 - DEBUG - ProxyMonitor: loading gconf settings
[MainThread] 2012-04-25 05:44:08,986 - DEBUG - ProxyMonitor: using direct connection
[MainThread] 2012-04-25 05:44:08,986 - DEBUG - TimeFormatter: loading indicator-datetime settings: com.canonical.indicator.datetime

Revision history for this message
Balaji Natarajan (balaji-tvr) wrote :
Download full text (6.6 KiB)

I also face similar issue but this is not only in 12.04 and even in 11.10 too. Let me explain bit more on what I face exactly..

The indicator-weather is not working when I use the office laptop at home. Office laptop is set to http_proxy at login time.
But, it works fine from office network though proxy is set.

Other scenario:
But for my colleague the indicator-weather works fine in home network BUT in office.

The difference between both of us is, the application installation time. I installed this app from office network and he installed it from home network. The system wide proxy is set to an "Automatic" during install time.

Looks like, at install time, it finds and stores the proxy settings and doesn't use the gnome network settings later.

I also tried to uninstall "with complete removal option checked in synaptic" but looks like its not removing completely. When I re-install, I see the same behavior and many of my settings are retained.

Any help to solve this problem, pls?

Log snippet (.cache/indicator-weather.log):
--------------------------------------------------------------

[MainThread] 2012-05-03 09:11:07,846 - INFO - Started Weather Indicator from /usr
[MainThread] 2012-05-03 09:11:07,846 - INFO - Weather Indicator version 11.11.28 'Cloudy 9'
[MainThread] 2012-05-03 09:11:07,846 - DEBUG - SingleInstance: writing new pid 3536
[MainThread] 2012-05-03 09:11:07,851 - DEBUG - ProxyMonitor: loading gconf settings
[MainThread] 2012-05-03 09:11:07,851 - DEBUG - ProxyMonitor: using simple proxy: espcolo-webproxy00.europe.nokia.com:8080
[MainThread] 2012-05-03 09:11:07,852 - DEBUG - TimeFormatter: loading indicator-datetime settings: com.canonical.indicator.datetime
[MainThread] 2012-05-03 09:11:07,852 - DEBUG - Time Formatter: time format changed
[MainThread] 2012-05-03 09:11:07,852 - DEBUG - Indicator: creating
[MainThread] 2012-05-03 09:11:07,856 - INFO - Monitoring UPower interface
[MainThread] 2012-05-03 09:11:07,856 - DEBUG - Indicator: reading settings
[MainThread] 2012-05-03 09:11:07,856 - DEBUG - Settings: preparing settings store
[MainThread] 2012-05-03 09:11:07,856 - DEBUG - Settings: getting value for refresh_rate
[MainThread] 2012-05-03 09:11:07,857 - DEBUG - Settings: getting value for unit
[MainThread] 2012-05-03 09:11:07,860 - DEBUG - Settings: getting value for notif
[MainThread] 2012-05-03 09:11:07,860 - DEBUG - Settings: getting value for wind
[MainThread] 2012-05-03 09:11:07,860 - DEBUG - Settings: getting value for data_source
[MainThread] 2012-05-03 09:11:07,860 - DEBUG - Settings: getting value for placechosen
[MainThread] 2012-05-03 09:11:07,860 - DEBUG - Settings: getting value for places
[MainThread] 2012-05-03 09:11:07,860 - DEBUG - Settings: getting value for show_label
[MainThread] 2012-05-03 09:11:07,860 - DEBUG - Preferences: got settings: rate=2, unit=S, notif=N, wind=kph, placechosen=0, places=[['638242', 'Berlin'], ['55925605', 'Chennai'], ['1062617', 'Singapore']]
[MainThread] 2012-05-03 09:11:07,861 - DEBUG - Indicator: menu_normal: filling in a menu for found places
[MainThread] 2012-05-03 09:11:07,863 - DEBUG - Indicator: menu_normal: adding first location menu item 'Berlin'
[MainThread] 2012-05-...

Read more...

Joshua Tasker (jtasker)
no longer affects: weather-indicator/3.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.