CRON settings and operation?

Discussion of the Meteohub software package

Moderator: Mattk

Post Reply
obhwx
Fresh Boarder
Fresh Boarder
Posts: 16
Joined: Fri Mar 28, 2008 6:07 am

CRON settings and operation?

Post by obhwx »

I have noticed that the log shows a CRON job connecting to my server every five minutes, yet I did not think I had set anything to upload that often. The attached snapshot and summary below shows my configuration.

What would be causing the once per five minutes connection? I know it doesn't sound critical, but I am uploading via a Satellite connection, so I need to minimize the uploads.

1,31 5-23 * * * Between 5am and 11pm, update the overall page at 1 and 31 minutes after the hour. That should include 11:01 and 11:31 pm.

* */6 * * * Every six hours, update the graph .PNGs one time.

0 6,15 * * * At 6pm and 3pm update the little sunny/rainy/etc... graphic on the page


Apr 18 12:35:00 (none) cron.info /USR/SBIN/CRON[19051]: (root) CMD (sleep 240; /usr/bin/ncftpput -DD -u obhwx -p secretpw -P 21 stowe.internal web /data/uploads/* >/var/log/messages 2>/var/log/messages)
Apr 18 12:40:00 (none) cron.info /USR/SBIN/CRON[19268]: (root) CMD (sleep 240; /usr/bin/ncftpput -DD -u obhwx -p secretpw -P 21 stowe.internal web /data/uploads/* >/var/log/messages 2>/var/log/messages)
Apr 18 12:45:00 (none) cron.info /USR/SBIN/CRON[19485]: (root) CMD (sleep 240; /usr/bin/ncftpput -DD -u obhwx -p secretpw -P 21 stowe.internal web /data/uploads/* >/var/log/messages 2>/var/log/messages)
Apr 18 12:50:01 (none) cron.info /USR/SBIN/CRON[19706]: (root) CMD (sleep 240; /usr/bin/ncftpput -DD -u obhwx -p secretpw -P 21 stowe.internal web /data/uploads/* >/var/log/messages 2>/var/log/messages)
Apr 18 12:55:00 (none) cron.info /USR/SBIN/CRON[19922]: (root) CMD (sleep 240; /usr/bin/ncftpput -DD -u obhwx -p secretpw -P 21 stowe.internal web /data/uploads/* >/var/log/messages 2>/var/log/messages)
Apr 18 13:00:00 (none) cron.info /USR/SBIN/CRON[20134]: (root) CMD (sleep 240; /usr/bin/ncftpput -DD -u obhwx -p secretpw -P 21 stowe.internal web /data/uploads/* >/var/log/messages 2>/var/log/messages)
Apr 18 13:05:00 (none) cron.info /USR/SBIN/CRON[20205]: (root) CMD (sleep 240; /usr/bin/ncftpput -DD -u obhwx -p secretpw -P 21 stowe.internal web /data/uploads/* >/var/log/messages 2>/var/log/messages)
Apr 18 13:10:00 (none) cron.info /USR/SBIN/CRON[20252]: (root) CMD (sleep 240; /usr/bin/ncftpput -DD -u obhwx -p secretpw -P 21 stowe.internal web /data/uploads/* >/var/log/messages 2>/var/log/messages)
Apr 18 13:15:00 (none) cron.info /USR/SBIN/CRON[20293]: (root) CMD (sleep 240; /usr/bin/ncftpput -DD -u obhwx -p secretpw -P 21 stowe.internal web /data/uploads/* >/var/log/messages 2>/var/log/messages)
Apr 18 13:20:00 (none) cron.info /USR/SBIN/CRON[20344]: (root) CMD (sleep 240; /usr/bin/ncftpput -DD -u obhwx -p secretpw -P 21 stowe.internal web /data/uploads/* >/var/log/messages 2>/var/log/messages)


Etc...
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7879
Joined: Mon Oct 01, 2007 10:51 pm

Re:CRON settings and operation?

Post by admin »

which Meteohub version?
obhwx
Fresh Boarder
Fresh Boarder
Posts: 16
Joined: Fri Mar 28, 2008 6:07 am

Re:CRON settings and operation?

Post by obhwx »

Version 2.3
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7879
Joined: Mon Oct 01, 2007 10:51 pm

Re:CRON settings and operation?

Post by admin »

will be fixed with the next update.
obhwx
Fresh Boarder
Fresh Boarder
Posts: 16
Joined: Fri Mar 28, 2008 6:07 am

Re:CRON settings and operation?

Post by obhwx »

Question: I am now running version 2.7 and have noticed that Meteohub is still connecting to my FTP server every one to two minutes even though the Cron settings are not requesting this. I realize that there have been many updates to the software since I last worked on it. What version would you suggest I upgrade to on my NSLU2 that would resolve this repeated connecting issue?

The update will be applied to an NSLU2 across the network since I have no easy local access to the server, so I want to be sure that I won't accidentally "brick" the server.

I can privately e-mail you detailed logs if that would be helpful.

Thanks
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7879
Joined: Mon Oct 01, 2007 10:51 pm

Re:CRON settings and operation?

Post by admin »

you might go to 3.3c (last one-station version) and if you like from there to 4.2g (latest version with multi station support).

DO you have ssh connection (port 22) to your Meteohub? If so, please mail details to info(at)meteohub.de. I might be able to help you with the remote update.
obhwx
Fresh Boarder
Fresh Boarder
Posts: 16
Joined: Fri Mar 28, 2008 6:07 am

Re:CRON settings and operation?

Post by obhwx »

Not much luck so far- I am unable to connect to the NSLU2 over the satellite link, so I walked my brother through a local connection. He was able to copy the 3.1 and 3.3c .upd files to the transfer folder, but when he selected the 3.1 file and applied it the NSLU2 stayed on 2.7.

I was also unable to telnet in or SSH in remotely.

I guess I will be driving up there to work on it.

We were able to turn off the FTP connections to stop the once-per-minute attempts to connect to my FTP server, and Meteohub IS still connecting to Weather Underground routinely, so at least some of it is working.

About a week ago Meteohub stopped updating the data that it was FTPing- even though it was connecting once per minute the data being posted was not being updated. It just keeps posting the same data from May 18 at 19:31. Yet Weather Underground is updated properly every 30 minutes.

Corrupted database perhaps? There is plenty of space left on both the NSLU2 volumes and on the FTP server at my end.
Post Reply