Page 1 of 1
FTP Connection Error
Posted: Mon 06 Jul 2020 8:36 pm
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.
Re: FTP Connection Error
Posted: Tue 07 Jul 2020 9:04 am
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.
Re: FTP Connection Error
Posted: Tue 07 Jul 2020 12:44 pm
by stefanbagnato
Good morning. Just updated to 3086. Both logs attached. Also, it's set to use just regular FTP.
Re: FTP Connection Error
Posted: Tue 07 Jul 2020 2:51 pm
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.
Re: FTP Connection Error
Posted: Tue 07 Jul 2020 4:03 pm
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.
Re: FTP Connection Error
Posted: Tue 07 Jul 2020 4:40 pm
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

Re: FTP Connection Error
Posted: Tue 07 Jul 2020 4:49 pm
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

Re: FTP Connection Error
Posted: Tue 07 Jul 2020 6:47 pm
by stefanbagnato
Yes, looks like disabling FTP Rename did it. Thanks for the help.