Welcome to the Cumulus Support forum.
Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Legacy Cumulus 1 release 1.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
If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080
Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Legacy Cumulus 1 release 1.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
If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080
FTP error realtimegauges.txt
Moderator: mcrossley
-
daveh
- Posts: 10
- Joined: Mon 30 Nov 2015 1:39 pm
- Weather Station: Home built
- Operating System: Linux
- Location: Peterborough, UK
FTP error realtimegauges.txt
I have been getting errors in MXdiag about a failure to upload realtimegaugesT.txttmp to realtimegauges,txt. It doesn't happen every time, but approximately every other time. I have tried to manually FTP the file every few seconds and it never fails so I am wondering if there is sometimes a problem with the way MX uses the FTP connection. Could you take a look please.
MXdiag and ftplog attached.
MXdiag and ftplog attached.
You do not have the required permissions to view the files attached to this post.
-
Grimers
- Posts: 240
- Joined: Tue 24 Nov 2015 9:07 am
- Weather Station: Davis Vantage Pro2
- Operating System: Windows 11 64-bit
- Location: Newton Poppleford, Devon, UK
- Contact:
Re: FTP error realtimegauges.txt
Hi daveh,daveh wrote:I have been getting errors in MXdiag about a failure to upload realtimegaugesT.txttmp to realtimegauges,txt. It doesn't happen every time, but approximately every other time. I have tried to manually FTP the file every few seconds and it never fails so I am wondering if there is sometimes a problem with the way MX uses the FTP connection. Could you take a look please.
MXdiag and ftplog attached.
You need to upload the realtimegaugesT.txt file not the realtimegaugesT.txttmp file. The latter file is a temporary file hence "tmp" and is produced when Cumulus process an upload of the other file.
- steve
- Cumulus Author
- Posts: 26672
- Joined: Mon 02 Jun 2008 6:49 pm
- Weather Station: None
- Operating System: None
- Location: Vienne, France
- Contact:
Re: FTP error realtimegauges.txt
Cumulus doesn't actually do anything with the ftp connection, it knows nothing about ftp at all. It's all handled with a third party component. It looks like the connection keeps getting dropped - you seem to be using a very long realtime interval - 10 minutes? Perhaps the connection being idle for so long means that it is being timed out. Cumulus 1 has an option to disconnect and reconnect the realtime connection after N uploads, but I haven't yet implemented that in MX. In your case, setting it to 1 would probably be a good idea when I get around to doing it.
Steve
- steve
- Cumulus Author
- Posts: 26672
- Joined: Mon 02 Jun 2008 6:49 pm
- Weather Station: None
- Operating System: None
- Location: Vienne, France
- Contact:
Re: FTP error realtimegauges.txt
It's how it works. Please stop making up answers - this is part of what got you banned last time.Grimers wrote:You need to upload the realtimegaugesT.txt file not the realtimegaugesT.txttmp file. The latter file is a temporary file hence "tmp" and is produced when Cumulus process an upload of the other file.
Steve
-
daveh
- Posts: 10
- Joined: Mon 30 Nov 2015 1:39 pm
- Weather Station: Home built
- Operating System: Linux
- Location: Peterborough, UK
Re: FTP error realtimegauges.txt
Thanks Steve. The realtime interval is set to 10 minutes. I want the gauges to work but since I only record data from my sensors every 15 minutes it seemed pointless to update too frequently. However, out of interest I will try reducing that time and see if the errors go away.steve wrote:Cumulus doesn't actually do anything with the ftp connection, it knows nothing about ftp at all. It's all handled with a third party component. It looks like the connection keeps getting dropped - you seem to be using a very long realtime interval - 10 minutes? Perhaps the connection being idle for so long means that it is being timed out. Cumulus 1 has an option to disconnect and reconnect the realtime connection after N uploads, but I haven't yet implemented that in MX. In your case, setting it to 1 would probably be a good idea when I get around to doing it.
-
Grimers
- Posts: 240
- Joined: Tue 24 Nov 2015 9:07 am
- Weather Station: Davis Vantage Pro2
- Operating System: Windows 11 64-bit
- Location: Newton Poppleford, Devon, UK
- Contact:
Re: FTP error realtimegauges.txt
Ok, I understand that. But, it looked to me like he was trying to upload the txttmp file not the actual txt file. I am not making up any answers, I am stating a fact.steve wrote:It's how it works. Please stop making up answers - this is part of what got you banned last time.Grimers wrote:You need to upload the realtimegaugesT.txt file not the realtimegaugesT.txttmp file. The latter file is a temporary file hence "tmp" and is produced when Cumulus process an upload of the other file.
- steve
- Cumulus Author
- Posts: 26672
- Joined: Mon 02 Jun 2008 6:49 pm
- Weather Station: None
- Operating System: None
- Location: Vienne, France
- Contact:
Re: FTP error realtimegauges.txt
He has correctly configured Cumulus to process the realtimegaugesT.txt file. It's the contents of the realtimegaugesT.txttmp file which gets uploaded, not the realtimegaugesT.txt file. The latter file has unprocessed web tags in it, and the gauges need actual data, so if that file was uploaded as you suggest, the gauges wouldn't work.Grimers wrote:it looked to me like he was trying to upload the txttmp file not the actual txt file. I am not making up any answers, I am stating a fact.
Steve
-
Grimers
- Posts: 240
- Joined: Tue 24 Nov 2015 9:07 am
- Weather Station: Davis Vantage Pro2
- Operating System: Windows 11 64-bit
- Location: Newton Poppleford, Devon, UK
- Contact:
Re: FTP error realtimegauges.txt
I understand, sorry. I thought he was trying to upload the tmp file from his local machine which wouldn't work as Cumulus wouldn't have found any web tags in the file as it had already been processed.steve wrote:He has correctly configured Cumulus to process the realtimegaugesT.txt file. It's the contents of the realtimegaugesT.txttmp file which gets uploaded, not the realtimegaugesT.txt file. The latter file has unprocessed web tags in it, and the gauges need actual data, so if that file was uploaded as you suggest, the gauges wouldn't work.Grimers wrote:it looked to me like he was trying to upload the txttmp file not the actual txt file. I am not making up any answers, I am stating a fact.
-
freddie
- Posts: 2870
- Joined: Wed 08 Jun 2011 11:19 am
- Weather Station: Davis Vantage Pro 2 + Ecowitt
- Operating System: GNU/Linux Ubuntu 24.04 LXC
- Location: Alcaston, Shropshire, UK
- Contact:
Re: FTP error realtimegauges.txt
I don't think you do understand. The tmp file is the result of Cumulus processing the txt file and replacing the web tags with real data - which is precisely what is required for display on the web site. So, yes, he DOES want to upload the tmp file.Grimers wrote:I understand, sorry. I thought he was trying to upload the tmp file from his local machine which wouldn't work as Cumulus wouldn't have found any web tags in the file as it had already been processed.steve wrote:He has correctly configured Cumulus to process the realtimegaugesT.txt file. It's the contents of the realtimegaugesT.txttmp file which gets uploaded, not the realtimegaugesT.txt file. The latter file has unprocessed web tags in it, and the gauges need actual data, so if that file was uploaded as you suggest, the gauges wouldn't work.Grimers wrote:it looked to me like he was trying to upload the txttmp file not the actual txt file. I am not making up any answers, I am stating a fact.
-
Grimers
- Posts: 240
- Joined: Tue 24 Nov 2015 9:07 am
- Weather Station: Davis Vantage Pro2
- Operating System: Windows 11 64-bit
- Location: Newton Poppleford, Devon, UK
- Contact:
Re: FTP error realtimegauges.txt
Right, I'm not going on. But, I certainly do not upload the temp file, I upload the txt file so that Cumulus can process the web tags inside the file...freddie wrote: I don't think you do understand. The tmp file is the result of Cumulus processing the txt file and replacing the web tags with real data - which is precisely what is required for display on the web site. So, yes, he DOES want to upload the tmp file.
-
duke
Re: FTP error realtimegauges.txt
The processing is done before it is uploaded to your web space, once uploaded it is out of reach of Cumulus which is local on your machine - not your web space!Grimers wrote:I upload the txt file so that Cumulus can process the web tags inside the file...
-
daveh
- Posts: 10
- Joined: Mon 30 Nov 2015 1:39 pm
- Weather Station: Home built
- Operating System: Linux
- Location: Peterborough, UK
Re: FTP error realtimegauges.txt
Steve, I reduced the realtime update to every 5 minutes and have only seen 4 errors in the last 24 hours. These were all consecutive attempts so may have been a temporary problem with connection to my hosting. I think you are right about the connection timing out with it set at 10 minutes.steve wrote:It looks like the connection keeps getting dropped - you seem to be using a very long realtime interval - 10 minutes? Perhaps the connection being idle for so long means that it is being timed out. Cumulus 1 has an option to disconnect and reconnect the realtime connection after N uploads, but I haven't yet implemented that in MX. In your case, setting it to 1 would probably be a good idea when I get around to doing it.
Dave
- mcrossley
- Posts: 14388
- 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 error realtimegauges.txt
I guess the Cumulus doesn't send NOOP 'keep-alive' packets periodically to keep the connection open. FTP clients such as Filezilla send them every 30 seconds by default.
- steve
- Cumulus Author
- Posts: 26672
- Joined: Mon 02 Jun 2008 6:49 pm
- Weather Station: None
- Operating System: None
- Location: Vienne, France
- Contact:
Re: FTP error realtimegauges.txt
Looking at the documentation, the client supposedly does a Poll every 15 seconds on an idle connection. But it's not clear to me whether this is supposed to stop the server timing out the connection, or just to allow the client to detect that the connection has been closed by the server.
But specifying long realtime intervals (several minutes) was not really what the realtime facility was intended for, which is why it keeps the connection open. If you're going to do that, then it seems to me that you may as well just upload it with the other files (i.e. don't use realtime at all). At some point I'll look at implementing the closing of the connection that Cumulus 1 does, I'll see how hard this will be to do in MX - I don't imagine it will be difficult.
But specifying long realtime intervals (several minutes) was not really what the realtime facility was intended for, which is why it keeps the connection open. If you're going to do that, then it seems to me that you may as well just upload it with the other files (i.e. don't use realtime at all). At some point I'll look at implementing the closing of the connection that Cumulus 1 does, I'll see how hard this will be to do in MX - I don't imagine it will be difficult.
Steve
-
daveh
- Posts: 10
- Joined: Mon 30 Nov 2015 1:39 pm
- Weather Station: Home built
- Operating System: Linux
- Location: Peterborough, UK
Re: FTP error realtimegauges.txt
I am so pleased you wrote thatsteve wrote:But specifying long realtime intervals (several minutes) was not really what the realtime facility was intended for, which is why it keeps the connection open. If you're going to do that, then it seems to me that you may as well just upload it with the other files (i.e. don't use realtime at all).