Closed Bug 480529 Opened 15 years ago Closed 15 years ago

Unable to connect to server with x86_64 (server not found)

Categories

(Core :: Networking, defect)

1.9.1 Branch
x86_64
Linux
defect
Not set
major

Tracking

()

RESOLVED DUPLICATE of bug 414197

People

(Reporter: renatoyamane, Unassigned)

References

Details

(Keywords: relnote)

Attachments

(5 files)

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; pt-BR; rv:1.9.0.6) Gecko/2009020409 Firefox/3.0.4 (Debian-3.0.6-1)
Build Identifier: Thunderbird 3b2

I already try Thunderbird 3b2 and last trunk available in Feb/21, Feb/23 and Feb/24.

In my i386(32 bits) all works fine.

When I run Thunderbird 3B2 (./run-mozilla.sh or ./thunderbird), I see first steps to config a new account, but when I finish it, is impossible connect to server (server not found).

The same account (with same server, and same network enviroment) works fine in Thunderbird 3b2 running in x86 (32 bits).

Any idea what is happening?

Reproducible: Always

Steps to Reproduce:
1. Try run Thunderbird 3B2 in amd64 box (Debian Lenny)
Actual Results:  
don't connect to server
Some more info:

- I'm using Debian Lenny:
$ uname -a
Linux mandachuva 2.6.26-1-amd64 #1 SMP Sat Jan 10 17:57:00 UTC 2009 x86_64 GNU/Linux

- I get Thunderbird 3B2 from:
http://download.mozilla.org/?product=thunderbird-3.0b2&os=linux&lang=pt-BR
I *don't* see x86_32 or x86_64, so I think that exist only one version, to both ports (32 bits and 64 bits). 

- I can connect on the mail server using telnet:
$ telnet -l USER@mandic.com.br imap.mandic.com.br 993
Trying 200.225.83.18...
Connected to imap-cluster.mandic.com.br.
Escape character is '^]'

- I already try change secure auth (SSL/TLS and STARTTLS), even I always use SSL (in x86_32).

Let me know if you need more info.

Regards,
Renato
One more info:

- Reboot the same laptop to use Windows Vista (32 bits)
- Download Thunderbird 3B2 from:
http://download.mozilla.org/?product=thunderbird-3.0b2&os=win&lang=pt-BR
- And... All works fine.

The problem is *only* in Linux x86_64

Error message is: "Unable to connect to server imap.mandic.com.br"
I might have had seen the same problem on my wife's laptop (with ubuntu 64 bit). Haven't played with it again since the distro version (of tb2) worked fine, as did a self compiled version of tb3.
Summary: Impossible set account in x86_64 (server not found) → Unable to connect to server with x86_64 (server not found)
So... I think that is a good idea change bug status from "Unconfirmed" to "Confirmed".

And I think that it will block Tb3, because is not a good idea don't work in x86_64.
Hey Renato,

I just noticed something...  In your telnet, you said:
> - I can connect on the mail server using telnet:
> $ telnet -l USER@mandic.com.br imap.mandic.com.br 993
> Trying 200.225.83.18...
> Connected to imap-cluster.mandic.com.br.

So it looks like there's a cluster of servers handling requests for imap.mandic.com.br.  Could it be that one of the servers was down?  Do you always connect to the same server?

Is there any way you could run WireShark, and capture a dump of the traffic to and from imap.mandic.br while you try telnetting and then connecting with Thunderbird?  (I don't know if it'll help any, but it might be interesting.)

Thanks,
Blake.
Blake, I can do this in the night, but if the cluster is the problem, why I can connect using x86_32?

The problem is *always* reproducible in x86_64 and *never* reproducible in x86_32 (same server, same network, same account).

Thunderbird 3B2 is *unusable* in x86_64.

Regards,
Renato
I try run wireshark, but...

- If I run it as a "normal user", it says that I don't have sufficient permissions.

- And is impossible run it as "root":
# wireshark &
[1] 7064
# No protocol specified
(wireshark:7064): Gtk-WARNING **: cannot open display: :0

What can I do?
To fix this wireshark bug:
cp /home/USER/.Xauthority /root/

1) When I use telnet, is possible get traffic.

2) When I run thunderbird (and click a lot of times in "get message"), absolutely NONE package is sent/received. Thunderbird never send any query.

Regards,
Renato
Here is some packages captured when I click in "get message" using Thunderbird 3 Beta2 in x86_32.

When I try capture in a x86_64, *NONE* package is send/receive by Thunderbird.
Any news here?
I still impossible to use Thunderbird 3 Beta2 in x86_64

Regards,
Renato
imap?

Renato's trace 

Source                Destination           Protocol Info
192.168.1.103         200.225.83.18         TCP      51877 > imaps [SYN] Seq=0 Win=5840 Len=0 MSS=1460 TSV=13998 TSER=0 WS=6
200.225.83.18         192.168.1.103         TCP      imaps > 51877 [SYN, ACK] Seq=0 Ack=1 Win=5792 Len=0 MSS=1460 TSV=459180106 TS
192.168.1.103         200.225.83.18         TCP      51877 > imaps [ACK] Seq=1 Ack=1 Win=5888 Len=0 TSV=14008 TSER=459180106
192.168.1.103         200.225.83.18         TLSv1    Client Hello
200.225.83.18         192.168.1.103         TCP      imaps > 51877 [ACK] Seq=1 Ack=200 Win=7168 Len=0 TSV=459180117 TSER=14008
200.225.83.18         192.168.1.103         TLSv1    Server Hello, 
192.168.1.103         200.225.83.18         TCP      51877 > imaps [ACK] Seq=200 Ack=1441 Win=8768 Len=0 TSV=14019 TSER=459180117
200.225.83.18         192.168.1.103         TLSv1    Certificate
192.168.1.103         200.225.83.18         TCP      51877 > imaps [ACK] Seq=200 Ack=1481 Win=8768 Len=0 TSV=14020 TSER=459180117
192.168.1.103         200.225.83.18         TLSv1    Client Key Exchange, Change Cipher Spec, Encrypted Handshake Message
200.225.83.18         192.168.1.103         TLSv1    Change Cipher Spec, Encrypted Handshake Message
192.168.1.103         200.225.83.18         TCP      51877 > imaps [ACK] Seq=398 Ack=1540 Win=8768 Len=0 TSV=14041 TSER=459180130
200.225.83.18         192.168.1.103         TLSv1    Application Data, Application Data
192.168.1.103         200.225.83.18         TCP      51877 > imaps [ACK] Seq=398 Ack=1902 Win=11648 Len=0 TSV=14050 TSER=459180148
To Yamane-san: 

(Q1) IMAP only problem? No problem with SMTP/POP3/NNTP? 

DIG result.
> ; <<>> DiG 9.3.2 <<>> @dns1 imap.mandic.com.br
> ;; ANSWER SECTION:
> imap.mandic.com.br.     86361   IN      CNAME   imap-cluster.mandic.com.br.
> imap-cluster.mandic.com.br. 86361 IN    A       200.225.83.18

Change IMAP hostname to "imap-cluster.mandic.com.br" at Tb's Server Settings.
(Q2) Can it be a workaround? Will phenomenon be altered by it?

(Q3) Can Tb connect to Gmail IMAP?
(Gmail IMAP also uses SSL and clustering with DNS round robin)
> ; <<>> DiG 9.3.2 <<>> @dns0 imap.gmail.com
> ;; ANSWER SECTION:
> imap.gmail.com.         239     IN      CNAME   gmail-imap.l.google.com.
> gmail-imap.l.google.com. 33     IN      A       209.85.199.109
> gmail-imap.l.google.com. 33     IN      A       209.85.199.111
- Define "Gmail IMAP" account by Tb 3 with name of "yatter.king".
  (my free Gmail account for testing. yatter.king@gmail.com)
- Try to connect Gmail IMAP. Will Tb ask for password?
Tested nightly build:
Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.9.1b4pre) Gecko/20090330 Shredder/3.0b3pre

FIRST OF ALL: Don't forget that tcpdump above is from a Linux 32bits, and don't from a 64bits. If I run wireshark in a 64bits when Thunderbird is running, NONE traffic is showed.

(Q1) IMAP only problem? No problem with SMTP/POP3/NNTP?
(ANSWER) Tested with IMAP, POP3 and SMTP. Is impossible connect in all this servers (tested with Gmail, mandic.com.br and with my work-account).

(Q2) Change IMAP hostname to "imap-cluster.mandic.com.br" can it be a workaround? Will phenomenon be altered by it?
(ANSWER) Tested and checked that is still impossible connect in my account using imap-cluster.mandic.com.br

(Q3) Can Tb connect to Gmail IMAP?
(ANSWER) No. GMail don't work too!

I check with wireshark that NONE happening when I start or click in "Get Mail".
Thunderbird don't send NONE request, query, or whatever.
See in this image attached that NOTHING happening in Wireshark when I try get my e-mails. None traffic is showed and Thunderbird show me a alert (Failed to connect).
Thunderbird is not trying connect to servers, as wireshark show to us.
Questions to avoid my misunderstanding.
Which Tb version? Thunderbird 32bit? Thunderbird 64 bit?
Is the "64 bit Linux" running on native PC? Or on virtaul PC under VMWare etc.?
No problem with Firefox latest-trunk or Firefox 3.0.x? (HTTP)

Question to know "TSC skew by ACPI on multi-cpu/multi-core" is relevant or not.
When CPU affinity is set for Tb(use single CPU only), does the problem occur?

Get Tb side NSPR log first. Something wrong starts to occur at what step?
> Getting log : See Bug 402793 Comment#1
> bash$ export NSPR_LOG_MODULES=nsHostResolver:5,nsSocketTransport:5,nsHttp:5,smtp:5,pop3:5,imap:5,nntp:5,ldap:5,http:5
> After quick check, remove uneeded parameters.
I using Thunderbird 32bits, because I never found 64bits version:
http://ftp.mozilla.org/pub/mozilla.org/thunderbird/nightly/latest-trunk/
http://www.mozillamessaging.com/en-US/thunderbird/early_releases/downloads/

I running Debian Lenny (amd64) on native PC.

I donwloaded Firefox 3.6 nightly build *64bits* and its running fine:
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2a1pre) Gecko/20090331 Minefield/3.6a1pre

I try Firefox 3.6 nighty build *32bits* and happening the same problem of Thunderbird
Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.9.2a1pre) Gecko/20090331 Minefield/3.6a1pre

Error in Firefox is:
Address Not Found
Firefox can't find the server at www.gmail.com

So, is possible finish that: Is impossible run 32bits Firefox/Thunderbird on native 64bits OS.

My question is: Where can I find Thunderbird 64bits?

I get both Firefox (32bits and 64bits) from here:
http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-trunk/

About the log requested by you:

$ export NSPR_LOG_MODULES=imap:5
$ export NSPR_LOG_FILE=/tmp/imap.log

$ ./thunderbird &
$ cat /tmp/imap.log
-250610800[f3359b30]: ImapThreadMainLoop entering [this=f2a15c00]
-152757552[f6b10060]: f2a15c00:imap.gmail.com:NA:SetupWithUrl: clearing IMAP_CONNECTION_IS_OPEN
-250610800[f3359b30]: f2a15c00:imap.gmail.com:NA:ProcessCurrentURL: entering
-250610800[f3359b30]: f2a15c00:imap.gmail.com:NA:ProcessCurrentURL:imap://yatter%2Eking@imap.gmail.com:993/select%3E%5EINBOX:  = currentUrl
-250610800[f3359b30]: ReadNextLine [stream=f36b1b68 nb=4294967295 needmore=0]
-250610800[f3359b30]: f2a15c00:imap.gmail.com:NA:CreateNewLineFromSocket: clearing IMAP_CONNECTION_IS_OPEN - rv = 804b001e
-250610800[f3359b30]: f2a15c00:imap.gmail.com:NA:TellThreadToDie: close socket connection
-250610800[f3359b30]: f2a15c00:imap.gmail.com:NA:CreateNewLineFromSocket: (null)
-250610800[f3359b30]: f2a15c00:imap.gmail.com:NA:ProcessCurrentURL: aborting queued urls
-250610800[f3359b30]: ImapThreadMainLoop leaving [this=f2a15c00]

If I click in "Get mail", all above is reproduced again.

Regards,
Renato S. Yamane
Brazil
Attachment #370328 - Attachment mime type: application/octet-stream → text/plain
(In reply to comment #16)
> So, is possible finish that: Is impossible run 32bits Firefox/Thunderbird on native 64bits OS.

"library path for 32bits application" related issue on 64bits Linux?
"Firefox 32bits/Thunderbird 32 bits" only issue? Other 32bits applications which use network access related API work well?

> My question is: Where can I find Thunderbird 64bits?

According to some threads at MozillaZine forum, you seem to have to compile by yourself currently...
> Mozilla Thunderbird / Thunderbird Builds
> http://forums.mozillazine.org/viewtopic.php?f=29&t=1083835&p=6061585&hilit=64bit+linux#p6061585
> Development / Third Party/Unofficial Builds
> http://forums.mozillazine.org/viewtopic.php?f=42&t=645506&st=0&sk=t&sd=a&hilit=thunderbird+64+bit+linux
I don´t use other 32bits application, so I don´t know if this problem happening too.

But... I really don´t understand why Firefox nigtly build is available in 64bits, but Thunderbird don´t.

In my situation, is IMPOSSIBLE test it.

I will wait for Debian Official Package (IceDove).

Regards,
Renato
FYI.
For 32bits Thunderbird/Firefox on 64bits Linux:
> (Forum post in July 2006) 
> https://www.linuxquestions.org/questions/fedora-35/32-bit-thunderbirdfirefox-on-64-bit-system-465347/
> Been doing this for months, the 64-bit OS can run 32-bit apps with no problems
> as long as you have the required (32-bit) libs installed, see; (snip)
> (Forum post in Aug 2008) 
> http://forums.mozillazine.org/viewtopic.php?f=29&t=802085&p=4550915
> The nightly builds are for 32-bit operating systems,
> but should run 64-bit systems as long as all libraries are present.
> The nightly builds are for 32-bit operating systems,
> but should run 64-bit systems as long as all libraries are present

What means "ALL libraries are presente"?
If I can run Thunderbrid, this means that I have "all libraries present"?
If yes, Thunderbird can run but can't connect in any server.

Regards,
Renato
The 32-bit libraries seem to be present, otherwise, as you correctly point out, the executable wouldn't even start. There appears to be a general problem with network connectivity though, given that the host names don't resolve to an address in either Thunderbird nor Firefox (note that the welcome screen in the background of your image shows an error as well).

(In reply to comment #18)
> "Firefox 32bits/Thunderbird 32 bits" only issue? Other 32bits applications
> which use network access related API work well?

This is the important question. If you can find another 32-bit application which connects to the network, and it equally fails, the problem is most likely in the 32-bit libraries of your installation.
(In reply to comment #21)
> What means "ALL libraries are presente"?

My understanding is;
 - All libraries, which is required to run network related component of 32bits
   application, is installed in 64bits Linux distoro usually.
 - Environmental setups(such as LIBPATH setting on MS Win) in start up procedure
   of an application is set or defaulted to one for 64bits APP on the distro,
   at least when Fx/Tb.
Hi, this 2 last posts is really "generic" to me.
In others words: What I need to do? :-)

Anyone is running Thunderbird in 64bits OS?
Why Tb is not available in 64bits version as Firefox?

Regards,
Renato
As a very simple test, you could take a network-related executable from your 32-bit installation (e.g., /usr/bin/telnet) and copy it as is onto your 64-bit installation (e.g., as /tmp/telnet32). Try to run it and see if it connects.

> Anyone is running Thunderbird in 64bits OS?

Yes, no problem running 3.0b2 32-bit build on 64-bit openSUSE installation.

> Why Tb is not available in 64bits version as Firefox?

Because no 64-bit virtual or physical machines are available for Thunderbird builds yet, see the discussion in bug 486710.
I get telnet app from my other laptop (Debian Lenny 32bits) and run it in a laptop that have Debian Lenny 64bits installed:

This is executed in 64bits OS:

$ file telnet.netkit
telnet.netkit: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.8, stripped

$ telnet.netkit imap.mandic.com.br 993
Trying 200.225.83.18...
Connected to imap-cluster.mandic.com.br.
Escape character is '^]'

As you can see, I can connect on imap.mandic.com.br using telnet (32bits) running it in a 64bits OS

Regards,
Renato
Ok, so this would demonstrate that a 32-bit application can work with the given libraries on your 64-bit installation, resolve an IP address, and connect to the server. In contrast, neither 32-bit Thunderbird nor Firefox applications are able to resolve a hostname and to connect to it.

Unless anyone else has an idea, this would look like a low-level connection issue to me, maybe best served by continuing triage in the Core/Networking component rather than specific to Thunderbird.

You can try to look for an answer in some Debian support forums in parallel.
Please change status to CONFIRMED.  I have exactly the same problem in amd64 (64-bit) Kubuntu 9.04.  I downloaded 32-bit Thunderbird 3 beta 2 and Firefox 3 beta 4.  Both start up, but neither can connect to the Internet.  Is there a similar bug for Firefox or as comment #27 says is this a Core bug?

I used `ldd components/*.so` and `strace thunderbird/thunderbird-bin` to find some missing 32-bit libraries (libgnome-2.so.0, libgnomevfs-2.so.0, libavahi-glib.so.1, libgnomeui-2.so.0) and used someone's `getlibs` utility to download and copy these to Kubuntu's /usr/lib32, but this made no difference to the applications' behavior.  I may still have additional missing 32-bit libraries as both binaries print a "GConf Error: Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, ..."  at startup.
I'm also experiencing this issue on Ubuntu 9.04 amd64; I've got a workaround

I played around and it seems to be a problem in DNS resolution (and going to the DNS server, at that). If you replace the IMAP server (imap.gmail.com in my case) with the IP address of the server (I chose 74.125.45.111 for gmail) then it works.

In addition, putting this binding in /etc/hosts also works:
74.125.45.111   imap.gmail.com

I'm using Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.9.1b5pre) Gecko/20090519 Shredder/3.0b3pre  - I'll test it with the latest nightly tomorrow when I get a chance
Can any of the people experinecing the issue recreae the issue and log nsHostResolver:5 as described at : http://www.mozilla.org/projects/netlib/http/http-debugging.html ?
fwiw, I've been lead to believe that mozilla dns is...not rock solid
(In reply to comment #31)
> fwiw, I've been lead to believe that mozilla dns is...not rock solid

It's not - for sure .
Fails when contacting imap.gmail.com
Log output when I put a map into my /etc/hosts file for imap.gmail.com
Component: Account Manager → Networking
Product: Thunderbird → Core
QA Contact: account-manager → networking
Version: unspecified → 1.9.1 Branch
Ludovic wrote:
> Can any of the people experinecing the issue recreae the issue and log
> nsHostResolver:5 as described at...

Again?
See Comment #17 and Comment #16

Regards,
Renato
could you try setting network.dns.disableIPv6 to true
and see if it helps. That may be bug 414197.
Yes!
With network.dns.disableIPV6 changed to TRUE thunderbird works fine in my Debian Lenny AMD64.

Regards,
Renato S. Yamane
ok, so installing the lib32nss-mdns package should solve the issue.
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: