Page 1 of 1

MySql Custom Upload b4067

Posted: Sat 21 Dec 2024 7:02 am
by billy
Under b4064 (and for several version prior to this) a MySQL Custom upload - Minute interval was set to 1 minute intervals.

After updating to b4067, no errors were recorded but the upload interval somehow became every 10 minutes immediately after restarting.

Cumulus.ini setting CustomMySqlMinutesIntervalIdx was =0 prior to the update, then =6 afterwards. Changing it back to 0 resolved the issue.

I have CMX running on two RPis and this bug/spontaneous mutation arose on both during their updating. One uploads to an external webserver and the other to a local one.

For the first time, the attached (crude) script was used to manage updating.

Cumulus.ini and log files can be provided if necessary.

Thanks

Re: MySql Custom Upload b4067

Posted: Sat 21 Dec 2024 2:57 pm
by mcrossley
There is a bug in the code that writes the ini file that has been there since v3.20.0 - b3202 :o

Since then, the value of the interval for the Custom uploads has been written to CustomMySqlMinutesIntervalIdx, but read from CustomMySqlMinutesIntervalIndex. Previously it was read and written to CustomMySqlMinutesIntervalIndex.

So, for v3.20.0, you should make sure the required value is in CustomMySqlMinutesIntervalIndex - the settings page will write it to CustomMySqlMinutesIntervalIdx.

I'll fix this in the next release so that CustomMySqlMinutesIntervalIndex is used by both read and write in the future.

Re: MySql Custom Upload b4067

Posted: Sun 22 Dec 2024 2:40 am
by billy
Thanks for the explanation and the fix :clap:

CustomMySqlMinutesIntervalIndex is absent from Cumulus.ini in both my installations.
And how the updating of CustomMySqlMinutesIntervalInd to =6 translates to a 10 minute upload frequency is a mystery I don't need an explanation for :?