[hobbit] Hobbit setup after Catastrophic failure

David Gilmore david at stenhouseconsulting.com
Mon Oct 1 18:32:23 CEST 2007


Update to last post.

After reading Henrik's response again I realized I attempted hobbitlaunch without the specified commands so of course it failed.

When I did enter it in exactly it still failed, so I changed to:

./hobbitlaunch --no-daemon --config=/home/hobbit/server/etc/hobbitlaunch.cfg

It start to launch, and then I get 'Aborted (core dumped)'
'Could not connect to bbd at 10.254.254.12:1984 - Connection refused'
'Whoops ! bb failed to send message - Connection failed'


David


-----Original Message-----
From: Henrik Stoerner [mailto:henrik at hswn.dk]
Sent: Monday, October 01, 2007 11:22 AM
To: hobbit at hswn.dk
Subject: Re: [hobbit] Hobbit setup after Catastrophic failure

On Mon, Oct 01, 2007 at 10:05:54AM -0400, David Gilmore wrote:
> I recently had a catastrophic failure of my hobbit box.  I
> have rebuilt the box, installed FC6, installed hobbit,
> and have restored hobbit files from backup.  I have started
> the hobbit script and restarted it after fixing some permissions
> issues caused by the restore, mostly missing rwx on subfolders
> and files.  Currently Apache is serving the pages, but the data
> is stale and does not appear to be updating.  Any suggestions?

Try this first (while logged in as the Hobbit user):

$ bbcmd
2007-10-01 17:13:09 Using default environment file /usr/lib/hobbit/server/etc/hobbitserver.cfg
$ echo $BBHOME
/usr/lib/hobbit/server
$ touch $BBTMP/test.tmp
$ touch $BBSERVERLOGS/test.log
$ touch $BBWWW/test.html

This uses "bbcmd" to check that your hobbitserver.cfg settings can be
loaded, and also that you have write access to a couple of directories.
There should be no errors.

Next, try to start hobbitd:

$ ./server/bin/hobbitd
2007-10-01 17:15:14 Loading hostnames
2007-10-01 17:15:14 Setting up network listener on 0.0.0.0:1984
2007-10-01 17:15:14 Setting up local listener
2007-10-01 17:15:14 Setting up signal handlers
2007-10-01 17:15:14 Setting up hobbitd channels
2007-10-01 17:15:14 Setting up logfiles
2007-10-01 17:15:14 Setup complete

This is the normal startup log from hobbitd. Again, there should be no
errors. If this succeeds, then you can just ctrl-c out of it.

Next, try to start hobbitd through hobbitlaunch:

$ ./server/bin/hobbitlaunch --no-daemon --config=/etc/hobbit/hobbitlaunch.cfg
2007-10-01 17:18:50 hobbitlaunch starting
2007-10-01 17:18:50 Loading tasklist configuration from /etc/hobbit/hobbitlaunch.cfg
2007-10-01 17:18:50 Loading hostnames
2007-10-01 17:18:50 Loading saved state
2007-10-01 17:18:50 Setting up network listener on 172.16.10.100:1984
2007-10-01 17:18:50 Setting up local listener
2007-10-01 17:18:50 Setting up signal handlers
2007-10-01 17:18:50 Setting up hobbitd channels
2007-10-01 17:18:50 Setting up logfiles

If you get this far, then Hobbit is basically running, and any problems
should be reported in the logfiles. You can try running the command
  "bb 127.0.0.1 hobbitdboard"
to check that the Hobbit daemon is responding to queries, it should dump
the full state of everything monitored.


Regards,
Henrik


To unsubscribe from the hobbit list, send an e-mail to
hobbit-unsubscribe at hswn.dk



This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail.



More information about the Xymon mailing list