apache has fallen [and it won't get up]

2003-11-30 Thread Marty Landman
I must be getting somewhere cuz in the process of email working better 
Apache now won't come up. Last thing I did other than email config's (that 
shouldn't affect httpd, right?) was change my hostname in rc.conf. Then 
changed it right back.

Rebooted

[Sun Nov 30 11:14:53 2003] [alert] (EAI 7)No address associated with 
hostname: mod_unique_id: unable to find IPv4 address of 
SwamiSalami.face2interface.domain
Configuration Failed

This does raise a related issue in my mind, namely if it's not rc.conf 
that's messing me up then it could possibly be a myriad of things I did 
since last rebooting, maybe a week ago? Is this something one has to watch 
out for, i.e. problems introduced that don't manifest themselves until some 
arbitrary time in the future? Also [maybe an Apache not FBSD question] is 
there a difference between an Apache restart vs. a system reboot as far as 
config problems becoming manifest. I'm guessing that there is.

Marty Landman   Face 2 Interface Inc 845-679-9387
Sign On Required: Web membership software for your site
Make a Website: http://face2interface.com/Home/Demo.shtml
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: apache has fallen [and it won't get up]

2003-11-30 Thread Melvyn Sopacua
On Sunday 30 November 2003 19:41, Marty Landman wrote:

 [Sun Nov 30 11:14:53 2003] [alert] (EAI 7)No address associated with
 hostname: mod_unique_id: unable to find IPv4 address of
 SwamiSalami.face2interface.domain
 Configuration Failed

Disable mod_unique_id in httpd.conf to get it back up-and-running.
The real error is probably in /etc/resolv.conf not pointing to a valid 
nameserver.

 Also [maybe an Apache not FBSD question] is
 there a difference between an Apache restart vs. a system reboot as far as
 config problems becoming manifest. I'm guessing that there is.

No - there's a relation between mod_unique_id and DNS (and a relation between 
mod_unique_id and mod_user_track and a relation between HostNameLookups and 
DNS).

-- 
Melvyn

===
FreeBSD sarevok.webteckies.org 5.2-BETA FreeBSD 5.2-BETA #1: Sat Nov 29 
00:15:33 CET 2003 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/
SAREVOK_NOFW_DBG  i386
===


pgp0.pgp
Description: signature


Re: apache has fallen [and it won't get up]

2003-11-30 Thread Marty Landman
At 02:01 PM 11/30/2003, Melvyn Sopacua wrote:

Disable mod_unique_id in httpd.conf to get it back up-and-running.
Ok, this worked.. thank you Melvyn.

The real error is probably in /etc/resolv.conf not pointing to a valid 
nameserver.
Interesting. /etc/resolv.conf has last been changed like 10 minutes ago 
[not knowingly by me though]. All it says is

search mshome.net
nameserver 192.168.0.1
Since my workstation is delliver.mshome.net and also shares its internet 
connection on my lan via ics from and its ip addr on the lan is as shown, 
what's up do you think?

Also would like to add that other intranet tools seem to still be ok including

- lynx
- ftp [in and out]
- ssh [in]
- intra-box email
- ping
If it's really just apache that's having the trouble I wonder if it could 
be a race condition? I notice that apache starts from a shell cmd when fbsd 
reboots.

Swami: ls -l /usr/local/etc/rc.d/*.sh
-r-xr-xr--  1 root  pgsql  875 Nov 11 17:24 /usr/local/etc/rc.d/010.pgsql.sh
-rwxr-x--x  1 root  wheel  407 Nov 12 19:33 /usr/local/etc/rc.d/apache2.sh
-rwxr-xr--  1 root  wheel  144 Nov 12 16:18 /usr/local/etc/rc.d/landns.root.sh
Swami:
What determines the sequence in which these three scripts run?

Marty Landman   Face 2 Interface Inc 845-679-9387
Sign On Required: Web membership software for your site
Make a Website: http://face2interface.com/Home/Demo.shtml
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: apache has fallen [and it won't get up]

2003-11-30 Thread Melvyn Sopacua
On Sunday 30 November 2003 20:56, Marty Landman wrote:

 At 02:01 PM 11/30/2003, Melvyn Sopacua wrote:
 Disable mod_unique_id in httpd.conf to get it back up-and-running.

 Ok, this worked.. thank you Melvyn.

You're welcome (been there :).

 The real error is probably in /etc/resolv.conf not pointing to a valid
 nameserver.

 Interesting. /etc/resolv.conf has last been changed like 10 minutes ago
 [not knowingly by me though]. All it says is

 search mshome.net
 nameserver 192.168.0.1

Looks like a DHCP layout. Are you running dhclient (ie: have 
ifconfig_IFACE=DHCP in /etc/rc.conf)?

 Since my workstation is delliver.mshome.net and also shares its internet
 connection on my lan via ics from and its ip addr on the lan is as shown,
 what's up do you think?

I think typing:
host delliver.mshome.net

*on that machine* doesn't give a valid ip address or an adress that is not on 
the workstation.
Since you're refering to 'ics' I guess you're gateway is an MS box and doesn't 
run DNS or a DNS forwarder at best.

 Also would like to add that other intranet tools seem to still be ok
 including

 - lynx
 - ftp [in and out]
 - ssh [in]
 - intra-box email
 - ping

These do not resolve the local hostname on the machine itself, which is what 
mod_unique_id tries to do though.

 If it's really just apache that's having the trouble I wonder if it could
 be a race condition? I notice that apache starts from a shell cmd when fbsd
 reboots.

 Swami: ls -l /usr/local/etc/rc.d/*.sh
 -r-xr-xr--  1 root  pgsql  875 Nov 11 17:24
 /usr/local/etc/rc.d/010.pgsql.sh -rwxr-x--x  1 root  wheel  407 Nov 12
 19:33 /usr/local/etc/rc.d/apache2.sh -rwxr-xr--  1 root  wheel  144 Nov 12
 16:18 /usr/local/etc/rc.d/landns.root.sh Swami:

 What determines the sequence in which these three scripts run?

Exactly what you're typing: it's lexacilly sorted - to be exact: sorted 
according to the glob(3) implementation.

If you need landns.root.sh to start first, rename it to:
010.landns.root.sh

Just in case you're wondering:
000.* is used for ldconfig(8)'s shared library paths, like 'lib/mysql' and 
'lib/kde3' so you might wanna steer clear of that.

-- 
Melvyn

===
FreeBSD sarevok.webteckies.org 5.2-BETA FreeBSD 5.2-BETA #1: Sat Nov 29 
00:15:33 CET 2003 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/
SAREVOK_NOFW_DBG  i386
===


pgp0.pgp
Description: signature


Re: apache has fallen [and it won't get up]

2003-11-30 Thread Chris Pressey
On Sun, 30 Nov 2003 14:56:19 -0500
Marty Landman [EMAIL PROTECTED] wrote:

 Interesting. /etc/resolv.conf has last been changed like 10 minutes
 ago [not knowingly by me though]. All it says is
 
 search mshome.net
 nameserver 192.168.0.1
 
 Since my workstation is delliver.mshome.net and also shares its
 internet connection on my lan via ics from and its ip addr on the lan
 is as shown, what's up do you think?

Are you running a DHCP client on that machine?  In my experience, the
DHCP client that comes with FreeBSD will write a new /etc/resolv.conf
file whenever it obtains a new lease.

 [...]
 If it's really just apache that's having the trouble I wonder if it
 could be a race condition? I notice that apache starts from a shell
 cmd when fbsd reboots.
 
 Swami: ls -l /usr/local/etc/rc.d/*.sh
 -r-xr-xr--  1 root  pgsql  875 Nov 11 17:24
 /usr/local/etc/rc.d/010.pgsql.sh-rwxr-x--x  1 root  wheel  407 Nov 12
 19:33 /usr/local/etc/rc.d/apache2.sh-rwxr-xr--  1 root  wheel  144 Nov
 12 16:18 /usr/local/etc/rc.d/landns.root.sh Swami:
 
 What determines the sequence in which these three scripts run?

Alphabetical (actually ASCII) sort order.  So 010.pgsql.sh will run
first, then apache2.sh, then landns.root.sh.  If you want, say,
landns.root.sh to run first, rename it 005.landns.root.sh, or something
to that effect.

HTH,
-Chris
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: apache has fallen [and it won't get up]

2003-11-30 Thread Marty Landman
At 03:20 PM 11/30/2003, Melvyn Sopacua wrote:

 Interesting. /etc/resolv.conf has last been changed like 10 minutes ago
 [not knowingly by me though]. All it says is

 search mshome.net
 nameserver 192.168.0.1
Looks like a DHCP layout. Are you running dhclient (ie: have
ifconfig_IFACE=DHCP in /etc/rc.conf)?
Nope, just an ifconfig_ep0 assignment for my nic.

 Since my workstation is delliver.mshome.net and also shares its internet
 connection on my lan via ics from and its ip addr on the lan is as shown,
 what's up do you think?
I think typing:
host delliver.mshome.net
*on that machine* doesn't give a valid ip address or an adress that is not on
the workstation.
Actually I got the corrent ip's for each of my four windoz boxes by 
querying each with their name on mshome.net.

Since you're refering to 'ics' I guess you're gateway is an MS box and 
doesn't
run DNS or a DNS forwarder at best.
Right, I think. It's a windoz xp home edition box getting dns via dial-up. 
At least I think I'm saying that correctly.

These do not resolve the local hostname on the machine itself, which is what
mod_unique_id tries to do though.
The apache manual entry for mod_unique_id didn't say a whole lot. This must 
be a default and I wonder if it's something I will eventually miss. What's 
it do, or can you point to a more in depth explanation I can read?

If you need landns.root.sh to start first, rename it to:
010.landns.root.sh
Don't know whether I needed it but did. Didn't help apache to be able to 
run mod_unique_id but then you probably already knew that. :)

Marty Landman   Face 2 Interface Inc 845-679-9387
Sign On Required: Web membership software for your site
Make a Website: http://face2interface.com/Home/Demo.shtml
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: apache has fallen [and it won't get up]

2003-11-30 Thread Melvyn Sopacua
On Monday 01 December 2003 01:39, Marty Landman wrote:


 I think typing:
 host delliver.mshome.net
 
 *on that machine* doesn't give a valid ip address or an adress that is not
  on the workstation.

 Actually I got the corrent ip's for each of my four windoz boxes by
 querying each with their name on mshome.net.

 Since you're refering to 'ics' I guess you're gateway is an MS box and
 doesn't
 run DNS or a DNS forwarder at best.

 Right, I think. It's a windoz xp home edition box getting dns via dial-up.
 At least I think I'm saying that correctly.

I checked your original message again. It says something about some 
SwamiSalami hostname. Is that by any chance the 'ServerName' of the main 
server? That is what mod_unique_id is trying to resolve. If no ServerName is 
set, it takes the hostname of the computer.

 The apache manual entry for mod_unique_id didn't say a whole lot. This must
 be a default and I wonder if it's something I will eventually miss. What's
 it do, or can you point to a more in depth explanation I can read?

It creates a unique id for every request. This is used by mod_usertrack to 
generate a session id.

There are some other modules that also use this feature, but I can't think of 
any off-hand. It's also convenient if you use an log-analyzer that checks 
whether there are duplicate lines. You can log the created id in a separate 
field and thus make sure that the same file requested twice within a second, 
from the same host, by the same browser (think /images/spacer.gif) is 
something else then a duplicate logline in the file.

In a nutshell: if you don't care about mod_usertrack or wrongly detected 
duplicate loglines, you have no use for mod_unique_id. Any other apache 
module requiring it, will complain soon enough, but since you have it running 
without - you seem to have no such dependency.

-- 
Melvyn

===
FreeBSD sarevok.webteckies.org 5.2-BETA FreeBSD 5.2-BETA #1: Sat Nov 29 
00:15:33 CET 2003 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/
SAREVOK_NOFW_DBG  i386
===


pgp0.pgp
Description: signature


Re: apache has fallen [and it won't get up]

2003-11-30 Thread Marty Landman
At 08:16 PM 11/30/2003, Melvyn Sopacua wrote:

I checked your original message again. It says something about some
SwamiSalami hostname.
Yes. It's a cartoon character from my local newspaper; other than also 
being the hostname for my fbsd box probably off-topic for this list.

Is that by any chance the 'ServerName' of the main server? That is what 
mod_unique_id is trying to resolve. If no ServerName is set, it takes the 
hostname of the computer.
I've specified in httpd.conf

ServerName 192.168.0.7:80

In a VirtualHost directive

VirtualHost *
ServerName SwamiSalami.face2interface.domain
ServerAlias SwamiSalami
/VirtualHost
Ok, I changed the ServerName to SwamiSalami.face2interface.domain too but 
that still yields the same error when trying to load mod_unique_id.


In a nutshell: if you don't care about mod_usertrack or wrongly detected
duplicate loglines, you have no use for mod_unique_id.
This is a sandbox I'm developing, and have been more involved lately in 
learning the needed overhead skills than my actual development tasks.

FWIW, regarding this idea of connecting tons of computers together, i.e. 
the internet thing --  at this point I'm feeling it's all way too 
complicated and will never work. Oh, wait a minute..

Marty Landman   Face 2 Interface Inc 845-679-9387
Sign On Required: Web membership software for your site
Make a Website: http://face2interface.com/Home/Demo.shtml
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: apache has fallen [and it won't get up]

2003-11-30 Thread Melvyn Sopacua
On Monday 01 December 2003 03:14, Marty Landman wrote:

 Is that by any chance the 'ServerName' of the main server? That is what
 mod_unique_id is trying to resolve. If no ServerName is set, it takes the
 hostname of the computer.

 I've specified in httpd.conf

 ServerName 192.168.0.7:80

Drop the :80 there. In fact - since you're overriding it below, it's not even 
used.

 In a VirtualHost directive

 VirtualHost *
  ServerName SwamiSalami.face2interface.domain

If this is litterally what you have, then it's no surprise as '.domain' is not 
a valid 'country' (TLD or Top Level Domain in DNS terms).

My guess is, you should have:
ServerName swamisalami.face2interface.com

(Educated guess really: swamisalami.face2interface.com has address 
216.157.5.252)

I seem to be getting too used to people obscuring their actual host names with 
fabrications for privacy reasons (rantcould we just all stick to 
example.com for that?/rant).

-- 
Melvyn

===
FreeBSD sarevok.webteckies.org 5.2-BETA FreeBSD 5.2-BETA #1: Sat Nov 29 
00:15:33 CET 2003 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/
SAREVOK_NOFW_DBG  i386
===


pgp0.pgp
Description: signature