Page 1 of 1

FTP Stops Working Randomly

Posted: Thu 13 Mar 2025 2:13 am
by hemmits
Not sure if it's a coincidence, but ever since upgrading to version 4, I have been having random ftp issues. Namely, the ftp uploads just stop. Every time this happens, I get the following error message in the ftp logs:

2025-03-12 19:03:32.4023|INFO|MXR|FTP[137]: Uploading realtime.xml
2025-03-12 19:03:32.4023|INFO|R-T|> UploadStream("realtime.xml", NoCheck, False)
2025-03-12 19:03:32.4023|INFO|R-T|> OpenWrite("realtime.xml", Binary, -1, False)
2025-03-12 19:03:32.4023|INFO|R-T|> OpenDataStream("STOR realtime.xml", 0)
2025-03-12 19:03:32.4023|INFO|R-T|> OpenPassiveDataStream(EPSV, "STOR realtime.xml", 0)
2025-03-12 19:03:32.4023|INFO|R-T|Command: EPSV
2025-03-12 19:03:32.4531|INFO|R-T|Response: 500 Unknown command [49ms]
2025-03-12 19:03:32.4531|INFO|MXR|FTP[137]: Error uploading realtime.xml : Error while uploading the file to the server. See InnerException for more info.
2025-03-12 19:03:32.4531|INFO|MXR|FTP[137]: Inner Exception: Code: 500 Message: Unknown command

Sometimes I have to restart cumulus 5 or 6 times throughout a given day when this happens. Other times it will run for several days without issue. However, lately it has been much more frequent. Today I switched to active FTP to see if this helps and will report back, but I am stumped as to what is causing this issue.

Re: FTP Stops Working Randomly

Posted: Thu 13 Mar 2025 8:02 am
by water01
Please post the entire MXDiags log not just a snippet of where you think the error occurred as more than likely there are better clues as to what the problem is.

Better still switch on data and debug logging and run MX until the error occurs and send the entire log. You may have to .zip it if it is too large.

Re: FTP Stops Working Randomly

Posted: Thu 13 Mar 2025 9:31 am
by mcrossley
Under your Web/Upload Site Advanced settings, try disabling EPSV - "Disable EPSV mode in FTP(S)"

Re: FTP Stops Working Randomly

Posted: Thu 13 Mar 2025 10:47 am
by hemmits
Thanks Mark. I'll try this out. I was running in active mode with no issues as well. However, that was only a 12-hour test. I'll switch back to passive and see if this works and will report back.