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

Uploading of realtime.txt via ftp

From build 3044 the development baton passed to Mark Crossley. Mark has been responsible for all the Builds since. He has made the code available on GitHub. It is Mark's hope that others will join in this development, but at the very least he welcomes your ideas for future developments (see Cumulus MX Development suggestions).

Moderator: mcrossley

Rylands
Posts: 55
Joined: Sun 03 May 2020 4:21 am
Weather Station: Davis VP2
Operating System: Windows 10

Re: Uploading of realtime.txt via ftp

Post by Rylands »

PM sent (at least I hope it has been sent....)
User avatar
HansR
Posts: 6926
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bookworm
Location: Wagenborgen (NL)
Contact:

Re: Uploading of realtime.txt via ftp

Post by HansR »

Tbh, it is OK a communication goes over PM if its too detailed or whatever, but if there is a solution, I would appreciate to see it.
I sometimes encounter issues with FTP as well, might pick up ideas from solutions!
Hans

https://meteo-wagenborgen.nl
CMX build 4070+ ● RPi 4B ● Linux 6.6.62+rpt-rpi-v8 aarch64 (bookworm) ● dotnet 8.0.1
BlueSky: https://bsky.app/profile/wagenborgenwx.bsky.social
Rylands
Posts: 55
Joined: Sun 03 May 2020 4:21 am
Weather Station: Davis VP2
Operating System: Windows 10

Re: Uploading of realtime.txt via ftp

Post by Rylands »

Hello all.

I believe (but might be totally wrong) that the error lies in the path I am using in Cumulus to transfer the files, as currently NO files are being transferred.

If somebody could be kind enough to explain remote FTP directory on Cumulus and how this corresponds to remote directory as viewed in an FTP program (eg Filezilla) it would be much appreciated.

i.e.

If my website is iloveweather.com.

and I want files from Cumulus to be sent via ftp to /iloveweather.com/public_html/cumulus

is the host name on cumulus iloveweather.com, and the remote FTP Directory iloveweather.com/public_html/cumulus or something different?

Surely, somebody has a similar setup and can guide me accordingly?
User avatar
ConligWX
Posts: 1835
Joined: Mon 19 May 2014 10:45 pm
Weather Station: Davis vPro2+ w/DFARS + AirLink
Operating System: Ubuntu 24.04.1 LTS
Location: Bangor, NI
Contact:

Re: Uploading of realtime.txt via ftp

Post by ConligWX »

try using /public_html/cumulus as the path.
Rylands
Posts: 55
Joined: Sun 03 May 2020 4:21 am
Weather Station: Davis VP2
Operating System: Windows 10

Re: Uploading of realtime.txt via ftp

Post by Rylands »

Thanks to all of you who have tried to help so far.

It doesn't seem to matter what path I enter in my Remote FTP Directory, nothing will upload, and the ftplog.txt file continues to show errors such as

Error uploading realtime.txt to /cumulus//realtime.txt : Timed out trying to connect!

The actual path is public_html/template, but using this path also gives the error

Error uploading realtime.txt to public_html/template//realtime.txt : Connection refused

So either there is a problem with my host in terms of the format required to send files through to my site OR I cannot get the right path.

I think I'll just give up - and refer to Cumulus itself to provide me the data. Doesn't look like setting up file transfer is going to work :(
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: Uploading of realtime.txt via ftp

Post by freddie »

Rylands wrote: Mon 29 Mar 2021 11:27 amError uploading realtime.txt to /cumulus//realtime.txt : Timed out trying to connect!

The actual path is public_html/template, but using this path also gives the error

Error uploading realtime.txt to public_html/template//realtime.txt : Connection refused
Both of these errors are related to being unable to connect to your hosting - nothing to do with file paths.
Some questions:
-> Does your host permit connections via FTP? In my experience, not many do nowadays.
-> Have you tried transferring your files using SFTP (or FTPS)? These two protocols are the ones favoured by hosting companies rather than FTP.

You can change MX to use SFTP (or FTPS) in your settings pages.
Freddie
Image
User avatar
PaulMy
Posts: 4355
Joined: Sun 28 Sep 2008 11:54 pm
Weather Station: Davis VP2 Plus 24-Hour FARS
Operating System: Windows8 and Windows10
Location: Komoka, ON Canada
Contact:

Re: Uploading of realtime.txt via ftp

Post by PaulMy »

HansR wrote: Mon 29 Mar 2021 6:14 am Tbh, it is OK a communication goes over PM if its too detailed or whatever, but if there is a solution, I would appreciate to see it.
I sometimes encounter issues with FTP as well, might pick up ideas from solutions!
Agreed. and in this case it was a PM regarding a potential security matter re the Cumulus.ini posting.

Enjoy,
Paul
VP2+
C1 www.komokaweather.com/komokaweather-ca
MX https://komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX https://komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX https:// komokaweather.com/cumulusmx4/index.htm
Image
User avatar
HansR
Posts: 6926
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bookworm
Location: Wagenborgen (NL)
Contact:

Re: Uploading of realtime.txt via ftp

Post by HansR »

@Paul: OK, thnx.
Hans

https://meteo-wagenborgen.nl
CMX build 4070+ ● RPi 4B ● Linux 6.6.62+rpt-rpi-v8 aarch64 (bookworm) ● dotnet 8.0.1
BlueSky: https://bsky.app/profile/wagenborgenwx.bsky.social
Rylands
Posts: 55
Joined: Sun 03 May 2020 4:21 am
Weather Station: Davis VP2
Operating System: Windows 10

Re: Uploading of realtime.txt via ftp

Post by Rylands »

Given I can't seem to transfer files using the inbuilt file transfer options on Cumulus, are there any other options to transfer the realtime text file from Cumulus to my site?
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: Uploading of realtime.txt via ftp

Post by freddie »

Rylands wrote: Mon 29 Mar 2021 8:53 pm Given I can't seem to transfer files using the inbuilt file transfer options on Cumulus, are there any other options to transfer the realtime text file from Cumulus to my site?
Have you tried the SFTP and FTPS options? If so, what errors were reported? Reading this topic, you only appear to have tried FTP ...
Freddie
Image
Rylands
Posts: 55
Joined: Sun 03 May 2020 4:21 am
Weather Station: Davis VP2
Operating System: Windows 10

Re: Uploading of realtime.txt via ftp

Post by Rylands »

Having experimented with different file paths over the last 24 hours, I have noticed the following:

ftplog.txt shows timed out errors no matter what path I set. HOWEVER

At 7:50 pm last night my time, a series of json files (eg dailytemp.json, dailyrain.json) were uploaded to my root directory /

AT 8:43 pm last night, the same files were uploaded to my directory /cumulus, and again between 9:05 and 9:50 am this morning - however the files from the morning have the extension jsontemp.

So I'm confused as to how these files are transferred to my site if it's not ftp??
User avatar
HansR
Posts: 6926
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bookworm
Location: Wagenborgen (NL)
Contact:

Re: Uploading of realtime.txt via ftp

Post by HansR »

Now that is interesting because I have a (remotely) similar issue with my CumulusUils where it, with one user, started to fail sending a file with plain vanilla FTP. Then suddenly after some ten day it did send it once and then failed again. Currently waiting for it to have a successful send again.

I extended the info and had an inner exception on the timeout (yes the same error as @rylands) and it fails to read something back after it thinks it sent the file. And even in the case where the file did come through that same error occurs. Searching the internet for that error !does not come up with a solution other than a bug in the FluentFTP library. I'll add the specific text of that error later.

@rylands i can't find any location info of you nor a site. The problem i describe is in Norway. And you are where?
Hans

https://meteo-wagenborgen.nl
CMX build 4070+ ● RPi 4B ● Linux 6.6.62+rpt-rpi-v8 aarch64 (bookworm) ● dotnet 8.0.1
BlueSky: https://bsky.app/profile/wagenborgenwx.bsky.social
User avatar
HansR
Posts: 6926
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bookworm
Location: Wagenborgen (NL)
Contact:

Re: Uploading of realtime.txt via ftp

Post by HansR »

Rylands wrote: Tue 30 Mar 2021 12:18 am So I'm confused as to how these files are transferred to my site if it's not ftp??
And yes that is through FTP (you did send the protocol to plain FTP did you?). You use renaming of the files after the copy. That is internal and should not be the problem.
Hans

https://meteo-wagenborgen.nl
CMX build 4070+ ● RPi 4B ● Linux 6.6.62+rpt-rpi-v8 aarch64 (bookworm) ● dotnet 8.0.1
BlueSky: https://bsky.app/profile/wagenborgenwx.bsky.social
Rylands
Posts: 55
Joined: Sun 03 May 2020 4:21 am
Weather Station: Davis VP2
Operating System: Windows 10

Re: Uploading of realtime.txt via ftp

Post by Rylands »

@rylands i can't find any location info of you nor a site. The problem i describe is in Norway. And you are where?
I'm from Melbourne, Australia.

My site at www.eyeseontheweather.com.au had been working fine until 48 hours ago.

I decided to move it to a new host, as I had already moved another site to the same host. Big mistake.

My advice - if anybody is looking for a new host, stay away from siteground.

I'm going to give it another 24 hours to see if there is a solution, before moving everything back and having the site up and running again.

Out of interest, 2 more zero byte files transferred at 11:30am and 11:50am this morning - airquality.jsontemp and dailyrain.jsontemp
User avatar
HansR
Posts: 6926
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bookworm
Location: Wagenborgen (NL)
Contact:

Re: Uploading of realtime.txt via ftp

Post by HansR »

Rylands wrote: Tue 30 Mar 2021 4:39 am
@rylands i can't find any location info of you nor a site. The problem i describe is in Norway. And you are where?
I'm from Melbourne, Australia.
OK, that's far from Norway :lol:
Rylands wrote: Tue 30 Mar 2021 4:39 am My site at www.eyeseontheweather.com.au had been working fine until 48 hours ago.

I decided to move it to a new host, as I had already moved another site to the same host. Big mistake.

My advice - if anybody is looking for a new host, stay away from siteground.

I'm going to give it another 24 hours to see if there is a solution, before moving everything back and having the site up and running again.

Out of interest, 2 more zero byte files transferred at 11:30am and 11:50am this morning - airquality.jsontemp and dailyrain.jsontemp
OK. Thanks for the info.

Below is the extended error information from my problem with FTP in NOrway using the same library as CMX. So it would be interesting to see what extended error information you can come up with. Maybe we should wait a comment by @mcrossley on this before you switch provider again (assuming your CMX is running fine). If he could come up with a CMX version to show the inner exception we could have proof of an issue with the library (if against some specific type of server - so what server is the provider using? If we should report a bug then the server is asked).

NOTE: in one case an upload was successful (the file was there) but the code gave a fail because it could not read the response. Below it is just failing the response.

2021-03-26 06:39:12.016 Error MapsOn: Upload Exception: Error while uploading the file to the server. See InnerException for more info.
2021-03-26 06:39:12.026 Error MapsOn ERROR: Inner Exception: System.TimeoutException: Timed out trying to read data from the socket stream!
at FluentFTP.FtpSocketStream.Read (System.Byte[] buffer, System.Int32 offset, System.Int32 count) [0x00042] in <3792a06df8ff4ac698665c1c1cbabf74>:0
at FluentFTP.FtpSocketStream.ReadLine (System.Text.Encoding encoding) [0x00045] in <3792a06df8ff4ac698665c1c1cbabf74>:0
at (wrapper remoting-invoke-with-check) FluentFTP.FtpSocketStream.ReadLine(System.Text.Encoding)
at FluentFTP.FtpClient.GetReply () [0x000b4] in <3792a06df8ff4ac698665c1c1cbabf74>:0
at FluentFTP.FtpClient.Execute (System.String command) [0x000d9] in <3792a06df8ff4ac698665c1c1cbabf74>:0
at FluentFTP.FtpClient.OpenPassiveDataStream (FluentFTP.FtpDataConnectionType type, System.String command, System.Int64 restart) [0x00198] in <3792a06df8ff4ac698665c1c1cbabf74>:0
at FluentFTP.FtpClient.OpenDataStream (System.String command, System.Int64 restart) [0x00070] in <3792a06df8ff4ac698665c1c1cbabf74>:0
at FluentFTP.FtpClient.OpenWrite (System.String path, FluentFTP.FtpDataType type, System.Boolean checkIfFileExists) [0x0009d] in <3792a06df8ff4ac698665c1c1cbabf74>:0
at FluentFTP.FtpClient.UploadFileInternal (System.IO.Stream fileData, System.String localPath, System.String remotePath, System.Boolean createRemoteDir, FluentFTP.FtpRemoteExists existsMode, System.Boolean fileExists, System.Boolean fileExistsKnown, System.Action`1[T] progress, FluentFTP.FtpProgress metaProgress) [0x00115] in <3792a06df8ff4ac698665c1c1cbabf74>:0
2021-03-26 06:39:12.026 Error MapsOn: Upload failed, Map update failed, continuing
Hans

https://meteo-wagenborgen.nl
CMX build 4070+ ● RPi 4B ● Linux 6.6.62+rpt-rpi-v8 aarch64 (bookworm) ● dotnet 8.0.1
BlueSky: https://bsky.app/profile/wagenborgenwx.bsky.social
Post Reply