Welcome to the Cumulus Support forum.

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Cumulus MX V4 beta test release 4.0.0 (build 4018) - 28 March 2024

Legacy Cumulus 1 release v1.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

FTP Connection Error

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
stefanbagnato
Posts: 159
Joined: Sun 08 May 2016 9:11 pm
Weather Station: Vantage Pro 2
Operating System: Windows Server 2019
Location: Raleigh, NC

FTP Connection Error

Post by stefanbagnato »

As broached in an unrelated thread, I am receiving errors every minute: "Error reconnecting ftp server".

After turning on FTP Logging as well as adding Logging=1 and DataLogging=1 to the cumulus.ini file, the new logs are attached.
You do not have the required permissions to view the files attached to this post.
User avatar
mcrossley
Posts: 12694
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 Connection Error

Post by mcrossley »

I'd like you to update to the latest version of MX please.
Also I need to see the FTP log file.

Which FTP protocol are you using? The error indicates a problem at the server end though - it is closing the connection before it has finished establishing it.
stefanbagnato
Posts: 159
Joined: Sun 08 May 2016 9:11 pm
Weather Station: Vantage Pro 2
Operating System: Windows Server 2019
Location: Raleigh, NC

Re: FTP Connection Error

Post by stefanbagnato »

Good morning. Just updated to 3086. Both logs attached. Also, it's set to use just regular FTP.
You do not have the required permissions to view the files attached to this post.
User avatar
mcrossley
Posts: 12694
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 Connection Error

Post by mcrossley »

I see it is trying to connect to an IPv6 address for your FTP server - is that expected?

You also have FTP Active mode enabled, any reason for that?
It could be a firewall on your computer or router blocking the FTP connection - you could try disabling Active mode as a test to see if that improves things.
stefanbagnato
Posts: 159
Joined: Sun 08 May 2016 9:11 pm
Weather Station: Vantage Pro 2
Operating System: Windows Server 2019
Location: Raleigh, NC

Re: FTP Connection Error

Post by stefanbagnato »

mcrossley wrote: Tue 07 Jul 2020 2:51 pm I see it is trying to connect to an IPv6 address for your FTP server - is that expected?
Hm, no idea why. IPv6 isn't even enabled in my environment.
mcrossley wrote: Tue 07 Jul 2020 2:51 pm You also have FTP Active mode enabled, any reason for that?
It could be a firewall on your computer or router blocking the FTP connection - you could try disabling Active mode as a test to see if that improves things.
I don't have a specific reason that I can recall as to why it is on. I'll turn it off and see if it helps. The local firewall on this server isn't blocking it, but maybe it's something related to my pfSense firewall. I'll look into it. Again, I don't have any need/reason to FTP data out of my network, but I still want to get rid of this error if possible.
stefanbagnato
Posts: 159
Joined: Sun 08 May 2016 9:11 pm
Weather Station: Vantage Pro 2
Operating System: Windows Server 2019
Location: Raleigh, NC

Re: FTP Connection Error

Post by stefanbagnato »

So, I disabled Active FTP and that made no difference. I turned on IPv6 on my firewall and setup DHCPv6 for my server. That also made no change. I then changed my IIS FTP binding from my servers local IPv4 address to a wildcard, and now I keep getting the below:

Code: Select all

2020-07-07 12:39:00.232 Writing log entry for 7/7/2020 12:39:00 PM
2020-07-07 12:39:00.261 Written log entry for 7/7/2020 12:39:00 PM
2020-07-07 12:39:00.262 Writing today.ini, LastUpdateTime = 7/7/2020 12:39:00 PM raindaystart = 20.89 rain counter = 20.89
2020-07-07 12:39:00.310 MySQL: Table Monthly_new 1 rows were affected.
2020-07-07 12:39:02.676 FTP[213]: Error renaming realtime.txttmp to realtime.txt : Cannot create a file when that file already exists.; Win32 error:   Cannot create a file when that file already exists.; Error details: File system returned an error.; End
2020-07-07 12:39:32.500 FTP[214]: Error renaming realtime.txttmp to realtime.txt : Cannot create a file when that file already exists.; Win32 error:   Cannot create a file when that file already exists.; Error details: File system returned an error.; End
I'm starting to wonder if I should employ the "if it's not broke, don't fix it" strategy here :D
User avatar
mcrossley
Posts: 12694
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 Connection Error

Post by mcrossley »

OK, so yes MS will use IPv6 addresses on your local network by default, but your IIS wasn't bound to the IPv6 address.

Now, the error is saying IIS does not support file rename overwrites - so you will have to disable the "FTP Rename" option. If that still fails, then try that in combination with "Delete before upload". Or switch to using a decent FTP server ;) :lol:
stefanbagnato
Posts: 159
Joined: Sun 08 May 2016 9:11 pm
Weather Station: Vantage Pro 2
Operating System: Windows Server 2019
Location: Raleigh, NC

Re: FTP Connection Error

Post by stefanbagnato »

Yes, looks like disabling FTP Rename did it. Thanks for the help.
Post Reply