Unable to validate connection error
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-
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
tushar (sharma-tushar) wrote : | #1 |
Jim Nelson (yorba-jim) wrote : | #2 |
Changed in geary: | |
status: | New → Incomplete |
tushar (sharma-tushar) wrote : | #3 |
Jim, i don't think its DNS issue, tried with different 3G via tethering but same issue.
Jim Nelson (yorba-jim) wrote : | #4 |
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!
tushar (sharma-tushar) wrote : | #5 |
[92m[deb][0m 11:22:46 libindicate.
[92m[deb][0m 11:22:46 unity-launcher.
[92m[deb][0m 11:22:46 geary-controlle
[92m[deb][0m 11:22:46 conversation-
[92m[deb][0m 11:23:07 imap-client-
[92m[deb][0m 11:23:07 geary-engine.
[92m[deb][0m 11:23:07 geary-engine.
[92m[deb][0m 11:23:07 geary-applicati
[92m[deb][0m 11:23:26 geary-applicati
[92m[deb][0m 11:23:26 imap-client-
[92m[deb][0m 11:23:26 geary-engine.
[92m[deb][0m 11:23:26 geary-engine.
[92m[deb][0m 11:23:26 geary-applicati
[92m[deb][0m 11:23:27 geary-applicati
summary: |
- Unable to validate connaection error + Unable to validate connection error |
Jim Nelson (yorba-jim) wrote : | #6 |
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?
tushar (sharma-tushar) wrote : | #7 |
Same issue using direct LAN Cable. One thing i use BleachBit(as root).
[92m[deb][0m 12:24:21 libindicate.
[92m[deb][0m 12:24:21 unity-launcher.
[92m[deb][0m 12:24:21 geary-controlle
[92m[deb][0m 12:24:21 conversation-
[92m[deb][0m 12:24:37 imap-client-
[92m[deb][0m 12:24:37 geary-engine.
[92m[deb][0m 12:24:37 geary-engine.
[92m[deb][0m 12:24:37 geary-applicati
[92m[deb][0m 12:24:39 geary-applicati
Jim Nelson (yorba-jim) wrote : | #8 |
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?
tushar (sharma-tushar) wrote : | #9 |
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
tushar (sharma-tushar) wrote : | #10 |
Jim,
got one solution have to run Geary Mail 0.3.0+trunk as sudo geary --debug --log-network then it worked.
[92m[deb][0m 12:35:59 libindicate.
[92m[deb][0m 12:35:59 unity-launcher.
[92m[deb][0m 12:35:59 geary-controlle
[92m[deb][0m 12:35:59 conversation-
[92m[deb][0m 12:36:16 gnome-keyring-
[92m[deb][0m 12:36:16 gnome-keyring-
[92m[deb][0m 12:36:17 imap-client-
[92m[deb][0m 12:36:17 [0000/27.
[92m[deb][0m 12:36:17 [0000/27.
[92m[deb][0m 12:36:17 [0000/27.
[92m[deb][0m 12:36:17 [0000/27.
[92m[deb][0m 12:36:17 imap-client-
[92m[deb][0m 12:36:17 [0000/27.
[92m[deb][0m 12:36:17 imap-client-
[92m[deb][0m 12:36:17 imap-client-
[92m[deb][0m 12:36:17 [0000/27.
[92m[deb][0m 12:36:18 [0000/27.
[92m[deb][0m 12:36:18 [0000/27.
[92m[deb][0m 12:36:18 [0000/27.
Charles Lindsay (chaz-yorba) wrote : | #11 |
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/
tushar (sharma-tushar) wrote : | #12 |
Charles
already tried deleting ~/.local/
Charles Lindsay (chaz-yorba) wrote : | #13 |
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/
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/
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.
Charles Lindsay (chaz-yorba) wrote : | #14 |
Tushar, we may have tracked this down to a bug in glib (https:/
Ilan Steemers (koed00) wrote : | #15 |
I had the same problem on Mint 14 kernel 3.8.8-030808. Changing the Proxy from Automatic to None, fixed this for me.
tushar (sharma-tushar) wrote : | #16 |
Ilan Steemers (koed00):
I will try and let you know ASAP.
Charles Lindsay (chaz-yorba) :
Sorry this didn't work :(
Jim Nelson (yorba-jim) wrote : | #17 |
tushar, do you mean that you changed your Proxy settings? Or were they None already?
Samizdata (samizdata) wrote : | #18 |
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.
Jim Nelson (yorba-jim) wrote : | #19 |
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?
Justin Solms (justinsolms) wrote : | #20 |
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
Jim Nelson (yorba-jim) wrote : | #21 |
Justin, what version of Geary are you running?
Israel Fonseca (israel-bgf) wrote : | #22 |
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.
Ruben Nunes (fibonacci) wrote : | #23 |
Does this have anything to do with the 2-step verification from Gmail?
Kashyap (kashyap-tumkur) wrote : | #24 |
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/.
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?
Jim Nelson (yorba-jim) wrote : | #25 |
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.
Justin Solms (justinsolms) wrote : | #26 |
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 libmessagingmen
[deb] 12:57:13 0,128407 unity-launcher.
[deb] 12:57:14 0,089609 conversation-
[deb] 12:57:14 0,051742 geary-controlle
[deb] 12:57:30 16,805768 imap-client-
[deb] 12:57:30 0,000007 imap-client-
[deb] 12:57:31 0,176483 imap-client-
[deb] 12:57:31 0,000455 imap-client-
[deb] 12:57:31 0,000014 imap-client-
[deb] 12:57:31 0,884253 imap-client-
[deb] 12:57:32 0,327263 imap-client-
[deb] 12:57:32 0,000047 imap-deserializ
[deb] 12:57:32 0,000055 imap-deserializ
[deb] 12:57:32 0,000051 imap-deserializ
[deb] 12:57:32 0,000101 imap-client-
[deb] 12:57:32 0,306877 imap-client-
[deb] 12:57:32 0,000019 imap-client-
[deb] 12:57:32 0,000250 imap-client-
[deb] 12:59:32 120,167978 geary-engine.
[msg] 12:59:32 0,017726 smtp-client-
[deb] 12:59:32 0,000037 geary-controlle
Justin Solms (justinsolms) wrote : | #27 |
Also proxy set to none, applied system wide.
Justin Solms (justinsolms) wrote : | #28 |
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>
and that all works just fine.
Jim Nelson (yorba-jim) wrote : | #29 |
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.
Justin Solms (justinsolms) wrote : | #30 |
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@
[msg] 10:15:14 0,145295 geary-applicati
[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(
[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(
[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 libmessagingmen
[deb] 10:15:15 0,000915 unity-launcher.
[deb] 10:15:15 0,003107 geary-controlle
[deb] 10:15:15 0,151735 conversation-
[deb] 10:16:06 51,702750 imap-client-
[deb] 10:16:06 0,000006 imap-client-
[deb] 10:16:07 0,238487 imap-client-
[deb] 10:16:07 0,000466 imap-client-
[deb] 10:16:07 0,000013 imap-client-
[deb] 10:16:07 0,515325 imap-client-
[deb] 10:16:07 0,271437 imap-client-
alex (xealits) wrote : | #31 |
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:/
And the logs show the same.
Changing the settings fixed it of course.
Hope it helps somebody.
Tejanshu (tejanshu) wrote : | #32 |
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
tushar contacted me directly. From his error log, it currently looks like a DNS problem. Still waiting on more information from him to diagnose.