Public bug reported:
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.1253183...@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
** Affects: gnome-utils (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug
--
gnome-dictionary doesn't talk to localhost
https://bugs.launchpad.net/bugs/431312
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs