#11412 closed defect (duplicate)
'localhost' does not resolve to ipv6 address
Reported by: | bastiK | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Core remotecontrol | Version: | |
Keywords: | ipv6 | Cc: |
Description
Remotecontrol does not find ipv6 address for localhost:
INFO: Detected useable IPv6 network, prefering IPv6 over IPv4 after next restart. ERROR: java.net.UnknownHostException java.net.UnknownHostException at org.openstreetmap.josm.io.remotecontrol.RemoteControl.getInet6Address(RemoteControl.java:105) at org.openstreetmap.josm.io.remotecontrol.RemoteControlHttpServer.<init>(RemoteControlHttpServer.java:75) at org.openstreetmap.josm.io.remotecontrol.RemoteControlHttpServer.restartRemoteControlHttpServer(RemoteControlHttpServer.java:37) at org.openstreetmap.josm.io.remotecontrol.RemoteControl.start(RemoteControl.java:48) at org.openstreetmap.josm.gui.MainApplication.main(MainApplication.java:496) INFO: RemoteControl::Accepting secure IPv4 connections on localhost/127.0.0.1:8112
$ cat /etc/hosts 127.0.0.1 localhost 127.0.1.1 myhost # The following lines are desirable for IPv6 capable hosts ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters
Build-Date: 2015-05-06 23:20:12 Revision: 8337 Is-Local-Build: true Identification: JOSM/1.5 (8337 SVN en) Linux Ubuntu 14.04.2 LTS Memory Usage: 150 MB / 1763 MB (80 MB allocated, but free) Java version: 1.7.0_79, Oracle Corporation, OpenJDK 64-Bit Server VM Java package: openjdk-7-jre:amd64-7u79-2.5.5-0ubuntu0.14.04.2 Last errors/warnings: - E: java.net.UnknownHostException
Attachments (0)
Change History (7)
comment:1 by , 9 years ago
comment:2 by , 9 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Closed as duplicate of #11409.
comment:3 by , 9 years ago
Beside the duplication - the /etc/hosts is broken. localhost should also be assigned to "::1".
comment:4 by , 9 years ago
This is the default /etc/hosts file for Debian/Ubuntu. (Which is more than 50% of Linux users, as seen by the JOSM server.)
comment:5 by , 9 years ago
You're right. My openSUSE server installations (preinstalled) also have this setting while the normal installs from DVD don't have it. Don't know who invented that. Probably same type of people who did the broken Java code.
Some sort of "backwards compatibility" which will prevent IPv6 from ever working as expected.
comment:6 by , 9 years ago
Strange my Debian wheezy version includes ipv6:
$ cat /etc/hosts 127.0.0.1 localhost 127.0.1.1 $HOSTNAME # The following lines are desirable for IPv6 capable hosts ::1 localhost ip6-localhost ip6-loopback ff02::1 ip6-allnodes ff02::2 ip6-allrouters
comment:7 by , 9 years ago
That's the right way. But to reduce trouble with broken software localhost for ::1 was removed for some years (i.e. we hide the error instead of fixing it). I was not aware that even recent installations do this.
same problem than #11409 no?