Looping Bug?
Posted: Sat 13 Nov 2021 5:41 pm
I have a new installation of CMX (3.13.8 b3154). it is set up with a GW1000 and one sensor (WH32) mounted outdoors. I'm testing until a Ambient station arrives. I have configured CMX with "no sensor check" enabled since I don't yet have the full set of required sensors. I noticed that on the second day of operation if I try to examine the day file data log I get an error that says: "DataTables warning: table id=dayfile - Invalid JSON response. For more information about this error, please see http://datatables.net/tn/1"
I then looked in the data directory and did not find a dayfile like I'm used to seeing in Cumulus 1 (should I find one?). I looked in the MXdiags directory and found 11 log files (one every 10 minutes, my recording period) each about 2 GB in size. The log files contained millions of repeating lines (with the time gradually growing) all saying:
This seems like a bug. I restarted CMX and the loop stopped, but I suspect it may start again at midnight when it tries to do rollover processing.
Is this because I do not yet have the minimum set of sensors required?
What is causing this? How can I fix it?
UPDATE:
About an hour after the restart I noticed this error in the logfile:
What should be creating the dayfile.txt?
I then looked in the data directory and did not find a dayfile like I'm used to seeing in Cumulus 1 (should I find one?). I looked in the MXdiags directory and found 11 log files (one every 10 minutes, my recording period) each about 2 GB in size. The log files contained millions of repeating lines (with the time gradually growing) all saying:
Code: Select all
2021-11-13 09:40:01.651 ***Error: Daily values are still at default at end of day
2021-11-13 09:40:01.651 Data not logged to dayfile.txt
2021-11-13 09:40:01.651 Dayfile.txt opened for writing
2021-11-13 09:40:01.651 ***Error: Daily values are still at default at end of day
2021-11-13 09:40:01.651 Data not logged to dayfile.txt
2021-11-13 09:40:01.651 Dayfile.txt opened for writing
2021-11-13 09:40:01.651 ***Error: Daily values are still at default at end of day
2021-11-13 09:40:01.651 Data not logged to dayfile.txt
2021-11-13 09:40:01.651 Dayfile.txt opened for writing
2021-11-13 09:40:01.652 ***Error: Daily values are still at default at end of day
2021-11-13 09:40:01.652 Data not logged to dayfile.txt
2021-11-13 09:40:01.652 Dayfile.txt opened for writing
2021-11-13 09:40:01.652 ***Error: Daily values are still at default at end of day
2021-11-13 09:40:01.652 Data not logged to dayfile.txt
Is this because I do not yet have the minimum set of sensors required?
What is causing this? How can I fix it?
UPDATE:
About an hour after the restart I noticed this error in the logfile:
Code: Select all
2021-11-13 12:30:45.189 System.IO.FileNotFoundException: Could not find file 'C:\CumulusMX\data\dayfile.txt'.
File name: 'C:\CumulusMX\data\dayfile.txt'
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize, Boolean checkHost)
at System.IO.StreamReader..ctor(String path, Encoding encoding)
at System.IO.File.InternalReadAllLines(String path, Encoding encoding)
at System.IO.File.ReadAllLines(String path)
at CumulusMX.WeatherStation.GetDayfile(String draw, Int32 start, Int32 length)