Page 1 of 1
timeout on meteonews causes ALL after to die **solved**
Posted: Sun Aug 17, 2014 8:46 pm
by lrosenman
on both 4.9za and 4.9zb, I was seeing a timeout on the meteonet process reporting to meteonews.
When I run it with -d, I shows the timeout, and then "Alarm Clock" and then process exit.
Can this be changed to log the error, and continue on?
Re: timeout on meteonews causes ALL after to die
Posted: Mon Aug 18, 2014 10:09 pm
by admin
"-d" is a one time invocation. When running in daemon mode it should not stop.
Do you have evidence that is stops operation in daemon mode? You can check with "rcmeteonet status"
Re: timeout on meteonews causes ALL after to die
Posted: Mon Aug 18, 2014 10:11 pm
by lrosenman
Yes. I got whines from CWOP, WeatherBug, et al that they were NOT receiving data.
When I ran it without -d, I got a "Alarm Clock" not, and process exit.
I ran it with -d to figure out what was happening.
Please look at your timeout handling for meteonews.
Re: timeout on meteonews causes ALL after to die
Posted: Mon Aug 18, 2014 10:17 pm
by lrosenman
and:
root@raspberrypi:~# rcmeteonet status
-bash: rcmeteonet: command not found
root@raspberrypi:~# ls /etc/init.d/
README kbd nfs-common single
bacula-fd keymap.sh ntp skeleton
bootlogs killprocs procps ssh
bootmisc.sh kmod rc thttpd
checkfs.sh loggerd rc.local udev
checkroot-bootclean.sh meteonetd rcS udev-mtab
checkroot.sh motd reboot umountfs
cron mountall-bootclean.sh rmnologin umountnfs.sh
dbus mountall.sh rpcbind umountroot
ddclient mountdevsubfs.sh rsync urandom
exim4 mountkernfs.sh rsyncd watchdog
gpm mountnfs-bootclean.sh rsyslog wd_keepalive
halt mountnfs.sh samba wear
hostname.sh mtab.sh screen-cleanup x11-common
hwclock.sh networking sendsigs
root@raspberrypi:~#
so, where is this rcmeteonet command.
BTW, this error was on the 5 minute CRON invocation of meteonet.
root@raspberrypi:~# crontab -l | grep meteonet
*/5 * * * * sleep 120; /home/meteohub/meteonet
root@raspberrypi:~#
Re: timeout on meteonews causes ALL after to die
Posted: Mon Aug 18, 2014 10:17 pm
by lrosenman
the rapid-fire daemon WAS sending data.
Re: timeout on meteonews causes ALL after to die
Posted: Mon Aug 18, 2014 10:25 pm
by admin
lrosenman wrote:Yes. I got whines from CWOP, WeatherBug, et al that they were NOT receiving data.
When I ran it without -d, I got a "Alarm Clock" not, and process exit.
I ran it with -d to figure out what was happening.
Please look at your timeout handling for meteonews.
That is neither an evidence nor does a timeout there aborts anything from a code perspective.
Please check with "rcmeteonetd status" if process is still there or check "ps ax" output
for a process called "meteonet". If the process really drops, then please give me access to your
rig on port 22 so I can check what goes on.
Re: timeout on meteonews causes ALL after to die
Posted: Mon Aug 18, 2014 10:40 pm
by lrosenman
As I said, the -r daemon is fine.
the cron one was dieing on the meteonews timeout.
I disabled meteonews, and cwop, et al started getting data again.
How can I get you ip/creds/etc to look at my box?
Re: timeout on meteonews causes ALL after to die
Posted: Mon Aug 18, 2014 10:42 pm
by lrosenman
root@raspberrypi:~# ps ax|grep meteonet
2488 ? S 24:07 /home/meteohub/meteonet -r
12300 ? Ss 0:00 /bin/sh -c sleep 120; /home/meteohub/meteonet
12559 pts/0 S+ 0:00 grep meteonet
root@raspberrypi:~#
root@raspberrypi:~# rcmeteonetd status
Usage: /etc/init.d/meteonetd {start|stop|reload|restart|force-reload}
root@raspberrypi:~#
I *AM* an experienced Linux/Unix/etc sysadmin.
Re: timeout on meteonews causes ALL after to die
Posted: Mon Aug 18, 2014 10:42 pm
by lrosenman
and as I said, the rapidfire *WAS* working.
Re: timeout on meteonews causes ALL after to die
Posted: Mon Aug 18, 2014 10:43 pm
by lrosenman
look at the findu.com history for EW3654 (my station) from Friday to Sunday. You will see **NO** data until I removed Meteonews.
Re: timeout on meteonews causes ALL after to die
Posted: Mon Aug 18, 2014 10:58 pm
by admin
lrosenman wrote:I *AM* an experienced Linux/Unix/etc sysadmin.
Will you grant me access or do you think you can fix it yourself?
Re: timeout on meteonews causes ALL after to die
Posted: Mon Aug 18, 2014 11:02 pm
by lrosenman
I will grant you access, but want to pass credentials, and ip/port privately.
Re: timeout on meteonews causes ALL after to die
Posted: Mon Aug 18, 2014 11:04 pm
by lrosenman
PM with creds sent.
Re: timeout on meteonews causes ALL after to die
Posted: Tue Aug 19, 2014 12:09 am
by admin
I installed an updated version on your rig that better handles the overall timeout.
Will also be part of the next general update.
Re: timeout on meteonews causes ALL after to die **solved**
Posted: Tue Aug 19, 2014 6:03 am
by lrosenman
Thank You.