[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: davautocheck - "(98)Address already in use: make_sock: could not bind to address 127.0.0.1:xxxx"

From: Julian Foad <julian.foad_at_wandisco.com>
Date: Tue, 26 Jan 2010 12:27:20 +0000

On Fri, 2010-01-15, Julian Foad wrote:
> On Fri, 2010-01-15 at 12:22 +0000, Philip Martin wrote:
> > Julian Foad <julian.foad_at_wandisco.com> writes:
> > > I'm unable to run DAV tests this week. I'm getting:
> > >
> > > [[[
> > > (98)Address already in use: make_sock: could not bind to address 127.0.0.1:3961
> > > no listening sockets available, shutting down
> > > ]]]
[...]
> > I can get it to work by deleting localhost:
> > from the Listen statement in the config file to just leave the port
> > number: "Listen 19574".
>
> Wierd, but that works for me too. Thanks.
[...]

I committed that tweak as r903196. Let me know if it fails anywhere.

Log message:
[[[
Tweak davautocheck.sh to work around a problem whereby Apache httpd fails to
start on some systems, at least on Ubuntu. When httpd starts with its
"Listen" directive specified as "localhost:$HTTPD_PORT", it tries to open
the port twice and fails, giving the error "(98)Address already in use:
make_sock: could not bind to address 127.0.0.1:xxxx" (where xxxx is the port
number). When the host name is specified as "localhost" or omitted, it
works. See the email thread
<http://mail-archives.apache.org/mod_mbox/subversion-dev/201001.mbox/%3C1263555940.2264.475.camel@edith%3E>.

* subversion/tests/cmdline/davautocheck.sh
  Remove "localhost" from the "Listen" address, leaving just the port number.
]]]

- Julian
Received on 2010-01-26 13:27:58 CET

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.