Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.0.1 (build 4023) - 16 May 2024

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

PHP uploads failing

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
M1DUL
Posts: 355
Joined: Wed 31 Dec 2008 1:56 pm
Weather Station: Vantage Pro2 Plus Daytime FARS
Operating System: Windows 11 Pro Version
Location: Poole, Dorset UK
Contact:

PHP uploads failing

Post by M1DUL »

Hi All,
I have also noticed this too, I find it is very intermittent, it looks as though it needs a load of errors, before it sends the email.
I have attached my Cumulus MXdiags logs. I have also attached Cumulus MX Alarm Settings for your information to make sure I have got it setup right.
MXdiags.zip
Cumulus MX Alarm Settings.png
I hope this information is useful.
You do not have the required permissions to view the files attached to this post.
Mike

OS : Windows 11 Professional
Weather Station : Davis Vantage PRO2 Plus Daytime Far's
Cumulus MX v.4.0.1 build 4023
https://branksomeweather.co.uk
User avatar
mcrossley
Posts: 12951
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: FTP Upload error not emailed

Post by mcrossley »

Mike, yours is different, every other upload fails on the first attempt, but works on a retry. If it works on retry it is not considered a failure, people would in inundated with emails if one were sent for every transient issue.

However, your PHP upload does appear to have some issues with that number of retries. Even on start-up the first connection to the server to test it supports compression sometimes fails. It maybe they are timing out, the error MX gets back is "task cancelled". If you turn on debug logging it may give a clue as it if that is due to timing out or the remote end terminating the connection.

As this is not FTP related, I'll split it off to a separate topic.
M1DUL
Posts: 355
Joined: Wed 31 Dec 2008 1:56 pm
Weather Station: Vantage Pro2 Plus Daytime FARS
Operating System: Windows 11 Pro Version
Location: Poole, Dorset UK
Contact:

Re: PHP uploads failing

Post by M1DUL »

Hello Mark,
Thank you for your reply. I have followed your instructions and turned on the debug logging. For your information, I hope you can find out what is causing the problem.
20240208-103708.zip
You do not have the required permissions to view the files attached to this post.
Mike

OS : Windows 11 Professional
Weather Station : Davis Vantage PRO2 Plus Daytime Far's
Cumulus MX v.4.0.1 build 4023
https://branksomeweather.co.uk
User avatar
mcrossley
Posts: 12951
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: PHP uploads failing

Post by mcrossley »

No added information there I'm afraid. My next step would be to look at the web server (and PHP if available) logs on your server.
M1DUL
Posts: 355
Joined: Wed 31 Dec 2008 1:56 pm
Weather Station: Vantage Pro2 Plus Daytime FARS
Operating System: Windows 11 Pro Version
Location: Poole, Dorset UK
Contact:

Re: PHP uploads failing

Post by M1DUL »

mcrossley wrote: Fri 09 Feb 2024 8:10 pm No added information there, I'm afraid. My next step would be to look at the web server (and PHP if available) logs on your server.
Hello Mark,
Thank you for having a look at the MXdiags log. That is a shame that no information showed up.

What does this mean in the MXdiags log just after the error message?

Exception Type: System.Threading.Tasks.TaskCanceledException
Message: A task was canceled.
Source: mscorlib
Stack Trace: at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at CumulusMX.Cumulus.<UploadString>d__960.MoveNext()

Many Thanks for any information.
Mike

OS : Windows 11 Professional
Weather Station : Davis Vantage PRO2 Plus Daytime Far's
Cumulus MX v.4.0.1 build 4023
https://branksomeweather.co.uk
User avatar
mcrossley
Posts: 12951
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: PHP uploads failing

Post by mcrossley »

It just means that the process MX started to perform the upload has been cancelled by the system. Unfortunately, it gives no information as to why it was cancelled.
M1DUL
Posts: 355
Joined: Wed 31 Dec 2008 1:56 pm
Weather Station: Vantage Pro2 Plus Daytime FARS
Operating System: Windows 11 Pro Version
Location: Poole, Dorset UK
Contact:

Re: PHP uploads failing

Post by M1DUL »

mcrossley wrote: Fri 09 Feb 2024 8:10 pm No added information there, I'm afraid. My next step would be to look at the web server (and PHP if available) logs on your server.
Hello Mark,
Thank you for the information once again.

I have had a look at the server, it is running PHP version: 8.1.27. Is the PHP logs, is it SSL logs by any chance? If it is, they all come back with code 200.
I can not see any other logs, the other one are about viewing the website etc.

I have got Intouch with Hostpresto about those errors, and they have whitelisted some Modsec rules again. So hopefully that will solve the problem.
Mike

OS : Windows 11 Professional
Weather Station : Davis Vantage PRO2 Plus Daytime Far's
Cumulus MX v.4.0.1 build 4023
https://branksomeweather.co.uk
User avatar
mcrossley
Posts: 12951
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: PHP uploads failing

Post by mcrossley »

I doubt it would be modesc rules as two uploads seem to work then it fails - could be wrong though.

I wonder if they have limited connection reuse to two uses? That would be unusually low number if they had.
Post Reply