You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by S Ahmed <sa...@gmail.com> on 2011/12/16 20:28:45 UTC

[users@httpd] Re: ab not working, saying bind: address family not supported by protocol family 47

Any comments on this issue?


On Thu, Dec 8, 2011 at 9:24 PM, S Ahmed <sa...@gmail.com> wrote:

> ab -n 100 -c 1 http://localhost:8080/
>
> his is ApacheBench, Version 2.3 <$Revision: 1178079 $>
> Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
> Licensed to The Apache Software Foundation, http://www.apache.org/
>
> Benchmarking localhost (be patient)...bind: Address family not supported
> by protocol family (47)
>
>
> Background:  I upgraded my Mac to Lion, and apache bench stopped working
> giving me the errors:
>
> Upgrage apr_socket_recv: Connection reset by peer (54)
>
> So I read online that the latest beta version fixed this issue, so I
> downloaded it (
> http://ftp.download-by.net/apache//httpd/httpd-2.3.15-beta.tar.bz2) and
> built it based on this:
> http://www.ralphhenry.net/blog/2011/08/23/apachebench-fails-after-mac-osx-lion-upgrage-apr_socket_recv-connection-reset-by-peer-54/
>
> When I copied it over to /usr/sbin/ab, it now gives me the error above
> (address family not supported).
>
> I really want to get this working, any guesses what it could be?
>

Re: [users@httpd] Re: ab not working, saying bind: address family not supported by protocol family 47

Posted by S Ahmed <sa...@gmail.com>.
that worked, thanks a bundle!

On Fri, Dec 16, 2011 at 2:31 PM, Macks, Aaron <am...@harvardbusiness.org>wrote:

> Try pointing ab to 127.0.0.1 instead of localhost.  I remember somewhere
> that OSX changed to having the default address for localhost being ipv6,
> and if you've not built in support for that it may fail.  It may not help,
> but if that was the cause it might
>
> A
> --
> Aaron Macks
> Sr. Unix Systems Engineer
>
> Harvard Business Publishing
> 300 North Beacon St.    |   Watertown, MA 02472
> (617) 783-7461                |   Fax: (617) 783-7467
> www.harvardbusiness.org |   Cell:(978) 317-3614
>
> On Dec 16, 2011, at 2:28 PM, S Ahmed wrote:
>
> > Any comments on this issue?
> >
> >
> > On Thu, Dec 8, 2011 at 9:24 PM, S Ahmed <sa...@gmail.com> wrote:
> > ab -n 100 -c 1 http://localhost:8080/
> >
> > his is ApacheBench, Version 2.3 <$Revision: 1178079 $>
> > Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
> > Licensed to The Apache Software Foundation, http://www.apache.org/
> >
> > Benchmarking localhost (be patient)...bind: Address family not supported
> by protocol family (47)
> >
> >
> > Background:  I upgraded my Mac to Lion, and apache bench stopped working
> giving me the errors:
> >
> > Upgrage apr_socket_recv: Connection reset by peer (54)
> >
> > So I read online that the latest beta version fixed this issue, so I
> downloaded it (
> http://ftp.download-by.net/apache//httpd/httpd-2.3.15-beta.tar.bz2) and
> built it based on this:
> http://www.ralphhenry.net/blog/2011/08/23/apachebench-fails-after-mac-osx-lion-upgrage-apr_socket_recv-connection-reset-by-peer-54/
> >
> > When I copied it over to /usr/sbin/ab, it now gives me the error above
> (address family not supported).
> >
> > I really want to get this working, any guesses what it could be?
> >
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

Re: [users@httpd] Re: ab not working, saying bind: address family not supported by protocol family 47

Posted by "Macks, Aaron" <am...@harvardbusiness.org>.
Try pointing ab to 127.0.0.1 instead of localhost.  I remember somewhere that OSX changed to having the default address for localhost being ipv6, and if you've not built in support for that it may fail.  It may not help, but if that was the cause it might

A
--
Aaron Macks
Sr. Unix Systems Engineer

Harvard Business Publishing
300 North Beacon St.    |   Watertown, MA 02472
(617) 783-7461                |   Fax: (617) 783-7467
www.harvardbusiness.org |   Cell:(978) 317-3614

On Dec 16, 2011, at 2:28 PM, S Ahmed wrote:

> Any comments on this issue?
> 
> 
> On Thu, Dec 8, 2011 at 9:24 PM, S Ahmed <sa...@gmail.com> wrote:
> ab -n 100 -c 1 http://localhost:8080/
> 
> his is ApacheBench, Version 2.3 <$Revision: 1178079 $>
> Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
> Licensed to The Apache Software Foundation, http://www.apache.org/
> 
> Benchmarking localhost (be patient)...bind: Address family not supported by protocol family (47)
> 
> 
> Background:  I upgraded my Mac to Lion, and apache bench stopped working giving me the errors:
> 
> Upgrage apr_socket_recv: Connection reset by peer (54)
> 
> So I read online that the latest beta version fixed this issue, so I downloaded it (http://ftp.download-by.net/apache//httpd/httpd-2.3.15-beta.tar.bz2) and built it based on this: http://www.ralphhenry.net/blog/2011/08/23/apachebench-fails-after-mac-osx-lion-upgrage-apr_socket_recv-connection-reset-by-peer-54/
> 
> When I copied it over to /usr/sbin/ab, it now gives me the error above (address family not supported).
> 
> I really want to get this working, any guesses what it could be?
> 


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org