Upgrade to 5.0q -> no more graph updates

Discussion of the Meteohub software package

Moderator: Mattk

Post Reply
Unconnected
Junior Boarder
Junior Boarder
Posts: 34
Joined: Wed May 07, 2008 2:58 pm
Location: The Netherlands

Upgrade to 5.0q -> no more graph updates

Post by Unconnected » Mon Aug 01, 2016 9:00 am

I updated my NSLU2 to the latest update for that device (5.0q (Build 1355)) and after a reboot and recomputing of the data, new data is not being displayed in the graphs. You can see an example here:

http://hetweerinbleiswijk.nl/

as you can see, the graphs are up-to-date up to the point of the recomputation, but nothing after that. the funny part is that the top table is up to date with the current data. somehow history data gets calculated, but the aggregation of the data is not. ssh'ing to the device shows that all the cron-jobs are still there:

Code: Select all

root@meteohub:/data/weather$ head -n 50 /var/cron/tabs/root
# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/var/cron/tabs/root.new installed on Sun Jul 31 08:27:32 2016)
# (Cron version -- $Id: crontab.c,v 2.13 1994/01/17 03:20:37 vixie Exp $)
*/1 */1 * * * /bin/pidof histeval0 || /usr/bin/nice /home/meteohub/histeval0
*/1 * * * * /bin/cat /proc/uptime >/var/run/meteohub/alive
22,52 * * * * echo 'wdnow' >/dev/meteohub
13 */6 * * * /bin/pidof histeval2 || /usr/bin/nice /home/meteohub/histeval2
47 4 * * * /bin/pidof histeval3 || /usr/bin/nice /home/meteohub/histeval3
*/3 * * * * /bin/pidof wswinimport || /usr/bin/nice /home/meteohub/wswinimport 2>>/data/log/messages
17 */6 * * * rm /var/run/*.idx
18 */4 * * * /usr/bin/tail -n 1000 /var/log/messages >/var/log/messages.new; /bin/mv -f /var/log/messages.new /var/log/messages
26 6 * * * nice /srv/www/meteolog.cgi 0 0
#
# optional nightly reboot
37 2 * * * /usr/bin/test -f /home/meteohub/autoreboot && echo norecompute >/home/meteohub/norecompute && /sbin/shutdown -r -n now
#
# keep watchdog happy
#
# generate history data
*/5 */1 * * * /bin/pidof histeval1 || /usr/bin/nice /home/meteohub/histeval1
#
# synchronize hw clock
44 */2 * * * /sbin/hwclock -w
#
# generate live wswin data
#
# compute weather data
8,18,28,38,48,58 * * * * /usr/bin/nice /home/meteohub/wmr928eval -x -c min1 -t -3600 -w /data/weather/ -s /home/meteohub/wmr928eval.conf -e /home/meteohub/wswin.conf -E /home/meteohub/wd.conf
1,11,21,31,41,51  * * * * /usr/bin/nice /home/meteohub/wmr928eval -c min5 -t -3600 -w /data/weather/ -s /home/meteohub/wmr928eval.conf
2,22,42 * * * * /usr/bin/nice /home/meteohub/wmr928eval -c min10 -t -3600 -w /data/weather/ -s /home/meteohub/wmr928eval.conf
3,33 * * * * /usr/bin/nice /home/meteohub/wmr928eval -c min30 -t -7200 -w /data/weather/ -s /home/meteohub/wmr928eval.conf
3 * * * * /usr/bin/nice /home/meteohub/wmr928eval -c hour1 -t -7200 -w /data/weather/ -s /home/meteohub/wmr928eval.conf
4 0,6,12,18 * * * /usr/bin/nice /home/meteohub/wmr928eval -c hour6 -t -50000 -w /data/weather/ -s /home/meteohub/wmr928eval.conf
5 2 * * * /usr/bin/nice /home/meteohub/wmr928eval -c day1 -t -200000 -w /data/weather/ -s /home/meteohub/wmr928eval.conf
6 2 1 * * /usr/bin/nice /home/meteohub/wmr928eval -c month1 -t -7000000 -w /data/weather/ -s /home/meteohub/wmr928eval.conf
#
# test for complete recomputation of weather data
*/5 * * * * /home/meteohub/wmr928fullevalwrapper >/dev/null 2>>/data/log/messages
#
# check for alarms to be mailed to the admin and send them once a day
44 5,11,17,23 * * * /home/meteohub/alarm check "" >/dev/null 2>>/data/log/messages
55 23 * * * /home/meteohub/alarm send "" >/dev/null 2>>/data/log/messages
#
# shorten logfiles
but when i go to the /data/weather directory and check which files got updated:

Code: Select all

-rw-r--r--   1 root root  386 Jul 31 11:14 wind0-month1
-rw-r--r--   1 root root  242 Jul 31 11:14 rain0-month1
-rw-r--r--   1 root root  797 Jul 31 11:14 thb0-month1
-rw-r--r--   1 root root  754 Jul 31 11:14 th0-month1
-rw-r--r--   1 root root  745 Jul 31 11:14 th1-month1
-rw-r--r--   1 root root    0 Jul 31 11:14 uv0-month1
-rw-r--r--   1 root root  308 Jul 31 11:14 tdir0-month1
-rw-r--r--   1 root root  541 Jul 31 11:14 sdir0-month1
drwxr-xr-x   2 root root 4.0K Aug  1 02:06 201608
drwxr-xr-x  12 root root 4.0K Aug  1 02:06 .
-rw-r--r--   1 root root 8.4K Aug  1 05:08 hist-alltime
-rw-r--r--   1 root root 1.9K Aug  1 05:25 seq-month1
-rw-r--r--   1 root root 7.9K Aug  1 05:41 hist-year1
-rw-r--r--   1 root root 8.0K Aug  1 06:21 hist-month1
-rw-r--r--   1 root root 7.4K Aug  1 06:23 seq-day1
-rw-r--r--   1 root root 5.8K Aug  1 06:25 seq-hour6
-rw-r--r--   1 root root 5.3K Aug  1  2016 seq-hour1
-rw-r--r--   1 root root 7.5K Aug  1  2016 hist-day1
-rw-r--r--   1 root root 7.7K Aug  1  2016 hist-hour1
-rw-r--r--   1 root root 8.3K Aug  1  2016 hist-last24h
-rw-r--r--   1 root root 8.3K Aug  1  2016 hist-last60m
-rw-r--r--   1 root root 8.3K Aug  1  2016 hist-last15m
-rw-r--r--   1 root root 9.5K Aug  1  2016 seq-min1
-rw-r--r--   1 root root  15K Aug  1  2016 seq-min15
root@meteohub:/data/weather$
the hist* and seq* files are updated, but not the day1/month1/hour6 files. if i tail the min5:

Code: Select all

root@meteohub:/data/weather$ tail thb0-min5
20160731080500  23.6 23.6 23.6  12.0 12.0 12.0  48.0 48.0 48.0  1015.0 1015.0 1015.0    1012.6 1012.6 1012.6    23.6 23.6 23.6  25.9 25.9 25.9
20160731081000  23.6 23.5 23.6  12.0 11.9 12.0  48.0 48.0 48.0  1015.0 1015.0 1015.0    1012.6 1012.6 1012.6    23.6 23.5 23.6  25.9 25.7 25.9
20160731081500  23.5 23.5 23.6  11.9 11.9 12.0  48.0 48.0 48.0  1015.0 1015.0 1015.0    1012.6 1012.6 1012.6    23.5 23.5 23.6  25.7 25.7 25.9
20160731082000  23.6 23.5 23.6  12.0 11.9 12.0  48.0 48.0 48.0  1015.0 1015.0 1015.0    1012.6 1012.6 1012.6    23.6 23.5 23.6  25.8 25.7 25.9
20160731082500  23.6 23.6 23.6  12.0 12.0 12.0  48.0 48.0 48.0  1015.0 1015.0 1015.0    1012.6 1012.6 1012.6    23.6 23.6 23.6  25.9 25.9 25.9
20160731083000  23.6 23.6 23.6  12.0 12.0 12.0  48.0 48.0 48.0  1015.0 1015.0 1015.0    1012.6 1012.6 1012.6    23.6 23.6 23.6  25.9 25.9 25.9
20160731083500  23.6 23.6 23.6  12.0 12.0 12.0  48.0 48.0 48.0  1015.0 1015.0 1015.0    1012.6 1012.6 1012.6    23.6 23.6 23.6  25.9 25.9 25.9
20160731084000  23.6 23.6 23.6  12.0 12.0 12.0  48.0 48.0 48.0  1015.0 1015.0 1015.0    1012.6 1012.6 1012.6    23.6 23.6 23.6  25.9 25.9 25.9
20160731084500  23.6 23.6 23.6  12.0 12.0 12.0  48.0 48.0 48.0  1015.0 1015.0 1015.0    1012.6 1012.6 1012.6    23.6 23.6 23.6  25.9 25.9 25.9
20160731085000  23.6 23.6 23.6  12.0 12.0 12.0  48.0 48.0 48.0  1015.0 1015.0 1015.0    1012.6 1012.6 1012.6    23.6 23.6 23.6  25.9 25.9 25.9
root@meteohub:/data/weather$
the data is there up until the time I pressed 'recompute data'.

Is there some process I can start manually? to see what's going wrong or something? the meteohub.log file displays no abnormalities:

Code: Select all

wmr928fulleval(30.07.2016 09:25:04): recomputation of weather data started.
wmr928fulleval(30.07.2016 22:05:49): recomputation of weather data finished: 16337270 records processed in 45497 seconds (359 records per second)
wmr928fulleval(31.07.2016 08:35:05): recomputation of weather data started.
wmr928fulleval(31.07.2016 12:07:03): recomputation of weather data finished: 3417608 records processed in 12672 seconds (269 records per second)
hope you guys can help me out!

Unconnected
Junior Boarder
Junior Boarder
Posts: 34
Joined: Wed May 07, 2008 2:58 pm
Location: The Netherlands

Re: Upgrade to 5.0q -> no more graph updates

Post by Unconnected » Wed Aug 03, 2016 7:59 am

no one? the graphs now completely fail because the data of the last 3 days is no longer accumulated, altough everything is collected in the 201608/raw file correctly (with the right file permissions) :(

Post Reply