Fogger can not reach URL
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| Fogger |
High
|
Owais Lone |
Bug Description
Create new fog app fails with the Example stating URL could not be reached.
This is what -vv option dumps upon clicking the create button:
DEBUG:fogger_lib: get() 'No such app: 5e8a5709f662f8d
DEBUG:fogger: verify_url() 'Fetching url'
DEBUG:fogger: verify_url() 'starting'
DEBUG:fogger: verify_url() 'Error downloading url http://
Same results for other URLs - all of which can be opened in web browser. A proxy has not been set.
David Decker (daveshine) wrote : | #1 |
Changed in fogger: | |
status: | New → Triaged |
Giovanni Mellini (merlos) wrote : | #2 |
same problem for me. I have the same problem while launching fogger.
From terminal I can ping www.reddit.com while fogger tells me that it's impossible to fetch the url
giovanni@
PING a659.b.akamai.net (92.122.50.177) 56(84) bytes of data.
64 bytes from a92-122-
64 bytes from a92-122-
^C
--- a659.b.akamai.net ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 63.056/
giovanni@
giovanni@
DEBUG:fogger: set_up_logging() 'logging enabled'
/usr/lib/
Gtk.Window.
DEBUG:fogger_lib: connect_signals() 'connect builder by design 'image_eb', 'button-
DEBUG:fogger_lib: connect_signals() 'connect builder by design 'name_entry', 'changed', 'on_name_changed''
DEBUG:fogger_lib: connect_signals() 'connect builder by design 'name_entry', 'changed', 'validate_form''
DEBUG:fogger_lib: connect_signals() 'connect builder by design 'url_entry', 'changed', 'validate_form''
DEBUG:fogger_lib: connect_signals() 'connect builder by design 'create_button', 'clicked', 'on_create''
DEBUG:fogger_lib: do_connect() 'connect builder by name 'mnu_contents'
DEBUG:fogger_lib: do_connect() 'connect builder by name 'mnu_about'
DEBUG:fogger_lib: do_connect() 'connect builder by name 'mnu_close'
DEBUG:fogger_lib: do_connect() 'connect builder by name 'fogger_
DEBUG:fogger_lib: do_connect() 'connect builder by name 'fogger_
DEBUG:fogger_lib: log_unconnected
DEBUG:fogger_lib: log_unconnected
DEBUG:fogger_lib: log_unconnected
DEBUG:fogger_lib: log_unconnected
/usr/lib/
Gtk.Window.
DEBUG:fogger_lib: get() 'No such app: 5e8a5709f662f8d
DEBUG:fogger: verify_url() 'Fetching url'
DEBUG:fogger: verify_url() 'starting'
DEBUG:fogger: verify_url() 'Error downloading url http://
^C^C^CTraceback (most recent call last):
File "/opt/extras.
def on_destroy(self, widget, data=None):
KeyboardInterrupt
Changed in fogger: | |
importance: | Undecided → High |
Alex (aaaaalex) wrote : | #3 |
Just for the heck of it i tried again with a newly created user: Success.
It must be some configuration setting on user level causing this. After 'cleaning out' my configuration, i.e. hidden files i got it working. Sorry if this does not really help other than pointing in the right direction hopefully.
Giovanni Mellini (merlos) wrote : | #4 |
Ok I did some invastigation and I found the cause of the prioblem.
The problem is in the file /opt/extras.
Seems that the parameter proxies=proxies sent to the requests.get function is not well interpreted from the function itself.
On my system I have a proxy setup (just for my job) but when I go to my house I unset (via GUI) the proxy.
While trying fogger I unset the proxy but seems that the function get the wrong info from system
After modifying file /opt/extras.
line 193: response = requests.get(url, proxies=proxies)
modified line 193: response = requests.get(url)
Hope this help
Giovanni Mellini (merlos) wrote : | #5 |
The problem is in the helper function get_network_
The function read
settings = Gio.Settings.
and
settings = Gio.Settings.
that are local users settings, so create a new user without setting a proxy should work.
I'm looking at the code, hope I can fix this but I'm not a python programmer :)
Owais Lone (loneowais) wrote : | #6 |
How do you unset the proxy? Using which application?
Owais Lone (loneowais) wrote : | #7 |
Can you please paste the output of these 4 commands
gsettings get org.gnome.
gsettings get org.gnome.
gsettings get org.gnome.
gsettings get org.gnome.
Giovanni Mellini (merlos) wrote : | #8 |
I ha ve a working patch. Just wait I come back to home band I'll post
Giovanni
Owais Lone (loneowais) wrote : | #9 |
Thanks! Please post the output of the command above too.
Giovanni Mellini (merlos) wrote : | #10 |
No problem I did these commands too :)
Owais Lone (loneowais) wrote : | #11 |
Thanks Giovanni!
Giovanni Mellini (merlos) wrote : | #12 |
The attached patch for get_network_
Before return http and https host/port values we have to check the value of org.gnome.
In fact mode can be
- 'none' ==> proxies must be empty
- 'manual' ==> proxies contains host/port values, like current implementation
- 'auto' ==> we should read the autoconfig-url value. IMPORTANT: now the function returns an empty proxies array, this should be fixed (I have no test network to try this)
From terminal do this command
giovanni@
org.gnome.
org.gnome.
org.gnome.
org.gnome.
org.gnome.
org.gnome.
org.gnome.
org.gnome.
org.gnome.
org.gnome.
org.gnome.
org.gnome.
org.gnome.
org.gnome.
org.gnome.
org.gnome.
giovanni@
Giovanni Mellini (merlos) wrote : | #13 |
@Owais to switch proxy I use the Natwork Proxy interface under Network tab in System Settings
Owais Lone (loneowais) wrote : | #14 |
Thanks for figuring it out Giovanni,
I'll fix this soon and also add support for autoconfiguration proxy url. Till then anyone can use a workaround to just delete the proxy host address or port from control center
Changed in fogger: | |
assignee: | nobody → Owais Lone (loneowais) |
Giovanni Mellini (merlos) wrote : | #15 |
Ok thank you :)
Paul Calabro (pcalabro) wrote : | #16 |
Thanks Giovanni! That did the trick! :-D
Same here with me: facebook.com and evernote.com did not work yet... Installed Fogger via Software Center on 2012-08-07...