Xymon Mailing List Archive search

Strange problem

14 messages in this thread

list Kevin Grady · Thu, 17 Feb 2005 12:08:55 -0500 ·
Ok, I just did a clean install of RC2 and everything seems to be
working, accept when I attempt to access
http://myhost.mydomain/hobbit, I get a directory listing instead of
the display. I've done clean hobbit installs of RC1 without any
problems so i removed the RC2 install and tried a clean install of RC1
and I get the same results. Looking at the contents of ~/server/www it
appears to be missing files, any ideas?

Thanks
list Charles Jones · Thu, 17 Feb 2005 10:13:24 -0700 ·
Humor me and try http://myhost.mydomain/hobbit/     (with tailing slash)  

-Charles
quoted from Kevin Grady

kevin grady wrote:
Ok, I just did a clean install of RC2 and everything seems to be
working, accept when I attempt to access
http://myhost.mydomain/hobbit, I get a directory listing instead of
the display. I've done clean hobbit installs of RC1 without any
problems so i removed the RC2 install and tried a clean install of RC1
and I get the same results. Looking at the contents of ~/server/www it
appears to be missing files, any ideas?

 
list Kevin Grady · Thu, 17 Feb 2005 13:08:38 -0500 ·
Yeah, tried that too and same results. This is the first time I have
run across this issue after a few installs of RC1. Unfortunately I
don't have access to the installs I did that work at the moment for
reference to see what is missing from the ~/server/www/ directory. The
only things under it are folders, not one file, no index file. Within
the folders it looks like all of the necessary files are there.
quoted from Charles Jones


On Thu, 17 Feb 2005 10:13:24 -0700, Charles Jones <user-e86b4aeade4e@xymon.invalid> wrote:
Humor me and try http://myhost.mydomain/hobbit/     (with tailing slash)

-Charles

kevin grady wrote:
Ok, I just did a clean install of RC2 and everything seems to be
working, accept when I attempt to access
http://myhost.mydomain/hobbit, I get a directory listing instead of
the display. I've done clean hobbit installs of RC1 without any
problems so i removed the RC2 install and tried a clean install of RC1
and I get the same results. Looking at the contents of ~/server/www it
appears to be missing files, any ideas?

list Charles Jones · Thu, 17 Feb 2005 11:16:43 -0700 ·
The index.html file (a link to bb.html), and the other html files in 
that dir are generated dynamically when hobbit runs...so if they arent 
there then either hobbit is not running, or hobbit crashed, or has no 
write perms.  Check the logs in /var/log/hobbit and see if anything 
seems amiss.

-Charles
quoted from Kevin Grady

kevin grady wrote:
Yeah, tried that too and same results. This is the first time I have
run across this issue after a few installs of RC1. Unfortunately I
don't have access to the installs I did that work at the moment for
reference to see what is missing from the ~/server/www/ directory. The
only things under it are folders, not one file, no index file. Within
the folders it looks like all of the necessary files are there.


On Thu, 17 Feb 2005 10:13:24 -0700, Charles Jones <user-e86b4aeade4e@xymon.invalid> wrote:
 
Humor me and try http://myhost.mydomain/hobbit/     (with tailing slash)

-Charles

kevin grady wrote:

   
Ok, I just did a clean install of RC2 and everything seems to be
working, accept when I attempt to access
http://myhost.mydomain/hobbit, I get a directory listing instead of
the display. I've done clean hobbit installs of RC1 without any
problems so i removed the RC2 install and tried a clean install of RC1
and I get the same results. Looking at the contents of ~/server/www it
appears to be missing files, any ideas?

list Kevin Grady · Thu, 17 Feb 2005 15:18:34 -0500 ·
Well that explains the display problem. Kick me for not checking the
logs. So this is what I have in the hobbitlaunch.log:

2005-02-17 16:16:43 Setting up network listener on 0.0.0.0:1984
2005-02-17 16:16:43 Cannot bind to listen socket (Address already in use)
2005-02-17 16:16:43 Task hobbitd terminated, status 1

I checked the ~/server/etc/hobbitserver.cfg and it has everything
listed properly. This system does not have anything listening on port
1984. Any ideas? Shouldn't the binding IP address be what is specified
in BBSERVERIP?

Thanks
quoted from Charles Jones


On Thu, 17 Feb 2005 11:16:43 -0700, Charles Jones <user-e86b4aeade4e@xymon.invalid> wrote:
 The index.html file (a link to bb.html), and the other html files in that
dir are generated dynamically when hobbit runs...so if they arent there then
either hobbit is not running, or hobbit crashed, or has no write perms. 
Check the logs in /var/log/hobbit and see if anything seems amiss.
 
 -Charles

 
 kevin grady wrote: 
 Yeah, tried that too and same results. This is the first time I have run
across this issue after a few installs of RC1. Unfortunately I don't have
access to the installs I did that work at the moment for reference to see
what is missing from the ~/server/www/ directory. The only things under it
are folders, not one file, no index file. Within the folders it looks like
all of the necessary files are there. On Thu, 17 Feb 2005 10:13:24 -0700,
Charles Jones <user-e86b4aeade4e@xymon.invalid> wrote: 
 Humor me and try http://myhost.mydomain/hobbit/ (with tailing slash)
-Charles kevin grady wrote: 
 Ok, I just did a clean install of RC2 and everything seems to be working,
accept when I attempt to access http://myhost.mydomain/hobbit, I get a
directory listing instead of the display. I've done clean hobbit installs of
RC1 without any problems so i removed the RC2 install and tried a clean
install of RC1 and I get the same results. Looking at the contents of

~/server/www it appears to be missing files, any ideas? To unsubscribe from
the hobbit list, send an e-mail to user-095ef1c764a2@xymon.invalid To unsubscribe
from the hobbit list, send an e-mail to user-095ef1c764a2@xymon.invalid 
list Henrik Størner · Thu, 17 Feb 2005 21:41:59 +0100 ·
quoted from Kevin Grady
On Thu, Feb 17, 2005 at 03:18:34PM -0500, kevin grady wrote:
Well that explains the display problem. Kick me for not checking the
logs. So this is what I have in the hobbitlaunch.log:

2005-02-17 16:16:43 Setting up network listener on 0.0.0.0:1984
2005-02-17 16:16:43 Cannot bind to listen socket (Address already in use)
2005-02-17 16:16:43 Task hobbitd terminated, status 1
Could be the same bug that's bitten quite a few people now: The
hostname used in hobbitserver.cfg for the BBSERVERHOSTNAME and
MACHINEDOTS settings is not listed in bb-hosts, causing hobbitd
to crash after 5 minutes.

In that case, you should have a line "hobbitd terminated with signal
6" just before those lines in the logfile.

Make sure the hostname in BBSERVERHOSTNAME is listed in bb-hosts.
quoted from Kevin Grady

I checked the ~/server/etc/hobbitserver.cfg and it has everything
listed properly. This system does not have anything listening on port
1984. Any ideas? Shouldn't the binding IP address be what is specified
in BBSERVERIP?
This error message is bogus, it happens because hobbitd attempts to
restart too quickly after it crashes.


Henrik
list Kevin Grady · Thu, 17 Feb 2005 16:56:18 -0500 ·
I verified that the host exists in bb-hosts. This is what I get in the
log when I attempt to start hobbit. I've checked permissions and
anything else I could think of, but nothing looks out of place.

Log entries:

2005-02-17 17:54:36 hobbitlaunch starting
2005-02-17 17:54:36 Loading tasklist configuration from
/usr/local/hobbit/server/etc/hobbitlaunch.cfg
2005-02-17 17:54:36 Task hobbitd started with PID 4085
2005-02-17 17:54:36 Loading hostnames
2005-02-17 17:54:36 Loading saved state
2005-02-17 17:54:36 Cannot access checkpoint file
/usr/local/hobbit/server/tmp/hobbitd.chk for restore
2005-02-17 17:54:36 Setting up network listener on 0.0.0.0:1984
2005-02-17 17:54:36 Cannot bind to listen socket (Address already in use)
2005-02-17 17:54:36 Task hobbitd terminated, status 1
2005-02-17 17:54:36 Task hobbitd started with PID 4086
2005-02-17 17:54:36 Loading hostnames
2005-02-17 17:54:36 Loading saved state
2005-02-17 17:54:36 Cannot access checkpoint file
/usr/local/hobbit/server/tmp/hobbitd.chk for restore
2005-02-17 17:54:36 Setting up network listener on 0.0.0.0:1984
2005-02-17 17:54:36 Cannot bind to listen socket (Address already in use)
2005-02-17 17:54:36 Task hobbitd terminated, status 1
2005-02-17 17:54:36 Task hobbitd started with PID 4087
2005-02-17 17:54:36 Loading hostnames
2005-02-17 17:54:36 Loading saved state
2005-02-17 17:54:36 Cannot access checkpoint file
/usr/local/hobbit/server/tmp/hobbitd.chk for restore
2005-02-17 17:54:36 Setting up network listener on 0.0.0.0:1984
2005-02-17 17:54:36 Cannot bind to listen socket (Address already in use)
2005-02-17 17:54:36 Task hobbitd terminated, status 1
2005-02-17 17:54:36 Task hobbitd started with PID 4088
2005-02-17 17:54:36 Loading hostnames
2005-02-17 17:54:36 Loading saved state
2005-02-17 17:54:36 Cannot access checkpoint file
/usr/local/hobbit/server/tmp/hobbitd.chk for restore
2005-02-17 17:54:36 Setting up network listener on 0.0.0.0:1984
2005-02-17 17:54:36 Cannot bind to listen socket (Address already in use)
2005-02-17 17:54:36 Task hobbitd terminated, status 1
2005-02-17 17:54:36 Task hobbitd started with PID 4089
2005-02-17 17:54:36 Loading hostnames
2005-02-17 17:54:36 Loading saved state
2005-02-17 17:54:36 Cannot access checkpoint file
/usr/local/hobbit/server/tmp/hobbitd.chk for restore
2005-02-17 17:54:36 Setting up network listener on 0.0.0.0:1984
2005-02-17 17:54:36 Cannot bind to listen socket (Address already in use)
2005-02-17 17:54:36 Task hobbitd terminated, status 1
2005-02-17 17:54:36 Task hobbitd started with PID 4090
2005-02-17 17:54:36 Loading hostnames
2005-02-17 17:54:36 Loading saved state
2005-02-17 17:54:36 Cannot access checkpoint file
/usr/local/hobbit/server/tmp/hobbitd.chk for restore
2005-02-17 17:54:36 Setting up network listener on 0.0.0.0:1984
2005-02-17 17:54:36 Cannot bind to listen socket (Address already in use)
2005-02-17 17:54:36 Task hobbitd terminated, status 1
quoted from Henrik Størner


On Thu, 17 Feb 2005 21:41:59 +0100, Henrik Stoerner <user-ce4a2c883f75@xymon.invalid> wrote:
On Thu, Feb 17, 2005 at 03:18:34PM -0500, kevin grady wrote:
Well that explains the display problem. Kick me for not checking the
logs. So this is what I have in the hobbitlaunch.log:

2005-02-17 16:16:43 Setting up network listener on 0.0.0.0:1984
2005-02-17 16:16:43 Cannot bind to listen socket (Address already in use)
2005-02-17 16:16:43 Task hobbitd terminated, status 1
Could be the same bug that's bitten quite a few people now: The
hostname used in hobbitserver.cfg for the BBSERVERHOSTNAME and
MACHINEDOTS settings is not listed in bb-hosts, causing hobbitd
to crash after 5 minutes.

In that case, you should have a line "hobbitd terminated with signal
6" just before those lines in the logfile.

Make sure the hostname in BBSERVERHOSTNAME is listed in bb-hosts.

I checked the ~/server/etc/hobbitserver.cfg and it has everything
listed properly. This system does not have anything listening on port
1984. Any ideas? Shouldn't the binding IP address be what is specified
in BBSERVERIP?
This error message is bogus, it happens because hobbitd attempts to
restart too quickly after it crashes.


Henrik

list Henrik Størner · Thu, 17 Feb 2005 23:15:21 +0100 ·
quoted from Kevin Grady
On Thu, Feb 17, 2005 at 04:56:18PM -0500, kevin grady wrote:
I verified that the host exists in bb-hosts. This is what I get in the
log when I attempt to start hobbit. I've checked permissions and
anything else I could think of, but nothing looks out of place.

Log entries:

2005-02-17 17:54:36 Task hobbitd started with PID 4085
2005-02-17 17:54:36 Setting up network listener on 0.0.0.0:1984
2005-02-17 17:54:36 Cannot bind to listen socket (Address already in use)
2005-02-17 17:54:36 Task hobbitd terminated, status 1
Well, something is using port 1984 then.

What does a "netstat -na | grep 1984" say ?

If this is a Linux box, try running (as root) "netstat -ntlp | grep 1984"
That should give you the proces-ID and name of the program listening
on port 1984.


Henrik
list Kevin Grady · Thu, 17 Feb 2005 17:33:43 -0500 ·
Thanks Charles. Now that I've exposed my utter stupidity. Someone
(that someone would be ME a few months ago) had installed big SISTER
on this machine and yes it was running on port 1984. Bye-bye bs ,
hello hobbit.

Thanks again. Everything is running with green smiles...
quoted from Henrik Størner


On Thu, 17 Feb 2005 23:15:21 +0100, Henrik Stoerner <user-ce4a2c883f75@xymon.invalid> wrote:
On Thu, Feb 17, 2005 at 04:56:18PM -0500, kevin grady wrote:
I verified that the host exists in bb-hosts. This is what I get in the
log when I attempt to start hobbit. I've checked permissions and
anything else I could think of, but nothing looks out of place.

Log entries:

2005-02-17 17:54:36 Task hobbitd started with PID 4085
2005-02-17 17:54:36 Setting up network listener on 0.0.0.0:1984
2005-02-17 17:54:36 Cannot bind to listen socket (Address already in use)
2005-02-17 17:54:36 Task hobbitd terminated, status 1
Well, something is using port 1984 then.

What does a "netstat -na | grep 1984" say ?

If this is a Linux box, try running (as root) "netstat -ntlp | grep 1984"
That should give you the proces-ID and name of the program listening
on port 1984.


Henrik

list Kevin Grady · Thu, 17 Feb 2005 17:35:16 -0500 ·
The only thing that is remaing is one yellow for hobbitd:

Cannot access checkpoint file /usr/local/hobbit/server/tmp/hobbitd.chk
for restore

Should that file exist and what creates it, because it does not exist.
hobbit has the proper access to that directory
quoted from Kevin Grady

On Thu, 17 Feb 2005 17:33:43 -0500, kevin grady <user-50dc3c45bc73@xymon.invalid> wrote:
Thanks Charles. Now that I've exposed my utter stupidity. Someone
(that someone would be ME a few months ago) had installed big SISTER
on this machine and yes it was running on port 1984. Bye-bye bs ,
hello hobbit.

Thanks again. Everything is running with green smiles...


On Thu, 17 Feb 2005 23:15:21 +0100, Henrik Stoerner <user-ce4a2c883f75@xymon.invalid> wrote:
On Thu, Feb 17, 2005 at 04:56:18PM -0500, kevin grady wrote:
I verified that the host exists in bb-hosts. This is what I get in the
log when I attempt to start hobbit. I've checked permissions and
anything else I could think of, but nothing looks out of place.

Log entries:

2005-02-17 17:54:36 Task hobbitd started with PID 4085
2005-02-17 17:54:36 Setting up network listener on 0.0.0.0:1984
2005-02-17 17:54:36 Cannot bind to listen socket (Address already in use)
2005-02-17 17:54:36 Task hobbitd terminated, status 1
Well, something is using port 1984 then.

What does a "netstat -na | grep 1984" say ?

If this is a Linux box, try running (as root) "netstat -ntlp | grep 1984"
That should give you the proces-ID and name of the program listening
on port 1984.


Henrik

list Kevin Grady · Thu, 17 Feb 2005 17:36:47 -0500 ·
That is solved as well. Gave hobbit another restart and hobbitd is smiling.
quoted from Kevin Grady
What does a "netstat -na | grep 1984" say ?

If this is a Linux box, try running (as root) "netstat -ntlp | grep 1984"
That should give you the proces-ID and name of the program listening
on port 1984.


Henrik

list Charles Jones · Thu, 17 Feb 2005 15:40:35 -0700 ·
It was Henrik that dispensed his usual accurate advice, but I was going 
to suggest that probably an older version of bb or hobbit was running ;-)

-Charles
quoted from Kevin Grady

kevin grady wrote:
Thanks Charles. Now that I've exposed my utter stupidity. Someone
(that someone would be ME a few months ago) had installed big SISTER
on this machine and yes it was running on port 1984. Bye-bye bs ,
hello hobbit.

Thanks again. Everything is running with green smiles...


On Thu, 17 Feb 2005 23:15:21 +0100, Henrik Stoerner <user-ce4a2c883f75@xymon.invalid> wrote:
 
On Thu, Feb 17, 2005 at 04:56:18PM -0500, kevin grady wrote:
   
I verified that the host exists in bb-hosts. This is what I get in the
log when I attempt to start hobbit. I've checked permissions and
anything else I could think of, but nothing looks out of place.

Log entries:

2005-02-17 17:54:36 Task hobbitd started with PID 4085
2005-02-17 17:54:36 Setting up network listener on 0.0.0.0:1984
2005-02-17 17:54:36 Cannot bind to listen socket (Address already in use)
2005-02-17 17:54:36 Task hobbitd terminated, status 1
     
Well, something is using port 1984 then.

What does a "netstat -na | grep 1984" say ?

If this is a Linux box, try running (as root) "netstat -ntlp | grep 1984"
That should give you the proces-ID and name of the program listening
on port 1984.


Henrik

   
list Henrik Størner · Thu, 17 Feb 2005 23:51:52 +0100 ·
quoted from Kevin Grady
On Thu, Feb 17, 2005 at 05:35:16PM -0500, kevin grady wrote:
The only thing that is remaing is one yellow for hobbitd:

Cannot access checkpoint file /usr/local/hobbit/server/tmp/hobbitd.chk
for restore
Just means that you started Hobbit up for the first time. The checkpoint file is generated by hobbitd - you should see it appear after a few minutes, and if you shut down Hobbit.

Henrik
list Kevin Grady · Thu, 17 Feb 2005 17:54:43 -0500 ·
Thank you both.
quoted from Henrik Størner


On Thu, 17 Feb 2005 23:51:52 +0100, Henrik Stoerner <user-ce4a2c883f75@xymon.invalid> wrote:
On Thu, Feb 17, 2005 at 05:35:16PM -0500, kevin grady wrote:
The only thing that is remaing is one yellow for hobbitd:

Cannot access checkpoint file /usr/local/hobbit/server/tmp/hobbitd.chk
for restore
Just means that you started Hobbit up for the first time. The
checkpoint file is generated by hobbitd - you should see it
appear after a few minutes, and if you shut down Hobbit.

Henrik