Todays Snapshot 25/1-07
list Lars Ebeling
Hello, I still get empty statuspages. The last working snapshot that I have installed and works is from 27/12. You could have a look at: http://leopg9.no-ip.org/hobbit/bb.html Regards Lars Ebeling http://leopg9.no-ip.org Hobbithobbyist "It is better to keep your mouth shut and appear stupid than to open it and remove all doubt." -- Mark Twain
list Henrik Størner
▸
On Thu, Jan 25, 2007 at 07:57:33AM +0100, lars ebeling wrote:
Hello, I still get empty statuspages. The last working snapshot that I have installed and works is from 27/12.
I don't understand why that would happen. The web page generation code hasn't changed in ages, and I'm running a fairly recent version of the code elsewhere without problems. Does a "bb 127.0.0.1 hobbitboard" return any data ? Henrik
list Lars Ebeling
No, nothing. Lars
▸
----- Original Message -----
From: "Henrik Stoerner" <user-ce4a2c883f75@xymon.invalid>
To: <user-ae9b8668bcde@xymon.invalid>
Sent: Thursday, January 25, 2007 10:57 PM
Subject: Re: [hobbit] Todays Snapshot 25/1-07
On Thu, Jan 25, 2007 at 07:57:33AM +0100, lars ebeling wrote:Hello, I still get empty statuspages. The last working snapshot that I have installed and works is from 27/12.I don't understand why that would happen. The web page generation code hasn't changed in ages, and I'm running a fairly recent version of the code elsewhere without problems. Does a "bb 127.0.0.1 hobbitboard" return any data ? Henrik
list Henrik Størner
On Fri, Jan 26, 2007 at 06:03:04AM +0100, lars ebeling wrote:
Does a "bb 127.0.0.1 hobbitboard" return any data ?No, nothing.
Hmm .... could you apply this patch and run the command again, with
debugging this time - i.e.
bb --debug 127.0.0.1 hobbitdboard
The output should look like
$ bb --debug 127.0.0.1 hobbitdboard
2007-01-26 10:37:43 Transport setup is:
2007-01-26 10:37:43 bbdportnumber = 1984
2007-01-26 10:37:43 bbdispproxyhost = NONE
2007-01-26 10:37:43 bbdispproxyport = 0
2007-01-26 10:37:43 Recipient listed as '127.0.0.1'
2007-01-26 10:37:43 Unix domain protocol
2007-01-26 10:37:43 Will connect to address local/unix port 0
2007-01-26 10:37:43 Connect status is 0
2007-01-26 10:37:43 Sent 12 bytes
2007-01-26 10:37:43 Read 765 bytes
followed by the normal hobbitdboard output.
Regards,
Henrik
-------------- next part --------------
--- lib/sendmsg.c 2006/10/31 11:53:40 1.84
+++ lib/sendmsg.c 2007/01/26 09:36:46
@@ -167,10 +167,11 @@
dbgprintf("Recipient listed as '%s'\n", recipient);
- if ((strcmp(recipient, "local") == 0) || (strcmp(recipient, "127.0.0.1") == 0) || (strcmp(recipient, xgetenv("BBDISP")) == 0)) {
+ if ( (strcmp(recipient, "local") == 0) || (strcmp(recipient, "127.0.0.1") == 0) ) {
/* Connect via local unix domain socket $BBTMP/hobbitd_if */
dbgprintf("Unix domain protocol\n");
conntype = C_UNIX;
+ rcptip = strdup("local/unix");
}
else if (strncmp(recipient, "http://", strlen("http://")) != 0) {
/* Standard BB communications, directly to bbd */
list Lars Ebeling
$ bb --debug 127.0.0.1 hobbitdboard 2007-01-26 12:53:31 Transport setup is: 2007-01-26 12:53:31 bbdportnumber = 1984 2007-01-26 12:53:31 bbdispproxyhost = NONE 2007-01-26 12:53:31 bbdispproxyport = 0 2007-01-26 12:53:31 Recipient listed as '127.0.0.1' 2007-01-26 12:53:31 Unix domain protocol 2007-01-26 12:53:31 Will connect to address local/unix port 0 2007-01-26 12:53:31 connect to bbd failed - No such file or directory 2007-01-26 12:53:31 Whoops ! bb failed to send message - Connection failed $ pwd /home/hobbit $ ls ./server/bin/bbd ./server/bin/bbd not found
▸
$
Lars
----- Original Message -----
From: "Henrik Stoerner" <user-ce4a2c883f75@xymon.invalid>
To: <user-ae9b8668bcde@xymon.invalid>
Sent: Friday, January 26, 2007 10:39 AM
Subject: Re: [hobbit] Todays Snapshot 25/1-07
On Fri, Jan 26, 2007 at 06:03:04AM +0100, lars ebeling wrote:Does a "bb 127.0.0.1 hobbitboard" return any data ?No, nothing.Hmm .... could you apply this patch and run the command again, with debugging this time - i.e. bb --debug 127.0.0.1 hobbitdboard The output should look like $ bb --debug 127.0.0.1 hobbitdboard 2007-01-26 10:37:43 Transport setup is: 2007-01-26 10:37:43 bbdportnumber = 1984 2007-01-26 10:37:43 bbdispproxyhost = NONE 2007-01-26 10:37:43 bbdispproxyport = 0 2007-01-26 10:37:43 Recipient listed as '127.0.0.1' 2007-01-26 10:37:43 Unix domain protocol 2007-01-26 10:37:43 Will connect to address local/unix port 0 2007-01-26 10:37:43 Connect status is 0 2007-01-26 10:37:43 Sent 12 bytes 2007-01-26 10:37:43 Read 765 bytes followed by the normal hobbitdboard output. Regards, Henrik
list Lars Ebeling
Forget this!!! I had not started hobbit
▸
----- Original Message -----
From: "lars ebeling" <user-1fecd3eafd52@xymon.invalid>
To: <user-ae9b8668bcde@xymon.invalid>
Sent: Friday, January 26, 2007 12:56 PM
Subject: Re: [hobbit] Todays Snapshot 25/1-07
$ bb --debug 127.0.0.1 hobbitdboard 2007-01-26 12:53:31 Transport setup is: 2007-01-26 12:53:31 bbdportnumber = 1984 2007-01-26 12:53:31 bbdispproxyhost = NONE 2007-01-26 12:53:31 bbdispproxyport = 0 2007-01-26 12:53:31 Recipient listed as '127.0.0.1' 2007-01-26 12:53:31 Unix domain protocol 2007-01-26 12:53:31 Will connect to address local/unix port 0 2007-01-26 12:53:31 connect to bbd failed - No such file or directory 2007-01-26 12:53:31 Whoops ! bb failed to send message - Connection failed $ pwd /home/hobbit $ ls ./server/bin/bbd ./server/bin/bbd not found $ Lars ----- Original Message ----- From: "Henrik Stoerner" <user-ce4a2c883f75@xymon.invalid> To: <user-ae9b8668bcde@xymon.invalid> Sent: Friday, January 26, 2007 10:39 AM Subject: Re: [hobbit] Todays Snapshot 25/1-07On Fri, Jan 26, 2007 at 06:03:04AM +0100, lars ebeling wrote:Does a "bb 127.0.0.1 hobbitboard" return any data ?No, nothing.Hmm .... could you apply this patch and run the command again, with debugging this time - i.e. bb --debug 127.0.0.1 hobbitdboard The output should look like $ bb --debug 127.0.0.1 hobbitdboard 2007-01-26 10:37:43 Transport setup is: 2007-01-26 10:37:43 bbdportnumber = 1984 2007-01-26 10:37:43 bbdispproxyhost = NONE 2007-01-26 10:37:43 bbdispproxyport = 0 2007-01-26 10:37:43 Recipient listed as '127.0.0.1' 2007-01-26 10:37:43 Unix domain protocol 2007-01-26 10:37:43 Will connect to address local/unix port 0 2007-01-26 10:37:43 Connect status is 0 2007-01-26 10:37:43 Sent 12 bytes 2007-01-26 10:37:43 Read 765 bytes followed by the normal hobbitdboard output. Regards, Henrik
list Lars Ebeling
This is the correct output: $ cd server $ ./hobb* start Hobbit started $ bb --debug 127.0.0.1 hobbitdboard 2007-01-26 13:18:08 Transport setup is: 2007-01-26 13:18:08 bbdportnumber = 1984 2007-01-26 13:18:08 bbdispproxyhost = NONE 2007-01-26 13:18:08 bbdispproxyport = 0 2007-01-26 13:18:08 Recipient listed as '127.0.0.1' 2007-01-26 13:18:08 Unix domain protocol 2007-01-26 13:18:08 Will connect to address local/unix port 0 2007-01-26 13:18:08 Connect status is 0 2007-01-26 13:18:08 Sent 12 bytes 2007-01-26 13:18:23 Whoops ! bb failed to send message - timeout $
list Lars Ebeling
Now I got statuspages. But I cannot believe that I have made something wrong for over a month! I applied the patch and run make clean make and make install (as root) Lars I will untar todays snapshot again, and not apply the patch.
▸
----- Original Message -----
From: "lars ebeling" <user-1fecd3eafd52@xymon.invalid>
To: <user-ae9b8668bcde@xymon.invalid>
Sent: Friday, January 26, 2007 12:56 PM
Subject: Re: [hobbit] Todays Snapshot 25/1-07
$ bb --debug 127.0.0.1 hobbitdboard 2007-01-26 12:53:31 Transport setup is: 2007-01-26 12:53:31 bbdportnumber = 1984 2007-01-26 12:53:31 bbdispproxyhost = NONE 2007-01-26 12:53:31 bbdispproxyport = 0 2007-01-26 12:53:31 Recipient listed as '127.0.0.1' 2007-01-26 12:53:31 Unix domain protocol 2007-01-26 12:53:31 Will connect to address local/unix port 0 2007-01-26 12:53:31 connect to bbd failed - No such file or directory 2007-01-26 12:53:31 Whoops ! bb failed to send message - Connection failed $ pwd /home/hobbit $ ls ./server/bin/bbd ./server/bin/bbd not found $ Lars ----- Original Message ----- From: "Henrik Stoerner" <user-ce4a2c883f75@xymon.invalid> To: <user-ae9b8668bcde@xymon.invalid> Sent: Friday, January 26, 2007 10:39 AM Subject: Re: [hobbit] Todays Snapshot 25/1-07On Fri, Jan 26, 2007 at 06:03:04AM +0100, lars ebeling wrote:Does a "bb 127.0.0.1 hobbitboard" return any data ?No, nothing.Hmm .... could you apply this patch and run the command again, with debugging this time - i.e. bb --debug 127.0.0.1 hobbitdboard The output should look like $ bb --debug 127.0.0.1 hobbitdboard 2007-01-26 10:37:43 Transport setup is: 2007-01-26 10:37:43 bbdportnumber = 1984 2007-01-26 10:37:43 bbdispproxyhost = NONE 2007-01-26 10:37:43 bbdispproxyport = 0 2007-01-26 10:37:43 Recipient listed as '127.0.0.1' 2007-01-26 10:37:43 Unix domain protocol 2007-01-26 10:37:43 Will connect to address local/unix port 0 2007-01-26 10:37:43 Connect status is 0 2007-01-26 10:37:43 Sent 12 bytes 2007-01-26 10:37:43 Read 765 bytes followed by the normal hobbitdboard output. Regards, Henrik
list Lars Ebeling
Ok, I untared the snapshot and ran configure, make, make install Statuspages were empty. Then I applied the patch and ran, make and make install Then I got the statuspages. I noticed that when I did not get any statuspages, I had this in bbgen: TIME SPENT Event Starttime Duration Startup 1169445361.442187 - Load links done 1169445361.581249 0.139062 Load bbhosts done 1169445361.615985 0.034736 ACK removal done 1169445361.665303 0.049318 Load STATE done 1169445376.725359 15.060056 Color calculation done 1169445376.725449 0.000090 Hobbit pagegen start 1169445376.725531 0.000082 Hobbit pagegen done 1169445377.114726 0.389195 BB2 generation done 1169445377.273976 0.159250 BBNK generation done 1169445377.332917 0.058941 Summary transmission done 1169445377.332940 0.000023 Run completed 1169445377.332954 0.000014 TIME TOTAL 15.890767 Now I get this:Critical entries in /home/hobbit/client/logs/hobbitclient.log 2007-01-26 13:57:58 connect to bbd failed - No such file or directory 2007-01-26 13:57:59 Whoops ! bb failed to send message - Connection failed 2007-01-26 13:58:02 connect to bbd failed - No such file or directoryHope this could clarify anything. ----- Original Message -----
▸
From: "lars ebeling" <user-1fecd3eafd52@xymon.invalid>
To: <user-ae9b8668bcde@xymon.invalid>
Sent: Friday, January 26, 2007 1:38 PM
Subject: Re: [hobbit] Todays Snapshot 25/1-07
Now I got statuspages. But I cannot believe that I have made something wrong for over a month! I applied the patch and run make clean make and make install (as root) Lars I will untar todays snapshot again, and not apply the patch.
list Henrik Størner
▸
On Fri, Jan 26, 2007 at 02:32:33PM +0100, lars ebeling wrote:
Ok, I untared the snapshot and ran configure, make, make install Statuspages were empty. Then I applied the patch and ran, make and make install Then I got the statuspages.
Is your hobbitd setup to listen on a specific IP-address (with the
--listen option in hobbitlaunch.cfg) ? What's your BBDISP setting?
Hobbit 4.2 (and earlier) sends all requests over TCP/IP. I recently
added a second interface going via a Unix domain socket since this is
faster (and slightly more secure). There is then an optimization in
how requests are sent to hobbitd - if you run "bb" with a "localhost"
or "127.0.0.1" address, then it will use the Unix domain interface
instead of TCP/IP.
The patch fixes a bug where all requests were sent through the Unix
domain interface, instead of using TCP/IP for remote requests. I cannot
quite understand why it has the effect you've seen. I actually stumbled
across this bug some time ago while rushing out a new Hobbit version at
work, but apparently I never got the fix committed to my sourcecode tree
at home.
Regards,
Henrik
list Lars Ebeling
hobbitserver.cfg:BBDISP="$BBSERVERIP" hobbitserver.cfg:BBSERVERIP="192.168.0.2" I do not use any --listen option that is to advanced for me ;-) Lars ----- Original Message ----- From: "Henrik Stoerner" <user-ce4a2c883f75@xymon.invalid> To: <user-ae9b8668bcde@xymon.invalid> Sent: Friday, January 26, 2007 2:48 PM
▸
Subject: Re: [hobbit] Todays Snapshot 25/1-07
On Fri, Jan 26, 2007 at 02:32:33PM +0100, lars ebeling wrote:Ok, I untared the snapshot and ran configure, make, make install Statuspages were empty. Then I applied the patch and ran, make and make install Then I got the statuspages.Is your hobbitd setup to listen on a specific IP-address (with the --listen option in hobbitlaunch.cfg) ? What's your BBDISP setting? Hobbit 4.2 (and earlier) sends all requests over TCP/IP. I recently added a second interface going via a Unix domain socket since this is faster (and slightly more secure). There is then an optimization in how requests are sent to hobbitd - if you run "bb" with a "localhost" or "127.0.0.1" address, then it will use the Unix domain interface instead of TCP/IP. The patch fixes a bug where all requests were sent through the Unix domain interface, instead of using TCP/IP for remote requests. I cannot quite understand why it has the effect you've seen. I actually stumbled across this bug some time ago while rushing out a new Hobbit version at work, but apparently I never got the fix committed to my sourcecode tree at home. Regards, Henrik
list Lars Ebeling
Now there are no new entries in the logfiles Lars