[hobbit] Browser asks where to save bb-hostsvc.sh
This looks like the problem I have with bb-hostsvc.sh. Which Hobbit client do you use? (mine is BBWin)
Etienne Marganne TI Automotive
-----Original Message----- From: Michael.Wiegard at materna.de [mailto:Michael.Wiegard at materna.de] Sent: vendredi 9 février 2007 11:40 To: hobbit at hswn.dk Subject: [hobbit] Browser asks where to save bb-hostsvc.sh
Using the format In bb-hosts:
0.0.0.0 HOSTNAME (without domain) # ssh
the browser asks where to save bb-hostsvc.sh
Link-address: .../hobbit-cgi/bb-hostsvc.sh?HOST=hobbitzone&SERVICE=info Alt-text of the link is: info:green:0.0.0.0
I've already compared with another hobbit-server's configuration, but found no differences.
The mailing-list archive did not help (perhaps wrong search term?!).
When entering the IP-address instead of 0.0.0.0 (in bb-hosts) it works fine...
Any ideas?
Thanks in advance, Michael [hobbit-newbie!!]
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
The information contained in this transmission may contain privileged and confidential information. It is intended only for the use of the person(s) named above. If you are not the intended recipient, you are hereby notified that any review, dissemination, distribution or duplication of this communication is strictly prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message.
It's the same with the windows-client and unix-clients. I think this is not a BBWin/client specific problem.
Looks like a wrong configuration(?!), but I don't know exactly what the problem is... No hints in the logs.
-----Ursprüngliche Nachricht----- Von: Marganne, Etienne [mailto:emarganne at be.tiauto.com] Gesendet: Freitag, 9. Februar 2007 11:51 An: hobbit at hswn.dk Betreff: RE: [hobbit] Browser asks where to save bb-hostsvc.sh
This looks like the problem I have with bb-hostsvc.sh. Which Hobbit client do you use? (mine is BBWin)
Etienne Marganne TI Automotive
-----Original Message----- From: Michael.Wiegard at materna.de [mailto:Michael.Wiegard at materna.de] Sent: vendredi 9 février 2007 11:40 To: hobbit at hswn.dk Subject: [hobbit] Browser asks where to save bb-hostsvc.sh
Using the format In bb-hosts:
0.0.0.0 HOSTNAME (without domain) # ssh
the browser asks where to save bb-hostsvc.sh
Link-address: .../hobbit-cgi/bb-hostsvc.sh?HOST=hobbitzone&SERVICE=info Alt-text of the link is: info:green:0.0.0.0
I've already compared with another hobbit-server's configuration, but found no differences.
The mailing-list archive did not help (perhaps wrong search term?!).
When entering the IP-address instead of 0.0.0.0 (in bb-hosts) it works fine...
Any ideas?
Thanks in advance, Michael [hobbit-newbie!!]
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
The information contained in this transmission may contain privileged and confidential information. It is intended only for the use of the person(s) named above. If you are not the intended recipient, you are hereby notified that any review, dissemination, distribution or duplication of this communication is strictly prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message.
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
-----Original Message----- From: Michael.Wiegard at materna.de [mailto:Michael.Wiegard at materna.de] Sent: Freitag, 9. Februar 2007 12:01 To: hobbit at hswn.dk Subject: AW: [hobbit] Browser asks where to save bb-hostsvc.sh
It's the same with the windows-client and unix-clients. I think this is not a BBWin/client specific problem.
Looks like a wrong configuration(?!), but I don't know exactly what the problem is... No hints in the logs.
-----Original Message----- From: Michael.Wiegard at materna.de [mailto:Michael.Wiegard at materna.de] Sent: vendredi 9 février 2007 11:40 To: hobbit at hswn.dk Subject: [hobbit] Browser asks where to save bb-hostsvc.sh
Using the format In bb-hosts:
0.0.0.0 HOSTNAME (without domain) # ssh
the browser asks where to save bb-hostsvc.sh
Link-address: .../hobbit-cgi/bb-hostsvc.sh?HOST=hobbitzone&SERVICE=info Alt-text of the link is: info:green:0.0.0.0
I've already compared with another hobbit-server's configuration, but found no differences.
The mailing-list archive did not help (perhaps wrong search term?!).
When entering the IP-address instead of 0.0.0.0 (in bb-hosts) it works fine...
Any ideas?
Must be your web-server...
From the Mail archive:
On Fri, Jul 21, 2006 at 01:09:59PM +0800, Everett, Vernon wrote:
Hi all
I am installing a new Hobbit server, running 4.1.2p1 on Solaris 10 with Apache 2.2.0 It's starting to look good. I get the main hobbit page come up, and many green faces smiling at me. However, whenever I click on a face, or any menu option that runs a script, my browser opens a dialogue box and wants to start a download. :-(
If you do download it, then what's in the file - a shell script, or an HTML document ?
If it's a shell script, then your cgi directories are not seen as such, and you're just getting the shell script sent back to you as a plain file. If it's an HTML document, then the CGI program runs and generates the correct response - in that case, I suspect that your webserver doesn't provide the right Content-type header, although the Hobbit CGI programs all try their best to set this correctly.
If you've got something like "curl" installed then running curl -i http://hobbit-cgi/..... |more will show you the headers sent by the webserver. If you dont have that, then you can just telnet to the webserver on port 80, and send it GET http://hobbit-cgi/..... <hit enter twice>
Johann
But why does it work when I use the correct IP address in bb-hosts-file?
Links in the trends column also work fine (Link-alt-text is: trends:green: - without 0.0.0.0).
When a download the file there is NOTHING in it; size 0k.
-----Ursprüngliche Nachricht----- Von: Johann Eggers [mailto:Johann.Eggers at teleatlas.com] Gesendet: Freitag, 9. Februar 2007 12:09 An: hobbit at hswn.dk Betreff: RE: [hobbit] Browser asks where to save bb-hostsvc.sh
-----Original Message----- From: Michael.Wiegard at materna.de [mailto:Michael.Wiegard at materna.de] Sent: Freitag, 9. Februar 2007 12:01 To: hobbit at hswn.dk Subject: AW: [hobbit] Browser asks where to save bb-hostsvc.sh
It's the same with the windows-client and unix-clients. I think this is not a BBWin/client specific problem.
Looks like a wrong configuration(?!), but I don't know exactly what the problem is... No hints in the logs.
-----Original Message----- From: Michael.Wiegard at materna.de [mailto:Michael.Wiegard at materna.de] Sent: vendredi 9 février 2007 11:40 To: hobbit at hswn.dk Subject: [hobbit] Browser asks where to save bb-hostsvc.sh
Using the format In bb-hosts:
0.0.0.0 HOSTNAME (without domain) # ssh
the browser asks where to save bb-hostsvc.sh
Link-address: .../hobbit-cgi/bb-hostsvc.sh?HOST=hobbitzone&SERVICE=info Alt-text of the link is: info:green:0.0.0.0
I've already compared with another hobbit-server's configuration, but found no differences.
The mailing-list archive did not help (perhaps wrong search term?!).
When entering the IP-address instead of 0.0.0.0 (in bb-hosts) it works fine...
Any ideas?
Must be your web-server...
From the Mail archive:
On Fri, Jul 21, 2006 at 01:09:59PM +0800, Everett, Vernon wrote:
Hi all
I am installing a new Hobbit server, running 4.1.2p1 on Solaris 10 with Apache 2.2.0 It's starting to look good. I get the main hobbit page come up, and many green faces smiling at me. However, whenever I click on a face, or any menu option that runs a script, my browser opens a dialogue box and wants to start a download. :-(
If you do download it, then what's in the file - a shell script, or an HTML document ?
If it's a shell script, then your cgi directories are not seen as such, and you're just getting the shell script sent back to you as a plain file. If it's an HTML document, then the CGI program runs and generates the correct response - in that case, I suspect that your webserver doesn't provide the right Content-type header, although the Hobbit CGI programs all try their best to set this correctly.
If you've got something like "curl" installed then running curl -i http://hobbit-cgi/..... |more will show you the headers sent by the webserver. If you dont have that, then you can just telnet to the webserver on port 80, and send it GET http://hobbit-cgi/..... <hit enter twice>
Johann
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
On Fri, Feb 09, 2007 at 12:19:16PM +0100, Michael.Wiegard at materna.de wrote:
When a download the file there is NOTHING in it; size 0k.
Does the HOSTNAME resolve in DNS ? Hobbit will attempt to perform a DNS lookup on the hostname when the IP is set to 0.0.0.0 .
Are there any errors for the request in your apache error-log ?
Regards, Henrik
On Fri, Feb 09, 2007 at 12:33:54PM +0100, Henrik Stoerner wrote:
On Fri, Feb 09, 2007 at 12:19:16PM +0100, Michael.Wiegard at materna.de wrote:
When a download the file there is NOTHING in it; size 0k.
Does the HOSTNAME resolve in DNS ? Hobbit will attempt to perform a DNS lookup on the hostname when the IP is set to 0.0.0.0 .
Are there any errors for the request in your apache error-log ?
Sorry, I just read the other mails in this thread that you get a "Premature end of script headers ..." which is an indication that the bb-hostsvc.sh CGI crashed.
So - time to debug this. On your Hobbit server, run these commands:
ulimit -c unlimited
QUERY_STRING="HOST=YOURHOSTNAME&SERVICE=info"
REQUEST_METHOD=GET
SCRIPT_NAME="bb-hostsvc.sh"
export QUERY_STRING REQUEST_METHOD SCRIPT_NAME
~hobbit/cgi-bin/bb-hostsvc.sh
Supposedly, this will crash - the last few linies it writes before the crash are interesting.
Hopefully, it will also dump a core file in your current directory. Analyse this with gdb:
gdb ~hobbit/server/bin/hobbitsvc.cgi ./core
and at the (gdb) prompt type the "bt" command: (gdb) bt
and send me the output.
Regards, Henrik
participants (4)
-
emarganne@be.tiauto.com
-
henrik@hswn.dk
-
Johann.Eggers@teleatlas.com
-
Michael.Wiegard@materna.de