You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Justin Maguire <ej...@gmail.com> on 2008/05/26 03:53:12 UTC

Re: Apache 2.2.8 on solaris 10 in chroot problem

> Hello All,
>
> I tried the user list, but didnt seem to get any help for this issue. I am
> currently in the process of upgrading from Apache/2.0.63 (Unix) to
> Apache/2.2.8(Unix)to take advantage of mem caching. But when I complie and
> run the Apache 2.2.8 I am facing two issues that I believe are related to a
> lib that maybe missing or incorrect(cant seem to find it).
>
> First is the virutal host configs are skipped due to an error on start up:
> [Fri May 23 05:48:00 2008] [error] (EAI 8)node name or service name not
> known: Could not resolve host name 10.25.9.193 -- ignoring!
> [Fri May 23 05:48:00 2008] [error] (EAI 8)node name or service name not
> known: Could not resolve host name 10.25.9.193 -- ignoring!
>
> Second is the proxy returns a DNS error in the rror logs with a 502 HTTP
> response.
> [Fri May 23 05:51:01 2008] [notice] Apache/2.2.8 (Unix) configured --
> resuming normal operations
> [Fri May 23 05:51:08 2008] [error] [client 10.25.91.59] proxy: DNS lookup
> failure for: 10.25.9.191 returned by /test/
>
> The below configure script works on 2.0.63 but not 2.2.8:
> ./configure --with-mpm=worker --disable-cgid --enable-info --enable-proxy
> --enable-rewrite --enable-mem-cache --enable-disk-cache --enable-cache
> --enable-expires
> chroot home /chroot
> Solaris 10 SunOS etdevry04 5.10 Generic_118833-03 sun4u sparc
> SUNW,Sun-Fire-V240
>
>
> I have loaded all the required lib's into the chroot env's lib folder by
> using ldd and truss on httpd .
> I have created the following files in my etc folder
> group           hosts           logrotate.conf  netconfig
> nsswitch.conf   passwd
>
> My host file contains the following
> #
> # Internet host table
> #
> 127.0.0.1       localhost.localdomain   localhost
> 10.25.9.193     etdevry04       etdevry04.syd.internal.com.au
> 10.25.9.191     etdevry02       etdevry02.syd.internal.com.au
>
> I am able to get apache 2.2.8 chrooted on a fedora server fine just seems
> to be solaris I am having problems with.
>
> Below is the additions I made to my httpd.conf after a resh install
>
> HostnameLookups Off
> UseCanonicalName Off
>
> ProxyPass /test/ http://10.25.9.191/test/
> ProxyPassReverse /test/ http://10.25.9.191/test/
>
> NameVirtualHost 10.25.9.193:80 <http://10.25.9.193/>
>
> <VirtualHost 10.25.9.193:80 <http://10.25.9.193/>>
>         ServerName etdevry04
>         ProxyPass /test/ http://10.25.9.191/test/
>         ProxyPassReverse /test/ http://10.25.9.191/test/
> </VirtualHost>
>
> Help would be appreciated :)
>
> Thanks,
> Justin Maguire
>

Re: Apache 2.2.8 on solaris 10 in chroot problem

Posted by Justin Maguire <ej...@gmail.com>.
Hi,

I tried hosts without the dns option on the end with no luck

#
# /etc/nsswitch.files:
#
# An example file that could be copied over to /etc/nsswitch.conf; it
# does not use any naming service.
#
# "hosts:" and "services:" in this file are used only if the
# /etc/netconfig file has a "-" for nametoaddr_libs of "inet" transports.

passwd:     files
group:      files
hosts:      files dns
ipnodes:    files
networks:   files
protocols:  files
rpc:        files
ethers:     files
netmasks:   files
bootparams: files
publickey:  files
# At present there isn't a 'files' backend for netgroup;  the system will
#   figure it out pretty quickly, and won't use netgroups at all.
netgroup:   files
automount:  files
aliases:    files
services:   files
printers:       user files

auth_attr:  files
prof_attr:  files
project:    files



On 5/26/08, Ruediger Pluem <rp...@apache.org> wrote:
>
>
>
> On 05/26/2008 03:53 AM, Justin Maguire wrote:
>
>> Hello All,
>>>
>>> I tried the user list, but didnt seem to get any help for this issue. I
>>> am
>>> currently in the process of upgrading from Apache/2.0.63 (Unix) to
>>> Apache/2.2.8(Unix)to take advantage of mem caching. But when I complie
>>> and
>>> run the Apache 2.2.8 I am facing two issues that I believe are related to
>>> a
>>> lib that maybe missing or incorrect(cant seem to find it).
>>>
>>> First is the virutal host configs are skipped due to an error on start
>>> up:
>>> [Fri May 23 05:48:00 2008] [error] (EAI 8)node name or service name not
>>> known: Could not resolve host name 10.25.9.193 -- ignoring!
>>> [Fri May 23 05:48:00 2008] [error] (EAI 8)node name or service name not
>>> known: Could not resolve host name 10.25.9.193 -- ignoring!
>>>
>>> Second is the proxy returns a DNS error in the rror logs with a 502 HTTP
>>> response.
>>> [Fri May 23 05:51:01 2008] [notice] Apache/2.2.8 (Unix) configured --
>>> resuming normal operations
>>> [Fri May 23 05:51:08 2008] [error] [client 10.25.91.59] proxy: DNS
>>> lookup
>>> failure for: 10.25.9.191 returned by /test/
>>>
>>> The below configure script works on 2.0.63 but not 2.2.8:
>>> ./configure --with-mpm=worker --disable-cgid --enable-info --enable-proxy
>>> --enable-rewrite --enable-mem-cache --enable-disk-cache --enable-cache
>>> --enable-expires
>>> chroot home /chroot
>>> Solaris 10 SunOS etdevry04 5.10 Generic_118833-03 sun4u sparc
>>> SUNW,Sun-Fire-V240
>>>
>>>
>>> I have loaded all the required lib's into the chroot env's lib folder by
>>> using ldd and truss on httpd .
>>> I have created the following files in my etc folder
>>> group           hosts           logrotate.conf  netconfig
>>> nsswitch.conf   passwd
>>>
>>
> What is the contents of your nsswitch.conf?
>
>
>>> My host file contains the following
>>> #
>>> # Internet host table
>>> #
>>> 127.0.0.1       localhost.localdomain   localhost
>>> 10.25.9.193     etdevry04       etdevry04.syd.internal.com.au
>>> 10.25.9.191     etdevry02       etdevry02.syd.internal.com.au
>>>
>>> I am able to get apache 2.2.8 chrooted on a fedora server fine just seems
>>> to be solaris I am having problems with.
>>>
>>> Below is the additions I made to my httpd.conf after a resh install
>>>
>>> HostnameLookups Off
>>> UseCanonicalName Off
>>>
>>> ProxyPass /test/ http://10.25.9.191/test/
>>> ProxyPassReverse /test/ http://10.25.9.191/test/
>>>
>>> NameVirtualHost 10.25.9.193:80 <http://10.25.9.193/> <
>>> http://10.25.9.193/>
>>>
>>
> The line above is wrong. It need to be
>
> NameVirtualHost 10.25.9.193:80 <http://10.25.9.193/>
>
>
>>> <VirtualHost 10.25.9.193:80 <http://10.25.9.193/> <http://10.25.9.193/>>
>>>
>>
> The line above is wrong. It need to be
>
> <VirtualHost 10.25.9.193:80 <http://10.25.9.193/>>
>
> Regards
>
> RĂ¼diger
>
>
>

Re: Apache 2.2.8 on solaris 10 in chroot problem

Posted by Ruediger Pluem <rp...@apache.org>.

On 05/26/2008 03:53 AM, Justin Maguire wrote:
>> Hello All,
>>
>> I tried the user list, but didnt seem to get any help for this issue. I am
>> currently in the process of upgrading from Apache/2.0.63 (Unix) to
>> Apache/2.2.8(Unix)to take advantage of mem caching. But when I complie and
>> run the Apache 2.2.8 I am facing two issues that I believe are related to a
>> lib that maybe missing or incorrect(cant seem to find it).
>>
>> First is the virutal host configs are skipped due to an error on start up:
>> [Fri May 23 05:48:00 2008] [error] (EAI 8)node name or service name not
>> known: Could not resolve host name 10.25.9.193 -- ignoring!
>> [Fri May 23 05:48:00 2008] [error] (EAI 8)node name or service name not
>> known: Could not resolve host name 10.25.9.193 -- ignoring!
>>
>> Second is the proxy returns a DNS error in the rror logs with a 502 HTTP
>> response.
>> [Fri May 23 05:51:01 2008] [notice] Apache/2.2.8 (Unix) configured --
>> resuming normal operations
>> [Fri May 23 05:51:08 2008] [error] [client 10.25.91.59] proxy: DNS lookup
>> failure for: 10.25.9.191 returned by /test/
>>
>> The below configure script works on 2.0.63 but not 2.2.8:
>> ./configure --with-mpm=worker --disable-cgid --enable-info --enable-proxy
>> --enable-rewrite --enable-mem-cache --enable-disk-cache --enable-cache
>> --enable-expires
>> chroot home /chroot
>> Solaris 10 SunOS etdevry04 5.10 Generic_118833-03 sun4u sparc
>> SUNW,Sun-Fire-V240
>>
>>
>> I have loaded all the required lib's into the chroot env's lib folder by
>> using ldd and truss on httpd .
>> I have created the following files in my etc folder
>> group           hosts           logrotate.conf  netconfig
>> nsswitch.conf   passwd

What is the contents of your nsswitch.conf?

>>
>> My host file contains the following
>> #
>> # Internet host table
>> #
>> 127.0.0.1       localhost.localdomain   localhost
>> 10.25.9.193     etdevry04       etdevry04.syd.internal.com.au
>> 10.25.9.191     etdevry02       etdevry02.syd.internal.com.au
>>
>> I am able to get apache 2.2.8 chrooted on a fedora server fine just seems
>> to be solaris I am having problems with.
>>
>> Below is the additions I made to my httpd.conf after a resh install
>>
>> HostnameLookups Off
>> UseCanonicalName Off
>>
>> ProxyPass /test/ http://10.25.9.191/test/
>> ProxyPassReverse /test/ http://10.25.9.191/test/
>>
>> NameVirtualHost 10.25.9.193:80 <http://10.25.9.193/>

The line above is wrong. It need to be

NameVirtualHost 10.25.9.193:80

>>
>> <VirtualHost 10.25.9.193:80 <http://10.25.9.193/>>

The line above is wrong. It need to be

<VirtualHost 10.25.9.193:80>

Regards

RĂ¼diger



Re: Apache 2.2.8 on solaris 10 in chroot problem

Posted by Justin Maguire <ej...@gmail.com>.
Hi Markus,

That actually makes a lot of sense! I added the device and everything
started working as expected.

Thanks a lot with your help on this one, has been a headache for the past
few days :)

Regards,
Justin

On Tue, May 27, 2008 at 4:57 AM, Markus Schiegl <ms...@schiegl.com> wrote:

> Hello Justin,
>
> i had a similar problem "...(EAI 8)node name or service name not known:
> alloc_listener: failed to set up sockaddr for 0.0.0.0...."
> because of a missing /dev/udp (for IPv4) device entry within the chroot
> environment. My problem was fixed after I added one with mknod.
>
> If this doesn't help dtrace may be your friend, e.g.
>
> dtrace -n 'syscall::open*:entry \
> { printf("%s %s",execname,copyinstr(arg0)); }'
>
> kind regards,
> Markus
>
> Justin Maguire wrote:
>
>> Hello All,
>>>
>>> I tried the user list, but didnt seem to get any help for this
>>> issue. I am currently in the process of upgrading from
>>> Apache/2.0.63 (Unix) to Apache/2.2.8(Unix)to take advantage of mem
>>> caching. But when I complie and run the Apache 2.2.8 I am facing
>>> two issues that I believe are related to a lib that maybe missing
>>> or incorrect(cant seem to find it).
>>>
>>> First is the virutal host configs are skipped due to an error on
>>> start up: [Fri May 23 05:48:00 2008] [error] (EAI 8)node name or
>>> service name not known: Could not resolve host name 10.25.9.193 --
>>> ignoring! [Fri May 23 05:48:00 2008] [error] (EAI 8)node name or
>>> service name not known: Could not resolve host name 10.25.9.193 --
>>> ignoring!
>>>
>>> Second is the proxy returns a DNS error in the rror logs with a 502
>>> HTTP response. [Fri May 23 05:51:01 2008] [notice] Apache/2.2.8
>>> (Unix) configured -- resuming normal operations [Fri May 23
>>> 05:51:08 2008] [error] [client 10.25.91.59] proxy: DNS lookup failure
>>> for: 10.25.9.191 returned by /test/
>>>
>>> The below configure script works on 2.0.63 but not 2.2.8: ./configure
>>> --with-mpm=worker --disable-cgid --enable-info
>>> --enable-proxy --enable-rewrite --enable-mem-cache
>>> --enable-disk-cache --enable-cache --enable-expires chroot home
>>> /chroot Solaris 10 SunOS etdevry04 5.10 Generic_118833-03 sun4u
>>> sparc SUNW,Sun-Fire-V240
>>>
>>>
>>> I have loaded all the required lib's into the chroot env's lib
>>> folder by using ldd and truss on httpd . I have created the
>>> following files in my etc folder group           hosts
>>> logrotate.conf  netconfig nsswitch.conf   passwd
>>>
>>> My host file contains the following # # Internet host table # 127.0.0.1      localhost.localdomain   localhost
>>> 10.25.9.193
>>> etdevry04       etdevry04.syd.internal.com.au 10.25.9.191
>>> etdevry02       etdevry02.syd.internal.com.au
>>>
>>> I am able to get apache 2.2.8 chrooted on a fedora server fine just
>>> seems to be solaris I am having problems with.
>>>
>>> Below is the additions I made to my httpd.conf after a resh install
>>>
>>>
>>> HostnameLookups Off UseCanonicalName Off
>>>
>>> ProxyPass /test/ http://10.25.9.191/test/ ProxyPassReverse /test/
>>> http://10.25.9.191/test/
>>>
>>> NameVirtualHost 10.25.9.193:80 <http://10.25.9.193/>
>>>
>>> <VirtualHost 10.25.9.193:80 <http://10.25.9.193/>> ServerName
>>> etdevry04 ProxyPass /test/ http://10.25.9.191/test/ ProxyPassReverse
>>> /test/ http://10.25.9.191/test/ </VirtualHost>
>>>
>>> Help would be appreciated :)
>>>
>>> Thanks, Justin Maguire
>>>
>>>
>>

Re: Apache 2.2.8 on solaris 10 in chroot problem

Posted by Markus Schiegl <ms...@schiegl.com>.
Hello Justin,

i had a similar problem "...(EAI 8)node name or service name not known:
alloc_listener: failed to set up sockaddr for 0.0.0.0...."
because of a missing /dev/udp (for IPv4) device entry within the chroot
environment. My problem was fixed after I added one with mknod.

If this doesn't help dtrace may be your friend, e.g.

dtrace -n 'syscall::open*:entry \
{ printf("%s %s",execname,copyinstr(arg0)); }'

kind regards,
Markus

Justin Maguire wrote:
>> Hello All,
>> 
>> I tried the user list, but didnt seem to get any help for this
>> issue. I am currently in the process of upgrading from
>> Apache/2.0.63 (Unix) to Apache/2.2.8(Unix)to take advantage of mem
>> caching. But when I complie and run the Apache 2.2.8 I am facing
>> two issues that I believe are related to a lib that maybe missing
>> or incorrect(cant seem to find it).
>> 
>> First is the virutal host configs are skipped due to an error on
>> start up: [Fri May 23 05:48:00 2008] [error] (EAI 8)node name or
>> service name not known: Could not resolve host name 10.25.9.193 --
>> ignoring! [Fri May 23 05:48:00 2008] [error] (EAI 8)node name or
>> service name not known: Could not resolve host name 10.25.9.193 --
>> ignoring!
>> 
>> Second is the proxy returns a DNS error in the rror logs with a 502
>> HTTP response. [Fri May 23 05:51:01 2008] [notice] Apache/2.2.8
>> (Unix) configured -- resuming normal operations [Fri May 23
>> 05:51:08 2008] [error] [client 10.25.91.59] proxy: DNS lookup 
>> failure for: 10.25.9.191 returned by /test/
>> 
>> The below configure script works on 2.0.63 but not 2.2.8: 
>> ./configure --with-mpm=worker --disable-cgid --enable-info
>> --enable-proxy --enable-rewrite --enable-mem-cache
>> --enable-disk-cache --enable-cache --enable-expires chroot home
>> /chroot Solaris 10 SunOS etdevry04 5.10 Generic_118833-03 sun4u
>> sparc SUNW,Sun-Fire-V240
>> 
>> 
>> I have loaded all the required lib's into the chroot env's lib
>> folder by using ldd and truss on httpd . I have created the
>> following files in my etc folder group           hosts
>> logrotate.conf  netconfig nsswitch.conf   passwd
>> 
>> My host file contains the following # # Internet host table # 
>> 127.0.0.1       localhost.localdomain   localhost 10.25.9.193
>> etdevry04       etdevry04.syd.internal.com.au 10.25.9.191
>> etdevry02       etdevry02.syd.internal.com.au
>> 
>> I am able to get apache 2.2.8 chrooted on a fedora server fine just
>> seems to be solaris I am having problems with.
>> 
>> Below is the additions I made to my httpd.conf after a resh install
>> 
>> 
>> HostnameLookups Off UseCanonicalName Off
>> 
>> ProxyPass /test/ http://10.25.9.191/test/ ProxyPassReverse /test/
>> http://10.25.9.191/test/
>> 
>> NameVirtualHost 10.25.9.193:80 <http://10.25.9.193/>
>> 
>> <VirtualHost 10.25.9.193:80 <http://10.25.9.193/>> ServerName
>> etdevry04 ProxyPass /test/ http://10.25.9.191/test/ 
>> ProxyPassReverse /test/ http://10.25.9.191/test/ </VirtualHost>
>> 
>> Help would be appreciated :)
>> 
>> Thanks, Justin Maguire
>> 
>