Page 1 of 1

Cannot connect to Gtalk on Office Wireless network

Posted: Thu Oct 07, 2010 7:10 pm
by Pathian
Hello all.

I'm trying to connect to my Google talk account on my Macbook Pro with Adium 1.3.10 on Snow Leopard.

Whenever I try to connect to Google talk with default settings, it gets stuck at "25% Initializing Stream"

I know that the ports/server aren't firewalled because I've pinged talk.google.com:5222 and everything returned fine. Also, I had Pidgin installed on my bootcamp partition and it is able to connect to Google Talk without issue with it's own stock settings (which appear to be identical to Adium's stock settings).

I've done some research on this topic, and I've tried various solutions that have been posted around the web, and nothing seems to be working. Simply switching to port 80 or 443 produce a read error, setting up proxy doesn't seem to work, setting to port 443 and enabling SSL/TLS and Force Old School SSL gets it all the way to "75% Authenticating" before getting another read error.

Can anyone help me out?

Thanks much,
Justin

Re: Cannot connect to Gtalk on Office Wireless network

Posted: Thu Oct 07, 2010 7:18 pm
by Robby
Good job on the detailed description. =-)
Pathian wrote:<snip>Also, I had Pidgin installed on my bootcamp partition and it is able to connect to Google Talk without issue with it's own stock settings (which appear to be identical to Adium's stock settings).<snip>
Hm, that clearly shows it's an issue with Adium.

Are you using a regular "@gmail.com" address?

You could try the 1.4 beta from http://beta.adium.im. If that doesn't work, please post a debug log (http://trac.adium.im/wiki/CurrentAdiumDebug has instructions).

Re: Cannot connect to Gtalk on Office Wireless network

Posted: Thu Oct 07, 2010 7:51 pm
by Pathian
I do have a normal @gmail.com address. I downloaded the 1.4 beta, and tried to connect with the new default settings. This log was the output (got to authenticating). I'm going to try to give it a go with the 1.3 stock settings and see what the output is too.

Code: Select all

15:44:26: (Libpurple: cdsa) SSL_connect: verifying certificate
15:44:26: (Libpurple: cdsa) SSL_connect complete
15:44:26: (Libpurple: jabber) Sending (ssl) (redacted@gmail.com/Adium): <?xml version='1.0' ?>
15:44:26: Connecting: gc=0x1abbfd50 (Initializing Stream) 5 / 9
15:44:26: (Libpurple: jabber) Sending (ssl) (redacted@gmail.com/Adium): <stream:stream to='gmail.com' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' version='1.0'>
15:44:26: Connecting: gc=0x1abbfd50 (Initializing SSL/TLS) 6 / 9
15:44:26: Called write with no write_tag <SourceInfo 0x1aab2cb0: Socket 0x1aa2f5c0: fd 9; timer_tag 0; read_tag 39; write_tag 0>
15:44:26: ************ redacted@gmail.com --step-- 5
15:44:26: ************ redacted@gmail.com --step-- 6
15:44:30: (Libpurple: util) Writing file accounts.xml to directory /Users/redacted/Library/Application Support/Adium 2.0/Users/Default/libpurple
15:44:30: (Libpurple: util) Writing file /Users/redacted/Library/Application Support/Adium 2.0/Users/Default/libpurple/accounts.xml
15:44:30: (Libpurple: util) Writing file blist.xml to directory /Users/redacted/Library/Application Support/Adium 2.0/Users/Default/libpurple
15:44:30: (Libpurple: util) Writing file /Users/redacted/Library/Application Support/Adium 2.0/Users/Default/libpurple/blist.xml
15:44:36: (Libpurple: cdsa) receive failed (-9802): Unknown error: 0
15:44:36: (Libpurple: connection) Connection error on 0x1abbfd50 (reason: 0 description: Lost connection with server: Unknown error: 0)
15:44:36: Connection Disconnected: gc=1abbfd50 (Lost connection with server: Unknown error: 0)
15:44:36: <AIPurpleGTalkAccount:305bac0 2>:redacted@gmail.com accountConnectionReportDisconnect: Lost connection with server: Unknown error: 0
15:44:36: (Libpurple: account) Disconnecting account redacted@gmail.com/Adium (0x1ab35fb0)
15:44:36: (Libpurple: connection) Disconnecting connection 0x1abbfd50
15:44:36: (Libpurple: jabber) Sending (ssl) (redacted@gmail.com/Adium): </stream:stream>
15:44:36: (Libpurple: cdsa) send failed (-9806): Unknown error: 0
15:44:36: Disconnected: gc=1abbfd50
15:44:36: <AIPurpleGTalkAccount:305bac0 2>:redacted@gmail.com: Telling the core we disconnected
15:44:36: <AIPurpleGTalkAccount:305bac0 2>:redacted@gmail.com: Disconnected ("Lost connection with server: Unknown error: 0"): Automatically reconnecting in 5.000000 seconds (0 attempts performed)
15:44:36: (Libpurple: connection) Destroying connection 0x1abbfd50

Re: Cannot connect to Gtalk on Office Wireless network

Posted: Thu Oct 07, 2010 7:55 pm
by Pathian
Log using 1.3.10 settings (port 5222, SSL/TLS and old school SSL disabled)

Code: Select all

15:52:15: -[AIAccount(Abstract) retrievePasswordThenConnect]: Retrieving <AIPurpleGTalkAccount:305bac0 2>:redacted@gmail.com's password (promptOption 2)
15:52:15: <AIPurpleGTalkAccount:305bac0 2>:redacted@gmail.com: Updating status for key: Online
15:52:15: <AIPurpleGTalkAccount:305bac0 2>:redacted@gmail.com: Updating status for key: Enabled
15:52:15: <AIPurpleGTalkAccount:305bac0 2>:redacted@gmail.com: Updating status for key: FullNameAttr
15:52:15: -[CBPurpleAccount setAccountUserImage:withData:]: <AIPurpleGTalkAccount:305bac0 2>:redacted@gmail.com setting icon data of length 0
15:52:15: <AIPurpleGTalkAccount:305bac0 2>:redacted@gmail.com: Updating status for key: User Icon
15:52:15: Adium: Connect: redacted@gmail.com initiating connection using status state <AIStatus: 2564020 [Available]> ((null)).
15:52:15: Setting status on 1ab35fb0 (redacted@gmail.com/Adium): ID available, isActive 1, attributes {
    buzz = 1;
    priority = 0;
}
15:52:15: (Libpurple: account) Connecting to account redacted@gmail.com/Adium.
15:52:15: (Libpurple: connection) Connecting. gc = 0x1b170c30
15:52:15: Connecting: gc=0x1b170c30 (Connecting) 1 / 5
15:52:15: (Libpurple: dns) DNS query for 'talk.google.com' queued
15:52:15: ************ redacted@gmail.com --step-- 1
15:52:15: -[AdiumPurpleDnsRequest startLookup]: Performing DNS resolve: talk.google.com:5222
15:52:15: handleConnectivityForAccount: <AIPurpleGTalkAccount:305bac0 2>:redacted@gmail.com reachable: 1
15:52:15: handleConnectivityForAccount: <AIPurpleGTalkAccount:25713c0 3>:redacted@gmail.com reachable: 1
15:52:15: DNS resolve complete for talk.google.com:5222; 1 addresses returned
15:52:15: (Libpurple: dnsquery) IP resolved for talk.google.com
15:52:15: (Libpurple: proxy) Attempting connection to 67.215.65.130
15:52:15: (Libpurple: proxy) Connecting to talk.google.com:5222 with no proxy
15:52:15: (Libpurple: proxy) Connection in progress
15:52:20: (Libpurple: util) Writing file accounts.xml to directory /Users/redacted/Library/Application Support/Adium 2.0/Users/Default/libpurple
15:52:20: (Libpurple: util) Writing file /Users/redacted/Library/Application Support/Adium 2.0/Users/Default/libpurple/accounts.xml
15:52:20: (Libpurple: util) Writing file blist.xml to directory /Users/redacted/Library/Application Support/Adium 2.0/Users/Default/libpurple
15:52:20: (Libpurple: util) Writing file /Users/redacted/Library/Application Support/Adium 2.0/Users/Default/libpurple/blist.xml
15:53:30: Called read with no read_tag <SourceInfo 0x1aab4380: Socket 0x1aae87e0: fd 9; timer_tag 0; read_tag 0; write_tag 46>
15:53:30: (Libpurple: proxy) Connecting to talk.google.com:5222.
15:53:30: adium_input_get_error(9): Socket is NOT valid
15:53:30: (Libpurple: proxy) Error connecting to talk.google.com:5222 (Socket is not connected).
15:53:30: (Libpurple: proxy) Connection attempt failed: Socket is not connected
15:53:30: (Libpurple: jabber) Couldn't connect directly to gmail.com.  Trying to find alternative connection methods, like BOSH.
15:53:30: (Libpurple: dnssrv) querying TXT record for gmail.com: _xmppconnect.gmail.com
15:53:30: (Libpurple: dnssrv) res_query returned an error
15:53:30: (Libpurple: jabber) Unable to find alternative XMPP connection methods after failing to connect directly.
15:53:30: (Libpurple: connection) Connection error on 0x1b170c30 (reason: 0 description: Unable to connect)
15:53:30: Connection Disconnected: gc=1b170c30 (Unable to connect)
15:53:30: <AIPurpleGTalkAccount:305bac0 2>:redacted@gmail.com accountConnectionReportDisconnect: Unable to connect
15:53:30: (Libpurple: account) Disconnecting account redacted@gmail.com/Adium (0x1ab35fb0)
15:53:30: (Libpurple: connection) Disconnecting connection 0x1b170c30
15:53:30: Disconnected: gc=1b170c30
15:53:30: <AIPurpleGTalkAccount:305bac0 2>:redacted@gmail.com: Telling the core we disconnected
15:53:30: <AIPurpleGTalkAccount:305bac0 2>:redacted@gmail.com: Disconnected ("Unable to connect"): Automatically reconnecting in 5.000000 seconds (0 attempts performed)
15:53:30: (Libpurple: connection) Destroying connection 0x1b170c30
15:53:35: (Libpurple: util) Writing file accounts.xml to directory /Users/redacted/Library/Application Support/Adium 2.0/Users/Default/libpurple
15:53:35: (Libpurple: util) Writing file /Users/redacted/Library/Application Support/Adium 2.0/Users/Default/libpurple/accounts.xml
15:53:35: -[CBPurpleAccount setAccountUserImage:withData:]: <AIPurpleGTalkAccount:305bac0 2>:redacted@gmail.com setting icon data of length 0
15:53:35: <AIPurpleGTalkAccount:305bac0 2>:redacted@gmail.com: Updating status for key: User Icon
15:53:35: Adium: Connect: redacted@gmail.com initiating connection using status state <AIStatus: 2564020 [Available]> ((null)).
15:53:35: Setting status on 1ab35fb0 (redacted@gmail.com/Adium): ID available, isActive 1, attributes {
    buzz = 1;
    priority = 0;
}
15:53:35: (Libpurple: account) Connecting to account redacted@gmail.com/Adium.
15:53:35: (Libpurple: connection) Connecting. gc = 0x1b1a5e40
15:53:35: Connecting: gc=0x1b1a5e40 (Connecting) 1 / 5
15:53:35: (Libpurple: dns) DNS query for 'talk.google.com' queued
15:53:35: <AIPurpleGTalkAccount:305bac0 2>:redacted@gmail.com: Updating status for key: Online
15:53:35: ************ redacted@gmail.com --step-- 1
15:53:35: -[AdiumPurpleDnsRequest startLookup]: Performing DNS resolve: talk.google.com:5222
15:53:35: DNS resolve complete for talk.google.com:5222; 1 addresses returned
15:53:35: (Libpurple: dnsquery) IP resolved for talk.google.com
15:53:35: (Libpurple: proxy) Attempting connection to 67.215.65.130
15:53:35: (Libpurple: proxy) Connecting to talk.google.com:5222 with no proxy
15:53:35: (Libpurple: proxy) Connection in progress
15:53:40: Setting 1ab35fb0 disabled and offline (offline)...
15:53:40: (Libpurple: account) Disconnecting account redacted@gmail.com/Adium (0x1ab35fb0)
15:53:40: (Libpurple: connection) Disconnecting connection 0x1b1a5e40
15:53:40: Disconnected: gc=1b1a5e40
15:53:40: <AIPurpleGTalkAccount:305bac0 2>:redacted@gmail.com: Telling the core we disconnected
15:53:40: <AIPurpleGTalkAccount:305bac0 2>:redacted@gmail.com: Disconnected; should be online? No; lastDisconnectionError (null)
15:53:40: (Libpurple: connection) Destroying connection 0x1b1a5e40
15:53:40: <AIPurpleGTalkAccount:305bac0 2>:redacted@gmail.com: Updating status for key: Online
15:53:40: <AIPurpleGTalkAccount:305bac0 2>:redacted@gmail.com: Updating status for key: Enabled
15:53:40: <AIPurpleGTalkAccount:305bac0 2>:redacted@gmail.com: Updating status for key: FullNameAttr
15:53:40: (Libpurple: util) Writing file accounts.xml to directory /Users/redacted/Library/Application Support/Adium 2.0/Users/Default/libpurple
15:53:40: (Libpurple: util) Writing file /Users/redacted/Library/Application Support/Adium 2.0/Users/Default/libpurple/accounts.xml
15:53:40: (Libpurple: util) Writing file blist.xml to directory /Users/redacted/Library/Application Support/Adium 2.0/Users/Default/libpurple
15:53:40: (Libpurple: util) Writing file /Users/redacted/Library/Application Support/Adium 2.0/Users/Default/libpurple/blist.xml

Re: Cannot connect to Gtalk on Office Wireless network

Posted: Thu Oct 07, 2010 8:18 pm
by sphynx
Could you try to post a new log for 1.4, this one is missing the first part. Make sure the log window is open, and then reconnect it.

From the 1.3 log, it looks like there is a problem with your System's DNS settings. 67.215.65.130 doesn't look like the right IP for Google Talk. Do you have OpenDNS set up with some domain blocking, perhaps? (Or are you on a corporate network which blocks Google Talk, perhaps?)

Re: Cannot connect to Gtalk on Office Wireless network

Posted: Thu Oct 07, 2010 8:24 pm
by Pathian
Sure thing. here is the 1.4 settings log.

As for possible domain blocking, I tried going to talk.google.com in my browser, and it does say that it is blocked by OpenDNS...but this is confusing to me, because I am able to connect to the service from Pidgin in windows on this same network. How strange.

Code: Select all

16:21:10: -[AIAccount(Abstract) retrievePasswordThenConnect]: Retrieving <AIPurpleGTalkAccount:2576870 2>:redacted@gmail.com's password (promptOption 2)
16:21:10: <AIPurpleGTalkAccount:2576870 2>:redacted@gmail.com: Updating status for key: Online
16:21:10: <AIPurpleGTalkAccount:2576870 2>:redacted@gmail.com: Updating status for key: Enabled
16:21:10: <AIPurpleGTalkAccount:2576870 2>:redacted@gmail.com: Updating status for key: FullNameAttr
16:21:10: -[CBPurpleAccount setAccountUserImage:withData:]: <AIPurpleGTalkAccount:2576870 2>:redacted@gmail.com setting icon data of length 0
16:21:10: <AIPurpleGTalkAccount:2576870 2>:redacted@gmail.com: Updating status for key: User Icon
16:21:10: Adium: Connect: redacted@gmail.com initiating connection using status state <AIStatus: 25753f0 [Available]> ((null)).
16:21:10: Setting status on 38e07b0 (redacted@gmail.com/Adium): ID available, isActive 1, attributes {
    buzz = 1;
    priority = 0;
}
16:21:10: (Libpurple: account) Connecting to account redacted@gmail.com/Adium.
16:21:10: (Libpurple: connection) Connecting. gc = 0x186639f0
16:21:10: Connecting: gc=0x186639f0 (Connecting) 1 / 5
16:21:10: (Libpurple: dns) DNS query for 'talk.google.com' queued
16:21:10: ************ redacted@gmail.com --step-- 1
16:21:10: -[AdiumPurpleDnsRequest startLookup]: Performing DNS resolve: talk.google.com:443
16:21:10: handleConnectivityForAccount: <AIPurpleGTalkAccount:2576870 2>:redacted@gmail.com reachable: 1
16:21:10: handleConnectivityForAccount: <AIPurpleGTalkAccount:256a760 3>:redacted@gmail.com reachable: 1
16:21:10: DNS resolve complete for talk.google.com:443; 1 addresses returned
16:21:10: (Libpurple: dnsquery) IP resolved for talk.google.com
16:21:10: (Libpurple: proxy) Attempting connection to 67.215.65.130
16:21:10: (Libpurple: proxy) Connecting to talk.google.com:443 with no proxy
16:21:10: (Libpurple: proxy) Connection in progress
16:21:10: (Libpurple: proxy) Connecting to talk.google.com:443.
16:21:10: (Libpurple: proxy) Connected to talk.google.com:443.
16:21:10: (Libpurple: cdsa) Connecting
16:21:10: Called write with no write_tag <SourceInfo 0x257e980: Socket 0x258b5b0: fd 15; timer_tag 0; read_tag 36; write_tag 0>
16:21:10: (Libpurple: cdsa) Connecting
16:21:10: (Libpurple: cdsa) Connecting
16:21:10: (Libpurple: cdsa) SSL_connect: verifying certificate
16:21:10: (Libpurple: cdsa) SSL_connect complete
16:21:10: (Libpurple: jabber) Sending (ssl) (redacted@gmail.com/Adium): <?xml version='1.0' ?>
16:21:10: Connecting: gc=0x186639f0 (Initializing Stream) 5 / 9
16:21:10: (Libpurple: jabber) Sending (ssl) (redacted@gmail.com/Adium): <stream:stream to='gmail.com' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' version='1.0'>
16:21:10: Connecting: gc=0x186639f0 (Initializing SSL/TLS) 6 / 9
16:21:10: Called write with no write_tag <SourceInfo 0x185971f0: Socket 0x38faf30: fd 15; timer_tag 0; read_tag 37; write_tag 0>
16:21:10: ************ redacted@gmail.com --step-- 5
16:21:10: ************ redacted@gmail.com --step-- 6
16:21:15: (Libpurple: util) Writing file accounts.xml to directory /Users/redacted/Library/Application Support/Adium 2.0/Users/Default/libpurple
16:21:15: (Libpurple: util) Writing file /Users/redacted/Library/Application Support/Adium 2.0/Users/Default/libpurple/accounts.xml
16:21:15: (Libpurple: util) Writing file blist.xml to directory /Users/redacted/Library/Application Support/Adium 2.0/Users/Default/libpurple
16:21:15: (Libpurple: util) Writing file /Users/redacted/Library/Application Support/Adium 2.0/Users/Default/libpurple/blist.xml
16:21:21: (Libpurple: cdsa) receive failed (-9802): Unknown error: 0
16:21:21: (Libpurple: connection) Connection error on 0x186639f0 (reason: 0 description: Lost connection with server: Unknown error: 0)
16:21:21: Connection Disconnected: gc=186639f0 (Lost connection with server: Unknown error: 0)
16:21:21: <AIPurpleGTalkAccount:2576870 2>:redacted@gmail.com accountConnectionReportDisconnect: Lost connection with server: Unknown error: 0
16:21:21: (Libpurple: account) Disconnecting account redacted@gmail.com/Adium (0x38e07b0)
16:21:21: (Libpurple: connection) Disconnecting connection 0x186639f0
16:21:21: (Libpurple: jabber) Sending (ssl) (redacted@gmail.com/Adium): </stream:stream>
16:21:21: (Libpurple: cdsa) send failed (-9806): Unknown error: 0
16:21:21: Disconnected: gc=186639f0
16:21:21: <AIPurpleGTalkAccount:2576870 2>:redacted@gmail.com: Telling the core we disconnected
16:21:21: <AIPurpleGTalkAccount:2576870 2>:redacted@gmail.com: Disconnected ("Lost connection with server: Unknown error: 0"): Automatically reconnecting in 5.000000 seconds (0 attempts performed)
16:21:21: (Libpurple: connection) Destroying connection 0x186639f0
16:21:23: <AIPurpleGTalkAccount:2576870 2>:redacted@gmail.com: Updating status for key: Online
16:21:23: <AIPurpleGTalkAccount:2576870 2>:redacted@gmail.com: Updating status for key: Enabled
16:21:23: <AIPurpleGTalkAccount:2576870 2>:redacted@gmail.com: Updating status for key: FullNameAttr
16:21:26: (Libpurple: util) Writing file accounts.xml to directory /Users/redacted/Library/Application Support/Adium 2.0/Users/Default/libpurple
16:21:26: (Libpurple: util) Writing file /Users/redacted/Library/Application Support/Adium 2.0/Users/Default/libpurple/accounts.xml


Re: Cannot connect to Gtalk on Office Wireless network

Posted: Thu Oct 07, 2010 8:39 pm
by sphynx
Maybe the Windows computer has different DNS settings? You can change your DNS settings in System Preferences (Network -> Advanced, 3rd tab) to something else, for example 8.8.4.4 (Google's own DNS sever). Could you do that and try again?

Re: Cannot connect to Gtalk on Office Wireless network

Posted: Thu Oct 07, 2010 8:59 pm
by Pathian
Tried changing the DNS server to 8.8.4.4, no luck with the connection. I was just thinking. I was looking at the Pidgin settings again, and it classifies my account as a generic XMPP account (as opposed to a gtalk account). I know that it's kind of beyond the scope of this forum, but is it possible that there is some other server that it is connecting to other than talk.google.com?

Re: Cannot connect to Gtalk on Office Wireless network

Posted: Thu Oct 07, 2010 9:38 pm
by sphynx
Hmm, you can check the settings for Pidgin's account there, right? I don't really know Pidgin well enough to guess what server it is configured to use.

Actually, reading your first post again, I'm quite sure this is a firewall. There are of course ways to evade it, but I think you should ask your network administrator, maybe they have accidentally blocked talk.google.com.