Index file written with date in the future

42 views
Skip to first unread message

David Bach

unread,
Feb 4, 2020, 11:59:13 PM2/4/20
to weewx-user
This situation has happened twice in 3 days. I don't know of any condition that might cause it.

The index file has a date in the header that is 12 hours in the future.

The software was running as expected until 15:30 today. Then the local server quit serving the index.html in var/www/html/weewx/.

The images appear to be for the current conditions, but the date and time are in the future.

weewx has continued to write the images for current conditions, but with the date in the future. 

As you can see from the attached image, data for the time period 18:30 through the future time of about 2:50 is missing. Then the plot continues with data from about 20:25. 

The time on the console is correct. The time from the hardware clock matches. 

I have stopped weewx. and examined the var/log/syslog.

The suspicious part is toward the bottom of this clip:
>>>
Feb  4 19:43:37 hhhweather weewx[446]: restx: CWOP: Published record 2020-02-05 03:40:00 PST (1580902800)
Feb  4 19:43:38 hhhweather weewx[446]: restx: Wunderground-PWS: Published record 2020-02-04 15:15:00 PST (1580858100)
Feb  4 19:43:38 hhhweather weewx[446]: restx: Wunderground-PWS: Published record 2020-02-04 15:20:00 PST (1580858400)
Feb  4 19:43:38 hhhweather weewx[446]: restx: Wunderground-PWS: Published record 2020-02-04 15:25:00 PST (1580858700)
Feb  4 19:43:38 hhhweather weewx[446]: restx: Wunderground-PWS: Published record 2020-02-04 15:30:00 PST (1580859000)
Feb  4 19:43:38 hhhweather weewx[446]: restx: Wunderground-PWS: Published record 2020-02-04 15:35:00 PST (1580859300)
Feb  4 19:43:38 hhhweather weewx[446]: restx: Wunderground-PWS: Published record 2020-02-04 15:40:00 PST (1580859600)
Feb  4 19:43:38 hhhweather weewx[446]: restx: Wunderground-PWS: Published record 2020-02-04 15:45:00 PST (1580859900)
Feb  4 19:43:39 hhhweather weewx[446]: restx: Wunderground-PWS: Published record 2020-02-04 15:50:00 PST (1580860200)
Feb  4 19:43:39 hhhweather weewx[446]: restx: Wunderground-PWS: Published record 2020-02-04 15:55:00 PST (1580860500)
Feb  4 19:43:39 hhhweather weewx[446]: restx: Wunderground-PWS: Published record 2020-02-04 16:00:00 PST (1580860800)
Feb  4 19:43:39 hhhweather weewx[446]: restx: Wunderground-PWS: Published record 2020-02-04 16:05:00 PST (1580861100)
Feb  4 19:43:39 hhhweather weewx[446]: restx: Wunderground-PWS: Published record 2020-02-04 16:10:00 PST (1580861400)
Feb  4 19:43:39 hhhweather weewx[446]: restx: Wunderground-PWS: Published record 2020-02-04 16:15:00 PST (1580861700)
Feb  4 19:43:39 hhhweather weewx[446]: restx: Wunderground-PWS: Published record 2020-02-04 16:20:00 PST (1580862000)
Feb  4 19:43:39 hhhweather weewx[446]: restx: Wunderground-PWS: Published record 2020-02-04 16:25:00 PST (1580862300)
Feb  4 19:43:40 hhhweather weewx[446]: restx: Wunderground-PWS: Published record 2020-02-04 16:30:00 PST (1580862600)
Feb  4 19:43:40 hhhweather weewx[446]: restx: Wunderground-PWS: Published record 2020-02-04 16:35:00 PST (1580862900)
Feb  4 19:43:40 hhhweather weewx[446]: restx: Wunderground-PWS: Published record 2020-02-04 16:40:00 PST (1580863200)
Feb  4 19:43:40 hhhweather weewx[446]: restx: Wunderground-PWS: Published record 2020-02-04 16:45:00 PST (1580863500)
Feb  4 19:43:41 hhhweather weewx[446]: restx: Wunderground-PWS: Published record 2020-02-04 16:50:00 PST (1580863800)
Feb  4 19:43:41 hhhweather weewx[446]: restx: Wunderground-PWS: Published record 2020-02-04 16:55:00 PST (1580864100)
Feb  4 19:43:41 hhhweather weewx[446]: restx: Wunderground-PWS: Published record 2020-02-04 17:00:00 PST (1580864400)
Feb  4 19:43:42 hhhweather weewx[446]: restx: Wunderground-PWS: Published record 2020-02-04 17:05:00 PST (1580864700)
Feb  4 19:43:42 hhhweather weewx[446]: restx: Wunderground-PWS: Published record 2020-02-04 17:10:00 PST (1580865000)
Feb  4 19:43:42 hhhweather weewx[446]: restx: Wunderground-PWS: Published record 2020-02-04 17:15:00 PST (1580865300)
Feb  4 19:43:42 hhhweather dhcpcd[521]: enxb827ebd5eac5: no IPv6 Routers available
Feb  4 19:43:42 hhhweather weewx[446]: restx: Wunderground-PWS: Published record 2020-02-04 17:20:00 PST (1580865600)
Feb  4 19:43:43 hhhweather weewx[446]: restx: Wunderground-PWS: Published record 2020-02-04 17:25:00 PST (1580865900)
Feb  4 19:43:43 hhhweather weewx[446]: restx: Wunderground-PWS: Published record 2020-02-04 17:30:00 PST (1580866200)
Feb  4 19:43:43 hhhweather weewx[446]: restx: Wunderground-PWS: Published record 2020-02-04 17:35:00 PST (1580866500)
Feb  4 19:43:43 hhhweather weewx[446]: restx: Wunderground-PWS: Published record 2020-02-04 17:40:00 PST (1580866800)
Feb  4 19:43:43 hhhweather weewx[446]: restx: Wunderground-PWS: Published record 2020-02-04 17:45:00 PST (1580867100)
Feb  4 19:43:43 hhhweather weewx[446]: restx: Wunderground-PWS: Published record 2020-02-04 17:50:00 PST (1580867400)
Feb  4 19:43:43 hhhweather weewx[446]: restx: Wunderground-PWS: Published record 2020-02-04 17:55:00 PST (1580867700)
Feb  4 19:43:43 hhhweather weewx[446]: restx: Wunderground-PWS: Published record 2020-02-04 18:00:00 PST (1580868000)
Feb  4 19:43:44 hhhweather weewx[446]: restx: Wunderground-PWS: Published record 2020-02-04 18:05:00 PST (1580868300)
Feb  4 19:43:44 hhhweather weewx[446]: restx: Wunderground-PWS: Published record 2020-02-04 18:10:00 PST (1580868600)
Feb  4 19:43:44 hhhweather weewx[446]: restx: Wunderground-PWS: Published record 2020-02-04 18:15:00 PST (1580868900)
Feb  4 19:43:44 hhhweather weewx[446]: restx: Wunderground-PWS: Published record 2020-02-04 18:20:00 PST (1580869200)
Feb  4 19:43:44 hhhweather weewx[446]: restx: Wunderground-PWS: Published record 2020-02-04 18:25:00 PST (1580869500)
Feb  4 19:43:44 hhhweather weewx[446]: restx: Wunderground-PWS: Published record 2020-02-04 18:30:00 PST (1580869800)
Feb  4 19:43:44 hhhweather weewx[446]: restx: Wunderground-PWS: Published record 2020-02-04 18:35:00 PST (1580870100)
Feb  4 19:43:44 hhhweather weewx[446]: restx: Wunderground-PWS: Published record 2020-02-05 02:40:00 PST (1580899200)
Feb  4 19:43:45 hhhweather weewx[446]: restx: Wunderground-PWS: Published record 2020-02-05 02:45:00 PST (1580899500)
Feb  4 19:43:45 hhhweather weewx[446]: restx: Wunderground-PWS: Published record 2020-02-05 02:50:00 PST (1580899800)
Feb  4 19:43:45 hhhweather weewx[446]: restx: Wunderground-PWS: Published record 2020-02-05 02:55:00 PST (1580900100)
Feb  4 19:43:45 hhhweather weewx[446]: restx: Wunderground-PWS: Published record 2020-02-05 03:00:00 PST (1580900400)
Feb  4 19:43:45 hhhweather weewx[446]: restx: Wunderground-PWS: Published record 2020-02-05 03:05:00 PST (1580900700)
Feb  4 19:43:45 hhhweather weewx[446]: restx: Wunderground-PWS: Published record 2020-02-05 03:10:00 PST (1580901000)
Feb  4 19:43:45 hhhweather weewx[446]: restx: Wunderground-PWS: Published record 2020-02-05 03:15:00 PST (1580901300)
Feb  4 19:43:45 hhhweather weewx[446]: restx: Wunderground-PWS: Published record 2020-02-05 03:20:00 PST (1580901600)
Feb  4 19:43:46 hhhweather weewx[446]: restx: Wunderground-PWS: Published record 2020-02-05 03:25:00 PST (1580901900)
Feb  4 19:43:46 hhhweather weewx[446]: restx: Wunderground-PWS: Published record 2020-02-05 03:30:00 PST (1580902200)
Feb  4 19:43:46 hhhweather weewx[446]: restx: Wunderground-PWS: Published record 2020-02-05 03:35:00 PST (1580902500)
Feb  4 19:43:46 hhhweather weewx[446]: restx: Wunderground-PWS: Published record 2020-02-05 03:40:00 PST (1580902800)
Feb  4 19:43:51 hhhweather systemd[1]: systemd-fsckd.service: Succeeded.
Feb  4 19:44:02 hhhweather systemd[1]: systemd-hostnamed.service: Succeeded.
Feb  4 19:44:04 hhhweather systemd-timesyncd[271]: Timed out waiting for reply from 199.223.248.99:123 (2.debian.pool.ntp.org).
Feb  4 19:44:04 hhhweather systemd-timesyncd[271]: Synchronized to time server for the first time 50.205.244.107:123 (2.debian.pool.ntp.org).
Feb  4 19:44:05 hhhweather weewx[446]: vantage: LOOP try #1; error: Expected to read 99 chars; got 0 instead
<<< 

(I noted earlier today that it appears that weewx is successfully posting to wunderground-PWS )

The bit about2.debian.pool.ntp.org timing out is strange, but I don't know what has happened or how to fix the current predicament.

Thanks for any ideas?
daytempdew.png

Thomas Keffer

unread,
Feb 5, 2020, 9:45:21 AM2/5/20
to weewx-user
I assume this is from the initial startup, using a Vantage station? Did you filter this log output? It's just showing posts to the WU, but it should also show details about what's going in the database.

It's possible your issue is corrupted memory in the logger, but it's hard to say without more data.

-tk



--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/836c8ee2-e402-4587-bc3f-4e19fefc07b1%40googlegroups.com.

David Bach

unread,
Feb 5, 2020, 11:51:28 AM2/5/20
to weewx-user
Thanks for the reply. More info: 

Vantage Pro 2+, RPi 3B 1.2, weewx 3.9.2

Not on startup. Runing for a couple o days since similar event last Sunday. It didn't occur to me to filter the log - grep? for what? ????

The date/time got moved forward 12 hours. I don't know what the lines about NTP server timed out. 

The first time this happened, I left weewx running, nothing being updated because the index.html file didn't change, but it appeared the the images were current. As this was happening, nothing appeared to be written to the database. Updating of the index.html page began when the current time reached the "future" time.

Is there some way to reset the day/time that weewx is using? (There is so much I don't know.)
To unsubscribe from this group and stop receiving emails from it, send an email to weewx...@googlegroups.com.

Thomas Keffer

unread,
Feb 5, 2020, 11:57:08 AM2/5/20
to weewx-user
Well, let's just assume that this is a case of memory corruption.

See the section Corrupt station memory in the User's Guide.

-tk

To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/41dbbb61-5474-416b-bd83-a7bec2d97976%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages