Page 1 of 2

Linux install of Meteohub

Posted: Sun Mar 29, 2009 6:29 pm
by dcspicer
I just installed Debian linux and all other packages that are required according to the instructions. I loaded up the system and logged in as root. When I try to get access to meteohub through the web, I get can not be displayed (firefox). My question is how to you know if meteohub is running on linux? I have no knowledge of linux and I'm starting to think that it is not booting from the usb device. Am I correct on this or not?

Any help that I can get would be much great full.

Thanks
Dave Spicer

Re:Linux install of Meteohub

Posted: Sun Mar 29, 2009 6:55 pm
by dcspicer
I was doing some reading and I found this under the hardware section. When boot has finished "meteohub login:" is displayed. IP of virtual Meteohub is displayed as "inet addr" directly above login request. When "inet addr" line is missing, Meteohub failed to establish an IP address. Please check with network icon on the lower right border of VMware window, if ethernet is connected to Meteohub. If not, please click with right mouse button on the icon and select "connect" and restart virtual machine.


After the system is booted, I do not get the inet addr, but when I log in and do ifconfig, it has an IP address for my network.

What am I doing wrong?

Re:Linux install of Meteohub

Posted: Tue Mar 31, 2009 6:06 am
by dudelsack
can you ping from the linux machine?
can you ping the linux machine from outside?

Matt

Re:Linux install of Meteohub

Posted: Tue Mar 31, 2009 2:50 pm
by dcspicer
Yes I can ping the linux machine and from the linux machine to a website

Re:Linux install of Meteohub

Posted: Tue Mar 31, 2009 7:23 pm
by dudelsack
Try to see whether http server is running.
From the command line execute: ps -ef | grep http

The result should look similar to the following:

root 2137 1 0 Feb21 ? 00:07:41 /usr/sbin/thttpd -C /etc/thttpd.conf
root 2139 1 0 Feb21 ? 00:01:03 /usr/sbin/thttpdbackup -C /etc/thttpd-backup.conf


If there is no http server running, try to reboot at check again. Should there still be no http server, you have to analyze the logs.

The log location is define in /etc/thttpd.conf and is typically /data/log/thttpd.log

Hope this helps

Matt

Re:Linux install of Meteohub

Posted: Wed Apr 01, 2009 1:03 am
by dcspicer
Thanks for the help. This makes since know on why I can not connect to the web interface. Here is the results from the command ps -ef | grep http

root 2582 2329 0 01:00 tty1 00:00:00 grep http

I have tried rebooting and this is what I get. So it sounds like the http server is either not starting up or not loaded. How do I fix that?

Re:Linux install of Meteohub

Posted: Wed Apr 01, 2009 1:12 am
by dudelsack
Check in the httpd logfile as explained above. Hopefully it will tell us the reason why http did not start or crashed shortly after booting. Post the last lines of the log. Something along the line

tail -50 /data/log/thttpd.log

should give us an idea.

Matt

Re:Linux install of Meteohub

Posted: Wed Apr 01, 2009 3:04 am
by dcspicer
ok I hope that this helps. I looked inside the thttpd.log file and there is NOTHING in there. The command that I ran was cat /data/log/thttpd.log and also tail -50 /data/log/thttpd.log. Again both ways show nothing.

Also I just did a clean install of Debian linux and meteohub, still can not connect.

Re:Linux install of Meteohub

Posted: Wed Apr 01, 2009 3:08 am
by dudelsack
So the log file exists, but it is empty? Weird.
Can you verify the log file httpd is using in the config file?

cat /etc/thttpd.conf

you should something similar to the following:

port=8086
cgipat=**.cgi
dir=/srv/www
user=root
logfile=/data/log/thttpd.log
nochroot
nosymlink

The logfile is what we are looking for.

Matt

Re:Linux install of Meteohub

Posted: Wed Apr 01, 2009 3:13 am
by dcspicer
Here is what I have

port=80
cgipat=**.cgi
dir=/srv/www
user=root
logfile=/data/log/thttpd.log
nochroot
nosymlink

Re:Linux install of Meteohub

Posted: Wed Apr 01, 2009 3:20 am
by dudelsack
hm, thats the location of the logfile we already checked... which seems to be empty.

Try to start httpd manually:

/etc/init.d/thttpd start

M

Re:Linux install of Meteohub

Posted: Wed Apr 01, 2009 3:23 am
by dudelsack
Just realized that httpd is dumping potential startup problems into the syslog

Check /var/log/syslog

M

Re:Linux install of Meteohub

Posted: Wed Apr 01, 2009 3:38 am
by dcspicer
There is alot of information in there. What should I be looking for?

Re:Linux install of Meteohub

Posted: Wed Apr 01, 2009 3:43 am
by dcspicer
I did that manual start by using /etc/init.d/thttpd start and then did a ps -ef |grep http and all it display is root 3880 2409 0 01:25 tty1 00:00:00 grep http

Re:Linux install of Meteohub

Posted: Wed Apr 01, 2009 3:44 am
by dudelsack
Well, if you restarted httpd manually as advised earlier, that should pretty much be the last entry in the log file. Or you can just do a :

cat syslog | grep http

to filter out everything except httpd related stuff.

M