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

FTP bug in 3.20.0 logic

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
dale
Posts: 23
Joined: Tue 29 May 2012 9:15 pm
Weather Station: Ambient WS-5000
Operating System: Windows 11
Location: Glen Arbor, MI
Contact:

FTP bug in 3.20.0 logic

Post by dale »

My webhosting server has a very old version of FTP that requires a delete of the file before uploading a new file (rename to a file that already exists generates an error). Recently I upgraded to 3.20.0. (I was running the prior release for less than a week in production so I don't know if this bug existed earlier.)

All works well, unless there is an upload error which results in the new file NOT making it to the server. Occasionally (perhaps once every few days) an upload will fail due to a "connection closed" error. This results in no file on the server. Typically this happens to a file that is uploaded very frequently like realtimegauges.txt, but I've also observed it with other files such as websitedata.json.

When the upload fails I get an error that says: Error uploading web/realtimegauges.txt to /realtimegauges.txt : Error while uploading the file to the server. See InnerException for more information.
Inner Exception: Connection closed; aborted transfer of ""
Process Complete

When this happens the destination file does not exist, due to the upload error. The next time CMX tries to upload the file, it first tries to delete the file (due the need to do so if the file exists). The bug is that when the delete fails because the file does not exist, CMX gives up and does not try to upload the file....this repeats forever until I manually copy the file to the server, then things return to normal.

If CMX tries to delete a file on the server before uploading a replacement, it should NOT give up if the delete fails. It should try to upload the file anyway.
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: FTP bug in 3.20.0 logic

Post by mcrossley »

Yes, this is a bug. I'll get it fixed.
Post Reply