Page 1 of 2

Weather station offline

Posted: Mon 25 Nov 2024 1:56 pm
by malmeida
My Gauges page shows "The weather station is currently offloine. Last update 14 days ago". I restarted the router, changed FTP logging and Enablerealtime.
I attach the last MXdiafgs.

Re: Weather station offline

Posted: Mon 25 Nov 2024 2:27 pm
by mcrossley
Your FTP is not connecting...

Code: Select all

I won't open a connection to 100.88.97.106 (only to 78.137.220.68)
You also have a lot of duplicate entries in your day file that need sorting out...

Code: Select all

ERROR: Duplicate entry in dayfile for 30/03/2018
ERROR: Duplicate entry in dayfile for 31/03/2018
ERROR: Duplicate entry in dayfile for 01/04/2018
ERROR: Duplicate entry in dayfile for 02/04/2018
ERROR: Duplicate entry in dayfile for 09/04/2018
ERROR: Duplicate entry in dayfile for 10/04/2018
ERROR: Duplicate entry in dayfile for 28/11/2018
ERROR: Duplicate entry in dayfile for 29/11/2018
ERROR: Duplicate entry in dayfile for 30/11/2018
ERROR: Duplicate entry in dayfile for 23/08/2020
ERROR: Duplicate entry in dayfile for 24/08/2020
ERROR: Duplicate entry in dayfile for 25/08/2020
ERROR: Duplicate entry in dayfile for 24/12/2020
ERROR: Duplicate entry in dayfile for 25/12/2020
ERROR: Duplicate entry in dayfile for 24/08/2021
ERROR: Duplicate entry in dayfile for 09/09/2021
ERROR: Duplicate entry in dayfile for 10/09/2021
ERROR: Duplicate entry in dayfile for 12/09/2021
ERROR: Duplicate entry in dayfile for 13/09/2021
ERROR: Duplicate entry in dayfile for 14/09/2021
ERROR: Duplicate entry in dayfile for 25/04/2022
ERROR: Duplicate entry in dayfile for 26/04/2022
ERROR: Duplicate entry in dayfile for 27/04/2022
ERROR: Duplicate entry in dayfile for 28/04/2022
ERROR: Duplicate entry in dayfile for 07/07/2022
ERROR: Duplicate entry in dayfile for 08/07/2022
ERROR: Duplicate entry in dayfile for 31/07/2022
ERROR: Duplicate entry in dayfile for 23/09/2022
ERROR: Duplicate entry in dayfile for 25/09/2022
ERROR: Duplicate entry in dayfile for 26/09/2022
ERROR: Duplicate entry in dayfile for 27/09/2022
ERROR: Duplicate entry in dayfile for 25/09/2022
ERROR: Duplicate entry in dayfile for 26/09/2022
ERROR: Duplicate entry in dayfile for 27/09/2022
ERROR: Duplicate entry in dayfile for 23/10/2022
ERROR: Duplicate entry in dayfile for 24/10/2022
ERROR: Duplicate entry in dayfile for 25/10/2022
ERROR: Duplicate entry in dayfile for 26/10/2022
ERROR: Duplicate entry in dayfile for 27/10/2022
ERROR: Duplicate entry in dayfile for 28/10/2022
ERROR: Duplicate entry in dayfile for 29/10/2022
ERROR: Duplicate entry in dayfile for 30/10/2022
ERROR: Duplicate entry in dayfile for 31/10/2022
ERROR: Duplicate entry in dayfile for 17/11/2022
ERROR: Duplicate entry in dayfile for 19/11/2022
ERROR: Duplicate entry in dayfile for 22/11/2022
ERROR: Duplicate entry in dayfile for 25/12/2022
ERROR: Duplicate entry in dayfile for 21/01/2023
ERROR: Duplicate entry in dayfile for 22/01/2023
ERROR: Duplicate entry in dayfile for 23/01/2023
ERROR: Duplicate entry in dayfile for 24/01/2023
ERROR: Duplicate entry in dayfile for 25/01/2023
ERROR: Duplicate entry in dayfile for 26/01/2023
ERROR: Duplicate entry in dayfile for 27/01/2023
LoadDayFile: Error at line 2708 of data/dayfile.txt : Error at record 1 = "<LOTS of NULL CHARS>"
Please edit the file to correct the error
ERROR: Duplicate entry in dayfile for 11/11/2024
ERROR: Duplicate entry in dayfile for 12/11/2024
ERROR: Duplicate entry in dayfile for 13/11/2024
ERROR: Duplicate entry in dayfile for 14/11/2024
ERROR: Duplicate entry in dayfile for 15/11/2024
ERROR: Duplicate entry in dayfile for 16/11/2024
ERROR: Duplicate entry in dayfile for 17/11/2024
ERROR: Duplicate entry in dayfile for 18/11/2024
ERROR: Duplicate entry in dayfile for 19/11/2024
LoadDayFile: Found 63 duplicate entries, please correct your dayfile and try again
And a corrupt line at line 2708 that needs deleting.

Re: Weather station offline

Posted: Wed 27 Nov 2024 12:21 pm
by malmeida
I deleted the duplicated lines of dayfile with the interface in Datalogs and restarted Cumulus. But MXdiags keeped saying that there were duplicated lines. As the interface dind't found those lines, I deleted them transfering dayfile.txt with WinSCP. Now the interface doesn't shows those lines and the Gauges page keeps saying that "The Weather station is offline".

Re: Weather station offline

Posted: Wed 27 Nov 2024 12:22 pm
by malmeida
I attach the last MXdiags
20241127-120843.txt

Re: Weather station offline

Posted: Wed 27 Nov 2024 3:35 pm
by water01
You still have errors in the dayfile
2024-11-27 12:09:21.302 LoadDayFile: Error at line 2654 of data/dayfile.txt : Error at record 52 = "15:,0" - Input string was not in a correct format.
Although your FTP connects when it tries to upload files it rejects the upload with these messages.
2024-11-27 12:10:11.933 FTP[0]: Error uploading www/realtimegauges.txt : Error while uploading the file to the server. See InnerException for more info.
2024-11-27 12:10:11.935 FTP[0]: Inner Exception: Code: 500 Message: I won't open a connection to 100.88.97.106 (only to 78.137.220.68)
2024-11-27 12:10:41.521 FTP[1]: Error uploading www/realtimegauges.txt : Error while uploading the file to the server. See InnerException for more info.
2024-11-27 12:10:41.522 FTP[1]: Inner Exception: Code: 500 Message: I won't open a connection to 100.88.97.106 (only to 78.137.220.68)
2024-11-27 12:11:11.464 FTP[2]: Error uploading www/realtimegauges.txt : Error while uploading the file to the server. See InnerException for more info.
2024-11-27 12:11:11.465 FTP[2]: Inner Exception: Code: 500 Message: I won't open a connection to 100.88.97.106 (only to 78.137.220.68)
2024-11-27 12:11:41.443 FTP[3]: Error uploading www/realtimegauges.txt : Error while uploading the file to the server. See InnerException for more info.
2024-11-27 12:11:41.443 FTP[3]: Inner Exception: Code: 500 Message: I won't open a connection to 100.88.97.106 (only to 78.137.220.68)
2024-11-27 12:11:45.905 Pausing for 13 seconds to unsynchronise data reads with 48 second updates...
2024-11-27 12:12:11.476 FTP[4]: Error uploading www/realtimegauges.txt : Error while uploading the file to the server. See InnerException for more info.
2024-11-27 12:12:11.477 FTP[4]: Inner Exception: Code: 500 Message: I won't open a connection to 100.88.97.106 (only to 78.137.220.68)
Are your sure you are uploading to the right server as the message is a bit strange!!
2024-11-27 12:11:11.465 FTP[2]: Inner Exception: Code: 500 Message: I won't open a connection to 100.88.97.106 (only to 78.137.220.68)
When I looked this up it seems to infer you are connecting as an "active" connection and it will only accept "passive" connections. This is one of the settings in Internet Settings. Suggest you try a passive connection.

Re: Weather station offline

Posted: Thu 28 Nov 2024 5:38 pm
by malmeida
The station is still offline. It seems that the only error now is: "Inner Exception: Code: 500 Message: I won't open a connection to 100.88.97.106 (only to 78.137.220.68)"
I don´t know why because in Cumulus.ini I have:
[FTP site]
Enabled=1
Host=scomba.co.uk
Port=21
.........
FTPlogging=0
UTF8encode=1
EnableRealtime=1

Re: Weather station offline

Posted: Thu 28 Nov 2024 6:02 pm
by freddie
Have you done this (from @water01's reply above?:
When I looked this up it seems to infer you are connecting as an "active" connection and it will only accept "passive" connections. This is one of the settings in Internet Settings. Suggest you try a passive connection.

Re: Weather station offline

Posted: Thu 28 Nov 2024 6:04 pm
by PaulMy
Hi,
I won't open a connection to 100.88.97.106 (only to 78.137.220.68)"
I don´t know why because in Cumulus.ini I have:
[FTP site]
Enabled=1
Host=scomba.co.uk
Port=21
.........
FTPlogging=0
UTF8encode=1
EnableRealtime=1
That would indicate FTP logging is not enabled, I suggest to enable FTP logging so more information would be logged.
Instead of 'scomba.co.uk' have you tried: Host name: 100.88.97.106 or 78.137.220.68

Enjoy,
Paul

Re: Weather station offline

Posted: Thu 28 Nov 2024 6:20 pm
by malmeida
As I am far from the station, I don´t have access to the admnistrator interface. The last time that I was there I adjusted "Settings/Internet/Select FTP protocol to use: 0-FTP(plain old FTP)".
Since 8 years ago I allways used www. scomba.co.uk. My CPanel shows: Shared IP Address: 178.159.12.246 and Last Login Address: 93.108.74.91. Shall I use one of these?

Re: Weather station offline

Posted: Thu 28 Nov 2024 6:53 pm
by malmeida
I replaced FTP site Host, in Cumulus.ini from www.scomba.co.uk to 178.159.12.246 and the situation is the same. I attach the last MXdiags.
20241128-184435.7z

Re: Weather station offline

Posted: Thu 28 Nov 2024 7:34 pm
by malmeida
I changed FTP site/Enabled of Cumulus.ini from 1 to 0 and corrected an error in dayfile. It seems that the last (attached) MXdiags has no errors but the station is offline.
20241128-192313.7z

Re: Weather station offline

Posted: Thu 28 Nov 2024 8:30 pm
by mcrossley
If you enable debug and data logging we should be able to see what is happening.

Re: Weather station offline

Posted: Thu 28 Nov 2024 9:17 pm
by SamiS
Of course you must also re-enable the site upload after enabling debug logging (if that was the thing what is broken and needing a fix). My guess is same as water01’s, that the error is caused by active ftp and might be resolved by switching to passive mode.

Re: Weather station offline

Posted: Thu 28 Nov 2024 10:03 pm
by malmeida
My old Cumulus.ini had the sentence Active FTP but now it doesn't have.

Re: Weather station offline

Posted: Thu 28 Nov 2024 10:45 pm
by PaulMy
Hi,
malmeida wrote:
My old Cumulus.ini had the sentence Active FTP but now it doesn't have.
Have you looked in CMX > Internet Settings > Advanced Settings - Enable Active FTP(S) mode ?
It looks like that is the same as in CU1 > Configuration > Internet Settings > Web Settings
[ ] Use active FTP mode

Code: Select all

Advanced Settings
 Here be dragons! Only alter these settings if you understand what they do.

Enable Automatic Connection
 Enabling this means the FTP client attempts to discover a working configuration for your server Note that using this setting may slow down the connection process a little
Disable EPSV mode in FTP(S)
 Not normally required - use with caution Extended passive mode is a newer standard of PSV. Disabling this forces PSV mode connections
Enable Active FTP(S) mode
 Not normally required - use with caution
Enjoy,
Paul