gnome-dictionary doesn't talk to localhost

Bug #431312 reported by Dennis van Dok
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gnome-utils
New
Medium
gnome-utils (Ubuntu)
Invalid
Low
Unassigned

Bug Description

Binary package hint: gnome-utils

I installed a local dictionary server to be able to work off-line. I added a new source in gnome-dictionary with the following settings:

name : local
hostname: localhost
port: 2628

I selected the local source and tried a lookup. Instead of a definition, I got:

Fout bij het opzoeken van de definitie
Verbinding mislukt voor de woordenboekserver op localhost:2628

(Which translates to 'error looking up definition; connection failure for dictionary server on localhost:2628')

Further information:

- the local dictionary server is running and allows local connections
- I tested the local connection with telnet and got a working connection
- a tcpdump on the loopback interface shows what might be the cause:

tcpdump -i lo
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on lo, link-type EN10MB (Ethernet), capture size 96 bytes
11:55:06.848531 IP6 localhost.33863 > localhost.dict: S 1538443312:1538443312(0) win 32752 <mss 16376,sackOK,timestamp 1205001 0,[|tcp]>
11:55:06.848547 IP6 localhost.dict > localhost.33863: R 0:0(0) ack 1538443313 win 0
11:56:10.810620 IP6 localhost.33865 > localhost.dict: S 1074814782:1074814782(0) win 32752 <mss 16376,sackOK,timestamp 1220992 0,[|tcp]>
11:56:10.810636 IP6 localhost.dict > localhost.33865: R 0:0(0) ack 1074814783 win 0

So it seems a IPv6 connection was attempted. dictd will not work on IPv6.

The contents of /etc/hosts:

127.0.0.1 localhost
127.0.1.1 camilla

# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

It seems that only ::1 was attempted. When I try telnet localhost I get:

telnet localhost dict
Trying ::1...
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 camilla dictd 1.10.11/rf on Linux 2.6.28-15-generic <auth.mime> <8.9063.1253183129@camilla>

It seems telnet tries ::1 first, then 127.0.0.1.

Finally, changing the source settings in gnome-dictionary to use '127.0.0.1' instead of 'localhost' resolved the issue.

ProblemType: Bug
Architecture: amd64
DistroRelease: Ubuntu 9.04
Package: gnome-utils 2.26.0-0ubuntu1
ProcEnviron:
 PATH=(custom, user)
 LANG=nl_NL.UTF-8
 SHELL=/bin/bash
SourcePackage: gnome-utils
Uname: Linux 2.6.28-15-generic x86_64

Revision history for this message
Dennis van Dok (dvandok-gmail) wrote :
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thanks for the bug report. This particular bug has already been reported, but feel free to report any other bugs you find.

Changed in gnome-utils (Ubuntu):
assignee: nobody → Ubuntu Desktop Bugs (desktop-bugs)
importance: Undecided → Low
status: New → Invalid
Revision history for this message
Dennis van Dok (dvandok-gmail) wrote :

Could you please indicate which bug this is a duplicate of?

Revision history for this message
Sebastien Bacher (seb128) wrote :

not sure about the bug number no but that was in some other bug too

Revision history for this message
Dennis van Dok (dvandok-gmail) wrote :

Could you please help me find it because I want to subscribe to it. I've looked around and it's definitely not the same as bug#80725 or bug#19227.

Revision history for this message
Sebastien Bacher (seb128) wrote :

reopening I've higher issues on my list than looking for bug numbers, to send upstream by somebody having the issue it's possible that the previous was closed because nobody wanted to do that and the bug sat there for a while

Changed in gnome-utils (Ubuntu):
status: Invalid → New
Revision history for this message
wvengen (wvengen) wrote :

similar bugs: bug #367024, bug #137227 and bug #147922. This bug is the only with a complete analysis of the situation.

There are two sides to this issue:
* dictd should talk ipv6 -- bug #381324
* gnome dictionary application should try ipv4 when ipv6 fails

Let's restrict this bug to the latter.

Changed in gnome-utils:
status: Unknown → New
Revision history for this message
Hilton Shumway (hillshum) wrote :

I'll confirm this for Jaunty

Revision history for this message
Victor Vargas (kamus) wrote :

@Dennis, please could you check if this issue is still affecting you under latest release included in Ubuntu Lucid? Thanks!

Changed in gnome-utils (Ubuntu):
status: New → Incomplete
Revision history for this message
Dennis van Dok (dvandok-gmail) wrote :

Issue seems to be solved. I've tried to reverse the workaround I applied and tested by looking up a word in the local dictionary. It worked.

Changed in gnome-utils:
importance: Unknown → Medium
Revision history for this message
Sebastien Bacher (seb128) wrote :

closing since that works now

Changed in gnome-utils (Ubuntu):
assignee: Ubuntu Desktop Bugs (desktop-bugs) → nobody
status: Incomplete → Invalid
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.