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

RealtimePHP[164]]: General Error uploading to realtime.txt

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
broadstairs
Posts: 1184
Joined: Thu 14 Aug 2008 7:17 am
Weather Station: Ecowitt GW2000/GW3000
Operating System: Linux openSUSE LEAP
Location: Broadstairs, Kent, UK
Contact:

RealtimePHP[164]]: General Error uploading to realtime.txt

Post by broadstairs »

Seen a whole bunch of these errors last night, never seen before. This is V4 4022. Extract of first error from log below:-

Code: Select all

2024-05-13 01:29:33.931 Reading live data
2024-05-13 01:29:33.935 DoCommand(CMD_GW1000_LIVEDATA): Valid response
2024-05-13 01:29:33.935 Received: FF-FF-27-00-61-01-00-F5-06-34-08-27-4A-09-27-72-02-00-8D-07-55-0A-01-00-0B-00-00-0C-00-00-15-00-00-00-00-16-00-00-17-00-2A-02-58-4D-01-14-1A-00-A9-22-39-1B-00-DD-23-3C-62-00-00-00-00-61-66-36-33-98-60-1F-19-00-22-0E-00-00-10-00-00-11-00-00-12-00-00-00-7A-13-00-00-07-A8-0D-00-00-6C-00-02-4C-90-35
2024-05-13 01:29:33.935 LiveData: Wind Decode >> Last=0.0, LastDir=256, Gust=0.0, (MXAvg=0.5)
2024-05-13 01:29:33.935 DoWind: latest=0.0, speed=0.0 - Current: gust=3.4, speed=0.5
2024-05-13 01:29:33.935 DoWind: New: gust=3.4, speed=0.5, latest:0.0
2024-05-13 01:29:36.630 RealtimePHP[164]: General error uploading to realtime.txt
2024-05-13 01:29:36.633 RealtimePHP[164]: General error uploading to realtime.txt - 
Exception Type: System.Threading.Tasks.TaskCanceledException
Message: The request was canceled due to the configured HttpClient.Timeout of 15 seconds elapsing.
Source: System.Net.Http
Stack Trace:    at System.Net.Http.HttpClient.HandleFailure(Exception e, Boolean telemetryStarted, HttpResponseMessage response, CancellationTokenSource cts, CancellationToken cancellationToken, CancellationTokenSource pendingRequestsCts)
   at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
   at CumulusMX.Cumulus.UploadString(HttpClient httpclient, Boolean incremental, String oldest, String data, String remotefile, Int32 cycle, Boolean binary, Boolean utf8, Boolean logfile, Int32 linecount)
Inner Exception... 

Exception Type: System.TimeoutException
Message: The operation was canceled.
Source: 
Environment Stack Trace: 
Inner Exception... 

Exception Type: System.Threading.Tasks.TaskCanceledException
Message: The operation was canceled.
Source: System.Net.Http
Stack Trace:    at System.Net.Http.HttpConnection.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
   at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
Inner Exception... 

Exception Type: System.IO.IOException
Message: Unable to read data from the transport connection: Operation canceled.
Source: System.Net.Sockets
Stack Trace:    at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource<System.Int32>.GetResult(Int16 token)
   at System.Net.Security.SslStream.EnsureFullTlsFrameAsync[TIOAdapter](CancellationToken cancellationToken, Int32 estimatedSize)
   at System.Runtime.CompilerServices.PoolingAsyncValueTaskMethodBuilder`1.StateMachineBox`1.System.Threading.Tasks.Sources.IValueTaskSource<TResult>.GetResult(Int16 token)
   at System.Net.Security.SslStream.ReadAsyncInternal[TIOAdapter](Memory`1 buffer, CancellationToken cancellationToken)
   at System.Runtime.CompilerServices.PoolingAsyncValueTaskMethodBuilder`1.StateMachineBox`1.System.Threading.Tasks.Sources.IValueTaskSource<TResult>.GetResult(Int16 token)
   at System.Net.Http.HttpConnection.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
Inner Exception... 

Exception Type: System.Net.Sockets.SocketException
Message: Operation canceled
Source: 
Environment Stack Trace: 





2024-05-13 01:29:36.633 RealtimePHP[164]: General Error uploading to realtime.txt - The request was canceled due to the configured HttpClient.Timeout of 15 seconds elapsing.
2024-05-13 01:29:36.633 RealtimePHP[164]: Retrying upload to realtime.txt
2024-05-13 01:29:36.633 RealtimePHP[164]: Sending via GET
Running OK this morning at present, last error was around 4am today.

Stuart
Currently running CMX V4.4.2 4085 on Linux openSUSE Leap
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: RealtimePHP[164]]: General Error uploading to realtime.txt

Post by mcrossley »

Your ISP doing some maintenance/upgrades perhaps?

In the next build I've simplified the messaging when a simple timeout occurs.
broadstairs
Posts: 1184
Joined: Thu 14 Aug 2008 7:17 am
Weather Station: Ecowitt GW2000/GW3000
Operating System: Linux openSUSE LEAP
Location: Broadstairs, Kent, UK
Contact:

Re: RealtimePHP[164]]: General Error uploading to realtime.txt

Post by broadstairs »

I'll investigate some more but I've not been informed about any outage either ISP or Hosting site.

Stuart
Currently running CMX V4.4.2 4085 on Linux openSUSE Leap
broadstairs
Posts: 1184
Joined: Thu 14 Aug 2008 7:17 am
Weather Station: Ecowitt GW2000/GW3000
Operating System: Linux openSUSE LEAP
Location: Broadstairs, Kent, UK
Contact:

Re: RealtimePHP[164]]: General Error uploading to realtime.txt

Post by broadstairs »

Been investigating this some more, the issue happened several times in a succession around 01:29 to 01:32 but not all updates failed and the WOW update at 01:30 worked fine. All updates to Ecowitt appear to have been OK throughout the times of these errors. So that probably rules out a router going offline plus my PC running CMX is lan connected to wi-fi not an issue. I'm guessing it could be an issue with my hosting site (shared hosting) although I have no way of proving that since I have no access to their system logs. We have no way of knowing if it might work with a 16 second timeout? :roll:

I'm just wondering if FTP uploads might be more resilient, unless it has a similar 15 second timeout?

Stuart
Currently running CMX V4.4.2 4085 on Linux openSUSE Leap
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: RealtimePHP[164]]: General Error uploading to realtime.txt

Post by mcrossley »

15 seconds is an awful long time for a server to respond.
Post Reply