Bug#607261: prayer: fails to start if no IPv6 Routers present

2010-12-16 Thread Magnus Holmgren
On torsdagen den 16 december 2010, you stated the following:
> after installing a new debian squeeze system, prayer fails to start with
> [...]
>Error was: [os_bind_inet_socket()] bind() failed: Address already in use
> Aborted
> 
> a deep inspection shows that the problem is that no IPv6 Routers are (in
> my environment) present.

Actually, the bug is that Prayer tries to bind IPv4 and IPv6 sockets 
separately without setting the IPV6_V6ONLY flag. That fails because when the 
sysctl net.ipv6.bindv6only is set to 0 (after a long debate, the default value 
on Debian), IPv6 sockets listening on [::] will also handle IPv4 packets (with 
the remote address looking like :::1.2.3.4).

So the problem occurs on dual-stack systems whether IPv6 actually works or 
not, but not on systems without any IPv6 support at all. But thanks for 
reporting anyway. I should have noticed it myself but for some reason never 
really tried starting Prayer with net.ipv6.bindv6only=0.

To work around the problem one can set net.ipv6.bindv6only=1 in 
/etc/sysctl.conf (will affect all software on the system) or set use_http_port 
to 0.0.0.0:port or :::port as you suggest.

-- 
Magnus Holmgrenholmg...@debian.org
Debian Developer 


signature.asc
Description: This is a digitally signed message part.


Bug#607261: prayer: fails to start if no IPv6 Routers present

2010-12-16 Thread Taube Matthias

Subject: prayer: fails to start if no IPv6 Routers present
Package: prayer
Version: 1.3.3-dfsg1-2
Severity: normal

*** Please type your report below this line ***

after installing a new debian squeeze system, prayer fails to start with 
this error message:

> > #/etc/init.d/prayer start
  Error was: [os_bind_inet_socket()] bind() failed: Address already in use
Aborted
 failed!

but according to netstat, the http and https ports are free.

Config in /etc/prayer/prayer.cf
> use_http_port   80
> use_https_port  443

a deep inspection shows that the problem is that no IPv6 Routers are (in 
my environment) present.


So the prayer was not able to bring the IPv6 Ports up.

As a lot of people have an "only IPv4 LAN", this error is hard to find.

Solution:
In the prayer.cf add after:

# Define a single HTTP port to bind to:
#
# You can define an arbitary list of ports of both kinds by using a series
# of separate "use_http_port" and "use_https_port" directives, with one
# port on each line. Format: "interface:port" or "ipaddr:port" to bind to a
# single interface, "port" to bind to all interfaces.


The lines:
# If you bind to all interfaces, prayer will bind to IPv6 and IPv4
# parallel and fails if one of this is not present. If you have
# only IPv4 (or only IPv6), you should use # the "ipaddr:port"
# format.

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/1 CPU core)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages prayer depends on:

ii  adduser 3.112+nmu2   add and remove users and groups
ii  libc-client2007e8:2007e~dfsg-3.1 c-client library for mail protocol
ii  libc6   2.11.2-7 Embedded GNU C Library: Shared lib
ii  libdb4.84.8.30-2 Berkeley v4.8 Database Libraries [
ii  libldap-2.4-2   2.4.23-7 OpenLDAP libraries
ii  libssl0.9.8 0.9.8o-3 SSL shared libraries
ii  libtidy-0.99-0  20091223cvs-1HTML syntax checker and reformatte
ii  logrotate   3.7.8-6  Log rotation utility
ii  nullmailer [mail-transp 1:1.04-1.2   simple relay-only mail transport a
ii  ssl-cert1.0.26   simple debconf wrapper for OpenSSL
ii  zlib1g  1:1.2.3.4.dfsg-3 compression library - runtime
prayer recommends no packages.

Versions of packages prayer suggests:
ii  aspell0.60.6-4   GNU Aspell spell-checker
pn  imap-server(no description available)
ii  ispell3.1.20.0-7 International Ispell (an interacti
pn  prayer-accountd(no description available)
pn  prayer-templates-src   (no description available)

-- Configuration Files:
/etc/default/prayer changed [not included]
/etc/prayer/prayer.cf changed [not included]





--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org