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