Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 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

If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080

Error processing currently monthly log file

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
User avatar
gerardwood
Posts: 26
Joined: Tue 17 Aug 2010 7:26 am
Weather Station: Davis Vantage PRO 2
Operating System: Windows 10 Pro
Location: Musbury, nr Axminster, Devon
Contact:

Error processing currently monthly log file

Post by gerardwood »

I've been getting an occasional error with the last 3 releases of CumulusMX, where the process cannot access the current monthly logfile (May21log.txt) as it is being used by another process. It doesn't stop the actual program running (until I actually open the console, where 'Enter' shuts it down), but it's something that didn't happen until quite recently and I'd be interested to know why.

I've attached a zip of MXdiags, and a zip of the console output, which appears to have extra information not in MXdiags.

Regards,
You do not have the required permissions to view the files attached to this post.
Mapantz
Posts: 1992
Joined: Sat 17 Dec 2011 11:55 am
Weather Station: Davis Vantage Pro2
Operating System: Windows 11 x64
Location: Dorset - UK
Contact:

Re: Error processing currently monthly log file

Post by Mapantz »

As far as I know, it is not recommended to have CMX installed at C:\Program Files\

I expect that is part of the problem.
Image
User avatar
gerardwood
Posts: 26
Joined: Tue 17 Aug 2010 7:26 am
Weather Station: Davis Vantage PRO 2
Operating System: Windows 10 Pro
Location: Musbury, nr Axminster, Devon
Contact:

Re: Error processing currently monthly log file

Post by gerardwood »

That's a fair point. It's in C:\Program Files\ simply because that's where Cumulus 1 got installed 11 years ago, and I never bothered to change it. I'll move it to somewhere else and see if that solves the problem (funny how it's only just started happening, but that could be down to a Windows 10 update or something).

Thanks,
User avatar
PaulMy
Posts: 4355
Joined: Sun 28 Sep 2008 11:54 pm
Weather Station: Davis VP2 Plus 24-Hour FARS
Operating System: Windows8 and Windows10
Location: Komoka, ON Canada
Contact:

Re: Error processing currently monthly log file

Post by PaulMy »

It's in C:\Program Files\ simply because that's where Cumulus 1 got installed 11 years ago, and I never bothered to change it.
One of the first things I learned from Steve on Cumulus (wow, has it been that long) was Not to put it in Program Files> viewtopic.php?f=4&t=174&p=1115&hilit=Pr ... iles#p1115

Enjoy,
Paul
VP2+
C1 www.komokaweather.com/komokaweather-ca
MX https://komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX https://komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX https:// komokaweather.com/cumulusmx4/index.htm
Image
User avatar
gerardwood
Posts: 26
Joined: Tue 17 Aug 2010 7:26 am
Weather Station: Davis Vantage PRO 2
Operating System: Windows 10 Pro
Location: Musbury, nr Axminster, Devon
Contact:

Re: Error processing currently monthly log file

Post by gerardwood »

OK, guess I just had a brain fade or something then. Perhaps I just wanted all my programs to be in Program Files when I updated my PC (in about 2012) - it's the sort of daft thing I'd do to be 'organised'. Anyway, I've moved it now. Thanks for the help! :oops:
User avatar
gerardwood
Posts: 26
Joined: Tue 17 Aug 2010 7:26 am
Weather Station: Davis Vantage PRO 2
Operating System: Windows 10 Pro
Location: Musbury, nr Axminster, Devon
Contact:

Re: Error processing currently monthly log file

Post by gerardwood »

Ah well - moving the install location didn't make any in difference, in the long run - same error has occurred today. I've attached new diagnostics files. Any further ideas anyone?
You do not have the required permissions to view the files attached to this post.
User avatar
PaulMy
Posts: 4355
Joined: Sun 28 Sep 2008 11:54 pm
Weather Station: Davis VP2 Plus 24-Hour FARS
Operating System: Windows8 and Windows10
Location: Komoka, ON Canada
Contact:

Re: Error processing currently monthly log file

Post by PaulMy »

Hopefully Mark or others more knowledge than I can have a look, but I do see the error popup quite frequently

Code: Select all

2021-05-23 04:29:00.306 DoLogFile: Writing log entry for 23/05/2021 04:29:00
!!! Unhandled Exception !!!
System.IO.IOException: The process cannot access the file 'C:\CumulusMX\data\May21log.txt' because it is being used by another process.
but some log file entries appear to be successful.
It looks like you have a 1 minute log interval and wonder if that frequency may contribute to having access to the log file.

Enjoy,
Paul
VP2+
C1 www.komokaweather.com/komokaweather-ca
MX https://komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX https://komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX https:// komokaweather.com/cumulusmx4/index.htm
Image
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Error processing currently monthly log file

Post by mcrossley »

All I can suggest is the usual suspect of Anti-virus software.

Looking at the last log file - 20210520-114346.txt, the log file is being written every minute, and it takes about 1ms...

Code: Select all

2021-05-21 20:30:00.392 DoLogFile: Writing log entry for 21/05/2021 20:30:00
2021-05-21 20:30:00.393 DoLogFile: Written log entry for 21/05/2021 20:30:00

2021-05-21 20:31:00.194 DoLogFile: Writing log entry for 21/05/2021 20:31:00
2021-05-21 20:31:00.194 DoLogFile: Written log entry for 21/05/2021 20:31:00
Then you get this...

Code: Select all

2021-05-21 20:32:00.059 DoLogFile: Writing log entry for 21/05/2021 20:32:00
But no "written" message - it is still waiting to write to the file.

A minute goes by, and CMX again tries to write to the log file...

Code: Select all

2021-05-21 20:33:00.372 DoLogFile: Writing log entry for 21/05/2021 20:33:00
Again no "written" completion

Another minute, another log entry...

Code: Select all

2021-05-21 20:34:56.623 DoLogFile: Writing log entry for 21/05/2021 20:34:56
Again no "written" completion.

Then the last two attempts to write fail with an uncaught exceptions (I'll fix that), complaining that the log file is in use. It is,... by the log entry write for 20:32 which still hasn't completed.

Then finally at 20:32 log entry completes...

Code: Select all

2021-05-21 20:34:56.623 DoLogFile: Written log entry for 21/05/2021 20:32:00
And everything works normally again.

So "something" caused writes to the log file to be suspended for nearly 3 minutes.
User avatar
gerardwood
Posts: 26
Joined: Tue 17 Aug 2010 7:26 am
Weather Station: Davis Vantage PRO 2
Operating System: Windows 10 Pro
Location: Musbury, nr Axminster, Devon
Contact:

Re: Error processing currently monthly log file

Post by gerardwood »

Thanks Mark,

For what it's worth, I added some exceptions to my anti-virus (AVG Free) to (try to) stop it interfering with the CumulusMX folder and its executable, but it hasn't worked - got the same logging error at 2.51pm this afternoon (I've added the MXDiags, but I guess they don't add much extra info now). A very strange one, there's no way of predicting this, the failure times are truly random - I've seem 4.19am, 4.30am, 7.03am, 8.47am, 2.51pm, 6.00pm, 8.30pm, 8.34pm. It first happened on 9/5/21 - there were no Windows updates around this time (previous was 14/4/21); AVG last updated the program on 30/4/21. A mystery...
You do not have the required permissions to view the files attached to this post.
Post Reply