Page 1 of 1

FTP unknown command error code 500

Posted: Tue 02 May 2023 3:47 pm
by kenthcwx
Hi all

I'm suddenly getting Error Code 500s for my Realtime FTP and I haven't changed any of the settings before so unsure as to why it'd be flashing me these errors. I've attached the error message below straight from the MXdiags text file.

2023-05-02 16:42:10.405 Realtime[57]: Start cycle
2023-05-02 16:42:10.405 Realtime[57]: Creating realtime.txt
2023-05-02 16:42:10.408 Realtime[57]: Real time files starting
2023-05-02 16:42:10.522 FTP[57]: Error uploading /cumulus/realtime.txt : Error while uploading the file to the server. See InnerException for more info.
2023-05-02 16:42:10.522 FTP[57]: Inner Exception: Code: 500 Message: Unknown command
2023-05-02 16:42:10.522 Realtime[57]: Real time files complete
2023-05-02 16:42:10.523 Realtime[57]: End cycle

Just noticed it's trying to send extra web files that I turned off too. I've attached the full MXDiags file below
20230502-163157.txt
Jamie

Re: FTP unknown command error code 500

Posted: Tue 02 May 2023 4:08 pm
by HansR
You may find the FTP 500 error on the internet but your real problem seems to be somewhere else since you have so many errors in the log that you will have to solve them one by one. The fact that CMX is looking for github to get the interface straight is kind of alarming.

Code: Select all

2023-05-02 16:32:00.270 HTML root path = /home/pi/CumulusMX/interface
2023-05-02 16:32:00.358 Failed to get the latest build version from GitHub
2023-05-02 16:32:00.364 Failed to get the latest build version from GitHub - Exception Type: System.Net.Http.HttpRequestException
Message: No such host is known
Inner Exception... 
Exception Type: System.Net.Sockets.SocketException
Message: No such host is known
My guess is you made an installation error.

Next you have an error while reading the monthly log. I would hope it is solved by a correct installation. If not you need to edit the datafiles on indication of what is in the logfile after correcting the installation.

Code: Select all

2023-05-02 16:32:06.631 LoadRecent: Attempting to load 7 days of entries to recent data list
2023-05-02 16:32:12.497 Error parsing log file record: Input string was not in a correct format.
2023-05-02 16:32:12.497 Log record: 27/04/23,18:33,10.5,78,6.8,3.8,10.3,139,0.60,0.60,1012.80,236.10,17.7,65,3.1,10.5,10.5,0.0,35,1.662,81.773,8.6,0,8.0,163,0.00,0.60,127/04/23,18:34,10.5,78,6.8,3.4,10.3,142,0.60,0.60,1013.00,236.10,17.7,65,2.7,10.5,10.5,0.0,32,1.662,81.773,8.7,0,8.0,152,0.00,0.60,10.1,10.4
2023-05-02 16:32:12.497 LoadRecent: Error at line 38104 of data/Apr23log.txt : Input string was not in a correct format.
Correct those first and then we will see if there are any errors left.
Step by step.

Re: FTP unknown command error code 500

Posted: Tue 02 May 2023 4:57 pm
by SamiS
HansR wrote: Tue 02 May 2023 4:08 pm The fact that CMX is looking for github to get the interface straight is kind of alarming.

Code: Select all

2023-05-02 16:32:00.270 HTML root path = /home/pi/CumulusMX/interface
2023-05-02 16:32:00.358 Failed to get the latest build version from GitHub
2023-05-02 16:32:00.364 Failed to get the latest build version from GitHub - Exception Type: System.Net.Http.HttpRequestException
Message: No such host is known
Inner Exception... 
Exception Type: System.Net.Sockets.SocketException
Message: No such host is known
My guess is you made an installation error.
I think it is perfectly normal for CMX to check for a new build availability from github (this thiggers the upgrade available alarm). However in this case the check fails, because dns is not working for some reason, and therefore the hostname can’t be resolved. So check the network / dns settings first.

The ftp error 500 is probably resolved by disabling epsv mode from ftp advanced settings.


Sami

Re: FTP unknown command error code 500

Posted: Tue 02 May 2023 5:06 pm
by kenthcwx
HansR wrote: Tue 02 May 2023 4:08 pm You may find the FTP 500 error on the internet but your real problem seems to be somewhere else since you have so many errors in the log that you will have to solve them one by one. The fact that CMX is looking for github to get the interface straight is kind of alarming.

Code: Select all

2023-05-02 16:32:00.270 HTML root path = /home/pi/CumulusMX/interface
2023-05-02 16:32:00.358 Failed to get the latest build version from GitHub
2023-05-02 16:32:00.364 Failed to get the latest build version from GitHub - Exception Type: System.Net.Http.HttpRequestException
Message: No such host is known
Inner Exception... 
Exception Type: System.Net.Sockets.SocketException
Message: No such host is known
My guess is you made an installation error.

Next you have an error while reading the monthly log. I would hope it is solved by a correct installation. If not you need to edit the datafiles on indication of what is in the logfile after correcting the installation.

Code: Select all

2023-05-02 16:32:06.631 LoadRecent: Attempting to load 7 days of entries to recent data list
2023-05-02 16:32:12.497 Error parsing log file record: Input string was not in a correct format.
2023-05-02 16:32:12.497 Log record: 27/04/23,18:33,10.5,78,6.8,3.8,10.3,139,0.60,0.60,1012.80,236.10,17.7,65,3.1,10.5,10.5,0.0,35,1.662,81.773,8.6,0,8.0,163,0.00,0.60,127/04/23,18:34,10.5,78,6.8,3.4,10.3,142,0.60,0.60,1013.00,236.10,17.7,65,2.7,10.5,10.5,0.0,32,1.662,81.773,8.7,0,8.0,152,0.00,0.60,10.1,10.4
2023-05-02 16:32:12.497 LoadRecent: Error at line 38104 of data/Apr23log.txt : Input string was not in a correct format.
Correct those first and then we will see if there are any errors left.
Step by step.
SamiS wrote: Tue 02 May 2023 4:57 pm
HansR wrote: Tue 02 May 2023 4:08 pm The fact that CMX is looking for github to get the interface straight is kind of alarming.

Code: Select all

2023-05-02 16:32:00.270 HTML root path = /home/pi/CumulusMX/interface
2023-05-02 16:32:00.358 Failed to get the latest build version from GitHub
2023-05-02 16:32:00.364 Failed to get the latest build version from GitHub - Exception Type: System.Net.Http.HttpRequestException
Message: No such host is known
Inner Exception... 
Exception Type: System.Net.Sockets.SocketException
Message: No such host is known
My guess is you made an installation error.
I think it is perfectly normal for CMX to check for a new build availability from github (this thiggers the upgrade available alarm). However in this case the check fails, because dns is not working for some reason, and therefore the hostname can’t be resolved. So check the network / dns settings first.

The ftp error 500 is probably resolved by disabling epsv mode from ftp advanced settings.


Sami
Thanks both for helping me to jog my brain into action.

I reinstalled CumulusMX, and reconfigured the settings but was still getting the Error Code 500. It turned out to be the incorrect database that was holding it back which had for some reason messed up and put two minutes' worth of data right next to each other.

As soon as I corrected that it connected fine!

Jamie

Re: FTP unknown command error code 500

Posted: Tue 02 May 2023 5:14 pm
by SamiS
kenthcwx wrote: Tue 02 May 2023 5:06 pm I reinstalled CumulusMX, and reconfigured the settings but was still getting the Error Code 500. It turned out to be the incorrect database that was holding it back which had for some reason messed up and put two minutes' worth of data right next to each other.

As soon as I corrected that it connected fine!

Jamie
Sounds a bit strange, but glad to hear it is working now.

Re: FTP unknown command error code 500

Posted: Tue 02 May 2023 6:15 pm
by HansR
SamiS wrote: Tue 02 May 2023 4:57 pm
HansR wrote: Tue 02 May 2023 4:08 pm The fact that CMX is looking for github to get the interface straight is kind of alarming.

Code: Select all

2023-05-02 16:32:00.270 HTML root path = /home/pi/CumulusMX/interface
2023-05-02 16:32:00.358 Failed to get the latest build version from GitHub
2023-05-02 16:32:00.364 Failed to get the latest build version from GitHub - Exception Type: System.Net.Http.HttpRequestException
Message: No such host is known
Inner Exception... 
Exception Type: System.Net.Sockets.SocketException
Message: No such host is known
My guess is you made an installation error.
I think it is perfectly normal for CMX to check for a new build availability from github (this thiggers the upgrade available alarm). However in this case the check fails, because dns is not working for some reason, and therefore the hostname can’t be resolved. So check the network / dns settings first.
@sami: You probably checked the code somewhere I did not look (the interface?)
The code for the exec only looks for

Code: Select all

https://github.com/cumulusmx/CumulusMX/releases/latest
and decides from there.
So yes, you are partially right :D

@kenthcwx: Great :!:

Re: FTP unknown command error code 500

Posted: Tue 02 May 2023 7:40 pm
by SamiS
HansR wrote: Tue 02 May 2023 6:15 pm @sami: You probably checked the code somewhere I did not look (the interface?)
The code for the exec only looks for

Code: Select all

https://github.com/cumulusmx/CumulusMX/releases/latest
and decides from there.
So yes, you are partially right :D
I have spent last 25 years of my working life debugging it systems (usually without any data except that ”this is not working, please fix”), so I kind of have developed a good touch about which log messages are relevant and which are not. :D The html root message is always logged on normal startup, and is not related in any way to the version check that just happened to come next. It seems that the version check is not logged if there is no error or a new version available, so it can be kind of misleading when it appears.

The ftp error and its relation to missing epasv-support from server side has come up several times in this forum during last year, so it was also an obvious fix to offer, since disabling it has usually resolved the problem. But in this case it seems that it can be triggered also from some other reason.

Of course every one of us do our own conclusions from the logfiles based on our own experience, and that’s good since it (at least hopefully) enriches everyone’s way of thinking.

Re: FTP unknown command error code 500

Posted: Tue 02 May 2023 8:49 pm
by HansR
@SamiS: OK.