When setting up a new account, clicking "Load gmail folders" causes error

Bug #989838 reported by Ian Hincks
24
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Gmail Watcher
New
Undecided
Unassigned

Bug Description

I enter the email address and the password, and then click"Load gmail folders" and nothing happens. The traceback is

usr/lib/python2.7/dist-packages/gobject/constants.py:24: Warning: g_boxed_type_register_static: assertion `g_type_from_name (name) == 0' failed
  import gobject._gobject
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 504, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/lib/python2.7/dist-packages/gmailwatcher/app/preferences.py", line 108, in get_mail_folders
    M = imaplib2.IMAP4_SSL("imap.gmail.com", proxy_info=get_proxy_info())
  File "/usr/lib/python2.7/dist-packages/gmailwatcher/lib/imaplib2.py", line 1872, in __init__
    IMAP4.__init__(self, host, port, debug, debug_file, identifier, timeout, proxy_info)
  File "/usr/lib/python2.7/dist-packages/gmailwatcher/lib/imaplib2.py", line 308, in __init__
    self.open(host, port)
  File "/usr/lib/python2.7/dist-packages/gmailwatcher/lib/imaplib2.py", line 1884, in open
    self.sock = self.open_socket()
  File "/usr/lib/python2.7/dist-packages/gmailwatcher/lib/imaplib2.py", line 424, in open_socket
    raise socket.error(msg)
error: [Errno -5] No address associated with hostname

I am running 12.04 unity.

Ian Hincks (ian-hincks)
description: updated
Revision history for this message
Owais Lone (loneowais) wrote :

Looks like there is some sort of network issue. Are you behind proxy? If yes, how did you setup your system to use proxy?

Revision history for this message
Ian Hincks (ian-hincks) wrote : Re: [Bug 989838] Re: When setting up a new account, clicking "Load gmail folders" causes error

I am connected to my university's network; I am not sure what my proxy
details are, if any, but I have not set anything up on my end. Is there
some test I can run? I will try connecting again tonight when I am at home.

Thanks for your help!
Ian

On Fri, Apr 27, 2012 at 1:10 PM, Owais Lone <email address hidden> wrote:

> Looks like there is some sort of network issue. Are you behind proxy? If
> yes, how did you setup your system to use proxy?
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/989838
>
> Title:
> When setting up a new account, clicking "Load gmail folders" causes
> error
>
> Status in Gmail Watcher:
> New
>
> Bug description:
> I enter the email address and the password, and then click"Load gmail
> folders" and nothing happens. The traceback is
>
> usr/lib/python2.7/dist-packages/gobject/constants.py:24: Warning:
> g_boxed_type_register_static: assertion `g_type_from_name (name) == 0'
> failed
> import gobject._gobject
> Exception in thread Thread-1:
> Traceback (most recent call last):
> File "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner
> self.run()
> File "/usr/lib/python2.7/threading.py", line 504, in run
> self.__target(*self.__args, **self.__kwargs)
> File
> "/usr/lib/python2.7/dist-packages/gmailwatcher/app/preferences.py", line
> 108, in get_mail_folders
> M = imaplib2.IMAP4_SSL("imap.gmail.com", proxy_info=get_proxy_info())
> File "/usr/lib/python2.7/dist-packages/gmailwatcher/lib/imaplib2.py",
> line 1872, in __init__
> IMAP4.__init__(self, host, port, debug, debug_file, identifier,
> timeout, proxy_info)
> File "/usr/lib/python2.7/dist-packages/gmailwatcher/lib/imaplib2.py",
> line 308, in __init__
> self.open(host, port)
> File "/usr/lib/python2.7/dist-packages/gmailwatcher/lib/imaplib2.py",
> line 1884, in open
> self.sock = self.open_socket()
> File "/usr/lib/python2.7/dist-packages/gmailwatcher/lib/imaplib2.py",
> line 424, in open_socket
> raise socket.error(msg)
> error: [Errno -5] No address associated with hostname
>
> I am running 12.04 unity.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/gmailwatcher/+bug/989838/+subscriptions
>

Revision history for this message
Aatish (aatish) wrote :

I am having the same problem. It started after I forcibly quit gmailwatcher. After that when I reloaded it was no longer could access my email. I tried removing and adding my account, and received the error below. My internet connection is working fine and there are no proxies active. Any help would be very much appreciated, as gmailwatcher was working excellently until now.

/usr/lib/python2.7/dist-packages/gobject/constants.py:24: Warning: g_boxed_type_register_static: assertion `g_type_from_name (name) == 0' failed
  import gobject._gobject
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 504, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/lib/python2.7/dist-packages/gmailwatcher/app/preferences.py", line 108, in get_mail_folders
    M = imaplib2.IMAP4_SSL("imap.gmail.com", proxy_info=get_proxy_info())
  File "/usr/lib/python2.7/dist-packages/gmailwatcher/lib/imaplib2.py", line 1872, in __init__
    IMAP4.__init__(self, host, port, debug, debug_file, identifier, timeout, proxy_info)
  File "/usr/lib/python2.7/dist-packages/gmailwatcher/lib/imaplib2.py", line 308, in __init__
    self.open(host, port)
  File "/usr/lib/python2.7/dist-packages/gmailwatcher/lib/imaplib2.py", line 1884, in open
    self.sock = self.open_socket()
  File "/usr/lib/python2.7/dist-packages/gmailwatcher/lib/imaplib2.py", line 424, in open_socket
    raise socket.error(msg)
error: [Errno 111] Connection refused

Revision history for this message
Ian Hincks (ian-hincks) wrote :

I tried again from my home network (which I know for sure has no proxies) and the same thing happened. Let me if there is any more helpful information I can give!

Revision history for this message
Owais Lone (loneowais) wrote :

Can you please list all the settings under org.gnome.system.proxy ?
You'll have to use dconf-editor to read these.

    sudo apt-get install dconf-editor

Thanks!

On Tue, May 15, 2012 at 10:49 PM, Ian Hincks <email address hidden> wrote:
> I tried again from my home network (which I know for sure has no
> proxies) and the same thing happened. Let me if there is any more
> helpful information I can give!
>
> --
> You received this bug notification because you are subscribed to Gmail
> Watcher.
> https://bugs.launchpad.net/bugs/989838
>
> Title:
>  When setting up a new account, clicking "Load gmail folders" causes
>  error
>
> Status in Gmail Watcher:
>  New
>
> Bug description:
>  I enter the email address and the password, and then click"Load gmail
>  folders" and nothing happens.  The traceback is
>
>  usr/lib/python2.7/dist-packages/gobject/constants.py:24: Warning: g_boxed_type_register_static: assertion `g_type_from_name (name) == 0' failed
>    import gobject._gobject
>  Exception in thread Thread-1:
>  Traceback (most recent call last):
>    File "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner
>      self.run()
>    File "/usr/lib/python2.7/threading.py", line 504, in run
>      self.__target(*self.__args, **self.__kwargs)
>    File "/usr/lib/python2.7/dist-packages/gmailwatcher/app/preferences.py", line 108, in get_mail_folders
>      M = imaplib2.IMAP4_SSL("imap.gmail.com", proxy_info=get_proxy_info())
>    File "/usr/lib/python2.7/dist-packages/gmailwatcher/lib/imaplib2.py", line 1872, in __init__
>      IMAP4.__init__(self, host, port, debug, debug_file, identifier, timeout, proxy_info)
>    File "/usr/lib/python2.7/dist-packages/gmailwatcher/lib/imaplib2.py", line 308, in __init__
>      self.open(host, port)
>    File "/usr/lib/python2.7/dist-packages/gmailwatcher/lib/imaplib2.py", line 1884, in open
>      self.sock = self.open_socket()
>    File "/usr/lib/python2.7/dist-packages/gmailwatcher/lib/imaplib2.py", line 424, in open_socket
>      raise socket.error(msg)
>  error: [Errno -5] No address associated with hostname
>
>  I am running 12.04 unity.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/gmailwatcher/+bug/989838/+subscriptions

--
Owais Lone
<email address hidden>
http://www.owaislone.org

Revision history for this message
Ian Hincks (ian-hincks) wrote :

I didn't find org.gnome.system.proxy, but I did find just system.proxy. Not sure if this is the same thing? Anyways, the settings are as follows:

autoconfig-url blank
ignore-hosts ['localhost', '127.0.0.0/8']
mode none
use-same-proxy unchecked

Under the http subsection, there is one proxy defined, but its "enabled" field is set to "false". The ftp, https, socks subsections don't have anything.

Revision history for this message
Aatish (aatish) wrote :

I believe the issue does have to do with proxies.

I have the same settings as Ian in system.proxy (also couldn't find org.gnome.system.proxy), except that in https proxy, I had host set to localhost. Under both http and https settings, I clicked on localhost and pressed the 'set to default' button. Doing so appears to resolve the issue and gmailwatcher works.

However, this still appears to be a bug of some sort, because in my network settings, the proxy server is disabled. It seems that gmailwatcher is using the proxy hostname settings even though the proxy server is disabled. It would be nice if there was a way to have non-default proxy settings, and also use gmailwatcher.

Revision history for this message
Ian Hincks (ian-hincks) wrote :

Thanks Aatish, I hope it works for me too.

Would you mind clarifying where the "set to default" button is? It's not in dconf-editor that I can see...is it in the main system settings?

Revision history for this message
Ian Hincks (ian-hincks) wrote :

Just figured out how to fix it, Aatish. Like you said, I need to remove all proxies whether or not they are enabled. In vanilla unity from 12.04, I went to

System Settings -> Network -> Network proxy -> Manual

and deleted all proxy text fields, and reset all ports to 0. (Then switch back the method to "None")

Ian

Revision history for this message
Owais Lone (loneowais) wrote :

Actually the enabled boolean field is not supposed to be taken into
account. A proxy is said to be 'ON' if it has a non zero port and
host.

On Fri, May 18, 2012 at 3:12 AM, Ian Hincks <email address hidden> wrote:
> Just figured out how to fix it, Aatish. Like you said, I need to remove
> all proxies whether or not they are enabled. In vanilla unity from
> 12.04, I went to
>
> System Settings -> Network -> Network proxy -> Manual
>
> and deleted all proxy text fields, and reset all ports to 0. (Then
> switch back the method to "None")
>
> Ian
>
> --
> You received this bug notification because you are subscribed to Gmail
> Watcher.
> https://bugs.launchpad.net/bugs/989838
>
> Title:
>  When setting up a new account, clicking "Load gmail folders" causes
>  error
>
> Status in Gmail Watcher:
>  New
>
> Bug description:
>  I enter the email address and the password, and then click"Load gmail
>  folders" and nothing happens.  The traceback is
>
>  usr/lib/python2.7/dist-packages/gobject/constants.py:24: Warning: g_boxed_type_register_static: assertion `g_type_from_name (name) == 0' failed
>    import gobject._gobject
>  Exception in thread Thread-1:
>  Traceback (most recent call last):
>    File "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner
>      self.run()
>    File "/usr/lib/python2.7/threading.py", line 504, in run
>      self.__target(*self.__args, **self.__kwargs)
>    File "/usr/lib/python2.7/dist-packages/gmailwatcher/app/preferences.py", line 108, in get_mail_folders
>      M = imaplib2.IMAP4_SSL("imap.gmail.com", proxy_info=get_proxy_info())
>    File "/usr/lib/python2.7/dist-packages/gmailwatcher/lib/imaplib2.py", line 1872, in __init__
>      IMAP4.__init__(self, host, port, debug, debug_file, identifier, timeout, proxy_info)
>    File "/usr/lib/python2.7/dist-packages/gmailwatcher/lib/imaplib2.py", line 308, in __init__
>      self.open(host, port)
>    File "/usr/lib/python2.7/dist-packages/gmailwatcher/lib/imaplib2.py", line 1884, in open
>      self.sock = self.open_socket()
>    File "/usr/lib/python2.7/dist-packages/gmailwatcher/lib/imaplib2.py", line 424, in open_socket
>      raise socket.error(msg)
>  error: [Errno -5] No address associated with hostname
>
>  I am running 12.04 unity.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/gmailwatcher/+bug/989838/+subscriptions

--
Owais Lone
<email address hidden>
http://www.owaislone.org

Revision history for this message
Aatish (aatish) wrote :

I see. I was confused because all other http accessing apps (firefox, thunderbird, apt-get, etc.) obey the proxy enabled rule.

Thanks for your help.

Revision history for this message
Victor Mendonça (victorbrca) wrote :

I had the same issue with the network proxy. I find it hard to believe that a disabled setting should be taken into consideration.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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