Welcome to the Cumulus Support forum.

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Cumulus MX V4 beta test release 4.0.0 (build 4019) - 03 April 2024

Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

SQL Rollover failure

From build 3044 the development baton passed to Mark Crossley. Mark has been responsible for all the Builds since. He has made the code available on GitHub. It is Mark's hope that others will join in this development, but at the very least he welcomes your ideas for future developments (see Cumulus MX Development suggestions).

Moderator: mcrossley

Post Reply
Mapantz
Posts: 1820
Joined: Sat 17 Dec 2011 11:55 am
Weather Station: Davis Vantage Pro2
Operating System: Windows 11 x64
Location: Dorset - UK
Contact:

SQL Rollover failure

Post by Mapantz »

I've only just noticed this in the log file

Code: Select all

2021-07-01 00:00:00.201 CustomSqlRollover: Error encountered during MySQL operation.
2021-07-01 00:00:00.201 Could not load file or assembly 'System.Memory, Version=4.0.1.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

Code: Select all

INSERT IGNORE INTO Lightning (LogDate,StrikesToday) VALUES ('<#metdateyesterday format=yyyy-MM-dd>',<#LightningStrikesToday>)
Never had an issue with it before.
Image
jlmr731
Posts: 225
Joined: Sat 27 Aug 2016 12:11 am
Weather Station: Davis vantage pro 2
Operating System: Debian
Location: Wickliffe, Ohio
Contact:

Re: SQL Rollover failure

Post by jlmr731 »

I looked at mine and see no Rollover error but do see something kinda same but different

Code: Select all

2021-06-11 13:45:39.060 CustomSqlSecs: Error encountered during MySQL operation.
2021-06-11 13:45:39.060 CustomSqlSecs: SQL was - "INSERT INTO ........ 
it goes for a few then nothing for a while then starts up again, what is strange that it happens at 45 minute and 0 top of the hour. When these errors occur nothing is entered in to the database at that time. Must be something within the custom SQL entries. Guessing Mapantz you have this only done at rollover as mine is writing every minute (never noticed it till you found it)
User avatar
mcrossley
Posts: 12767
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: SQL Rollover failure

Post by mcrossley »

Can you post the full SQL statements that are failing please.
Mapantz
Posts: 1820
Joined: Sat 17 Dec 2011 11:55 am
Weather Station: Davis Vantage Pro2
Operating System: Windows 11 x64
Location: Dorset - UK
Contact:

Re: SQL Rollover failure

Post by Mapantz »

Code: Select all

INSERT IGNORE INTO Lightning (LogDate,StrikesToday) VALUES ('<#metdateyesterday format=yyyy-MM-dd>',<#LightningStrikesToday>)
That's the only one I use
Image
User avatar
mcrossley
Posts: 12767
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: SQL Rollover failure

Post by mcrossley »

Yes, but I need to see the statement that fails with the data not the variables.
Mapantz
Posts: 1820
Joined: Sat 17 Dec 2011 11:55 am
Weather Station: Davis Vantage Pro2
Operating System: Windows 11 x64
Location: Dorset - UK
Contact:

Re: SQL Rollover failure

Post by Mapantz »

There's no other information apart from the two lines I put in my first post..
Image
User avatar
mcrossley
Posts: 12767
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: SQL Rollover failure

Post by mcrossley »

You will need to switch on debug logging, then it should log the insert statement.
jlmr731
Posts: 225
Joined: Sat 27 Aug 2016 12:11 am
Weather Station: Davis vantage pro 2
Operating System: Debian
Location: Wickliffe, Ohio
Contact:

Re: SQL Rollover failure

Post by jlmr731 »

I just looked and I haven't had the error since June 24. SO hard to say why it happens next time I restart ill check but mapantz problem looks like it happens often
Post Reply