Linux install of Meteohub

Moderator: Mattk

dcspicer
Senior Boarder
Senior Boarder
Posts: 46
Joined: Sun Feb 08, 2009 7:09 pm

Linux install of Meteohub

Post 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
dcspicer
Senior Boarder
Senior Boarder
Posts: 46
Joined: Sun Feb 08, 2009 7:09 pm

Re:Linux install of Meteohub

Post 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?
dudelsack
Fresh Boarder
Fresh Boarder
Posts: 18
Joined: Sun Jan 11, 2009 10:57 pm

Re:Linux install of Meteohub

Post by dudelsack »

can you ping from the linux machine?
can you ping the linux machine from outside?

Matt
dcspicer
Senior Boarder
Senior Boarder
Posts: 46
Joined: Sun Feb 08, 2009 7:09 pm

Re:Linux install of Meteohub

Post by dcspicer »

Yes I can ping the linux machine and from the linux machine to a website
dudelsack
Fresh Boarder
Fresh Boarder
Posts: 18
Joined: Sun Jan 11, 2009 10:57 pm

Re:Linux install of Meteohub

Post 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
dcspicer
Senior Boarder
Senior Boarder
Posts: 46
Joined: Sun Feb 08, 2009 7:09 pm

Re:Linux install of Meteohub

Post 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?
dudelsack
Fresh Boarder
Fresh Boarder
Posts: 18
Joined: Sun Jan 11, 2009 10:57 pm

Re:Linux install of Meteohub

Post 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
dcspicer
Senior Boarder
Senior Boarder
Posts: 46
Joined: Sun Feb 08, 2009 7:09 pm

Re:Linux install of Meteohub

Post 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.
dudelsack
Fresh Boarder
Fresh Boarder
Posts: 18
Joined: Sun Jan 11, 2009 10:57 pm

Re:Linux install of Meteohub

Post 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
dcspicer
Senior Boarder
Senior Boarder
Posts: 46
Joined: Sun Feb 08, 2009 7:09 pm

Re:Linux install of Meteohub

Post by dcspicer »

Here is what I have

port=80
cgipat=**.cgi
dir=/srv/www
user=root
logfile=/data/log/thttpd.log
nochroot
nosymlink
dudelsack
Fresh Boarder
Fresh Boarder
Posts: 18
Joined: Sun Jan 11, 2009 10:57 pm

Re:Linux install of Meteohub

Post 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
dudelsack
Fresh Boarder
Fresh Boarder
Posts: 18
Joined: Sun Jan 11, 2009 10:57 pm

Re:Linux install of Meteohub

Post by dudelsack »

Just realized that httpd is dumping potential startup problems into the syslog

Check /var/log/syslog

M
dcspicer
Senior Boarder
Senior Boarder
Posts: 46
Joined: Sun Feb 08, 2009 7:09 pm

Re:Linux install of Meteohub

Post by dcspicer »

There is alot of information in there. What should I be looking for?
dcspicer
Senior Boarder
Senior Boarder
Posts: 46
Joined: Sun Feb 08, 2009 7:09 pm

Re:Linux install of Meteohub

Post 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
dudelsack
Fresh Boarder
Fresh Boarder
Posts: 18
Joined: Sun Jan 11, 2009 10:57 pm

Re:Linux install of Meteohub

Post 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
Post Reply