Ticket #201 (closed defect: fixed)

Opened 7 years ago

Last modified 3 years ago

do not work on linux without ipv6

Reported by: anonymous Owned by: armin
Priority: high Milestone: net6 1.3.0
Component: net6 Version:
Severity: blocker Keywords: ipv6 ipv4 session
Cc: Launchpad Bug: Bug 69307

Description

On ubuntu dapper WITHOUT ipv6 support in kernel.

There seems to be no way to launch a normal session (on ipv4) without internal support of ipv6 :

sobby or gobby fails with "Address family not supported" message at creation of a session.

strace gobby outputs :

...
socket(PF_INET6, SOCK_STREAM, IPPROTO_IP) = -1 EAFNOSUPPORT (Address family not supported by protocol)
futex(0xb7c42e2c, FUTEX_WAKE, 2147483647) = 0
futex(0xb7b4b1a4, FUTEX_WAKE, 2147483647) = 0
write(2, "Address family not supported", 28Address family not supported) = 28
write(2, "\n", 1
)                       = 1
munmap(0xb7f72000, 4096)                = 0
exit_group(1)                           = ?

Other info :

- ubuntu package version :

$ dpkg -l | grep sobby
ii  sobby       0.4.1-1.0.1                   a dedicated server for collaborative editing

Change History

  Changed 7 years ago by phil

Isn't ipv6 included in the default kernel? (If you can't reply in the Trac because of our new anti-spam measures, please mail me, you could find my address in `/usr/share/doc/sobby/changelog.Debian'.)

  Changed 7 years ago by armin

  • status changed from new to assigned

I guess we could/should fallback to IPv4 if opening an IPv6 socket did not succeed even if obby is compiled with IPv6 support.

  Changed 7 years ago by anonymous

yes it should definitely fall back, ipv6 is quite often explicitly disabled

  Changed 7 years ago by phil

You know that IPv6 is conditionally compiled in? Just don't activate it on compile time, or activate IPv6 in the kernel. It does no harm and is one step further into the future.

  Changed 7 years ago by Chris Jones

I didn't know that, I'm using 0.4.1-1 from edgy and i don't see an option. I tried --disable-ipv6 with the configure script, but it didn't seem to do anything.

  Changed 7 years ago by phil

I stated it in the other bug report. You need to discard the --enable-ipv6'. --disable-ipv6' does enable IPv6, which is a known bug and, FWIW, fixed in obby 0.4.2.

  Changed 7 years ago by phil

  • component changed from Sobby to net6
  • milestone changed from Sobby 0.4.0 to net6 1.3.0

As soon as a workaround for this bug is implemented, I will create new tarballs.

follow-up: ↓ 9   Changed 7 years ago by armin

  • status changed from assigned to closed
  • resolution set to fixed

obby now falls back to IPv4 when it could not open the session with IPv6. However, I was not able to test the patch because I have IPv6 compiled into the kernel (i.e. non-modular).

in reply to: ↑ 8   Changed 7 years ago by tom

Replying to armin:

obby now falls back to IPv4 when it could not open the session with IPv6. However, I was not able to test the patch because I have IPv6 compiled into the kernel (i.e. non-modular).

Tested in Gentoo and it worked.

  Changed 6 years ago by mamading@…

  • status changed from closed to reopened
  • resolution fixed deleted

I'm running Gobby 0.4.1 on Wolvix (Slackware 11.0), when I try to create a session, and click on the Host button. I'm getting this error "Address family not supported". I have ipv6 blacklisted, because it causes slow DNS resolution with some routers.

  Changed 6 years ago by armin

  • status changed from reopened to closed
  • resolution set to fixed

This is fixed only in the upcoming version 0.4.2 which will be released in the next few days, I hope.

  Changed 6 years ago by CeeC

  • status changed from closed to reopened
  • resolution fixed deleted

I've just installed 0.4.2 version (from source and with no error o warnings) and it gives me the same error: "Address family not supported". The failure not seems to be fixed.

  Changed 6 years ago by armin

Did you also update both net6 and obby to the latest versions?

  Changed 6 years ago by phil

  • status changed from reopened to closed
  • resolution set to fixed

Should be fixed now, please try the most current net6 (1.3.4).

  Changed 5 years ago by launchpad

  • launchpad_bug set to 69307

Updating Launchpad bug reference

Note: See TracTickets for help on using tickets.