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

graph data files randomly uploaded to incorrect place....

Topics about the Beta trials up to Build 3043, the last build by Cumulus's founder Steve Loft. It was by this time way out of Beta but Steve wanted to keep it that way until he made a decision on his and Cumulus's future.

Moderator: mcrossley

duke

graph data files randomly uploaded to incorrect place....

Post by duke »

I have ticked to upload the graph data files which MX does to 'public_html/cumulus' as can be seen from my settings.
capture2.PNG
However, randomly / some how / several times a day MX decides to ftp them to the same level as 'public_html' as can be seen below.
capture1.PNG
Any suggestions?
You do not have the required permissions to view the files attached to this post.
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: graph data files randomly uploaded to incorrect place...

Post by steve »

I've noticed the same thing. Presumably the 'change directory' fails occasionally for some reason, so the uploads go into the home directory. I haven't got around to running with ftp logging on to see what happens.
Steve
water01
Posts: 3670
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: Ecowitt HP2551
Operating System: Windows 10/11 64bit Synology NAS
Location: Burnham-on-Sea
Contact:

Re: graph data files randomly uploaded to incorrect place...

Post by water01 »

I could be wrong but shouldn't it be /public_html/cumulus rather than public_html/cumulus?

That is how mine is and it works fine.
David
Image
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: graph data files randomly uploaded to incorrect place...

Post by steve »

It depends on how your hosting is set up. Using an absolute path (starting with a slash) may not necessarily give the result you expect. A relative path is usually safer, because it's clear what the effect should be. I have used the same (relative) path with Cumulus 1 for years successfully, but for some reason with MX there is this occasional problem.
Steve
duke

Re: graph data files randomly uploaded to incorrect place...

Post by duke »

water01 wrote:I could be wrong but shouldn't it be /public_html/cumulus rather than public_html/cumulus?

That is how mine is and it works fine.
I don't believe so, I use that in Cumulus 1 and in several other programs to ftp files. And, most of the time in MX it works just fine.
duke

Re: graph data files randomly uploaded to incorrect place...

Post by duke »

Steve, not sure if this is relevant but I have the following error for random graph files. This is not reported consistently just randomly through the day.
2015-02-20 06:30:24.971 Error uploading humdatad3.json to humdatad3.json : Timed out trying to read data from the socket stream!
duke

Re: graph data files randomly uploaded to incorrect place...

Post by duke »

Ok, just checked my server, the time on the last .json files ftp'ed to the wrong directory correspond with the following error.
2015-02-21 06:45:23.528 Error uploading wdirdatad3.json to wdirdatad3.json : Timed out trying to read data from the socket stream!
2015-02-21 06:45:39.760 Error uploading humdatad3.json to humdatad3.json : Timed out trying to read data from the socket stream!
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: graph data files randomly uploaded to incorrect place...

Post by steve »

As you were having communication problems at that time, it's reasonable to assume that the 'change directory' was also affected. I'll see if I can rework the code so that it doesn't attempt to do the uploads if the CWD fails.
Steve
duke

Re: graph data files randomly uploaded to incorrect place...

Post by duke »

Steve, could you explain the error for me? 'Error uploading' is obviously between my server and my host but the 'Timed out trying to read data from the socket stream!' is that a local issue?

oh, and 'CWD'?

Perhaps I'm just being a bit slow today...
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: graph data files randomly uploaded to incorrect place...

Post by steve »

The 'Timed out...' message is the FTP component saying it isn't getting a response from the FTP server.

CWD = Change Working Directory, it's an FTP command.
Steve
duke

Re: graph data files randomly uploaded to incorrect place...

Post by duke »

Ok, thank you.
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: graph data files randomly uploaded to incorrect place...

Post by steve »

I think I know what's happening now. The CWD doesn't fail. It appears that if the ftp connection times out, the ftp client automatically reconnects - which is nice - but unfortunately it means that the working directory is now the 'home' directory, so the remaining uploads go to the wrong place.

I think I will have to change my approach so that it uses the full path for the remote files, and avoids doing the CWD at all. I've asked the author if my theory seems reasonable, and whether he has any better suggestions.
Steve
duke

Re: graph data files randomly uploaded to incorrect place...

Post by duke »

Thanks for the update.
duke

Re: graph data files randomly uploaded to incorrect place...

Post by duke »

Appears fixed in 3021, been running for 24 hours with all files to correct directory. This was happening several times a day.
CurtisZM
Posts: 29
Joined: Wed 30 Nov 2011 3:29 am
Weather Station: Davis VP2
Operating System: Windows 10 Version 1511
Location: Zumbrota,Mn
Contact:

Timed out trying to read data from the socket stream!

Post by CurtisZM »

To All,

I just installed CumulusMX and having the same error when sending to my ftp.

Error uploading dailytemp.json to /webspace/curtiszmweather.com/cumulus/cumulusmx/daily.json : Timed out trying to read data from the socket stream!

CumulusMX Ver: 3.0.0 b3029

P.S. CumulusMX doesn't like IE 11. running it in Chrome
OS = Windows 10

Note: Cumulus 1.9.4 uploads to my ftp just fine.

Please assist...Thank you.
Locked