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

b4023 realtime.txt upload issue

From Cumulus MX version 3 build 3044 the development baton passed to Mark Crossley. Mark has been responsible for all the Builds since, and has recently released Cumulus MX version 4. 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
CamarilloWX
Posts: 12
Joined: Mon 28 Apr 2014 10:00 pm
Weather Station: Davis VP2
Operating System: Windows 10
Location: Camarillo, CA

b4023 realtime.txt upload issue

Post by CamarilloWX »

i just upgraded from b3283 to b4023 following the procedure. It was fairly painless and it seems to be working well except for the upload of the realtime.txt file. I am getting the following message in the MXdiags log file.

Code: Select all

2024-05-18 16:36:16.956 Realtime[4]: Start cycle
2024-05-18 16:36:16.956 Realtime[4]: Creating realtime.txt
2024-05-18 16:36:16.957 Realtime[4]: Creating realtime file - realtimegauges.txt
2024-05-18 16:36:16.958 Wunderground: Rapid fire
2024-05-18 16:36:16.959 Realtime[4]: Real time upload files starting
2024-05-18 16:36:16.959 Realtime[4]: Uploading - realtime.txt
2024-05-18 16:36:16.959 SFTP[4]: Uploading /home/u123456789/domains/camarilloweather.com/public_html/realtime.txttmp
2024-05-18 16:36:16.959 SFTP[4]: Error uploading /home/u123456789/domains/camarilloweather.com/public_html/realtime.txttmp : Value cannot be null. (Parameter 'logger')
2024-05-18 16:36:16.959 SFTP[4]: Error uploading /home/u123456789/domains/camarilloweather.com/public_html/realtime.txt - Value cannot be null. (Parameter 'logger')
2024-05-18 16:36:16.959 Realtime[4]: Error during realtime upload.
2024-05-18 16:36:16.960 Realtime[4]: Error during realtime upload. - 
Exception Type: System.AggregateException
Message: One or more errors occurred. (Value cannot be null. (Parameter 'logger'))
Source: System.Private.CoreLib
Stack Trace:    at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
   at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
   at System.Threading.Tasks.Task.Wait()
   at CumulusMX.Cumulus.RealtimeTimerTick(Object sender, ElapsedEventArgs elapsedEventArgs)
Inner Exception... 

Exception Type: System.ArgumentNullException
Message: Value cannot be null. (Parameter 'logger')
Source: Microsoft.Extensions.Logging.Abstractions
Stack Trace:    at System.ThrowHelper.Throw(String paramName)
   at System.ThrowHelper.ThrowIfNull(Object argument, String paramName)
   at Microsoft.Extensions.Logging.LoggerExtensions.Log(ILogger logger, LogLevel logLevel, EventId eventId, Exception exception, String message, Object[] args)
   at Microsoft.Extensions.Logging.LoggerExtensions.Log(ILogger logger, LogLevel logLevel, String message, Object[] args)
   at Microsoft.Extensions.Logging.LoggerExtensions.LogInformation(ILogger logger, String message, Object[] args)
   at CumulusMX.Cumulus.LogFtpMessage(String message)
   at CumulusMX.Cumulus.UploadStream(SftpClient conn, String remotefile, Stream dataStream, Int32 cycle)
   at CumulusMX.Cumulus.RealtimeUpload(Byte cycle)


2024-05-18 16:36:16.960 Realtime[4]: End cycle
I reverted back to 3283 and it works fine. Any ideas?
User avatar
mcrossley
Posts: 14384
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: b4023 realtime.txt upload issue

Post by mcrossley »

It looks like a problem with FTP logging, I'll have a look at it later today. If you still have the v4 instance available it would be interesting to see if the error went away when FTP logging was enabled in Program Settings
User avatar
mcrossley
Posts: 14384
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: b4023 realtime.txt upload issue

Post by mcrossley »

OK, I found the problem. It occurs when you enable FTP, the logger is only initialised on start-up of the MX. So if you restart MX the error should not occur.

I have fixed it for the next build, so the logger is initialised when you enable FTP as well as at start-up.
CamarilloWX
Posts: 12
Joined: Mon 28 Apr 2014 10:00 pm
Weather Station: Davis VP2
Operating System: Windows 10
Location: Camarillo, CA

Re: b4023 realtime.txt upload issue

Post by CamarilloWX »

mcrossley wrote: Sun 19 May 2024 8:43 am It looks like a problem with FTP logging, I'll have a look at it later today. If you still have the v4 instance available it would be interesting to see if the error went away when FTP logging was enabled in Program Settings
Thanks for the quick response Mark. I went back to build 4023 and did some testing. The problem occurs when CumulusMX starts with FTP logging enabled. After it starts with FTP logging enabled, the uploads start as soon as FTP logging is disabled. I can then re-enable FTP logging and the uploads continue. Uploads work when starting up with FTP logging disabled. For now I am just leaving FTP logging disabled. Thanks again for your efforts.
User avatar
mcrossley
Posts: 14384
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: b4023 realtime.txt upload issue

Post by mcrossley »

I have found the problem and it is fixed in the next build.
Post Reply