Unable to validate connection error

Bug #1160708 reported by tushar
44
This bug affects 9 people
Affects Status Importance Assigned to Milestone
Geary
Incomplete
Undecided
Unassigned

Bug Description

when i try to add account Gmail or Yahoo both same error "Unable to validate connaection error" In Terminal Log Error
tush@home:~$ geary

** Message: smtp-client-session.vala:80: Unable to QUIT: Not connected to smtp.gmail.com/default:465

Using ElementaryOS 64bit Linux home 3.5.0-26-generic #42~precise1-Ubuntu SMP Mon Mar 11 22:17:58 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

Revision history for this message
tushar (sharma-tushar) wrote :
Revision history for this message
Jim Nelson (yorba-jim) wrote :

tushar contacted me directly. From his error log, it currently looks like a DNS problem. Still waiting on more information from him to diagnose.

Changed in geary:
status: New → Incomplete
Revision history for this message
tushar (sharma-tushar) wrote :

Jim, i don't think its DNS issue, tried with different 3G via tethering but same issue.

Revision history for this message
Jim Nelson (yorba-jim) wrote :

Can you connect with another email client, like Thunderbird?

If so, please send me the log file generated by running this at the console:

$ geary --debug --log-network > geary.log

Thanks!

Revision history for this message
tushar (sharma-tushar) wrote :

 [deb] 11:22:46 libindicate.vala:25: Using libindicate for messaging menu support w/ .desktop file /usr/share/applications/geary.desktop
 [deb] 11:22:46 unity-launcher.vala:44: set unity launcher entry count to 0
 [deb] 11:22:46 geary-controller.vala:660: No accounts found.
 [deb] 11:22:46 conversation-web-view.vala:216: Loading new message viewer style from /home/tush/.config/geary/user-message.css...
 [deb] 11:23:07 imap-client-session.vala:1162: [ClientSession:0000/imap.gmail.com/default:993/GEARY_IMAP_CLIENT_CONNECTION_STATE_UNCONNECTED [GEARY_IMAP_CLIENT_SESSION_STATE_CONNECTING]] Connecting send error, dropping client connection: Error resolving '': No address associated with hostname
 [deb] 11:23:07 geary-engine.vala:220: Error connecting to IMAP server: Error resolving '': No address associated with hostname
 [deb] 11:23:07 geary-engine.vala:254: Error validating SMTP account info: Error resolving '': No address associated with hostname
 [deb] 11:23:07 geary-application.vala:211: Validation failed. Prompting user for revised account information
 [deb] 11:23:26 geary-application.vala:223: User entered revised account information, retrying validation
 [deb] 11:23:26 imap-client-session.vala:1162: [ClientSession:0001/imap.gmail.com/default:993/GEARY_IMAP_CLIENT_CONNECTION_STATE_UNCONNECTED [GEARY_IMAP_CLIENT_SESSION_STATE_CONNECTING]] Connecting send error, dropping client connection: Error resolving '': No address associated with hostname
 [deb] 11:23:26 geary-engine.vala:220: Error connecting to IMAP server: Error resolving '': No address associated with hostname
 [deb] 11:23:26 geary-engine.vala:254: Error validating SMTP account info: Error resolving '': No address associated with hostname
 [deb] 11:23:26 geary-application.vala:211: Validation failed. Prompting user for revised account information
 [deb] 11:23:27 geary-application.vala:279: User refused to enter account information. Exiting...

tushar (sharma-tushar)
summary: - Unable to validate connaection error
+ Unable to validate connection error
Revision history for this message
Jim Nelson (yorba-jim) wrote :

This is the line that's bothering me:

Error resolving '': No address associated with hostname

There's supposed to be a machine name between the two quotes ''. It looks like no name is present at all, which doesn't make any sense.

Can you try with a direct connection, i.e. no 3G tethering?

Revision history for this message
tushar (sharma-tushar) wrote :

Same issue using direct LAN Cable. One thing i use BleachBit(as root).

 [deb] 12:24:21 libindicate.vala:25: Using libindicate for messaging menu support w/ .desktop file /usr/share/applications/geary.desktop
 [deb] 12:24:21 unity-launcher.vala:44: set unity launcher entry count to 0
 [deb] 12:24:21 geary-controller.vala:660: No accounts found.
 [deb] 12:24:21 conversation-web-view.vala:216: Loading new message viewer style from /home/tush/.config/geary/user-message.css...
 [deb] 12:24:37 imap-client-session.vala:1162: [ClientSession:0000/imap.mail.yahoo.com/default:993/GEARY_IMAP_CLIENT_CONNECTION_STATE_UNCONNECTED [GEARY_IMAP_CLIENT_SESSION_STATE_CONNECTING]] Connecting send error, dropping client connection: Error resolving '': No address associated with hostname
 [deb] 12:24:37 geary-engine.vala:220: Error connecting to IMAP server: Error resolving '': No address associated with hostname
 [deb] 12:24:37 geary-engine.vala:254: Error validating SMTP account info: Error resolving '': No address associated with hostname
 [deb] 12:24:37 geary-application.vala:211: Validation failed. Prompting user for revised account information
 [deb] 12:24:39 geary-application.vala:279: User refused to enter account information. Exiting...

Revision history for this message
Jim Nelson (yorba-jim) wrote :

Hmm, nothing really changed here. It looks like a blank string is being used instead of a hostname to resolve the machine address. Weird. I've never seen this before.

Is there any other security or network software you're using other than BleachBit? Are you using a proxy of any kind with your machine?

Revision history for this message
tushar (sharma-tushar) wrote :

no nothing only just BleachBit. I tried elementaryOS live session on same machine Geary version 0.2.2 it worked no problem, but latest build 0.3 not working

Revision history for this message
tushar (sharma-tushar) wrote :
Download full text (322.3 KiB)

Jim,

got one solution have to run Geary Mail 0.3.0+trunk as sudo geary --debug --log-network then it worked.

 [deb] 12:35:59 libindicate.vala:25: Using libindicate for messaging menu support w/ .desktop file /usr/share/applications/geary.desktop
 [deb] 12:35:59 unity-launcher.vala:44: set unity launcher entry count to 0
 [deb] 12:35:59 geary-controller.vala:660: No accounts found.
 [deb] 12:35:59 conversation-web-view.vala:216: Loading new message viewer style from /root/.config/geary/user-message.css...
 [deb] 12:36:16 gnome-keyring-mediator.vala:49: Unable to store password in GNOME keyring: GNOME_KEYRING_RESULT_IO_ERROR
 [deb] 12:36:16 gnome-keyring-mediator.vala:49: Unable to store password in GNOME keyring: GNOME_KEYRING_RESULT_IO_ERROR
 [deb] 12:36:17 imap-client-session.vala:1391: [ClientSession:0000/27.123.204.238:993/GEARY_IMAP_CLIENT_CONNECTION_STATE_CONNECTED [GEARY_IMAP_CLIENT_SESSION_STATE_CONNECTING]] Connected to imap.mail.yahoo.com/default:993
 [deb] 12:36:17 [0000/27.123.204.238:993/GEARY_IMAP_CLIENT_CONNECTION_STATE_CONNECTED] connected to imap.mail.yahoo.com/default:993
 [deb] 12:36:17 [0000/27.123.204.238:993/GEARY_IMAP_CLIENT_CONNECTION_STATE_CONNECTED R] * OK [CAPABILITY IMAP4rev1 ID NAMESPACE X-ID-ACLID UIDPLUS LITERAL+ CHILDREN XAPPLEPUSHSERVICE XYMHIGHESTMODSEQ AUTH=PLAIN AUTH=LOGIN AUTH=XYMCOOKIE AUTH=XYMECOOKIE AUTH=XYMCOOKIEB64 AUTH=XYMPKI] IMAP4rev1 imapgate-0.7.68_14.357900 imap407.mail.tw1.yahoo.com
 [deb] 12:36:17 [0000/27.123.204.238:993/GEARY_IMAP_CLIENT_CONNECTION_STATE_CONNECTED S] a001 capability
 [deb] 12:36:17 [0000/27.123.204.238:993/GEARY_IMAP_CLIENT_CONNECTION_STATE_CONNECTED R] * CAPABILITY IMAP4rev1 ID NAMESPACE X-ID-ACLID UIDPLUS LITERAL+ CHILDREN XAPPLEPUSHSERVICE XYMHIGHESTMODSEQ AUTH=PLAIN AUTH=LOGIN AUTH=XYMCOOKIE AUTH=XYMECOOKIE AUTH=XYMCOOKIEB64 AUTH=XYMPKI
 [deb] 12:36:17 imap-client-session.vala:1438: [ClientSession:0000/27.123.204.238:993/GEARY_IMAP_CLIENT_CONNECTION_STATE_CONNECTED] CAPABILITY: #1: NAMESPACE UIDPLUS AUTH=XYMCOOKIE AUTH=XYMPKI ID AUTH=XYMECOOKIE AUTH=XYMCOOKIEB64 XYMHIGHESTMODSEQ LITERAL+ XAPPLEPUSHSERVICE AUTH=PLAIN AUTH=LOGIN X-ID-ACLID IMAP4rev1 CHILDREN
 [deb] 12:36:17 [0000/27.123.204.238:993/GEARY_IMAP_CLIENT_CONNECTION_STATE_CONNECTED R] a001 OK completed
 [deb] 12:36:17 imap-client-session.vala:587: [ClientSession:0000/27.123.204.238:993/GEARY_IMAP_CLIENT_CONNECTION_STATE_CONNECTED] use_starttls=false is_ssl=true starttls=false
 [deb] 12:36:17 imap-client-session.vala:615: [ClientSession:0000/27.123.204.238:993/GEARY_IMAP_CLIENT_CONNECTION_STATE_CONNECTED] No STARTTLS attempted
 [deb] 12:36:17 [0000/27.123.204.238:993/GEARY_IMAP_CLIENT_CONNECTION_STATE_CONNECTED S] a002 login <user> <pass>
 [deb] 12:36:18 [0000/27.123.204.238:993/GEARY_IMAP_CLIENT_CONNECTION_STATE_CONNECTED R] a002 OK AUTHENTICATE completed - Mailbox size in bytes is 59555888
 [deb] 12:36:18 [0000/27.123.204.238:993/GEARY_IMAP_CLIENT_CONNECTION_STATE_CONNECTED S] a003 capability
 [deb] 12:36:18 [0000/27.123.204.238:993/GEARY_I...

Revision history for this message
Charles Lindsay (chaz-yorba) wrote :

So if I'm understanding you correctly, when you ran Geary with sudo, it worked fine?

Is that reproducible? If you run Geary as your normal user, it'll fail, but when run as root it succeeds? To test, please delete your ~/.local/share/geary folder before each run, and enter the exact same account details in Geary both times.

Revision history for this message
tushar (sharma-tushar) wrote :

Charles

already tried deleting ~/.local/share/geary folder still no luck, only as root working fine...

Revision history for this message
Charles Lindsay (chaz-yorba) wrote :

Tushar, I'm asking if you're seeing the behavior you describe under specific circumstances. Could you please do the following steps in this order:
1) Delete ~/.local/share/geary
2) Run /usr/bin/geary --debug (not sudo)
3) Give Geary your account details
I assume Geary will have the above issue here. Close Geary, and then:
4) Delete ~/.local/share/geary again
5) Run sudo /usr/bin/geary --debug
6) Give Geary the exact same account details
In other words I'm trying to determine if the only difference is the running user. Thanks.

Revision history for this message
Charles Lindsay (chaz-yorba) wrote :

Tushar, we may have tracked this down to a bug in glib (https://bugzilla.gnome.org/show_bug.cgi?id=656917). Can you go into System Settings, go into Network settings, click the Proxy tab, and make sure your proxy method is either set to None, or if it's Automatic make sure it has a valid proxy URL in the text box.

Revision history for this message
Ilan Steemers (koed00) wrote :

I had the same problem on Mint 14 kernel 3.8.8-030808. Changing the Proxy from Automatic to None, fixed this for me.

Revision history for this message
tushar (sharma-tushar) wrote :

Ilan Steemers (koed00):

I will try and let you know ASAP.

Charles Lindsay (chaz-yorba) :

Sorry this didn't work :(

Revision history for this message
Jim Nelson (yorba-jim) wrote :

tushar, do you mean that you changed your Proxy settings? Or were they None already?

Revision history for this message
Samizdata (samizdata) wrote :

Oddly enough, on Raring i386, I was encountering the issue on a new install. I went to the proxy settings (which were set to None as the default), switched it to Automatic with no additional paramaters, applied it system wide, then switched it back to None and applied systemwide again. This seemed to fix the problem for me, at least.

Revision history for this message
Jim Nelson (yorba-jim) wrote :

Samizdata, that's great to hear. I wonder if the proxy information was partially filled-in and your actions cleared them entirely.

tushar, could you try what Samizdata did and see if that helps?

Revision history for this message
Justin Solms (justinsolms) wrote :

Hi

My two cents:

Tried the proxy move reccomended above. Ran as myself, no sudo. Still no luck. Still get:
Unable to validate:
        * Username or password incorrect.

Kind regards,
Justin

Revision history for this message
Jim Nelson (yorba-jim) wrote :

Justin, what version of Geary are you running?

Revision history for this message
Israel Fonseca (israel-bgf) wrote :

Hello Jim, i'm with the same problem and the "execute as sudo" workaround works for me too. I'm using "geary 0.4.2+backport", the default one with the ElementaryOS Luna.

I didn't try the proxy tip because i'm using it (Cntlm proxy). I'll try some configurations and let you know.

Revision history for this message
Ruben Nunes (fibonacci) wrote :

Does this have anything to do with the 2-step verification from Gmail?

Revision history for this message
Kashyap (kashyap-tumkur) wrote :

I have the same problem. These are the steps I took and the results I got:

I have a GoogleApps email address (i.e., <email address hidden> with Gmail IMAP settings).

Also, this email address works fine on ThunderBird.

1. Tried selecting "Other" service, entering Gmail IMAP/SMTP details.

This results in Unable to validate: IMAP connection error.

2. Tried "sudo geary" and performed the exact same thing.

The account loads immediately, with all email, etc.

3. Tried setting Network Proxy to "Automatic" and then "None" (it was originally set to "None").

Now I don't get an error, but the account is added to the tabs on the left; however, only "Outbox" and "Labels" are present; the email in them does not load, and no actual folders (Inbox, etc.) or labels load.

4. Tried moving the <email address hidden> folder in /root/.local/share/geary to ~/.local/share/geary, setting "chown -R myuser <email address hidden>", and running it.

The account loads in Geary: only the email that had already loaded when I had run Geary as root is present, and no new email will be loaded.

This leads me to suspect that there is some connection aspect that requires root permissions, and just does not happen when Geary is run as a non-root user.

Is there a way to fix this?

Revision history for this message
Jim Nelson (yorba-jim) wrote :

Kashyap, I would recommend creating your Google Apps account using the "Gmail" service in Geary, not "Other". That's really the preferred way to do things.

I don't know what the issue is, but it does sound like there's a proxy configuration problem. As noted above, when you set to "Automatic" and then "None", did you specify that each of those changes should be applied system-wide? I suspect that's important.

Revision history for this message
Justin Solms (justinsolms) wrote :
Download full text (3.2 KiB)

Hi Jim

Sorry for the late reply.

I use geary 0.6.1.

I get output for both myself and sudo:

[deb] 12:57:13 0,469419 libmessagingmenu.vala:30: Registered messaging-menu indicator
 [deb] 12:57:13 0,128407 unity-launcher.vala:44: set unity launcher entry count to 0
 [deb] 12:57:14 0,089609 conversation-web-view.vala:181: Loading new message viewer style from /home/sunstrike/.config/geary/user-message.css...
 [deb] 12:57:14 0,051742 geary-controller.vala:1185: No accounts found.
 [deb] 12:57:30 16,805768 imap-client-session.vala:1428: [0000/imap.gmail.com/default:993 GEARY_IMAP_CLIENT_SESSION_STATE_CONNECTING] Connected to imap.gmail.com/default:993
 [deb] 12:57:30 0,000007 imap-client-session.vala:604: [0000/imap.gmail.com/default:993 GEARY_IMAP_CLIENT_SESSION_STATE_CONNECTING] Connected
 [deb] 12:57:31 0,176483 imap-client-session.vala:1501: [0000/imap.gmail.com/default:993 GEARY_IMAP_CLIENT_SESSION_STATE_NOAUTH] capability #1: UNSELECT NAMESPACE QUOTA ID X-GM-EXT-1 "AUTH=PLAIN" "AUTH=PLAIN-CLIENTTOKEN" "AUTH=XOAUTH" "AUTH=XOAUTH2" XYZZY SASL-IR IMAP4rev1 XLIST IDLE CHILDREN
 [deb] 12:57:31 0,000455 imap-client-session.vala:698: [0000/imap.gmail.com/default:993 GEARY_IMAP_CLIENT_SESSION_STATE_NOAUTH] use_starttls=false is_ssl=true starttls=false
 [deb] 12:57:31 0,000014 imap-client-session.vala:726: [0000/imap.gmail.com/default:993 GEARY_IMAP_CLIENT_SESSION_STATE_NOAUTH] No STARTTLS attempted
 [deb] 12:57:31 0,884253 imap-client-session.vala:1501: [0000/imap.gmail.com/default:993 GEARY_IMAP_CLIENT_SESSION_STATE_AUTHORIZING] capability #2: UNSELECT NAMESPACE QUOTA UIDPLUS ID X-GM-EXT-1 CONDSTORE "COMPRESS=DEFLATE" IMAP4rev1 XLIST IDLE ENABLE MOVE ESEARCH CHILDREN
 [deb] 12:57:32 0,327263 imap-client-session.vala:757: [0000/imap.gmail.com/default:993 GEARY_IMAP_CLIENT_SESSION_STATE_AUTHORIZED] Compression started
 [deb] 12:57:32 0,000047 imap-deserializer.vala:247: [des:0000/GEARY_IMAP_DESERIALIZER_STATE_TAG] Waiting for deserializer to close...
 [deb] 12:57:32 0,000055 imap-deserializer.vala:799: [des:0000/GEARY_IMAP_DESERIALIZER_STATE_TAG] input error: Operation was cancelled
 [deb] 12:57:32 0,000051 imap-deserializer.vala:249: [des:0000/GEARY_IMAP_DESERIALIZER_STATE_CLOSED] Deserializer closed
 [deb] 12:57:32 0,000101 imap-client-connection.vala:422: [0000/imap.gmail.com/default:993/GEARY_IMAP_CLIENT_CONNECTION_STATE_CONNECTED] Disconnecting...
 [deb] 12:57:32 0,306877 imap-client-connection.vala:424: [0000/imap.gmail.com/default:993/GEARY_IMAP_CLIENT_CONNECTION_STATE_CONNECTED] Disconnected
 [deb] 12:57:32 0,000019 imap-client-session.vala:1434: [0000/imap.gmail.com/default:993 GEARY_IMAP_CLIENT_SESSION_STATE_DISCONNECTING] Disconnected from imap.gmail.com/default:993
 [deb] 12:57:32 0,000250 imap-client-session.vala:395: DTOR: ClientSession imap.gmail.com/default:993 GEARY_IMAP_CLIENT_SESSION_STATE_BROKEN
 [deb] 12:59:32 120,167978 geary-engine.vala:281: Error validating SMTP account info: Could not connect to smtp.gmail.com: Network is unreachable
 [msg] 12:59:32 0,017726 smtp-client-session.vala:118: Unable to QUIT: Not connected to smtp.gmail.com/default:465
 [deb] 12:59:32 0,000037 geary-controller.vala:520: Validation failed. Prompti...

Read more...

Revision history for this message
Justin Solms (justinsolms) wrote :

Also proxy set to none, applied system wide.

Revision history for this message
Justin Solms (justinsolms) wrote :

I use
* Gmail from the chrome browser interface,
* the chrome gmail offline add-on,
* and I have set up a google account from the Gnome>settings>Online Accounts>+Google>
and that all works just fine.

Revision history for this message
Jim Nelson (yorba-jim) wrote :

The problem is in this line:

> Could not connect to smtp.gmail.com: Network is unreachable

For some reason, Geary can't reach Gmail's SMTP server but it can reach its IMAP server. If you can connect to it from the command-line (i.e. "telnet smtp.gmail.com smtp") then it sounds like a GIO issue, which is the library Geary uses for network communication. Chrome doesn't use GIO, and while GOA does, I don't believe it attempts to connect to smtp.gmail.com on its own.

That's the crux of the problem: why can't Geary make an SSL connection to that hostname?

As far as the proxy, be sure to set it to None and the press the "Apply System-wide" button to enforce that for all processes. Some times people mistake that button as saying the settings have been applied system-wide when that's not the case. You can also use dconf-editor to look in system/proxy and its children for any errant settings.

Revision history for this message
Justin Solms (justinsolms) wrote :
Download full text (4.6 KiB)

Just upgraded geary (0.8.0-1~trusty1)

I still have this problem on both my machines on both my business and personal gmail accounts.

sunstrike@sundesk01:~$ geary -d
 [msg] 10:15:14 0,145295 geary-application.vala:174: Geary 0.8.0 prefix=/usr exec_dir=/usr/bin is_installed=true
 [deb] 10:15:14 0,074167 NP_Initialize
 [deb] 10:15:14 0,000004 NP_Initialize succeeded
 [deb] 10:15:14 0,000526 NP_Initialize
 [deb] 10:15:14 0,000003 NP_Initialize succeeded
No bp log location saved, using default.
[000:000] Cpu: 6.23.10, x2, 2933Mhz, 3790MB
[000:000] Computer model: Not available
[000:000] Browser XEmbed support present: 1
[000:000] Browser toolkit is Gtk2.
[000:037] Using Gtk2 toolkit
No bp log location saved, using default.
[000:000] Cpu: 6.23.10, x2, 2933Mhz, 3790MB
[000:000] Computer model: Not available
 [deb] 10:15:14 0,054423 NP_Initialize
 [deb] 10:15:14 0,000004 NP_Initialize succeeded
[000:139] Warning(optionsfile.cc:47): Load: Could not open file, err=2
[000:139] No bp log location saved, using default.
[000:139] Cpu: 6.23.10, x2, 2933Mhz, 3790MB
[000:139] Computer model: Not available
[000:139] Browser XEmbed support present: 1
[000:139] Browser toolkit is Gtk2.
[000:140] Using Gtk2 toolkit
[000:102] Warning(optionsfile.cc:47): Load: Could not open file, err=2
[000:102] No bp log location saved, using default.
[000:102] Cpu: 6.23.10, x2, 2933Mhz, 3790MB
[000:102] Computer model: Not available
 [deb] 10:15:15 0,101535 NP_Initialize
 [deb] 10:15:15 0,000005 NP_Initialize succeeded
 [deb] 10:15:15 0,049650 libmessagingmenu.vala:30: Registered messaging-menu indicator
 [deb] 10:15:15 0,000915 unity-launcher.vala:44: set unity launcher entry count to 0
 [deb] 10:15:15 0,003107 geary-controller.vala:1428: No accounts found.
 [deb] 10:15:15 0,151735 conversation-web-view.vala:207: Loading new message viewer style from /home/sunstrike/.config/geary/user-message.css...
 [deb] 10:16:06 51,702750 imap-client-session.vala:1425: [0000/imap.gmail.com/default:993 GEARY_IMAP_CLIENT_SESSION_STATE_CONNECTING] Connected to imap.gmail.com/default:993
 [deb] 10:16:06 0,000006 imap-client-session.vala:595: [0000/imap.gmail.com/default:993 GEARY_IMAP_CLIENT_SESSION_STATE_CONNECTING] Connected
 [deb] 10:16:07 0,238487 imap-client-session.vala:1498: [0000/imap.gmail.com/default:993 GEARY_IMAP_CLIENT_SESSION_STATE_NOAUTH] capability #1: UNSELECT NAMESPACE QUOTA ID X-GM-EXT-1 "AUTH=PLAIN" "AUTH=PLAIN-CLIENTTOKEN" "AUTH=XOAUTH" "AUTH=XOAUTH2" XYZZY SASL-IR IMAP4rev1 XLIST IDLE CHILDREN
 [deb] 10:16:07 0,000466 imap-client-session.vala:689: [0000/imap.gmail.com/default:993 GEARY_IMAP_CLIENT_SESSION_STATE_NOAUTH] use_starttls=false is_ssl=true starttls=false
 [deb] 10:16:07 0,000013 imap-client-session.vala:717: [0000/imap.gmail.com/default:993 GEARY_IMAP_CLIENT_SESSION_STATE_NOAUTH] No STARTTLS attempted
 [deb] 10:16:07 0,515325 imap-client-session.vala:1498: [0000/imap.gmail.com/default:993 GEARY_IMAP_CLIENT_SESSION_STATE_AUTHORIZING] capability #2: UNSELECT NAMESPACE QUOTA UIDPLUS ID X-GM-EXT-1 CONDSTORE "COMPRESS=DEFLATE" IMAP4rev1 XLIST "UTF8=ACCEPT" IDLE ENABLE MOVE ESEARCH CHILDREN
 [deb] 10:16:07 0,271437 imap-client-session.vala:748: [0000/imap.gmail.com/de...

Read more...

Revision history for this message
alex (xealits) wrote :

I had a problem with the same outcome - could not add a Gmail account.
As far as I can judge from the logs, the issues are different, but just in case:
check if Google is blocking Geary connection.

When I tried to add the account Google sent me email saying:
> We recently blocked a sign-in attempt to your Google Account
> If this was you
> You can switch to an app made by Google such as Gmail to access your account (recommended) or change your settings at https://www.google.com/settings/security/lesssecureapps so that your account is no longer protected by modern security standards.

And the logs show the same.
Changing the settings fixed it of course.
Hope it helps somebody.

Revision history for this message
Tejanshu (tejanshu) wrote :

This is an old thread, but since I am new to Geary, I stumbled upon the "Unable to validate" error and I got the same email as Alex did and followed Alex's advice and the problem was solved.

So it is more likely an issue related to Google Security Settings than Geary itself.

Thanks Alex

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.