several service issues *solved*

Discussion of the Meteohub software package

Moderator: Mattk

Post Reply
joshua
Fresh Boarder
Fresh Boarder
Posts: 12
Joined: Fri Mar 21, 2008 8:57 am

several service issues *solved*

Post by joshua »

I was having some issues so I decided to start over with a fresh upgrade to 2.3 firmware, 2.6 2GB image, and then a software upgrade to 2.7. I noticed right off the bat that I could not connect to the web interface on port 80 only on 7777. The device is no longer listening on 80. I checked the config in the web ui and the port is still set to 80.

In addition I also noticed that the sensors info page (and several others) are not working with a similar kind of error
"error connect socket 127.0.0.1:5555
:Connection refused"
Sensors cannot be displayed because data logging process has been halted.

Verifying from SSH you can see that neither of those ports are being used.

tcp 0 0 0.0.0.0:7777 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:873 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:139 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:445 0.0.0.0:* LISTEN
netstat: no support for `AF INET6 (tcp)' on this system.
udp 0 0 10.1.1.246:137 0.0.0.0:*
udp 0 0 192.168.1.77:137 0.0.0.0:*
udp 0 0 0.0.0.0:137 0.0.0.0:*
udp 0 0 10.1.1.246:138 0.0.0.0:*
udp 0 0 192.168.1.77:138 0.0.0.0:*
udp 0 0 0.0.0.0:138 0.0.0.0:*
udp 0 0 0.0.0.0:111 0.0.0.0:*
udp 0 0 192.168.1.77:123 0.0.0.0:*
udp 0 0 10.1.1.246:123 0.0.0.0:*
udp 0 0 127.0.0.1:123 0.0.0.0:*
udp 0 0 0.0.0.0:123 0.0.0.0:*


Any suggestions? Here's my info screen:

Linux Kernel: 2.6.21.7 132 BogoMIPS, 30 MB RAM, NSLU2 (133MHz)
MeteoHub: Version 2.6 (c)2008 by Boris Pasternak, info@meteohub.de
Activation Code: REMOVED FROM POST activated

Network
Hostname: meteohub
Workgroup: HOME
MAC: 00:0F:66:7B:F6:9D
IP: 10.1.1.246
Gateway: 10.1.1.1
DNS: 10.1.1.1
WAN IP: REMOVED FROM POST

Storage
Swap: 0MB of 127MB used (0%)
System: 211MB of 402MB used (52%)
Data: 32MB of 1322MB used (2%)

Date and Time
UTC: 15.08.2008 02:03:05
Time Zone: America/Phoenix
Local Time: 14.08.2008 19:03:05
Uptime: 0 hours, 8 minutes
System Load: 0.07, 0.27, 0.20

Process
Weather Data Recomputation: completed
Weather Data Logging: running (last data: never)
SSH Login: running
SMB Shares: running
Time Synchonization: running
terrax
Fresh Boarder
Fresh Boarder
Posts: 10
Joined: Fri Aug 08, 2008 10:12 am

Re:several service issues

Post by terrax »

your setup is somehow special as you are not using non-routeable IPs like most users behind a NATing router. I don't think that this is the reason of your troubles, but I would have liked mention that in he first place.

Meteohub normally has two http server running. one serving port 7777 the other one serving the port you specify on the web interface of meteohub. if you are familiar with linux and ssh, you can check if processes named "thttpd" and "thttpd-backup" (for port 7777) are running. They also have config files at "/etc/thttpd*.conf". if all this looks fine try restarting these by "rcthttpd restart" or by doing a reboot.

Sensor page needs the data logging process "wmr928d" running. with "ps" you should see two such processes running. The father process seems to catch abortions/time outs of the active data logging child process, I guess. Inspecting the "meteohub log" should also give some indication if/why not the data logging process is running.

Good luck!
joshua
Fresh Boarder
Fresh Boarder
Posts: 12
Joined: Fri Mar 21, 2008 8:57 am

Re:several service issues

Post by joshua »

Thanks for the response!

I'm using RFC 1918 ips? So I'm not sure what you mean by "I'm not using non-routable ips". All the ips I'm using (10.x.x.x) are behind a typical NAT router.

This is al I see in the process list for httpd:
1062 root 1012 S /usr/sbin/thttpdbackup -C /etc/thttpd-backup.conf
Seems odd that there's no thttpd running? That would explain why it's not listening on port 80. Any idea why it woudln't be starting up?

Here's the wmr processes running:
1086 root 356 S /home/meteohub/wmr928d /var/run/wmr928d.pid -c /home/
12002 root Z [wmr928d]
If this process is running, it should be listening on the data logging ports, right?

dmesg:
http://www.h4b.org/dl/meteohub.dmesg

messages:
http://www.h4b.org/dl/meteohub.messages

I really appreciate any help you can provide!
joshua
Fresh Boarder
Fresh Boarder
Posts: 12
Joined: Fri Mar 21, 2008 8:57 am

Re:several service issues

Post by joshua »

anther interesting bit of info:
root@meteohub:/etc/rc2.d$ ../init.d/thttpd start
Starting thttpd/data/log/thttpd.log: Permission denied


still investigating.
joshua
Fresh Boarder
Fresh Boarder
Posts: 12
Joined: Fri Mar 21, 2008 8:57 am

Re:several service issues *solved*

Post by joshua »

it was a bad usb stick. bummner because it was from ambient weather. I might give them a call to see if it has any kind of warranty. Thanks for the response anyway!
Post Reply